From 42deb933c04571578b8bf408ada9ca1dcc8d3dd8 Mon Sep 17 00:00:00 2001 From: yxh <172933527@qq.com> Date: 星期四, 20 七月 2023 18:21:26 +0800 Subject: [PATCH] 1 --- src/views/project/fund/medicalCostFundApply/index.vue | 89 +++++++++++++++++++++++++++----------------- 1 files changed, 54 insertions(+), 35 deletions(-) diff --git a/src/views/project/fund/medicalCostFundApply/index.vue b/src/views/project/fund/medicalCostFundApply/index.vue index 948b666..2a235b4 100644 --- a/src/views/project/fund/medicalCostFundApply/index.vue +++ b/src/views/project/fund/medicalCostFundApply/index.vue @@ -55,6 +55,7 @@ <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd" v-hasPermi="['project:medicalfund:add']">鍖诲鎴愭湰鐢宠</el-button> </el-col> + <el-col :span="9"> <el-form-item label="鎹愮尞缂栧彿"> <el-input v-model="curCase.donorno" :disabled="true"></el-input> @@ -167,7 +168,7 @@ <el-form-item label="鐢宠閲戦" prop="amountrequested"> <el-input v-model="form.amountrequested" placeholder="鐢宠閲戦" :disabled="true" /> </el-form-item> - </el-col> <el-col :span="5"> + </el-col> <!--<el-col :span="5"> <el-form-item label="绋庡墠閲戦" prop="pretaxcost"> <el-input v-model="form.pretaxcost" placeholder="绋庡墠閲戦鍚堣" :disabled="true" /> </el-form-item> @@ -179,13 +180,13 @@ </el-col> <el-col :span="5"> <el-form-item label="瀹℃牳鐘舵��" prop="recordstatus"> - <!--<el-input v-if="0" v-model="form.recordstatus" placeholder="瀹℃牳鎰忚"/>--> + <el-input v-if="0" v-model="form.recordstatus" placeholder="瀹℃牳鎰忚"/> <el-select v-model="form.recordstatus" placeholder="璇烽�夋嫨瀹℃牳鐘舵��" clearable size="small" :disabled="true"> <el-option v-for="dict in dict.type.sys_recordstatus" :key="dict.value" :label="dict.label" :value="dict.value" /> </el-select> </el-form-item> - </el-col> + </el-col>--> <!-- <el-col :span="5"> <el-form-item label="鑱旂郴鐢佃瘽" prop="phone"> @@ -318,7 +319,7 @@ " /> </template> </el-table-column> - <el-table-column prop="unitno" align="center" label="鍗曚綅" width="220"> + <el-table-column prop="unitno" align="center" label="璐圭敤鍗曚綅鍚嶇О" width="220"> <template slot-scope="scope"> <el-button type="primary" plain @click="ShowDetailDialog(scope, 'unit')">{{ scope.row.unitname }}</el-button> @@ -423,11 +424,11 @@ <el-row> <el-col :span="24"> <el-form-item label="璐圭敤鐢宠闄勪欢锛�" align="left" prop="annexbankcard"> - <el-upload size="mini" class="upload-demo" :action="uploadFileUrl" :file-list="fileList" multiple :limit="20" - :headers="headers" :on-success="(response, file, fileList) => + <el-upload size="mini" class="upload-demo" :action="uploadFileUrl" :file-list="fileList" multiple + :limit="20" :headers="headers" :on-success="(response, file, fileList) => uploadSccess(response, file, fileList) " :on-preview="downFile" :disabled='dialogType == "detail"' :on-error="handleUploadError" - :on-exceed="handleExceed" :on-remove="remove" accept="image/*,.pdf"> + :on-exceed="handleExceed" :on-remove="handleremove" accept="image/*,.pdf"> <el-button :disabled='dialogType == "detail"' size="small" type="primary">涓婁紶</el-button> </el-upload> </el-form-item> @@ -452,7 +453,7 @@ </div> </el-dialog> - <el-dialog :visible.sync="detailInfoDialogShow" :close-on-click-modal="false" :title="'淇℃伅淇敼'" + <el-dialog :visible.sync="detailInfoDialogShow" :close-on-click-modal="false" :title="'璐圭敤鍗曚綅閫夋嫨'" style="text-align: center" v-loading="loading" width="500px"> <el-form ref="funddetailForm" :model="funddetailForm" label-width="120px"> <el-row> @@ -466,11 +467,11 @@ </el-form-item> </el-col> <el-col :span="24" v-if="detailInfoDialogShowType == 'unit'"> - <el-form-item align="left" label="鍗曚綅" prop="unitno" label-width="80px"> - <el-select v-model="funddetailForm.unitno" placeholder="鍗曚綅" clearable filterable allow-create + <el-form-item align="left" label="鍗曚綅鍚嶇О" prop="unitno" label-width="80px"> + <el-select v-model="funddetailForm.unitno" placeholder="璇烽�夋嫨鍗曚綅" clearable filterable allow-create style="width: 100%"> - <el-option v-for="(spec, index) in unitList" :key="index" :label="spec.organizationname" - :value="spec.organizationid"></el-option> + <el-option v-for="(item, index) in bankaccountlist" :key="index" :label="item.reportName" + :value="item.reportNo"></el-option> </el-select> </el-form-item> </el-col> @@ -588,6 +589,7 @@ reportername: null, reporttime: null, }, + fundQueryParam: { pageNum: 1, pageSize: 100, @@ -631,15 +633,18 @@ // 寮瑰嚭灞傛爣棰� title: "", - userlist: [], itemArr: [], - reporters: [], + //鐢ㄦ埛 + userlist: [], + //閾惰璐﹀彿 + bankaccountlist: [], + //鏈烘瀯鍗曚綅 + unitList: [], //璐圭敤绫诲瀷鏁扮粍 fundtypeArr: [], defaultperson: {}, fundblock: [], fundtypeArrAll: [], - unitList: [], dialogType: "edit", detailInfoDialogShow: false, @@ -656,10 +661,10 @@ fileList: [], //涓婁紶闄勪欢璺緞 uploadFileUrl: process.env.VUE_APP_BASE_API + "/common/upload", - headers: { Authorization: "Bearer " + getToken(), }, + }; }, //鐩戝惉灞炴�� 绫讳技浜巇ata姒傚康 @@ -677,6 +682,7 @@ this.detailInfoDialogShow = true; this.detailInfoDialogShowType = showType; }, + ConfirmDetailDialog() { let tempIndex = this.funddetailForm.index; let tempName = this.funddetailForm.beneficiaryname; @@ -694,7 +700,7 @@ singleDetail.phone = res.telephone; singleDetail.title = res.title; singleDetail.unitname = res.unitname; - singleDetail.unitno = parseInt(res.unitno); + singleDetail.unitno = res.unitno; } else { singleDetail.beneficiaryname = tempName; singleDetail.beneficiaryno = tempName; @@ -702,13 +708,17 @@ }); } else if (this.detailInfoDialogShowType == "unit") { singleDetail.unitno = this.funddetailForm.unitno; + console.log("this.funddetailForm", this.funddetailForm); try { - let unitIndex = this.unitList.findIndex( - (item) => singleDetail.unitno == item.organizationid + let unitIndex = this.bankaccountlist.findIndex( + (item) => singleDetail.unitno == item.reportNo ); + + console.log("this.bankaccountlist[unitIndex]", this.bankaccountlist[unitIndex]); if (unitIndex > -1) { - singleDetail.unitno = this.unitList[unitIndex].organizationid; - singleDetail.unitname = this.unitList[unitIndex].organizationname; + singleDetail.unitname = this.bankaccountlist[unitIndex].reportName; + singleDetail.depositbank = this.bankaccountlist[unitIndex].depositbank; + singleDetail.bankcardno = this.bankaccountlist[unitIndex].bankcardno; } else { singleDetail.unitname = singleDetail.unitno; } @@ -716,6 +726,7 @@ singleDetail.unitname = singleDetail.unitno; } } + console.log("singleDetail",singleDetail); this.fundDetailArr[tempIndex] = singleDetail; this.detailInfoDialogShow = false; }, @@ -1032,11 +1043,11 @@ //鍒ゆ柇鍗曚綅 unitSel // try { // //鑾峰彇鏈嶅姟椤圭洰鏄庣粏 - // let unitIndex = this.unitList.findIndex( - // (item) => tempDetail.unitno == item.organizationid + // let unitIndex = this.bankaccountlist.findIndex( + // (item) => tempDetail.unitno == item.reportNo // ); // if (unitIndex > -1) { - // tempDetail.unitname = this.unitList[unitIndex].organizationname; + // tempDetail.unitname = this.bankaccountlist[unitIndex].reportName; // } else { // tempDetail.unitname = tempDetail.unitno; // } @@ -1129,10 +1140,11 @@ }); }, - selectReporters() { + getBankAccount() { //涓撳浜哄憳鍒楄〃 - listReportname("gdc").then((res) => { - this.reporters = res.data; + listReportname("org").then((res) => { + this.bankaccountlist = res.data; + console.log("this.bankaccountlist", this.bankaccountlist); }); }, @@ -1378,11 +1390,14 @@ }, getUnitList() { - listOrganization(3).then((response) => { - for (let i = 0; i < response.rows.length; i++) { + listOrganization(3).then((res) => { + console.log("listOrganization", res); + for (let i = 0; i < res.rows.length; i++) { this.unitList.push({ - organizationid: response.rows[i].organizationid, - organizationname: response.rows[i].organizationname, + organizationid: res.rows[i].organizationid, + organizationname: res.rows[i].organizationname, + bankname: res.rows[i].bankname, + bankaccount: res.rows[i].bankaccount, }); } }); @@ -1461,7 +1476,7 @@ //鏂囦欢涓婁紶 handleUploadError() { }, - remove(file) { + handleremove(file) { this.fileList.splice(this.fileList.indexOf(file), 1) }, handleExceed() { @@ -1469,6 +1484,9 @@ }, //鏂囦欢涓婁紶鎴愬姛鍥炶皟 uploadSccess(response, file, fileList) { + console.log("response", response); + console.log("file", file); + console.log("fileList", fileList); //鑾峰彇闄勪欢淇℃伅浣嶇疆 if (response.code == 200) { this.form.filename = file.raw.name; @@ -1491,15 +1509,16 @@ //鐢熷懡鍛ㄦ湡 - 鍒涘缓瀹屾垚锛堝彲浠ヨ闂綋鍓峵his瀹炰緥锛� created() { - this.getUnitList(); this.getList(); this.getBaseInfoList(); - this.getlistUser(); + this.getCurFundType(); + this.getlistUser(); + // this.getUnitList(); }, //鐢熷懡鍛ㄦ湡 - 鎸傝浇瀹屾垚锛堝彲浠ヨ闂瓺OM鍏冪礌锛� mounted() { - this.selectReporters(); + this.getBankAccount(); this.getUsermsg(); }, beforeCreate() { }, //鐢熷懡鍛ㄦ湡 - 鍒涘缓涔嬪墠 -- Gitblit v1.9.3