| | |
| | | const obj = selection.find(obj => obj.id === item); |
| | | console.log(obj); |
| | | this.overallidsvalue.push(obj); |
| | | |
| | | } |
| | | }); |
| | | console.log(this.overallids); |
| | |
| | | }, |
| | | Totalcalculation(tot) { |
| | | console.log(tot); |
| | | let bojite={ |
| | | fundids:this.overallids, |
| | | isTaxAfter:tot, |
| | | } |
| | | let bojite = { |
| | | fundids: this.overallids, |
| | | isTaxAfter: tot |
| | | }; |
| | | if (tot == 0) { |
| | | TotalcalculationFn(bojite).then(row => { |
| | | console.log(row.msg); |
| | | if (row.code=200) { |
| | | if ((row.code = 200)) { |
| | | this.$modal.msgSuccess(row.msg); |
| | | }else{ |
| | | this.$modal.msgError(row.msg); |
| | | } else { |
| | | this.$modal.msgError(row.msg); |
| | | } |
| | | }); |
| | | } else { |
| | |
| | | const hasValue = this.overallidsvalue.every(obj => obj.istax == 1); |
| | | if (hasValue) { |
| | | TotalcalculationFn(bojite).then(row => { |
| | | console.log(row.msg); |
| | | if ((row.code = 200)) { |
| | | this.$modal.msgSuccess(row.msg); |
| | | } else { |
| | | this.$modal.msgError(row.msg); |
| | | } |
| | | }); |
| | | } else { |
| | | this.$modal.msgError("请选择算税后的数据进行合并计算"); |