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;