|
|
@@ -190,7 +190,7 @@
|
|
|
form: {},
|
|
|
tabOptions: [
|
|
|
{ key: 'main', name: '报告' },
|
|
|
- { key: 'unqualifiedList', name: '不合格品台账' }
|
|
|
+ { key: 'unqualifiedList', name: '不良品台账' }
|
|
|
],
|
|
|
activeComp: 'main',
|
|
|
// 质检报告数据
|
|
|
@@ -204,8 +204,8 @@
|
|
|
methods: {
|
|
|
async open() {
|
|
|
let api = getDetailById;
|
|
|
- let id = this.businessId;
|
|
|
|
|
|
+ let detail = null;
|
|
|
if (this.businessType?.includes('质检任务单')) {
|
|
|
api = taskmonadGetById;
|
|
|
}
|
|
|
@@ -221,7 +221,14 @@
|
|
|
pageNum: 1,
|
|
|
size: 200
|
|
|
});
|
|
|
- this.id = data.qualityWorkOrderId;
|
|
|
+ detail = await api(data.qualityWorkOrderId);
|
|
|
+ let inspectImage = [];
|
|
|
+ detail.data.templateList.forEach((item) => {
|
|
|
+ if (item.inspectImage) {
|
|
|
+ inspectImage.push(...item.inspectImage);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ console.log(inspectImage, 'inspectImage');
|
|
|
this.tabOptions.unshift({
|
|
|
key: 'unqualifiedHtml',
|
|
|
name: '不合格品处置单'
|
|
|
@@ -255,9 +262,10 @@
|
|
|
}
|
|
|
);
|
|
|
});
|
|
|
+ } else {
|
|
|
+ detail = await api(this.businessId);
|
|
|
}
|
|
|
|
|
|
- const detail = await api(id);
|
|
|
this.form = detail.data;
|
|
|
this.initUnqualifiedProduct();
|
|
|
|