diff --git a/src/views/technology/process/index.vue b/src/views/technology/process/index.vue index bba54635..2ed07235 100644 --- a/src/views/technology/process/index.vue +++ b/src/views/technology/process/index.vue @@ -707,9 +707,15 @@ export default { // 查询明细按钮操作 handleView(row) { this.reset(); + this.selectMaterielListtag = []; const processId = row.processId || this.ids; getProcess(processId).then((response) => { this.form = response.data; + if (this.form.equipment != "" && this.form.equipment != null) { + this.selectMaterielListtag = JSON.parse( + JSON.stringify(this.form.equipment.split(",")) + ); + } this.open = true; this.title = "查看工序信息"; this.optType = "view"; @@ -727,7 +733,7 @@ export default { getProcess(processId).then((response) => { this.form = response.data; console.log(this.form); - if (this.form.equipment != "") { + if (this.form.equipment != "" && this.form.equipment != null) { this.selectMaterielListtag = JSON.parse( JSON.stringify(this.form.equipment.split(",")) );