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/medicalcostfundapplycheck/index.vue | 100 ++++++++++++++++---------------------------------- 1 files changed, 32 insertions(+), 68 deletions(-) diff --git a/src/views/project/medicalcostfundapplycheck/index.vue b/src/views/project/medicalcostfundapplycheck/index.vue index 070533a..ffa2d20 100644 --- a/src/views/project/medicalcostfundapplycheck/index.vue +++ b/src/views/project/medicalcostfundapplycheck/index.vue @@ -48,7 +48,7 @@ <el-table-column label="鎵�灞炵粍鍒�" align="center" prop="deptmentname" width="140px" /> <el-table-column label="缁勯暱" align="center" prop="managername" width="120px" /> <el-table-column label="鎹愮尞鑰�" align="center" prop="donorname" width="120px" /> - <!--<el-table-column label="鎹愮尞缂栧彿" align="center" prop="donorno" />--> + <el-table-column label="鎹愮尞缂栧彿" align="center" prop="donorno" /> <el-table-column label="鐢宠閲戦" align="center" prop="amountrequested" width="120px" /> <el-table-column label="棰勬敮璐圭敤" align="center" prop="prepaidamount" width="120px" /> <!--<el-table-column label="宸ヤ綔鍗曚綅" align="center" prop="unitname" width="230px" /> @@ -131,7 +131,7 @@ <el-radio-group v-model="form.applytype" @change="LoadItemTypeArr"> <!--<el-radio v-for="dict in dict.type.sys_financeitemtype" :key="dict.value" :label="dict.value" :disabled="form.id != null">{{ dict.label }}</el-radio>--> - <el-radio v-model="form.applytype" label="3">鍖诲鎴愭湰璐圭敤鐢宠</el-radio> + <el-radio v-model="form.applytype" label="3">浼︾悊瀹℃煡涓撳璐圭敵璇�</el-radio> </el-radio-group> </el-form-item> </el-col> @@ -168,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> <el-col :span="5"> <el-form-item label="绋庡墠閲戦" prop="amountrequested"> <el-input v-model="form.pretaxcost" placeholder="绋庡墠閲戦鍚堣" :disabled="true" /> @@ -181,12 +181,13 @@ </el-col> <el-col :span="5"> <el-form-item label="鐢宠鐘舵��" prop="recordstatus"> + <!-- <el-input 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-row> <el-row> <el-col :span="4"> @@ -332,21 +333,6 @@ </el-table-column> </el-table> </el-row> - - <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) => - uploadSccess(response, file, fileList) - " :on-preview="downFile" :disabled='dialogType == "detail"' :on-error="handleUploadError" - :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> - </el-col> - </el-row> - <el-row style="margin-top: 5px; margin-bottom: 5px"> <el-table :data="fundflowList" border> <el-table-column label="瀹℃牳浜�" align="center" prop="checkusername" /> @@ -447,7 +433,6 @@ import Li_area_select from "@/components/Address"; import OrgSelecter from "@/views/project/components/orgselect"; import { getUserProfile } from "@/api/system/user"; -import { getToken } from "@/utils/auth"; export default { components: { @@ -617,15 +602,6 @@ approveLevel: 5, fundtypeArrAll: [], dialogType: "edit", - - //闄勪欢鍒楄〃 - fileList: [], - //涓婁紶闄勪欢璺緞 - uploadFileUrl: process.env.VUE_APP_BASE_API + "/common/upload", - headers: { - Authorization: "Bearer " + getToken(), - }, - }; }, watch: {}, @@ -642,6 +618,7 @@ }, methods: { selectapplication() { + console.log("鏃堕棿", this.createTime); this.queryParams.APPLICATIONBEGTIME = this.createTime[0]; this.queryParams.APPLICATIONENDTIME = this.createTime[1]; }, @@ -649,6 +626,8 @@ this.loading = true; // this.queryParams.params = {}; listbypower(this.queryParams).then((res) => { + //console.log("鏍规嵁鏉冮檺鏄剧ず鍒楄〃", res); + console.log("鏍规嵁鏉冮檺鏄剧ず鍒楄〃", res); this.loading = false; let list = res.rows; let arr = []; @@ -659,6 +638,7 @@ dundcheck() { // this.$em this.dialogOpen = false; + console.log("1234567", this.newobj, this.form.flowconclusion); let checkfundobj = { flowconclusion: this.newobj.flowlevelone, flowcontent: this.newobj.flowconclusion, @@ -666,6 +646,8 @@ }; checkfund(checkfundobj).then((res) => { this.reset(); + this.$modal.msgSuccess("瀹℃牳瀹屾垚!"); + console.log("瀹℃牳璐圭敤", res); this.$modal.msgSuccess("瀹℃牳瀹屾垚!"); this.getlistbypower(); }); @@ -800,9 +782,12 @@ change(scope) { }, autodonorno() { listDonatebaseinfo().then((res) => { + // console.log("鎵�鏈夋崘鐚�呭垪琛細",res); res.rows.forEach((data) => { + // console.log("data:",data); if (this.form.doname === data.name) { this.form.donorno = data.donorno; + console.log(this.form.donorno); } else { // this.$modal.alertWarning("瀵逛笉璧凤紝鏃犺鎹愮尞浜�"); } @@ -862,9 +847,6 @@ applytype: "3", }; this.resetForm("form"); - - //娓呯┖闄勪欢 - this.fileList = [] }, /** 鎼滅储鎸夐挳鎿嶄綔 */ @@ -886,6 +868,7 @@ }, /** 鏂板鎸夐挳鎿嶄綔 */ handleAdd() { + console.log("222", this.curCase); if (this.curCase.id) { this.istrue += 2; this.reset(); @@ -925,8 +908,6 @@ getFund(id).then((response) => { this.form = response.data; this.form.name = this.curCase.name; - //闄勪欢澶勭悊 - this.fileList = this.form.annexbankcard ? this.form.annexbankcard.split(",").map(item => ({ url: item, name: item })) : [] getownFundDetail(id).then((res) => { this.loading = false; @@ -935,6 +916,7 @@ this.fundDetailArr[m].itemArr = []; this.getItemArr(m, this.fundDetailArr[m]); } + console.log("fundDetailArr:" + JSON.stringify(this.fundDetailArr)); }); }); }, @@ -960,9 +942,6 @@ getFund(row.id).then((response) => { this.form = response.data; this.form.name = this.curCase.name; - //闄勪欢澶勭悊 - this.fileList = this.form.annexbankcard ? this.form.annexbankcard.split(",").map(item => ({ url: item, name: item })) : [] - getownFundDetail(row.id).then((res) => { this.fundDetailArr = res.data; for (let m = 0; m < this.fundDetailArr.length; m++) { @@ -974,6 +953,7 @@ }, select(row) { + console.log("娴嬭瘯寮�濮�", row.itemid, row.itemArr); row.itemArr.map((res) => { if (row.itemid === res.id) { row.remark = res.itemdescribe; @@ -985,6 +965,7 @@ } }); listcountItem(this.form.infoid, row.itemid).then((res) => { + console.log("resresresres", res); if (res.data > 0) { this.$modal.msgWarning("鎮ㄥ凡缁忔彁浜よ繃璇ユ湇鍔¢」鐩�"); } @@ -1000,7 +981,7 @@ servivesscope: item.id, }); }); - + console.log("缁勮鍚庣殑鏁版嵁", fundblock); this.fundblock = fundblock; }); }, @@ -1105,6 +1086,7 @@ }, saverow(row, index, rows) { + console.log("dwadw", index, rows, row); let totallist = this.fundDetailArr; if (this.form.id) { if (!row.id) { @@ -1169,12 +1151,14 @@ this.$set(this.fundDetailArr, res.data); this.sumTotalFee(); // this.fundDetailArr = res.data + // console.log('鍒犻櫎鍚�',this.fundDetailArr) }); }); } // getownFundDetail(this.form.id).then(res=>{ // this.$set(this.fundDetailArr,res.data) // this.fundDetailArr = res.data + // console.log('鍒犻櫎鍚�',this.fundDetailArr) // }) }); } else { @@ -1260,6 +1244,7 @@ }) .then(() => { updateFunddetail(this.fundDetailArr).then((res) => { + console.log("鐗涗父鐗涘晩", res); }); }) .catch(() => { @@ -1272,8 +1257,10 @@ //鍒ゆ柇鏁版嵁鏄庣粏鏁版嵁鏄惁姝g‘ let detailDataCorrect = true; for (let i = 0; i < this.applicationDetailArr.length; i++) { + // console.log('qqq',this.applicationDetailArr[i]); let tempData = this.applicationDetailArr[i]; Object.keys(tempData).forEach(function (key) { + // console.log('iii',key, tempData[key]); if ( tempData[key] == null || tempData[key] == undefined || @@ -1349,6 +1336,7 @@ //鑾峰彇璐圭敤绫诲瀷 getCurFundType() { getFundTypeAll(3).then((res) => { + console.log("璐圭敤绫诲瀷", res.data); let dataList = res.data; this.fundtypeArrAll = dataList; this.fundtypeArr = []; @@ -1382,6 +1370,7 @@ listReportname(arr[i]).then((res) => { this.arrr2 = res.data; this.arrr3 = this.arrr3.concat(this.arrr2); + console.log("adadadadasdsad", this.arrr3, this.userlist); }); } }, @@ -1414,6 +1403,7 @@ getUsermsg() { getUserProfile().then((response) => { + console.log("鐧诲綍鐢ㄦ埛淇℃伅", response.data); // this.defaultperson = response.data; // this.standardlevel = response.data.standardlevel; if ( @@ -1425,6 +1415,7 @@ } else { this.show = 3; } + console.log("where", this.show); }); }, @@ -1458,6 +1449,7 @@ dayin() { if (this.form.id) { const id = this.form.id; + console.log(id); getdownloadLW(id).then((res) => { if (res.downloadUrl) { var fileUrl = res; @@ -1573,6 +1565,7 @@ dayin4() { const id = this.form.id; // getdownloadLL(id).then(res=>{ + // console.log('鍔冲姟涓嬭浇',res); // }) }, // 鎹愮尞鑰呭灞炰氦閫氶瀹挎墦鍗� @@ -1596,6 +1589,7 @@ type: "success", }); } + console.log("瀹跺睘浼欓浜ら�氳垂", res); }); } else { this.$alert("璇风‘璁ゆ偍瑕佷笅杞界殑涓撳鍔冲姟琛�", "鎻愰啋", { @@ -1604,36 +1598,6 @@ }); } }, - - //鏂囦欢涓婁紶 - handleUploadError() { }, - remove(file) { - this.fileList.splice(this.fileList.indexOf(file), 1) - }, - handleExceed() { - this.$message.error(`涓婁紶鏂囦欢鏁伴噺涓嶈兘瓒呰繃 ${5} 涓�!`); - }, - //鏂囦欢涓婁紶鎴愬姛鍥炶皟 - uploadSccess(response, file, fileList) { - //鑾峰彇闄勪欢淇℃伅浣嶇疆 - if (response.code == 200) { - this.form.filename = file.raw.name; - this.$modal.msgSuccess(response.msg); - this.fileList.push({ name: response.fileName, url: response.fileName }); - } else { - this.$modal.msgError(response.msg); - } - }, - // 涓嬭浇鏂囦欢 - downFile(item) { - const url = process.env.VUE_APP_BASE_API + item.url - var a = document.createElement('a'); - var event = new MouseEvent('click'); - a.download = item.name; - a.href = url; - a.dispatchEvent(event); - }, - }, }; </script> -- Gitblit v1.9.3