From d863a9e1d3be27007c9b4a6c2c2ee40001b2d514 Mon Sep 17 00:00:00 2001 From: hou <1601990943@qq.com> Date: Fri, 17 Jun 2022 16:55:24 +0800 Subject: [PATCH] =?UTF-8?q?cosmoim-852=20fix=20=E4=BF=84=E7=BD=97=E6=96=AF?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=80=80=E8=B4=A7=E5=8A=9F=E8=83=BD&&?= =?UTF-8?q?=E5=A4=87=E4=BB=B6=E5=85=A5=E5=BA=93=E5=8A=9F=E8=83=BD=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/lang/en.ts | 2 +- .../raw/handover/RUS-returning/index.vue | 6 +- src/pages/raw/handover/RUS-returning/model.ts | 5 +- .../raw/handover/feeding/RUS-Location.vue | 7 +- src/pages/raw/handover/feeding/model.ts | 5 +- .../RUS-dnReturnGoods/Local-details.vue | 13 +- .../ingoods/RUS-dnReturnGoods/Location.vue | 133 +++++++++++------- .../raw/ingoods/RUS-dnReturnGoods/config.ts | 52 +++---- .../raw/ingoods/RUS-dnReturnGoods/model.ts | 16 ++- .../ingoods/SpareInbound/Inbound/index.vue | 1 + .../ingoods/dnReturnGoods/Local-details.vue | 6 +- src/pages/raw/ingoods/dnReturnGoods/config.ts | 2 +- 12 files changed, 151 insertions(+), 97 deletions(-) diff --git a/src/i18n/lang/en.ts b/src/i18n/lang/en.ts index 8418ac9..b33a8a1 100644 --- a/src/i18n/lang/en.ts +++ b/src/i18n/lang/en.ts @@ -490,7 +490,7 @@ export default { returner: 'The returner must be equal to the login', Inbound: 'Spare Inbound', InboundDetail: 'Inbound Detail', - orderNum: 'Order Num', + orderNum: 'Num', totalNum: 'total Num', Operation: 'Operation', StorageTime: 'Storage Time', diff --git a/src/pages/raw/handover/RUS-returning/index.vue b/src/pages/raw/handover/RUS-returning/index.vue index a85ccf6..7e83764 100644 --- a/src/pages/raw/handover/RUS-returning/index.vue +++ b/src/pages/raw/handover/RUS-returning/index.vue @@ -147,7 +147,11 @@ export default class returningDom extends BasePage { this.customToast(this.$t('message.barcode') as string); return; } - await this.model.searchBarcode(this.Barcode); + let params = { + productCode: this.materieCode.value, + barcode: this.Barcode, + }; + await this.model.searchBarcode(params); this.Container = this.model.ContainerCode; let arr = { label: this.Container.locCode, diff --git a/src/pages/raw/handover/RUS-returning/model.ts b/src/pages/raw/handover/RUS-returning/model.ts index 4e4dace..ffca46c 100644 --- a/src/pages/raw/handover/RUS-returning/model.ts +++ b/src/pages/raw/handover/RUS-returning/model.ts @@ -110,11 +110,12 @@ export class ReturningModule extends VuexModule { return res; } @MutationAction - async searchBarcode(barcode: any) { + async searchBarcode(params: any) { const res: any = await http.post(url.auth.query.barcode, { factoryCode: session.factoryCode, loginName: session.loginName, - barcode, + barcode: params.barcode, + productCode: params.productCode, }); const ContainerCode = res.data; return { ContainerCode }; diff --git a/src/pages/raw/handover/feeding/RUS-Location.vue b/src/pages/raw/handover/feeding/RUS-Location.vue index 5231b0a..c907c1c 100644 --- a/src/pages/raw/handover/feeding/RUS-Location.vue +++ b/src/pages/raw/handover/feeding/RUS-Location.vue @@ -229,6 +229,7 @@ export default class RawReceiptDetail extends BasePage { async query() { if (this.form.documentNo == '') { this.customToast(this.$t('message.Commission_tips1') as string); + return; } if (this.sapSupplyIdList.length != 0) { await this.lock(); @@ -300,7 +301,11 @@ export default class RawReceiptDetail extends BasePage { this.customToast(this.$t('message.AppendMateriel5') as string); return; } - await this.model.searchBarcode(this.Barcode); + let params = { + productCode: this.some.materialCode, + barcode: this.Barcode, + }; + await this.model.searchBarcode(params); this.Container = this.model.ContainerCode; let arr = { label: this.Container.locCode, diff --git a/src/pages/raw/handover/feeding/model.ts b/src/pages/raw/handover/feeding/model.ts index 5dfc4a7..a310da2 100644 --- a/src/pages/raw/handover/feeding/model.ts +++ b/src/pages/raw/handover/feeding/model.ts @@ -211,11 +211,12 @@ export class FeedingModule extends VuexModule { } //俄罗斯补料扫描容器码 @MutationAction - async searchBarcode(barcode: any) { + async searchBarcode(params: any) { const res: any = await http.post(url.auth.query.barcode, { factoryCode: session.factoryCode, loginName: session.loginName, - barcode, + barcode: params.barcode, + productCode: params.productCode, }); const ContainerCode = res.data; return { ContainerCode }; diff --git a/src/pages/raw/ingoods/RUS-dnReturnGoods/Local-details.vue b/src/pages/raw/ingoods/RUS-dnReturnGoods/Local-details.vue index 7feefce..a41a9c0 100644 --- a/src/pages/raw/ingoods/RUS-dnReturnGoods/Local-details.vue +++ b/src/pages/raw/ingoods/RUS-dnReturnGoods/Local-details.vue @@ -14,22 +14,24 @@ - +