695593266@qq.com 2 месяцев назад
Родитель
Сommit
d7bef9428b

+ 4 - 0
src/views/produce/components/picking/newWokePopup.vue

@@ -158,6 +158,8 @@
       // },
 
       open(req) {
+        this.rightMode = 'list';
+        this.currentRow = null;
         this.itemData = req;
         this.type = 1;
         this.workList = [];
@@ -176,6 +178,8 @@
       },
 
       openTwo(req) {
+        this.rightMode = 'list';
+        this.currentRow = null;
         this.itemData = req;
         this.type = 2;
         this.workList = [];

+ 8 - 0
src/views/produce/components/qualityInspection/index.vue

@@ -242,6 +242,11 @@
     },
     methods: {
       async open(workOrder, produceTaskInfo, type, req) {
+        // 每次打开重置子界面,避免仍停留在上一次的报工/请托或残留行数据
+        this.leftMode = 'list';
+        this.currentRow = null;
+        this.reportType = null;
+
         this.workOrder = workOrder;
         this.produceTaskInfo = produceTaskInfo;
         this.type = type;
@@ -290,6 +295,9 @@
 
       handleClose() {
         this.dialogVisible = false;
+        this.leftMode = 'list';
+        this.currentRow = null;
+        this.reportType = null;
         this.$emit('close');
       },
       async handleUpdate() {