Bladeren bron

融信往来账款优化

ch 3 jaren geleden
bovenliggende
commit
6222a81ff9

+ 16 - 11
front-vue/src/views/service/credit/addCredit.vue

@@ -479,19 +479,24 @@ export default {
         selectChecked() {
             //清空选择
             // this.$refs.tablePay && this.$refs.tablePay.clearSelection();
-            this.chooseTicket.forEach((item) => {
-                this.payList.forEach((row) => {
-                    if (row.zbiId == item.zbiId) {
-                        this.$nextTick(() => {
-                            this.$refs.tablePay &&
-                                this.$refs.tablePay.toggleRowSelection(
-                                    row,
-                                    true
-                                );
-                        });
+            var changeSelectionTemp = eval("(" + JSON.stringify(this.chooseTicket) + ")")
+            this.$nextTick(() => {
+                this.$refs.tablePay.clearSelection();
+                changeSelectionTemp.forEach((item) => {
+                    var f = true;
+                    for (var i=0; i < this.payList.length; i++) {
+                        var row = this.payList[i];
+                        if (row.zbiId == item.zbiId) {
+                            this.$refs.tablePay && this.$refs.tablePay.toggleRowSelection(row, true);
+                            f = false;
+                            break;
+                        }
+                    };
+                    if (f) {
+                        this.$refs.tablePay && this.$refs.tablePay.toggleRowSelection(item, true);
                     }
                 });
-            });
+            })
             //合计
             // this.getReTotal(this.ticketList);
             //附件

+ 17 - 8
front-vue/src/views/service/credit/addInformation.vue

@@ -648,15 +648,24 @@ export default {
         selectChecked() {
              //清空选择
 //             this.$refs.tablePay && this.$refs.tablePay.clearSelection();
-            this.chooseTicket.forEach((item) => {
-                this.payList.forEach(row => {
-                if (row.zbiId == item.zbiId) {
-                    this.$nextTick(() => {
-                    this.$refs.tablePay && this.$refs.tablePay.toggleRowSelection(row, true);
-                    })
-                }
+            var changeSelectionTemp = eval("(" + JSON.stringify(this.chooseTicket) + ")")
+            this.$nextTick(() => {
+                this.$refs.tablePay.clearSelection();
+                changeSelectionTemp.forEach((item) => {
+                    var f = true;
+                    for (var i=0; i < this.payList.length; i++) {
+                        var row = this.payList[i];
+                        if (row.zbiId == item.zbiId) {
+                            this.$refs.tablePay && this.$refs.tablePay.toggleRowSelection(row, true);
+                            f = false;
+                            break;
+                        }
+                    };
+                    if (f) {
+                        this.$refs.tablePay && this.$refs.tablePay.toggleRowSelection(item, true);
+                    }
                 });
-            });
+            })
              //合计
             // this.getReTotal(this.ticketList);
             //附件

+ 27 - 9
front-vue/src/views/service/credit/applyCreditEdit.vue

@@ -537,17 +537,35 @@ export default {
             this.issuedAmount = this.smallToBig(this.form.zfiAmount);
         },
         selectChecked() {
+            var changeSelectionTemp = eval("(" + JSON.stringify(this.chooseTicket) + ")")
+            this.$nextTick(() => {
+                this.$refs.tablePay.clearSelection();
+                changeSelectionTemp.forEach((item) => {
+                    var f = true;
+                    for (var i=0; i < this.payList.length; i++) {
+                        var row = this.payList[i];
+                        if (row.zbiId == item.zbiId) {
+                            this.$refs.tablePay && this.$refs.tablePay.toggleRowSelection(row, true);
+                            f = false;
+                            break;
+                        }
+                    };
+                    if (f) {
+                        this.$refs.tablePay && this.$refs.tablePay.toggleRowSelection(item, true);
+                    }
+                });
+            })
               //清空选择
 //             this.$refs.tablePay && this.$refs.tablePay.clearSelection();
-            this.chooseTicket.forEach((item) => {
-                this.payList.forEach(row => {
-                if (row.zbiId == item.zbiId) {
-                    this.$nextTick(() => {
-                    this.$refs.tablePay && this.$refs.tablePay.toggleRowSelection(row, true);
-                    })
-                }
-                });
-            });
+            // this.chooseTicket.forEach((item) => {
+            //     this.payList.forEach(row => {
+            //     if (row.zbiId == item.zbiId) {
+            //         this.$nextTick(() => {
+            //         this.$refs.tablePay && this.$refs.tablePay.toggleRowSelection(row, true);
+            //         })
+            //     }
+            //     });
+            // });
              //合计
             //this.getReTotal(this.ticketList);
             //附件

+ 15 - 6
front-vue/src/views/service/credit/creditApply.vue

@@ -308,15 +308,24 @@ export default {
         selectChecked() {
             //清空选择
             // this.$refs.tablePay && this.$refs.tablePay.clearSelection();
-            this.chooseTicket.forEach((item) => {
-                this.payList.forEach(row => {
-                    if (row.zbiId == item.zbiId) {
-                        this.$nextTick(() => {
+            var changeSelectionTemp = eval("(" + JSON.stringify(this.chooseTicket) + ")")
+            this.$nextTick(() => {
+                this.$refs.tablePay.clearSelection();
+                changeSelectionTemp.forEach((item) => {
+                    var f = true;
+                    for (var i=0; i < this.payList.length; i++) {
+                        var row = this.payList[i];
+                        if (row.zbiId == item.zbiId) {
                             this.$refs.tablePay && this.$refs.tablePay.toggleRowSelection(row, true);
-                        })
+                            f = false;
+                            break;
+                        }
+                    };
+                    if (f) {
+                        this.$refs.tablePay && this.$refs.tablePay.toggleRowSelection(item, true);
                     }
                 });
-            });
+            })
             //合计
             // this.getReTotal(this.ticketList);
             //附件

+ 17 - 8
front-vue/src/views/service/credit/creditUpdate.vue

@@ -564,15 +564,24 @@ export default {
         selectChecked() {
              //清空选择
 //             this.$refs.tablePay && this.$refs.tablePay.clearSelection();
-            this.chooseTicket.forEach((item) => {
-                this.payList.forEach(row => {
-                if (row.zbiId == item.zbiId) {
-                    this.$nextTick(() => {
-                    this.$refs.tablePay && this.$refs.tablePay.toggleRowSelection(row, true);
-                    })
-                }
+            var changeSelectionTemp = eval("(" + JSON.stringify(this.chooseTicket) + ")")
+            this.$nextTick(() => {
+                this.$refs.tablePay.clearSelection();
+                changeSelectionTemp.forEach((item) => {
+                    var f = true;
+                    for (var i=0; i < this.payList.length; i++) {
+                        var row = this.payList[i];
+                        if (row.zbiId == item.zbiId) {
+                            this.$refs.tablePay && this.$refs.tablePay.toggleRowSelection(row, true);
+                            f = false;
+                            break;
+                        }
+                    };
+                    if (f) {
+                        this.$refs.tablePay && this.$refs.tablePay.toggleRowSelection(item, true);
+                    }
                 });
-            });
+            })
              //合计
             // this.getReTotal(this.ticketList);
             //附件

+ 15 - 6
front-vue/src/views/service/credit/financeOpen.vue

@@ -403,15 +403,24 @@ export default {
         selectChecked() {
             //清空选择
             // this.$refs.tablePay && this.$refs.tablePay.clearSelection();
-            this.chooseTicket.forEach((item) => {
-                this.payList.forEach(row => {
-                    if (row.zbiId == item.zbiId) {
-                        this.$nextTick(() => {
+            var changeSelectionTemp = eval("(" + JSON.stringify(this.chooseTicket) + ")")
+            this.$nextTick(() => {
+                this.$refs.tablePay.clearSelection();
+                changeSelectionTemp.forEach((item) => {
+                    var f = true;
+                    for (var i=0; i < this.payList.length; i++) {
+                        var row = this.payList[i];
+                        if (row.zbiId == item.zbiId) {
                             this.$refs.tablePay && this.$refs.tablePay.toggleRowSelection(row, true);
-                        })
+                            f = false;
+                            break;
+                        }
+                    };
+                    if (f) {
+                        this.$refs.tablePay && this.$refs.tablePay.toggleRowSelection(item, true);
                     }
                 });
-            });
+            })
             //合计
             // this.getReTotal(this.ticketList);
             //附件

+ 17 - 8
front-vue/src/views/service/credit/financeOpenUpdate.vue

@@ -557,15 +557,24 @@ export default {
         selectChecked() {
              //清空选择
 //             this.$refs.tablePay && this.$refs.tablePay.clearSelection();
-            this.chooseTicket.forEach((item) => {
-                this.payList.forEach(row => {
-                if (row.zbiId == item.zbiId) {
-                    this.$nextTick(() => {
-                    this.$refs.tablePay && this.$refs.tablePay.toggleRowSelection(row, true);
-                    })
-                }
+            var changeSelectionTemp = eval("(" + JSON.stringify(this.chooseTicket) + ")")
+            this.$nextTick(() => {
+                this.$refs.tablePay.clearSelection();
+                changeSelectionTemp.forEach((item) => {
+                    var f = true;
+                    for (var i=0; i < this.payList.length; i++) {
+                        var row = this.payList[i];
+                        if (row.zbiId == item.zbiId) {
+                            this.$refs.tablePay && this.$refs.tablePay.toggleRowSelection(row, true);
+                            f = false;
+                            break;
+                        }
+                    };
+                    if (f) {
+                        this.$refs.tablePay && this.$refs.tablePay.toggleRowSelection(item, true);
+                    }
                 });
-            });
+            })
              //合计
             // this.getReTotal(this.ticketList);
              //附件

+ 17 - 8
front-vue/src/views/service/credit/signFor.vue

@@ -675,15 +675,24 @@ export default {
         selectChecked() {
              //清空选择
 //             this.$refs.tablePay && this.$refs.tablePay.clearSelection();
-            this.chooseTicket.forEach((item) => {
-                this.payList.forEach(row => {
-                if (row.zbiId == item.zbiId) {
-                    this.$nextTick(() => {
-                    this.$refs.tablePay && this.$refs.tablePay.toggleRowSelection(row, true);
-                    })
-                }
+            var changeSelectionTemp = eval("(" + JSON.stringify(this.chooseTicket) + ")")
+            this.$nextTick(() => {
+                this.$refs.tablePay.clearSelection();
+                changeSelectionTemp.forEach((item) => {
+                    var f = true;
+                    for (var i=0; i < this.payList.length; i++) {
+                        var row = this.payList[i];
+                        if (row.zbiId == item.zbiId) {
+                            this.$refs.tablePay && this.$refs.tablePay.toggleRowSelection(row, true);
+                            f = false;
+                            break;
+                        }
+                    };
+                    if (f) {
+                        this.$refs.tablePay && this.$refs.tablePay.toggleRowSelection(item, true);
+                    }
                 });
-            });
+            })
              //合计
             // this.getReTotal(this.ticketList);
             //附件