| | |
| | | <el-form-item label="申请金额" prop="pretaxcost"> |
| | | <el-input v-model="form.pretaxcost" placeholder="税前金额合计" :disabled="true" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-col> <!-- |
| | | <el-col :span="5"> |
| | | <el-form-item label="应缴税" prop="taxcost" v-if="businessType == '1' || businessType == '2'"> |
| | | <el-input v-model="form.taxcost" placeholder="应缴税金额合计" :disabled="true" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <!-- |
| | | <el-col :span="5"> |
| | | <el-form-item label="税后金额" prop="pretaxcost"> |
| | | <el-input v-model="form.taxedcost" placeholder="税后金额合计" :disabled="true" /> |
| | |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="捐献者" prop="name"> |
| | | <el-input :disabled="true" v-model="form.name" placeholder="请输入捐献者姓名" /> |
| | | <el-input :disabled="true" v-model="form.donorname" placeholder="请输入捐献者姓名" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <!-- |
| | |
| | | " /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column v-if="businessType == 3 || businessType == 4 || ismanager == true" prop="amount" |
| | | align="center" :label=amountLabel width="120"> |
| | | <el-table-column v-if="businessType == 2 || businessType == 3 || businessType == 4 || ismanager == true" |
| | | prop="amount" align="center" :label=amountLabel width="120"> |
| | | <template slot-scope="scope"> |
| | | <!-- |
| | | <el-select v-model="scope.row.amount" placeholder="税前金额" clearable filterable allow-create |
| | |
| | | selectionType: "", |
| | | showSelectionDialog: false, |
| | | //税前金额标题:专家费-税前金额;医学成本、办公费用-金额 |
| | | amountLabel:"税前金额", |
| | | amountLabel: "税前金额", |
| | | |
| | | // 表单校验 |
| | | rules: { |
| | |
| | | |
| | | // if (!this.businessType && !this.operationType) { |
| | | if (this.businessType == "1") { |
| | | this.curCase = this.$route.query.curCase; |
| | | this.businessName = "专家劳务费申请单" |
| | | this.amountLabel="税前金额" |
| | | this.amountLabel = "税前金额" |
| | | this.getUnitList(); |
| | | } |
| | | else if (this.businessType == "2") { |
| | | this.curCase = this.$route.query.curCase; |
| | | this.businessName = "伦理专家劳务费申请单"; |
| | | this.amountLabel="税前金额" |
| | | this.amountLabel = "税前金额" |
| | | this.getUnitList(); |
| | | } |
| | | else if (this.businessType == "3") { |
| | | if (this.operationType != "check") { |
| | | this.curCase = this.$route.query.curCase; |
| | | } |
| | | this.businessName = "医学成本报销单"; |
| | | this.amountLabel="金额" |
| | | this.amountLabel = "金额" |
| | | } |
| | | else if (this.businessType == "4") { |
| | | this.businessName = "办公费用报销单"; |
| | | this.amountLabel="金额" |
| | | this.amountLabel = "金额" |
| | | |
| | | // this.getBaseInfoList(); |
| | | } |
| | | |
| | | if (this.operationType == "add") { |
| | | this.title = this.businessName + "新建"; |
| | | if (this.operationType != "4") { |
| | | this.curCase = this.$route.query.curCase; |
| | | console.log("this.curCase", this.curCase); |
| | | } |
| | | this.handleAdd(); |
| | | } |
| | | else if (this.operationType == "update") { |
| | |
| | | |
| | | getFund(this.curId).then(response => { |
| | | this.form = response.data; |
| | | console.log("response.data", response.data); |
| | | //附件处理 |
| | | // this.fileList = this.form.annexbankcard ? this.form.annexbankcard.split(",").map(item => ({ url: item, name: item })) : [] |
| | | |
| | |
| | | for (let m = 0; m < this.rbDetails.length; m++) { |
| | | this.rbDetails[m].itemlist = []; |
| | | this.getFeeItems(m, this.rbDetails[m]); |
| | | |
| | | this.rbDetails[m].rowfeeblocks = []; |
| | | this.rbDetails[m].rowfeeblocks.push({ |
| | | expense: this.rbDetails[m].expense, |
| | | servicesscope: this.rbDetails[m].servicesscope, |
| | | expensedescribe: this.rbDetails[m].servicesscopename, |
| | | remark: this.rbDetails[m].servicesscope, |
| | | servicesscope: this.rbDetails[m].servicesscope |
| | | expense: this.rbDetails[m].expense, |
| | | remark: this.rbDetails[m].servicesscopename |
| | | }); |
| | | } |
| | | |
| | | if (this.rbDetails.length == 0) { |
| | | this.addRow(0); |
| | | } |
| | | }); |
| | | |
| | |
| | | // 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.getfundList(); |
| | | this.loading = false; |
| | | // this.getfundList(); |
| | | this.$store.dispatch('tagsView/delView', this.$route) |
| | | this.$router.go(-1); |
| | | } |
| | | }); |
| | |
| | | flowcontent: this.checkObj.flowconclusion, |
| | | }; |
| | | checkfund(checkFundObj).then((res) => { |
| | | //关闭窗口 |
| | | this.reset(); |
| | | this.$modal.msgSuccess("审核完成!"); |
| | | this.$store.dispatch('tagsView/delView', this.$route) |
| | | this.$router.go(-1); |
| | | }); |
| | | }, |
| | | |
| | | // 取消按钮 |
| | | cancel() { |
| | | // this.reset(); |
| | | this.$store.dispatch('tagsView/delView', this.$route) |
| | | this.$router.go(-1); |
| | | }, |
| | | |
| | |
| | | getUserProfile().then(res => { |
| | | this.userprofile = res.data; |
| | | this.standardlevel = res.data.standardlevel; |
| | | if ( |
| | | this.userprofile.createBy == "admin" || |
| | | this.userprofile.createBy == "001" || |
| | | this.userprofile.createBy == "012" || |
| | | this.userprofile.createBy == "002" |
| | | ) { |
| | | if (this.userprofile.userName == "admin" || this.userprofile.userName == "001" || this.userprofile.userName == "047") { |
| | | this.ismanager = true; |
| | | } else { |
| | | this.ismanager = false; |
| | | } |
| | | this.form.username = this.userprofile.nickName; |
| | | this.form.userno = this.userprofile.userName; |
| | | this.form.deptmentname = this.userprofile.dept.deptName; |
| | | this.form.deptmentno = this.userprofile.dept.deptId; |
| | | this.form.managername = this.userprofile.dept.leader; |
| | | this.form.phone = this.userprofile.phonenumber; |
| | | // this.form.applytype = this.businessType; |
| | | // this.form.createTime = new Date(); |
| | | this.getUserAccount(); |
| | | console.log(this.userprofile, this.ismanager); |
| | | if (this.operationType == "add") { |
| | | this.form.username = this.userprofile.nickName; |
| | | this.form.userno = this.userprofile.userName; |
| | | this.form.deptmentname = this.userprofile.dept.deptName; |
| | | this.form.deptmentno = this.userprofile.dept.deptId; |
| | | this.form.managername = this.userprofile.dept.leader; |
| | | this.form.phone = this.userprofile.phonenumber; |
| | | // this.form.applytype = this.businessType; |
| | | // this.form.createTime = new Date(); |
| | | |
| | | if (this.businessType == "4") { |
| | | this.getUserAccount(); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | |