|
@@ -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);
|
|
|
//附件
|