Commit 6508ee13 authored by tanjunxin's avatar tanjunxin

fix: 去除退料的判断

parent f3fb308c
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
"name" : "mes-pda", "name" : "mes-pda",
"appid" : "__UNI__FB0FD5F", "appid" : "__UNI__FB0FD5F",
"description" : "MES-PDA", "description" : "MES-PDA",
"versionName" : "1.1.7", "versionName" : "1.2.3",
"versionCode" : 117, "versionCode" : 123,
"transformPx" : false, "transformPx" : false,
/* 5+App特有相关 */ /* 5+App特有相关 */
"app-plus" : { "app-plus" : {
......
...@@ -132,11 +132,11 @@ ...@@ -132,11 +132,11 @@
this.visible = false this.visible = false
}, },
handleChange(val) { handleChange(val) {
if (!val.replace(/^\d+$/g, '') || val.replace(/^((-\d+)|(0+))$/g, '')) { // if (!val.replace(/^\d+$/g, '') || val.replace(/^((-\d+)|(0+))$/g, '')) {
if (val.length > 1) { // if (val.length > 1) {
this.$u.toast("请输入正数、负数或者0"); // this.$u.toast("请输入正数、负数或者0");
} // }
} else { // } else {
if (val > this.batchNum) { if (val > this.batchNum) {
this.$u.toast("退料数量不可以超过申请数量!"); this.$u.toast("退料数量不可以超过申请数量!");
} else { } else {
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
ele.ERFMG = (val * (ele.quantity / this.totalNum)).toFixed(2); ele.ERFMG = (val * (ele.quantity / this.totalNum)).toFixed(2);
}) })
} }
} // }
}, },
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment