gongwencan 1 месяц назад
Родитель
Сommit
9caa407a67
1 измененных файлов с 11 добавлено и 8 удалено
  1. 11 8
      src/components/DialogTagDistributeOperate.vue

+ 11 - 8
src/components/DialogTagDistributeOperate.vue

@@ -286,15 +286,18 @@ export default {
         return true
         return true
       }
       }
       const spanData = this.colspanMap[`${row.address}|${row.applicantName}|${row.phone}|${row.isSend}`]
       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
     }
     }
   }
   }
 }
 }