chenrui 3 роки тому
батько
коміт
8028e08f04

+ 5 - 1
src/views/financialManagement/companyReceivablePayable/chooseBillModal.vue

@@ -160,11 +160,15 @@ export default {
       if (selected) { //  选择
         this.selectedRows.push(record)
       } else { //  取消
+        const arrId = []
         this.selectedRows.map((item, index) => {
           if (item.id == record.id) {
-            _this.selectedRows.splice(index, 1)
+            arrId.push(index)
           }
         })
+        arrId.map((item, index) => {
+          _this.selectedRows = _this.selectedRows.slice(item, item + 1)
+        })
       }
     },
     // 本页全选/取消全选

+ 5 - 1
src/views/financialManagement/financialCollection/list.vue

@@ -308,11 +308,15 @@ export default {
       if (selected) { //  选择
         this.selectedRows.push(record)
       } else { //  取消
+        const arrId = []
         this.selectedRows.map((item, index) => {
           if (item.id == record.id) {
-            _this.selectedRows.splice(index, 1)
+            arrId.push(index)
           }
         })
+        arrId.map((item, index) => {
+          _this.selectedRows = _this.selectedRows.slice(item, item + 1)
+        })
       }
     },
     // 本页全选/取消全选

+ 5 - 1
src/views/financialManagement/financialPayment/list.vue

@@ -307,11 +307,15 @@ export default {
       if (selected) { //  选择
         this.selectedRows.push(record)
       } else { //  取消
+        const arrId = []
         this.selectedRows.map((item, index) => {
           if (item.id == record.id) {
-            _this.selectedRows.splice(index, 1)
+            arrId.push(index)
           }
         })
+        arrId.map((item, index) => {
+          _this.selectedRows = _this.selectedRows.slice(item, item + 1)
+        })
       }
     },
     // 本页全选/取消全选

+ 5 - 1
src/views/inventoryManagement/inventoryWarning/list.vue

@@ -319,11 +319,15 @@ export default {
       if (selected) { //  选择
         this.selectedRows.push(record)
       } else { //  取消
+        const arrId = []
         this.selectedRows.map((item, index) => {
           if (item.id == record.id) {
-            _this.selectedRows.splice(index, 1)
+            arrId.push(index)
           }
         })
+        arrId.map((item, index) => {
+          _this.selectedRows = _this.selectedRows.slice(item, item + 1)
+        })
       }
     },
     // 本页全选/取消全选