From 1fad373b4d0210a7c3aa3797d0ad1445ea18d340 Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 6 Jan 2026 14:22:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=A6=85=E9=81=93146?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/mlogbw_check.vue | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/src/views/wpm_bx/mlogbw_check.vue b/src/views/wpm_bx/mlogbw_check.vue index 35c45ce1..20f982ef 100644 --- a/src/views/wpm_bx/mlogbw_check.vue +++ b/src/views/wpm_bx/mlogbw_check.vue @@ -480,9 +480,6 @@ export default { default:"", } }, - // components: { - // checkDrawer - // }, emits: ["success", "closed"], data() { return { @@ -556,16 +553,7 @@ export default { printer_name:localStorage.getItem("printer_name") }; }, - watch: { - // mlogbwlist: { - // handler(newVal, oldVal) { - // let that = this; - // that.getNewNumber(); - // }, - // deep: true, - // immediate: true, - // }, - }, + watch: {}, mounted() { let that = this; that.route_code = that.$route.path.split("/")[2]; @@ -798,10 +786,6 @@ export default { //添加 formTableSave(row) { let that = this; - if(that.mode == 'ins'&&that.route_code=='niuzhuan'&&row.equip==''||row.equip==null){ - row.work_start_time = null; - row.波数 = null; - } let obj = {}; obj.number = row.number; obj.mlogb = row.mlogb; @@ -877,17 +861,19 @@ export default { } }, formTableCancel(row){ - this.mlogbwlist.forEach((item, index) => { + let that = this; + that.mlogbwlist.forEach((item, index) => { if (item.id == row.id) { - this.mlogbwlist[index].isEdit = false; + that.mlogbwlist[index].isEdit = false; + if(that.mode == 'ins'&&that.route_code=='niuzhuan'&&(row.equip==''||row.equip==null)){ + that.mlogbwlist[index].work_start_time = null; + that.mlogbwlist[index].波数 = null; + } } }); }, formTableEdit(row) { let that = this; - // if(that.route_code=='niuzhuan'&&that.optionsEq.length==0){ - // that.getEquipment4(); - // } that.mlogbwlist.forEach((item, index) => { if (item.id == row.id) { that.mlogbwlist[index].isEdit = true;