|
@@ -151,26 +151,31 @@ defineProps({
|
|
const refreshView = (row) => {
|
|
const refreshView = (row) => {
|
|
saleModel.value = row;
|
|
saleModel.value = row;
|
|
contentArray.value = [];
|
|
contentArray.value = [];
|
|
- if (row.remark1 && JSON.parse(row.remark1).content) {
|
|
|
|
|
|
+ // if (row.remark1 && JSON.parse(row.remark1).content) {
|
|
|
|
+ if (row.remark1) {
|
|
let remark1 = JSON.parse(row.remark1);
|
|
let remark1 = JSON.parse(row.remark1);
|
|
contentArray.value.push({
|
|
contentArray.value.push({
|
|
...remark1,
|
|
...remark1,
|
|
title: "不合格现象(质量问题)描述:",
|
|
title: "不合格现象(质量问题)描述:",
|
|
});
|
|
});
|
|
}
|
|
}
|
|
- if (row.remark2 && JSON.parse(row.remark2).content) {
|
|
|
|
|
|
+ // if (row.remark2 && JSON.parse(row.remark2).content) {
|
|
|
|
+ if (row.remark2) {
|
|
let remark2 = JSON.parse(row.remark2);
|
|
let remark2 = JSON.parse(row.remark2);
|
|
contentArray.value.push({...remark2, title: "分析处置要求:"});
|
|
contentArray.value.push({...remark2, title: "分析处置要求:"});
|
|
}
|
|
}
|
|
- if (row.remark3 && JSON.parse(row.remark3).content) {
|
|
|
|
|
|
+ // if (row.remark3 && JSON.parse(row.remark3).content) {
|
|
|
|
+ if (row.remark3) {
|
|
let remark3 = JSON.parse(row.remark3);
|
|
let remark3 = JSON.parse(row.remark3);
|
|
contentArray.value.push({...remark3, title: "原因分析:"});
|
|
contentArray.value.push({...remark3, title: "原因分析:"});
|
|
}
|
|
}
|
|
- if (row.remark4 && JSON.parse(row.remark4).content) {
|
|
|
|
|
|
+ // if (row.remark4 && JSON.parse(row.remark4).content) {
|
|
|
|
+ if (row.remark4) {
|
|
let remark4 = JSON.parse(row.remark4);
|
|
let remark4 = JSON.parse(row.remark4);
|
|
contentArray.value.push({...remark4, title: "采取的措施:"});
|
|
contentArray.value.push({...remark4, title: "采取的措施:"});
|
|
}
|
|
}
|
|
- if (row.remark5 && JSON.parse(row.remark5).content) {
|
|
|
|
|
|
+ // if (row.remark5 && JSON.parse(row.remark5).content) {
|
|
|
|
+ if (row.remark5) {
|
|
let remark5 = JSON.parse(row.remark5);
|
|
let remark5 = JSON.parse(row.remark5);
|
|
contentArray.value.push({...remark5, title: "措施落实:"});
|
|
contentArray.value.push({...remark5, title: "措施落实:"});
|
|
}
|
|
}
|