| | |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column prop="persontype" slot="" label="人员类别" align="center" fixed width="120"> |
| | | <el-table-column prop="persontype" slot="" label="人员类别" align="center" fixed width="130"> |
| | | <template slot-scope="scope"> |
| | | <el-select v-model="scope.row.persontype" value-key="value" placeholder="人员类别" |
| | | @change="getPersons(scope.row)"> |
| | | <el-option v-for="dict in dict.type.sys_travelexpensebelong" :key="dict.value" :label="dict.label" |
| | | :value="dict.value"></el-option> |
| | | :value="dict.label"></el-option> |
| | | |
| | | </el-select> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="personname" slot="" label="费用人员" align="center" fixed width="120"> |
| | | <el-table-column prop="personname" slot="" label="费用人员" align="center" fixed width="110"> |
| | | <template slot-scope="scope"> |
| | | <el-select v-model="scope.row.personname" clearable filterable allow-create default-first-option |
| | | placeholder="请选择" @focus1="getPersons(scope.row)"> |
| | |
| | | <el-input v-model="scope.row.departure" placeholder="出发地" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="到达地" prop="destination2" align="center" width="120"> |
| | | <el-table-column label="到达地" prop="destination2" align="center" width="140"> |
| | | <template slot-scope="scope"> |
| | | <!-- <el-input v-model="scope.row.destination" placeholder="到达地" @blur="getallowance(scope.row)" /> --> |
| | | |
| | |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column prop="persontype" slot="" label="人员类别" align="center" fixed width="120"> |
| | | <el-table-column prop="persontype" slot="" label="人员类别" align="center" fixed width="130"> |
| | | <template slot-scope="scope"> |
| | | <el-select v-model="scope.row.persontype" value-key="value" placeholder="人员类别" |
| | | @change="getPersons(scope.row)"> |
| | | <el-option v-for="dict in dict.type.sys_travelexpensebelong" :key="dict.value" :label="dict.label" |
| | | :value="dict.value"></el-option> |
| | | :value="dict.label"></el-option> |
| | | </el-select> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="personname" slot="" label="收款人" align="center" fixed width="130"> |
| | | <el-table-column prop="personname" slot="" label="收款人" align="center" fixed width="110"> |
| | | <template slot-scope="scope"> |
| | | <el-select v-model="scope.row.personname" clearable filterable allow-create ref="getReportname" |
| | | default-first-option placeholder="请选择" @change="getAccountinfo2(scope.row, scope.row.persontype)"> |
| | |
| | | getPersons(row) { |
| | | //专职人员-1,协调员-2,专家-3,家属-4,其他人员-5 |
| | | let tmpList = null; |
| | | if (row.persontype == "1") { |
| | | if (row.persontype == "专职人员") { |
| | | this.personsSel = this.personsZzry; |
| | | } else if (row.persontype == "2") { |
| | | } else if (row.persontype == "协调员") { |
| | | this.personsSel = this.personsXty; |
| | | } else if (row.persontype == "3") { |
| | | } else if (row.persontype == "专家") { |
| | | this.personsSel = this.personsExpert; |
| | | } else if (row.persontype == "4") { |
| | | } else if (row.persontype == "家属") { |
| | | this.personsSel = tmpList; |
| | | } else if (row.persontype == "5") { |
| | | } else if (row.persontype == "管理人员") { |
| | | this.personsSel = this.personsManager; |
| | | } |
| | | }, |
| | |
| | | //获取设置人员账号信息 |
| | | getAccountinfo2(row, personType) { |
| | | let dataArr = []; |
| | | if (personType == 1) { |
| | | if (personType == '专职人员') { |
| | | dataArr = this.personsZzry; |
| | | } else if (personType == 2) { |
| | | } else if (personType == '协调员') { |
| | | dataArr = this.personsXty; |
| | | } else if (personType == 3) { |
| | | } else if (personType == '专家') { |
| | | dataArr = this.personsExpert; |
| | | } else if (personType == 5) { |
| | | } else if (personType == '管理人员') { |
| | | dataArr = this.personsManager; |
| | | } |
| | | |
| | |
| | | this.arriveAddr = val2; |
| | | this.queryParams2.arriveAddr; |
| | | this.queryParams2.personType = row; |
| | | if (row.persontype != undefined && row.persontype == "2" || row.persontype == "5") { |
| | | if (row.persontype != undefined && row.persontype == "协调员" || row.persontype == "管理人员") { |
| | | this.loading = true; |
| | | getSubsidy(val2).then((response) => { |
| | | this.loading = false; |
| | |
| | | /** 新增按钮操作 */ |
| | | handleAdd() { |
| | | this.reset(); |
| | | |
| | | this.open = true; |
| | | this.title = "新增报销申请"; |
| | | this.dialogType = "edit"; |
| | | this.fundflowList = []; |
| | | this.form.username = this.defaultperson.nickName; |
| | | this.form.userno = this.defaultperson.userName; |
| | | this.addDetailRow(0); |
| | | this.addPayeeRow(0); |
| | | this.open = true; |
| | | this.title = "添加报销申请"; |
| | | }, |
| | | |
| | | /** 修改按钮操作 */ |
| | | handleUpdate(row) { |
| | | this.dialogType = "edit"; |
| | | this.reset(); |
| | | this.open = true; |
| | | this.title = "修改报销申请"; |
| | | |
| | | //获取报销主信息 |
| | | const id = row.id || this.ids; |
| | |
| | | if (this.rbPayees.length==0) {this.addPayeeRow(0);} |
| | | }); |
| | | }); |
| | | |
| | | this.open = true; |
| | | this.title = "修改报销申请"; |
| | | }, |
| | | |
| | | /** 查看按钮操作 */ |
| | | handleDetail(row) { |
| | | this.dialogType = "detail"; |
| | | this.reset(); |
| | | this.title = "查看报销申请"; |
| | | |
| | | this.reset(); |
| | | this.open = true; |
| | | const id = row.id || this.ids; |
| | | |
| | | |
| | |
| | | //this.sumTotalFee(); |
| | | }); |
| | | |
| | | //账户 |
| | | getReimbursementpayeelist(ids).then((res) => { |
| | | this.rbPayees = res.data; |
| | | //账户 |
| | | this.queryParamsPayee.rbid=ids; |
| | | listReimbursementpayee(this.queryParamsPayee).then((res) => { |
| | | this.rbPayees = res.rows; |
| | | if (this.rbPayees.length==0) {this.addPayeeRow(0);} |
| | | }); |
| | | |
| | | }); |
| | | |
| | | this.open = true; |
| | | this.title = "查看报销申请"; |
| | | }, |
| | | |
| | | /** 提交按钮 */ |