lupeng пре 3 месеци
родитељ
комит
db56006ed3
1 измењених фајлова са 10 додато и 8 уклоњено
  1. 10 8
      src/views/pro-steps/popUpView/xiangqingPopUp.vue

+ 10 - 8
src/views/pro-steps/popUpView/xiangqingPopUp.vue

@@ -30,7 +30,7 @@
             batchNoOkSum
           }}&nbsp;批次,本次完成绑定<span style="color: green">
             &nbsp;
-            {{ tabledata.filter((item) => item.num == 0).length }} &nbsp;</span
+            {{ tabledata.filter((item) => item.num <= 0).length }} &nbsp;</span
           >批次 )
         </div>
         <el-divider style="margin-top: 20px !important" />
@@ -101,9 +101,9 @@
                         batchNoTableData[scope.$index].batchNo
                       )
                         ? false
-                        : tabledata[scope.$index].num == 0
+                        : tabledata[scope.$index].num <= 0
                           ? true
-                          : item.remainingNum == 0
+                          : item.remainingNum <= 0
                             ? true
                             : false
                     "
@@ -192,7 +192,7 @@
           管号列表(共 {{ seqList.length }} 个,完成绑定
           {{ seqNoOkSum }} 个,本次完成绑定<span style="color: green">
             &nbsp;
-            {{ seqNoDataList.filter((item) => item.remainingNum == 0).length }}
+            {{ seqNoDataList.filter((item) => item.remainingNum <= 0).length }}
             &nbsp;</span
           >个 )
         </div>
@@ -391,7 +391,8 @@ const setSeqNoList = (seqList) => {
       }
     }
     array[i].remainingNum = sum;
-    if (array[i].remainingNum == 0) {
+    if (array[i].remainingNum <= 0) {
+      array[i].remainingNum=0;
       array[i].ok = true;
     } else {
       array[i].ok = false;
@@ -480,7 +481,7 @@ const autoObj = (index, batchNo) => {
   let addSelectSeq = [];
   let lastSelectSeq = [];
   for (let i = 0; i < seqData.length; i++) {
-    if (needSum == 0) {
+    if (needSum <= 0) {
       break;
     }
     if (seqData[i].remainingNum > 0) {
@@ -616,13 +617,14 @@ const dataList = () => {
   emits("dataList");
 };
 const tableRowClassName1 = ({ row, rowIndex }) => {
-  if (row.num == 0) {
+  if (row.num <= 0) {
     return "success-row";
   } else {
   }
 };
 const tableRowClassName2 = ({ row, rowIndex }) => {
-  if (row.remainingNum == 0) {
+  if (row.remainingNum <= 0) {
+    row.remainingNum=0;
     return "success-row";
   } else {
   }