From 935c201bdcf4adde998d46893dd0fa3eddf400bb Mon Sep 17 00:00:00 2001 From: yxh <172933527@qq.com> Date: 星期四, 20 七月 2023 17:55:22 +0800 Subject: [PATCH] 1 --- src/views/project/fund/medicalCostFundApply/index.vue | 89 +++++++++++++++++--------------------------- 1 files changed, 35 insertions(+), 54 deletions(-) diff --git a/src/views/project/fund/medicalCostFundApply/index.vue b/src/views/project/fund/medicalCostFundApply/index.vue index 2a235b4..948b666 100644 --- a/src/views/project/fund/medicalCostFundApply/index.vue +++ b/src/views/project/fund/medicalCostFundApply/index.vue @@ -55,7 +55,6 @@ <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> @@ -168,7 +167,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> @@ -180,13 +179,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"> @@ -319,7 +318,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> @@ -424,11 +423,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="handleremove" accept="image/*,.pdf"> + :on-exceed="handleExceed" :on-remove="remove" accept="image/*,.pdf"> <el-button :disabled='dialogType == "detail"' size="small" type="primary">涓婁紶</el-button> </el-upload> </el-form-item> @@ -453,7 +452,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> @@ -467,11 +466,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="(item, index) in bankaccountlist" :key="index" :label="item.reportName" - :value="item.reportNo"></el-option> + <el-option v-for="(spec, index) in unitList" :key="index" :label="spec.organizationname" + :value="spec.organizationid"></el-option> </el-select> </el-form-item> </el-col> @@ -589,7 +588,6 @@ reportername: null, reporttime: null, }, - fundQueryParam: { pageNum: 1, pageSize: 100, @@ -633,18 +631,15 @@ // 寮瑰嚭灞傛爣棰� title: "", - itemArr: [], - //鐢ㄦ埛 userlist: [], - //閾惰璐﹀彿 - bankaccountlist: [], - //鏈烘瀯鍗曚綅 - unitList: [], + itemArr: [], + reporters: [], //璐圭敤绫诲瀷鏁扮粍 fundtypeArr: [], defaultperson: {}, fundblock: [], fundtypeArrAll: [], + unitList: [], dialogType: "edit", detailInfoDialogShow: false, @@ -661,10 +656,10 @@ fileList: [], //涓婁紶闄勪欢璺緞 uploadFileUrl: process.env.VUE_APP_BASE_API + "/common/upload", + headers: { Authorization: "Bearer " + getToken(), }, - }; }, //鐩戝惉灞炴�� 绫讳技浜巇ata姒傚康 @@ -682,7 +677,6 @@ this.detailInfoDialogShow = true; this.detailInfoDialogShowType = showType; }, - ConfirmDetailDialog() { let tempIndex = this.funddetailForm.index; let tempName = this.funddetailForm.beneficiaryname; @@ -700,7 +694,7 @@ singleDetail.phone = res.telephone; singleDetail.title = res.title; singleDetail.unitname = res.unitname; - singleDetail.unitno = res.unitno; + singleDetail.unitno = parseInt(res.unitno); } else { singleDetail.beneficiaryname = tempName; singleDetail.beneficiaryno = tempName; @@ -708,17 +702,13 @@ }); } else if (this.detailInfoDialogShowType == "unit") { singleDetail.unitno = this.funddetailForm.unitno; - console.log("this.funddetailForm", this.funddetailForm); try { - let unitIndex = this.bankaccountlist.findIndex( - (item) => singleDetail.unitno == item.reportNo + let unitIndex = this.unitList.findIndex( + (item) => singleDetail.unitno == item.organizationid ); - - console.log("this.bankaccountlist[unitIndex]", this.bankaccountlist[unitIndex]); if (unitIndex > -1) { - singleDetail.unitname = this.bankaccountlist[unitIndex].reportName; - singleDetail.depositbank = this.bankaccountlist[unitIndex].depositbank; - singleDetail.bankcardno = this.bankaccountlist[unitIndex].bankcardno; + singleDetail.unitno = this.unitList[unitIndex].organizationid; + singleDetail.unitname = this.unitList[unitIndex].organizationname; } else { singleDetail.unitname = singleDetail.unitno; } @@ -726,7 +716,6 @@ singleDetail.unitname = singleDetail.unitno; } } - console.log("singleDetail",singleDetail); this.fundDetailArr[tempIndex] = singleDetail; this.detailInfoDialogShow = false; }, @@ -1043,11 +1032,11 @@ //鍒ゆ柇鍗曚綅 unitSel // try { // //鑾峰彇鏈嶅姟椤圭洰鏄庣粏 - // let unitIndex = this.bankaccountlist.findIndex( - // (item) => tempDetail.unitno == item.reportNo + // let unitIndex = this.unitList.findIndex( + // (item) => tempDetail.unitno == item.organizationid // ); // if (unitIndex > -1) { - // tempDetail.unitname = this.bankaccountlist[unitIndex].reportName; + // tempDetail.unitname = this.unitList[unitIndex].organizationname; // } else { // tempDetail.unitname = tempDetail.unitno; // } @@ -1140,11 +1129,10 @@ }); }, - getBankAccount() { + selectReporters() { //涓撳浜哄憳鍒楄〃 - listReportname("org").then((res) => { - this.bankaccountlist = res.data; - console.log("this.bankaccountlist", this.bankaccountlist); + listReportname("gdc").then((res) => { + this.reporters = res.data; }); }, @@ -1390,14 +1378,11 @@ }, getUnitList() { - listOrganization(3).then((res) => { - console.log("listOrganization", res); - for (let i = 0; i < res.rows.length; i++) { + listOrganization(3).then((response) => { + for (let i = 0; i < response.rows.length; i++) { this.unitList.push({ - organizationid: res.rows[i].organizationid, - organizationname: res.rows[i].organizationname, - bankname: res.rows[i].bankname, - bankaccount: res.rows[i].bankaccount, + organizationid: response.rows[i].organizationid, + organizationname: response.rows[i].organizationname, }); } }); @@ -1476,7 +1461,7 @@ //鏂囦欢涓婁紶 handleUploadError() { }, - handleremove(file) { + remove(file) { this.fileList.splice(this.fileList.indexOf(file), 1) }, handleExceed() { @@ -1484,9 +1469,6 @@ }, //鏂囦欢涓婁紶鎴愬姛鍥炶皟 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; @@ -1509,16 +1491,15 @@ //鐢熷懡鍛ㄦ湡 - 鍒涘缓瀹屾垚锛堝彲浠ヨ闂綋鍓峵his瀹炰緥锛� created() { + this.getUnitList(); this.getList(); this.getBaseInfoList(); - - this.getCurFundType(); this.getlistUser(); - // this.getUnitList(); + this.getCurFundType(); }, //鐢熷懡鍛ㄦ湡 - 鎸傝浇瀹屾垚锛堝彲浠ヨ闂瓺OM鍏冪礌锛� mounted() { - this.getBankAccount(); + this.selectReporters(); this.getUsermsg(); }, beforeCreate() { }, //鐢熷懡鍛ㄦ湡 - 鍒涘缓涔嬪墠 -- Gitblit v1.9.3