| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row style="text-align: left"> |
| | | <!-- |
| | | <el-col :span="7"> |
| | | <el-form-item label="联系电话" prop="phone"> |
| | | <el-input v-model="form.phone" placeholder="请输入申请者的联系方式" clearable /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <!-- |
| | | <el-col :span="7"> |
| | | <el-form-item label="工作单位" prop="unitno"> |
| | | <org-selecter ref="orgSelecter" :org-type="'3'" v-model="form.unitno" /> |
| | |
| | | --> |
| | | <el-col :span="5"> |
| | | <el-form-item label="费用类型"> |
| | | <el-radio v-model="form.applytype" label="1">杂项费用申请</el-radio> |
| | | <el-radio v-model="form.applytype" label="true">杂项费用申请</el-radio> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | |
| | | <el-form-item label="应缴税" prop="taxcost"> |
| | | <el-input v-model="form.taxcost" placeholder="应缴税金额合计" :disabled="true" /> |
| | | </el-form-item> |
| | | </el-col><!-- |
| | | </el-col> |
| | | <!-- |
| | | <el-col :span="5"> |
| | | <el-form-item label="税后金额" prop="pretaxcost"> |
| | | <el-input v-model="form.taxedcost" placeholder="税后金额合计" :disabled="true" /> |
| | |
| | | total: 0, |
| | | |
| | | //申请单类型 |
| | | businesstype: "4", |
| | | businesstype: null, |
| | | //操作类型 |
| | | operationtype: "edit", |
| | | //所有人员表 |
| | |
| | | created() { |
| | | //获取单据类型和操作要求 |
| | | this.getCurFundType(); |
| | | this.getUserProfile(); |
| | | this.getroute(); |
| | | this.getUserProfile(); |
| | | }, |
| | | |
| | | //生命周期 - 挂载完成(可以访问DOM元素) |
| | | mounted() { |
| | | mounted() { |
| | | this.getUserList(); |
| | | this.getUnitList(); |
| | | this.selectReporters(); |
| | | this.getExternalpersonList(); |
| | | this.getBaseInfoList(); |
| | | this.getBaseInfoList(); |
| | | }, |
| | | |
| | | beforeCreate() { |
| | |
| | | let tempbusinesstype = this.$route.query.businesstype; |
| | | let tempoperationtype = this.$route.query.operationtype; |
| | | // this.userprofile = this.$route.query.routerparam; |
| | | if (tempbusinesstype == 1) { |
| | | this.businesstype = tempbusinesstype; |
| | | |
| | | this.businesstype = tempbusinesstype; |
| | | if (tempbusinesstype == "1") { |
| | | this.title = '专家劳务费申请单'; |
| | | this.handleAdd(ids); |
| | | } else if (tempbusinesstype == 2) { |
| | | this.businesstype = tempbusinesstype; |
| | | } else if (tempbusinesstype == "2") { |
| | | this.title = '伦理专家劳务费申请单'; |
| | | this.handleUpdate(ids); |
| | | } |
| | | else if (tempbusinesstype == 3) { |
| | | this.businesstype = tempbusinesstype; |
| | | else if (tempbusinesstype == "3") { |
| | | this.title = '医学成本报销单'; |
| | | this.handleDetail(ids); |
| | | } |
| | | else if (tempbusinesstype == 4) { |
| | | this.businesstype = tempbusinesstype; |
| | | this.title = '杂象费用报销单'; |
| | | // this.handleCheck(ids); |
| | | else if (tempbusinesstype == "4") { |
| | | this.title = '杂项费用报销单'; |
| | | } |
| | | |
| | | if (tempoperationtype == 1) { |
| | | this.operationtype = 'add'; |
| | | this.operationtype = tempoperationtype; |
| | | if (tempoperationtype == 'add') { |
| | | this.title += '新建' |
| | | this.handleAdd(ids); |
| | | } else if (tempoperationtype == 2) { |
| | | this.operationtype = 'update'; |
| | | this.handleAdd(); |
| | | } else if (tempoperationtype == 'update') { |
| | | this.title += '修改' |
| | | this.handleUpdate(ids); |
| | | } |
| | | else if (tempoperationtype == 3) { |
| | | this.operationtype = 'detail'; |
| | | else if (tempoperationtype == 'detail') { |
| | | this.title += '查看' |
| | | this.handleDetail(ids); |
| | | } else if (tempoperationtype == 4) { |
| | | } else if (tempoperationtype == 'check') { |
| | | this.title += '审核' |
| | | this.handleCheck(ids); |
| | | } |
| | | console.log( |
| | | this.businesstype = tempbusinesstype, this.title); |
| | | }, |
| | | |
| | | /** 重置按钮操作 */ |
| | | resetQuery() { |
| | | this.daterangeReporttime = []; |
| | | this.resetForm("queryForm"); |
| | | this.handleQuery(); |
| | | }, |
| | | |
| | | /** 新增按钮操作 */ |
| | |
| | | this.reset(); |
| | | this.queryParams.params = {}; |
| | | |
| | | /** businesstype:4:杂项费用报销申请 */ |
| | | if (this.businesstype != "4") { |
| | | /** businesstype:1:专家费;2:伦理专家费 */ |
| | | if (this.businesstype == "1" && this.businesstype == "2") { |
| | | if (this.curCase.id) { |
| | | this.istrue += 2; |
| | | this.form.donorno = this.curCase.donorno; |
| | |
| | | } |
| | | } |
| | | |
| | | this.form.username = this.userprofile.nickName; |
| | | this.form.userno = this.userprofile.userName; |
| | | this.form.phone = this.userprofile.phonenumber; |
| | | this.form.deptmentname = this.userprofile.dept.deptName; |
| | | this.form.deptmentno = this.userprofile.dept.deptId; |
| | | this.form.managername = this.userprofile.dept.leader; |
| | | |
| | | //初始化明细 |
| | | //初始化 |
| | | // this.form.applytype = this.businesstype; |
| | | this.form.createTime = new Date(); |
| | | this.fundDetails = []; |
| | | this.addRow(); |
| | | |
| | |
| | | this.showDetailInfoDialog = false; |
| | | }, |
| | | |
| | | //获取当前用户信息 |
| | | //获取当前用户信息,并初始化经办人信息 |
| | | getUserProfile() { |
| | | getUserProfile().then((response) => { |
| | | this.userprofile = response.data; |
| | | this.standardlevel = response.data.standardlevel; |
| | | getUserProfile().then((res) => { |
| | | this.userprofile = res.data; |
| | | this.standardlevel = res.data.standardlevel; |
| | | if (this.userprofile.createBy == "admin" || this.userprofile.createBy == "001" || this.userprofile.createBy == "002") { |
| | | this.ismanager = true; |
| | | } else { |
| | | this.ismanager = false; |
| | | } |
| | | |
| | | if (this.operationtype = "add") { |
| | | this.form.username = this.userprofile.nickName; |
| | | this.form.userno = this.userprofile.userName; |
| | | this.form.phone = this.userprofile.phonenumber; |
| | | this.form.deptmentname = this.userprofile.dept.deptName; |
| | | this.form.deptmentno = this.userprofile.dept.deptId; |
| | | this.form.managername = this.userprofile.dept.leader; |
| | | } |
| | | }); |
| | | }, |
| | | |