|
|
|
@ -138,6 +138,8 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
async queryLoction() {
|
|
|
|
|
this.Location = [];
|
|
|
|
|
let sendSpot = JSON.parse(uni.getStorageSync('sendSpot') as any);
|
|
|
|
|
let data:any = this.model.orderInInfoList.find((val:any)=>val.poNo==this.poNo&&val.materialCode==this.every.materialCode);
|
|
|
|
|
uni.setStorageSync('sendSpot', JSON.stringify(data.sendSpot) as any);
|
|
|
|
|
let content = {
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
sendSpot: sendSpot,
|
|
|
|
@ -161,6 +163,8 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
let list: Array<LocationDetail> = [];
|
|
|
|
|
let means: any = JSON.parse(uni.getStorageSync('__GWMS_APP_STATE_DATA__') as any);
|
|
|
|
|
let sendSpot = JSON.parse(uni.getStorageSync('sendSpot') as any);
|
|
|
|
|
let data:any = this.model.orderInInfoList.find((val:any)=>val.poNo==this.poNo&&val.materialCode==this.every.materialCode);
|
|
|
|
|
uni.setStorageSync('sendSpot', JSON.stringify(data.sendSpot) as any);
|
|
|
|
|
let content = {
|
|
|
|
|
loginName: means.session.user.loginName,
|
|
|
|
|
sendSpot: sendSpot,
|
|
|
|
@ -168,7 +172,6 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
workArea: session.workareaCode,
|
|
|
|
|
};
|
|
|
|
|
let res: any = await this.model.queryByFactoryCodeAndWorkAreaCode(content);
|
|
|
|
|
console.log('>>>>>>>>>>>>>>', res);
|
|
|
|
|
res.forEach((item: LocationDetail) => {
|
|
|
|
|
if (item.sendSpot === condition.sendSpot) {
|
|
|
|
|
let pickerName: any = {};
|
|
|
|
@ -272,6 +275,7 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
// 查询时初始化仓库
|
|
|
|
|
this.Location = await this.initLocation(this.every);
|
|
|
|
|
if (this.Location.length == 0) {
|
|
|
|
|
|
|
|
|
|
await this.queryLoction();
|
|
|
|
|
}
|
|
|
|
|
// 自动化流程改造测试
|
|
|
|
|