From 908303f3a70974ed1b654ca9dcf4e9d85c6b7a0d Mon Sep 17 00:00:00 2001
From: "JinLu.Yin" <411641505@qq.com>
Date: Sun, 22 May 2022 15:52:55 +0800
Subject: [PATCH] =?UTF-8?q?IQC=E6=9D=A5=E6=96=99=E6=A3=80=E9=AA=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/defectSelect/single.vue | 223 +++++++++++++++++++++++++
src/views/mes/qc/iqc/iqcdefect.vue | 17 +-
src/views/mes/qc/iqc/iqcline.vue | 9 +-
3 files changed, 244 insertions(+), 5 deletions(-)
create mode 100644 src/components/defectSelect/single.vue
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();
+ })
+
}
}
};