Browse Source

修改发放按钮的bug

gongwencan 1 month ago
parent
commit
9caa407a67
1 changed files with 11 additions and 8 deletions
  1. 11 8
      src/components/DialogTagDistributeOperate.vue

+ 11 - 8
src/components/DialogTagDistributeOperate.vue

@@ -286,15 +286,18 @@ export default {
         return true
       }
       const spanData = this.colspanMap[`${row.address}|${row.applicantName}|${row.phone}|${row.isSend}`]
-      if (spanData) {
-        const ids = new Set(spanData.ids)
-        this.list.forEach(item => {
-          if (ids.has(item.id)) {
-            if (!item.isReprinting) { return true }
-          }
-        })
+      if (!spanData) {
+        return false
       }
-      return false
+
+      const ids = new Set(spanData.ids)
+      let isDisabled = false
+      this.list.forEach(item => {
+        if (ids.has(item.id) && item.isReprinting) {
+          isDisabled = true
+        }
+      })
+      return isDisabled
     }
   }
 }