From 91a2e9ea757712e4080c7d9b62109159230b412c Mon Sep 17 00:00:00 2001 From: guoshuang Date: Tue, 21 Dec 2021 20:59:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E9=80=80=E6=96=99=20?= =?UTF-8?q?=E7=AD=9B=E9=80=89=E9=A1=B5=E9=9D=A2=E8=A1=A8=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/raw/commission/entrant/index.vue | 6 +++++- src/pages/raw/commission/goOut/index.vue | 4 +++- src/pages/raw/handover/returning/Time-filter.vue | 3 ++- src/pages/raw/handover/returning/config.ts | 12 +++++++++++- src/pages/raw/handover/returning/index.vue | 7 +++++++ src/pages/raw/handover/returning/model.ts | 3 +++ 6 files changed, 31 insertions(+), 4 deletions(-) diff --git a/src/pages/raw/commission/entrant/index.vue b/src/pages/raw/commission/entrant/index.vue index 3efc057..2bb82a8 100644 --- a/src/pages/raw/commission/entrant/index.vue +++ b/src/pages/raw/commission/entrant/index.vue @@ -197,13 +197,17 @@ export default class dnReceiptDom extends BasePage { workArea: session.workareaCode, }; let res: any = await this.model.queryByFactoryCodeAndWorkAreaCode(content); - res.forEach((item: any) => { + console.log("res res",res[0]); + // 库位列表是undefined 委外入库、委外出库都是同样的问题 + //guoshuang 修改 库位列表undefiend + res[0].forEach((item: any) => { let pickerName: any = {}; pickerName.label = item.locationCode; pickerName.value = item.locationCode + "(" + item.sendSpot + ")"; pickerName.sendSpot = item.sendSpot; this.Location.push(pickerName); }); + console.log("库位列表",this.Location); } //输入单号 查询数据 async query() { diff --git a/src/pages/raw/commission/goOut/index.vue b/src/pages/raw/commission/goOut/index.vue index 4cc5170..8c9d099 100644 --- a/src/pages/raw/commission/goOut/index.vue +++ b/src/pages/raw/commission/goOut/index.vue @@ -197,7 +197,9 @@ export default class dnReceiptDom extends BasePage { workArea: session.workareaCode, }; let res: any = await this.model.queryByFactoryCodeAndWorkAreaCode(content); - res.forEach((item: any) => { + //库位为undefined,打印的res信息格式为[[],[]],且里面两个arry相同 + //guoshuang 修改 库位列表undefined + res[0].forEach((item: any) => { let pickerName: any = {}; pickerName.label = item.locationCode; pickerName.value = item.locationCode + "(" + item.sendSpot + ")"; diff --git a/src/pages/raw/handover/returning/Time-filter.vue b/src/pages/raw/handover/returning/Time-filter.vue index 8d1b643..1acf8e5 100644 --- a/src/pages/raw/handover/returning/Time-filter.vue +++ b/src/pages/raw/handover/returning/Time-filter.vue @@ -10,6 +10,7 @@ {{ $t("message.screen") }} + {{ - $t("message.po_Return") + $t("message.workArea_Confirm") }} diff --git a/src/pages/raw/handover/returning/config.ts b/src/pages/raw/handover/returning/config.ts index 8e0f831..e6b4240 100644 --- a/src/pages/raw/handover/returning/config.ts +++ b/src/pages/raw/handover/returning/config.ts @@ -6,6 +6,16 @@ export const headers = [ { label: vm.$t('message.InventoryOrderNo'), key: 'label', - width: 650, + width: 216, + }, + { + label: vm.$t('message.InventoryMaterielNo'), + key: 'value', + width: 216, + }, + { + label: "接收人", + key: 'sendSpot', + width: 216, }, ]; diff --git a/src/pages/raw/handover/returning/index.vue b/src/pages/raw/handover/returning/index.vue index 7f2768c..b8adf4e 100644 --- a/src/pages/raw/handover/returning/index.vue +++ b/src/pages/raw/handover/returning/index.vue @@ -17,12 +17,14 @@ :error-type="['toast']" label-width="150rpx" > + + --> + + + + +