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 @@