liziliang 5 dagar sedan
förälder
incheckning
3231d70b2c
1 ändrade filer med 10 tillägg och 5 borttagningar
  1. 10 5
      src/views/unqualified/DetailCom.vue

+ 10 - 5
src/views/unqualified/DetailCom.vue

@@ -151,26 +151,31 @@ defineProps({
 const refreshView = (row) => {
   saleModel.value = row;
   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);
     contentArray.value.push({
       ...remark1,
       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);
     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);
     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);
     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);
     contentArray.value.push({...remark5, title: "措施落实:"});
   }