Przeglądaj źródła

fix:数量填充

lupeng 7 miesięcy temu
rodzic
commit
0b672e2f55

+ 10 - 1
src/views/quality/feedback/components/show.vue

@@ -36,7 +36,7 @@
                     <td class="titleVal">{{ tableData.orderNo }}</td>
                     <td class="titleVal">{{ tableData.orderNo }}</td>
                     <td class="titlesmall">数量</td>
                     <td class="titlesmall">数量</td>
                     <td class="titleVal">
                     <td class="titleVal">
-                      {{ tableData.remark1.num ? tableData.remark1.num : "/" }}
+                      {{ tableData.num ? tableData.num : "/" }}
                     </td>
                     </td>
                   </tr>
                   </tr>
                   <tr>
                   <tr>
@@ -441,6 +441,15 @@ const setBoxValue = () => {
   } else if (props.tableData.remark4?.res == "1") {
   } else if (props.tableData.remark4?.res == "1") {
     checkboxes2[1].checked = true;
     checkboxes2[1].checked = true;
   }
   }
+  if (
+    undefined != props.tableData.seqs &&
+    null != props.tableData.seqs &&
+    "" != props.tableData.seqs
+  ) {
+    props.tableData.num = props.tableData.seqs.split(",").length;
+  } else {
+    props.tableData.num = 0;
+  }
 };
 };
 watch(
 watch(
   () => props.tableData,
   () => props.tableData,

+ 10 - 1
src/views/quality/reject/components/show.vue

@@ -36,7 +36,7 @@
                     <td class="titleVal">{{ tableData.orderNo }}</td>
                     <td class="titleVal">{{ tableData.orderNo }}</td>
                     <td class="titlesmall">数量</td>
                     <td class="titlesmall">数量</td>
                     <td class="titleVal">
                     <td class="titleVal">
-                      {{ tableData.remark1.num ? tableData.remark1.num : "/" }}
+                      {{ tableData.num ? tableData.num : "/" }}
                     </td>
                     </td>
                   </tr>
                   </tr>
                   <tr>
                   <tr>
@@ -441,6 +441,15 @@ const setBoxValue = () => {
   } else if (props.tableData.remark4?.res == "1") {
   } else if (props.tableData.remark4?.res == "1") {
     checkboxes2[1].checked = true;
     checkboxes2[1].checked = true;
   }
   }
+  if (
+    undefined != props.tableData.seqs &&
+    null != props.tableData.seqs &&
+    "" != props.tableData.seqs
+  ) {
+    props.tableData.num = props.tableData.seqs.split(",").length;
+  } else {
+    props.tableData.num = 0;
+  }
 };
 };
 import dictDataUtil from "@/common/configs/dictDataUtil";
 import dictDataUtil from "@/common/configs/dictDataUtil";
 watch(
 watch(