From a360253b6e2459371075ffa66a83a435fddf3c5b Mon Sep 17 00:00:00 2001 From: zds <2388969634@qq.com> Date: Fri, 23 Sep 2022 10:19:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mes/qd/src/views/wms/pf/formula/DivDialog.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/mes/qd/src/views/wms/pf/formula/DivDialog.vue b/mes/qd/src/views/wms/pf/formula/DivDialog.vue index cb661891..ed46f715 100644 --- a/mes/qd/src/views/wms/pf/formula/DivDialog.vue +++ b/mes/qd/src/views/wms/pf/formula/DivDialog.vue @@ -299,7 +299,7 @@ @@ -889,14 +889,6 @@ export default { this.tableDtl.push(value) } }, - is_rf_xl(row){ - let maxNum = 9999999999.0 - if(row.is_rf_xl === '1'){ - return parseFloat(row.sum_ivt_qty).toFixed(3) - }else{ - return parseFloat(maxNum).toFixed(3) - } - }, submit() { if (this.tableDtl.length === 0) { this.crud.notify('明细不能为空!') @@ -908,6 +900,14 @@ export default { return false } } + for (let i = 0; i < this.tableDtl.length; i++) { + if (this.tableDtl[i].status === '10') { + if (parseFloat(this.tableDtl[i].sum_ivt_qty) < parseFloat(this.tableDtl[i].formula_qty)) { + this.crud.notify('配粉重量不允许大于可用库存重量,明细序号为' + (i + 1) + '请检查!') + return false + } + } + } this.form.tableDtl = this.tableDtl formula.submit(this.form).then(res => { this.crud.notify('操作成功!')