Commit 6508ee13 authored by tanjunxin's avatar tanjunxin

fix: 去除退料的判断

parent f3fb308c
......@@ -2,8 +2,8 @@
"name" : "mes-pda",
"appid" : "__UNI__FB0FD5F",
"description" : "MES-PDA",
"versionName" : "1.1.7",
"versionCode" : 117,
"versionName" : "1.2.3",
"versionCode" : 123,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
......
......@@ -132,19 +132,19 @@
this.visible = false
},
handleChange(val) {
if (!val.replace(/^\d+$/g, '') || val.replace(/^((-\d+)|(0+))$/g, '')) {
if (val.length > 1) {
this.$u.toast("请输入正数、负数或者0");
}
// if (!val.replace(/^\d+$/g, '') || val.replace(/^((-\d+)|(0+))$/g, '')) {
// if (val.length > 1) {
// this.$u.toast("请输入正数、负数或者0");
// }
// } else {
if (val > this.batchNum) {
this.$u.toast("退料数量不可以超过申请数量!");
} else {
if (val > this.batchNum) {
this.$u.toast("退料数量不可以超过申请数量!");
} else {
this.sapList.forEach(ele => {
ele.ERFMG = (val * (ele.quantity / this.totalNum)).toFixed(2);
})
}
this.sapList.forEach(ele => {
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