| | |
| | | //明细处理 |
| | | getownFundDetail(this.curId).then(res => { |
| | | this.rbDetails = res.data; |
| | | console.log(res); |
| | | |
| | | console.log(this.curId, res.data); |
| | | if (this.rbDetails.length > 0) { |
| | | for (let m = 0; m < this.rbDetails.length; m++) { |
| | |
| | | |
| | | //业务明细 |
| | | getownFundDetail(this.curId).then(res => { |
| | | console.log(res); |
| | | this.rbDetails = res.data; |
| | | for (let m = 0; m < this.rbDetails.length; m++) { |
| | | this.rbDetails[m].itemlist = []; |
| | |
| | | }) |
| | | .then(() => { |
| | | getownFundDetail(this.curId).then(res => { |
| | | console.log(res); |
| | | |
| | | let listdetails = res.data; |
| | | for (let i = 0; i < listdetails.length; i++) { |
| | | delFunddetail(listdetails[i].id); |
| | |
| | | |
| | | //保存数据 |
| | | this.loading = true; |
| | | this.form.servicerbDetails = 0; |
| | | this.form.serviceFunddetails = 0; |
| | | this.rbDetails.map(item => { |
| | | this.form.servicerbDetails += item.amount; |
| | | this.form.serviceFunddetails += item.amount; |
| | | }); |
| | | console.log(this.rbDetails); |
| | | this.form.servicerbDetails = this.rbDetails; |
| | | this.form.serviceFunddetails = this.rbDetails; |
| | | |
| | | if (this.form.id != null) { |
| | | // updateFund(this.form).then((response) => { |
| | |
| | | row.taxedamount = 0.0; |
| | | } |
| | | |
| | | this.form.servicerbDetails = 0; |
| | | this.form.serviceFunddetails = 0; |
| | | this.rbDetails.map(item => { |
| | | this.form.servicerbDetails += item.amount; |
| | | this.form.serviceFunddetails += item.amount; |
| | | }); |
| | | } |
| | | }); |
| | |
| | | }).then(() => { |
| | | this.$set(rows, rows.splice(index, 1)); |
| | | getownFundDetail(this.form.id).then(res => { |
| | | console.log(res); |
| | | |
| | | this.$set(this.rbDetails, res.data); |
| | | this.sumTotalFee(); |
| | | // this.rbDetails = res.data |