Parcourir la source

工单->批量处理问题

loustwo il y a 4 ans
Parent
commit
3005bfcbdc
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      resources/views/order/workOrder/index.blade.php

+ 2 - 2
resources/views/order/workOrder/index.blade.php

@@ -3136,7 +3136,7 @@
                     return true;
                 },
                 checkDataIsToBeEnd() {
-                    let count = this.workOrders.filter(e => this.checkData.includes(`${e.id}`))
+                    let count = this.workOrders.filter(e => this.checkData.includes(e.id))
                         .filter(e => e.status !== '待货主完结').length;
                     if (count > 0) {
                         this.errorTempTip("勾选工单中有不符合完结条件的工单");
@@ -3146,7 +3146,7 @@
                 },
                 getCheckDetailsIds() {
                     return this.workOrders.filter(e => {
-                        return this.checkData.includes(`${e.id}`);
+                        return this.checkData.includes(e.id);
                     }).map(e => {
                         return e.pending_detail ? e.pending_detail.detail_id : null;
                     }).filter(e => e);