From 0513a4db3552389fe2852c1ae879aa5c5b16bc51 Mon Sep 17 00:00:00 2001 From: mabaoyan Date: Fri, 19 May 2023 18:39:22 +0800 Subject: [PATCH] =?UTF-8?q?overseamom-252=20feat=20dnReceive=E6=A0=B9?= =?UTF-8?q?=E6=8D=AEPO=E5=92=8C=E7=89=A9=E6=96=99=E5=AE=9A=E4=BD=8D?= =?UTF-8?q?=E5=BA=93=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/raw/ingoods/dnReceipt/dnReceiving.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/raw/ingoods/dnReceipt/dnReceiving.vue b/src/pages/raw/ingoods/dnReceipt/dnReceiving.vue index 19574ec..9a9c8ca 100644 --- a/src/pages/raw/ingoods/dnReceipt/dnReceiving.vue +++ b/src/pages/raw/ingoods/dnReceipt/dnReceiving.vue @@ -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 = []; 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(); } // 自动化流程改造测试