|
@@ -465,6 +465,12 @@
|
|
|
// console.log(newVal, 'schemeList');
|
|
// console.log(newVal, 'schemeList');
|
|
|
},
|
|
},
|
|
|
deep: true
|
|
deep: true
|
|
|
|
|
+ },
|
|
|
|
|
+ activeName: {
|
|
|
|
|
+ handler(newVal) {
|
|
|
|
|
+ this.activeNameKK=newVal
|
|
|
|
|
+ // console.log(newVal);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
props: {
|
|
props: {
|
|
@@ -966,6 +972,8 @@
|
|
|
this.$refs.inspectionTemplateRef.open(2);
|
|
this.$refs.inspectionTemplateRef.open(2);
|
|
|
},
|
|
},
|
|
|
async inspectionTemplateSuccess(select) {
|
|
async inspectionTemplateSuccess(select) {
|
|
|
|
|
+ console.log(select);
|
|
|
|
|
+
|
|
|
let data = await getQualityTemplateByIds({
|
|
let data = await getQualityTemplateByIds({
|
|
|
templateIds: select.map((item) => item.id)
|
|
templateIds: select.map((item) => item.id)
|
|
|
});
|
|
});
|
|
@@ -976,15 +984,17 @@
|
|
|
// const removeDupList = [...new Set(strings)];
|
|
// const removeDupList = [...new Set(strings)];
|
|
|
// const result = removeDupList.map((item) => JSON.parse(item));
|
|
// const result = removeDupList.map((item) => JSON.parse(item));
|
|
|
|
|
|
|
|
- this.templateList=[]
|
|
|
|
|
- this.templateList.push(...data)
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- this.templateList = result.map((item) => {
|
|
|
|
|
|
|
+ this.templateList = [];
|
|
|
|
|
+ this.templateList.push(...data);
|
|
|
|
|
+ this.templateList.forEach((item) => {
|
|
|
item['qualityResults'] = 1;
|
|
item['qualityResults'] = 1;
|
|
|
- return item;
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ // this.templateList = result.map((item) => {
|
|
|
|
|
+ // item['qualityResults'] = 1;
|
|
|
|
|
+ // return item;
|
|
|
|
|
+ // });
|
|
|
|
|
+
|
|
|
this.sampleList.forEach((item, index) => {
|
|
this.sampleList.forEach((item, index) => {
|
|
|
this.$set(
|
|
this.$set(
|
|
|
this.sampleList[index],
|
|
this.sampleList[index],
|