From ac1f546767e84956bba15363dfcf6f0d7dd65ad8 Mon Sep 17 00:00:00 2001 From: liyongde <1419499670@qq.com> Date: Wed, 14 Dec 2022 14:38:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mes/qd/src/views/wms/pf/productbom/AddDialog.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mes/qd/src/views/wms/pf/productbom/AddDialog.vue b/mes/qd/src/views/wms/pf/productbom/AddDialog.vue index 6e7ffb8b..fdb8fa04 100644 --- a/mes/qd/src/views/wms/pf/productbom/AddDialog.vue +++ b/mes/qd/src/views/wms/pf/productbom/AddDialog.vue @@ -142,7 +142,7 @@ @@ -258,7 +258,9 @@ export default { }, handleEdit(index, row) { // 判断是否可以关闭编辑状态 + console.log(row.canDo) if (!row.edit) { + row.canDo = true if (parseFloat(row.standard_rate) <= 0) { this.crud.notify('标准值必须大于0!', CRUD.NOTIFICATION_TYPE.INFO) return false @@ -272,7 +274,8 @@ export default { return false } if (row.is_need_manage === '1') { - if ((this.form.total_value + parseFloat(row.standard_rate)) > 100) { + debugger + if ((parseFloat(this.form.total_value) + parseFloat(row.standard_rate)) > 100) { this.crud.notify('标准合计值不能超过100!', CRUD.NOTIFICATION_TYPE.INFO) return false }