From 4487479a25c7758daddedd12ba1d3281fa0af044 Mon Sep 17 00:00:00 2001 From: hou <1601990943@qq.com> Date: Mon, 10 Jan 2022 16:09:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=9F=E6=9D=90=E6=96=99=E9=A2=86=E7=94=A8?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E9=87=8D=E6=9E=84=20&&=20=E5=8E=9F=E6=9D=90?= =?UTF-8?q?=E6=96=99=E6=8A=A5=E5=BA=9F=E7=95=8C=E9=9D=A2=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/lang/cn.ts | 1 + src/i18n/lang/en.ts | 1 + .../product/outbound/stoOutbound/Back.vue | 14 +- .../product/outbound/stoOutbound/model.ts | 7 + .../raw/warehouse/rowCollect/details.vue | 51 ++--- src/pages/raw/warehouse/rowCollect/index.vue | 171 +++++++++++++--- src/pages/raw/warehouse/rowCollect/model.ts | 18 +- src/pages/raw/warehouse/rowScrap/index.vue | 191 +++++++++++++----- src/pages/raw/warehouse/rowScrap/model.ts | 18 +- src/utils/url.ts | 1 + 10 files changed, 332 insertions(+), 141 deletions(-) diff --git a/src/i18n/lang/cn.ts b/src/i18n/lang/cn.ts index 39e6c33..3ec707e 100644 --- a/src/i18n/lang/cn.ts +++ b/src/i18n/lang/cn.ts @@ -393,6 +393,7 @@ export default { Warehouse_Tip8: '请输入成本中心', Warehouse_Tip9: '操作成功', DocumentNumber: '文件号', + fileNumber: '请输入文件号', Warehouse_Tip10: '请选择sap库存地点', Warehouse_Tip11: '该单号不存在或已经操作完成', Warehouse_TotalNumber: '总数', diff --git a/src/i18n/lang/en.ts b/src/i18n/lang/en.ts index 347132c..84ecaa9 100644 --- a/src/i18n/lang/en.ts +++ b/src/i18n/lang/en.ts @@ -331,6 +331,7 @@ export default { product_item3: 'SFG Air Conditioner / Washing Machine Offline', product_item4: 'SFG Door Body Online', product_item5: 'SFG Box Body Online', + fileNumber: 'Please enter the file number', //成品下线 product_Location: 'Loc', diff --git a/src/pages/product/outbound/stoOutbound/Back.vue b/src/pages/product/outbound/stoOutbound/Back.vue index ed52608..a99bde7 100644 --- a/src/pages/product/outbound/stoOutbound/Back.vue +++ b/src/pages/product/outbound/stoOutbound/Back.vue @@ -51,12 +51,18 @@ export default class stoOutboundDom extends BasePage { barCode: any = ''; scanAmount: number = 0; retreatNum: number = 0; - onReady() { + async onReady() { let code = sessionStorage.getItem('SweepCode'); this.order3 = JSON.parse(code); this.model.materielList.forEach((item: any) => { this.scanAmount += parseFloat(item.outAmount); }); + let params = { + nxOutCode: this.order3, + loginName: session.loginName, + factoryCode: session.factoryCode, + }; + await this.model.queryAmount(params); } async BackSweep() { if (!this.barCode) { @@ -79,10 +85,10 @@ export default class stoOutboundDom extends BasePage { icon: 'none', title: this.$t('message.succeeded') as string, }); + this.barCode = ''; + this.scanAmount -= 1; + this.retreatNum += 1; } - this.barCode = ''; - this.scanAmount -= 1; - this.retreatNum += 1; } } diff --git a/src/pages/product/outbound/stoOutbound/model.ts b/src/pages/product/outbound/stoOutbound/model.ts index 4ec75af..55c81c5 100644 --- a/src/pages/product/outbound/stoOutbound/model.ts +++ b/src/pages/product/outbound/stoOutbound/model.ts @@ -198,6 +198,13 @@ export class ReturningModule extends VuexModule { const code = res.code; return { code }; } + //退扫查询接口 + @MutationAction + async queryAmount(params: any) { + const res: any = await http.post(url.outbound.stoOutbound.queryAmount, params); + console.log('退扫>>>>>>>>>>>>>>>>>>>>>>>>.', res); + return {}; + } } export default getModule(ReturningModule); diff --git a/src/pages/raw/warehouse/rowCollect/details.vue b/src/pages/raw/warehouse/rowCollect/details.vue index be4b7b0..9009b11 100644 --- a/src/pages/raw/warehouse/rowCollect/details.vue +++ b/src/pages/raw/warehouse/rowCollect/details.vue @@ -1,27 +1,13 @@