浏览代码

fix:数量填充

lupeng 7 月之前
父节点
当前提交
0b672e2f55
共有 2 个文件被更改,包括 20 次插入2 次删除
  1. 10 1
      src/views/quality/feedback/components/show.vue
  2. 10 1
      src/views/quality/reject/components/show.vue

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

@@ -36,7 +36,7 @@
                     <td class="titleVal">{{ tableData.orderNo }}</td>
                     <td class="titlesmall">数量</td>
                     <td class="titleVal">
-                      {{ tableData.remark1.num ? tableData.remark1.num : "/" }}
+                      {{ tableData.num ? tableData.num : "/" }}
                     </td>
                   </tr>
                   <tr>
@@ -441,6 +441,15 @@ const setBoxValue = () => {
   } else if (props.tableData.remark4?.res == "1") {
     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(
   () => props.tableData,

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

@@ -36,7 +36,7 @@
                     <td class="titleVal">{{ tableData.orderNo }}</td>
                     <td class="titlesmall">数量</td>
                     <td class="titleVal">
-                      {{ tableData.remark1.num ? tableData.remark1.num : "/" }}
+                      {{ tableData.num ? tableData.num : "/" }}
                     </td>
                   </tr>
                   <tr>
@@ -441,6 +441,15 @@ const setBoxValue = () => {
   } else if (props.tableData.remark4?.res == "1") {
     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";
 watch(