|
|
@@ -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() {
|