| | |
| | | // this.form.annexfiles = list.map(item => item.url).join(","); |
| | | // } |
| | | |
| | | //处理明细 |
| | | //处理明细 |
| | | for (let i = 0; i < this.rbDetails.length; i++) { |
| | | let tempDetail = this.rbDetails[i]; |
| | | //获取服务项目明细 |
| | |
| | | item => tempDetail.applytype == item.value |
| | | ); |
| | | if (applytypeIndex > -1) { |
| | | tempDetail.applytypename = this.rowfeeItemTypes[ |
| | | applytypeIndex |
| | | ].label; |
| | | tempDetail.subjecttype = this.rowfeeItemTypes[ |
| | | applytypeIndex |
| | | ].subjecttype; |
| | | tempDetail.subjecttypename = this.rowfeeItemTypes[ |
| | | applytypeIndex |
| | | ].subjecttypename; |
| | | tempDetail.applytypename = this.rowfeeItemTypes[applytypeIndex].label; |
| | | tempDetail.subjecttype = this.rowfeeItemTypes[applytypeIndex].subjecttype; |
| | | tempDetail.subjecttypename = this.rowfeeItemTypes[applytypeIndex].subjecttypename; |
| | | } |
| | | this.rbDetails[i] = tempDetail; |
| | | /* |
| | |
| | | }); |
| | | } |
| | | |
| | | // 计算税前金额 |
| | | // 计算税前、税费、税后金额 |
| | | if (tempDetail.amount == undefined || tempDetail.amount == null || tempDetail.amount == 0 || tempDetail.amount == '') { |
| | | //获取参数 |
| | | this.taxParam.money = tempDetail.taxedamount.toString(); |
| | |
| | | }); |
| | | } |
| | | */ |
| | | |
| | | } |
| | | //计算当前行报销内容费用合计,税前金额(amount)、扣税金额(taxamount)、税后金额(taxedamount) |
| | | if (this.businessType == '2') { |
| | | for (let j = 0; j < this.rbDetails.length; j++) { |
| | | let tempDetail = this.rbDetails[j]; |
| | | if (isNaN(parseFloat(tempDetail.amount)) || parseFloat(tempDetail.amount) == 0) { |
| | | this.$modal.msgWarning("服务项目表中,第" + (j + 1).toString() + "行的金额为输入,请先输入金额后再提交保存!"); |
| | | return; |
| | | } |
| | | } |
| | | } else if (this.businessType == '3' || this.businessType == '4') { |
| | | for (let j = 0; j < this.rbDetails.length; j++) { |
| | | let tempDetail = this.rbDetails[j]; |
| | | if (isNaN(parseFloat(tempDetail.amount)) || parseFloat(tempDetail.amount) == 0) { |
| | | this.$modal.msgWarning("服务项目表中,第" + (j + 1).toString() + "行的金额为输入,请先输入金额后再提交保存!"); |
| | | return; |
| | | } |
| | | if (isNaN(parseFloat(tempDetail.amount)) || parseFloat(tempDetail.amount) == 0) { |
| | | tempDetail.taxedamount = tempDetail.amount |
| | | } else { |
| | | tempDetail.taxedamount = tempDetail.amount + tempDetail.taxamount |
| | | } |
| | | } |
| | | } |
| | | |
| | | //费用合计 |
| | | // this.form.pretaxcost = parseFloat(this.totalPreTaxAmount).toFixed(2); |
| | | // this.form.taxedcost = parseFloat(this.totalAfterTaxAmount).toFixed(2); |
| | |
| | | }); |
| | | |
| | | //关闭窗口 |
| | | // this.loading = false; |
| | | this.loading = false; |
| | | // this.getfundList(); |
| | | this.$store.dispatch('tagsView/delView', this.$route) |
| | | this.$router.go(-1); |