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();
}