From a4893e9369b1405a83a6d999ac1ea0aeaec7b56c Mon Sep 17 00:00:00 2001 From: guoshuang Date: Mon, 27 May 2024 11:05:24 +0800 Subject: [PATCH] =?UTF-8?q?wms=20=E5=8C=85=E6=9D=90=E6=94=B6=E8=B4=A7?= =?UTF-8?q?=E5=88=B0=E8=B4=A7=E5=8D=95=E9=83=A8=E5=88=86=E5=B0=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/wms/Raw/ReceivePO/index.vue | 49 ++++++++++++++------------- 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/src/pages/wms/Raw/ReceivePO/index.vue b/src/pages/wms/Raw/ReceivePO/index.vue index 994c6e7..2622cf8 100644 --- a/src/pages/wms/Raw/ReceivePO/index.vue +++ b/src/pages/wms/Raw/ReceivePO/index.vue @@ -168,24 +168,24 @@ 已登记数量: - + 未登记数量: - + 登记数量: - + + + +
+ 确定 +
+
+ 取消 +
- -
- 确定 -
-
- 取消 -
-
@@ -214,7 +214,7 @@ export default class receivePO extends BasePage { receivedlist: any = []; operationNumber = 0; nooperationNumber = 0; - czNumber = 0; + czNumber = ''; // receivedlist=[{ // orderStatus:'1', // procureCode:'111', @@ -316,11 +316,11 @@ export default class receivePO extends BasePage { this.form3 = {}; this.productCodeTypeList = {}; } - nopoupsing(){ + nopoupsing() { this.singshow = false; - this.operationNumber =0; + this.operationNumber = 0; this.nooperationNumber = 0; - this.czNumber = 0; + this.czNumber = ''; } //点击收货按钮,录入批次(或系统自动生成)、数量、托盘码进行收货。 async onOk() { @@ -529,14 +529,14 @@ export default class receivePO extends BasePage { //到货登记查询 async SignIn() { let params = { - factoryCode:session.FactoryCode, - id:this.list[0].id, - } + factoryCode: session.FactoryCode, + id: this.list[0].id, + }; await this.model.selectArrivalRegistration(params); - if(this.model.singcode == 200){ + if (this.model.singcode == 200) { this.singshow = true; this.operationNumber = model.singobj.operationNumber; - this.nooperationNumber =model.singobj.planNumber - model.singobj.operationNumber + this.nooperationNumber = model.singobj.planNumber - model.singobj.operationNumber; } } //到货登记确定提交 @@ -548,10 +548,11 @@ export default class receivePO extends BasePage { }); return; } - if ( this.czNumber == 0) { + if (parseFloat(this.czNumber) == 0 || this.czNumber == '') { (this.$refs.uToast as any).show({ - title: '登记数量不能为0', + title: '填写登记数量且不能为0', type: 'default', + duration: 4000, }); return; } @@ -559,16 +560,16 @@ export default class receivePO extends BasePage { factoryCode: session.FactoryCode, procureCode: this.procureCode, id: this.list[0].id, - czNumber:this.czNumber, + czNumber: this.czNumber, lastUpdateBy: session.loginName, }; //console.log('99999',params); await this.model.ArrivalRegistration(params); if (this.model.Arrivalcode == 200) { - (this.$refs.uToast as any).show({ title: '成功', type: 'success', + duration: 4000, }); this.nopoupsing(); }