diff --git a/src/components/defectSelect/single.vue b/src/components/defectSelect/single.vue new file mode 100644 index 0000000..7b2c97a --- /dev/null +++ b/src/components/defectSelect/single.vue @@ -0,0 +1,223 @@ + + + diff --git a/src/views/mes/qc/iqc/iqcdefect.vue b/src/views/mes/qc/iqc/iqcdefect.vue index ce11d71..b6e0a3d 100644 --- a/src/views/mes/qc/iqc/iqcdefect.vue +++ b/src/views/mes/qc/iqc/iqcdefect.vue @@ -91,9 +91,17 @@ export default { name: "Iqcdefect", dicts: ['mes_defect_level'], props:{ - iqcId: null, - lineId: null, - optType: null + iqcId:null, + lineId:null, + optType:null + }, + watch :{ + iqcId(){ + this.queryParams.iqcId = this.iqcId; + }, + lineId(){ + this.queryParams.lineId = this.lineId; + } }, data() { return { @@ -151,6 +159,7 @@ export default { methods: { /** 查询来料检验单缺陷记录列表 */ getList() { + debugger; this.loading = true; listIqcdefect(this.queryParams).then(response => { this.iqcdefectList = response.rows; @@ -232,6 +241,7 @@ export default { if (res.code === 200) { this.open = false; this.getList(); + this.$parent.getList(); } }); } @@ -257,6 +267,7 @@ export default { } }) }); + this.$parent.getList(); } } }; diff --git a/src/views/mes/qc/iqc/iqcline.vue b/src/views/mes/qc/iqc/iqcline.vue index 2d99e85..bbc898c 100644 --- a/src/views/mes/qc/iqc/iqcline.vue +++ b/src/views/mes/qc/iqc/iqcline.vue @@ -103,6 +103,7 @@ export default { methods: { /** 查询来料检验单行列表 */ getList() { + debugger; this.loading = true; listIqcline(this.queryParams).then(response => { this.iqclineList = response.rows; @@ -162,10 +163,14 @@ export default { this.multiple = !selection.length }, handleDefect(row){ + debugger; this.defect_iqcid = row.iqcId; this.defect_lineid = row.lineId; - this.$refs.defectDialog.showFlag = true; - this.$refs.defectDialog.getList(); + this.$nextTick(() => { + this.$refs.defectDialog.showFlag = true; + this.$refs.defectDialog.getList(); + }) + } } };