From ca4261a5d05d0359d02e332b88ed149a0656eae1 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期四, 27 七月 2023 13:47:57 +0800
Subject: [PATCH] 修改了专家费用保存
---
src/views/project/medicalcostfundapplycheck/index.vue | 102 ++++++++++++++++++++++++++++++++++-----------------
1 files changed, 68 insertions(+), 34 deletions(-)
diff --git a/src/views/project/medicalcostfundapplycheck/index.vue b/src/views/project/medicalcostfundapplycheck/index.vue
index cea00b2..070533a 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,13 +181,12 @@
</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">
@@ -333,6 +332,21 @@
</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" />
@@ -433,6 +447,7 @@
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: {
@@ -602,6 +617,15 @@
approveLevel: 5,
fundtypeArrAll: [],
dialogType: "edit",
+
+ //闄勪欢鍒楄〃
+ fileList: [],
+ //涓婁紶闄勪欢璺緞
+ uploadFileUrl: process.env.VUE_APP_BASE_API + "/common/upload",
+ headers: {
+ Authorization: "Bearer " + getToken(),
+ },
+
};
},
watch: {},
@@ -618,7 +642,6 @@
},
methods: {
selectapplication() {
- console.log("鏃堕棿", this.createTime);
this.queryParams.APPLICATIONBEGTIME = this.createTime[0];
this.queryParams.APPLICATIONENDTIME = this.createTime[1];
},
@@ -626,8 +649,6 @@
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 = [];
@@ -638,7 +659,6 @@
dundcheck() {
// this.$em
this.dialogOpen = false;
- console.log("1234567", this.newobj, this.form.flowconclusion);
let checkfundobj = {
flowconclusion: this.newobj.flowlevelone,
flowcontent: this.newobj.flowconclusion,
@@ -646,8 +666,6 @@
};
checkfund(checkfundobj).then((res) => {
this.reset();
- this.$modal.msgSuccess("瀹℃牳瀹屾垚!");
- console.log("瀹℃牳璐圭敤", res);
this.$modal.msgSuccess("瀹℃牳瀹屾垚!");
this.getlistbypower();
});
@@ -782,12 +800,9 @@
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("瀵逛笉璧凤紝鏃犺鎹愮尞浜�");
}
@@ -847,6 +862,9 @@
applytype: "3",
};
this.resetForm("form");
+
+ //娓呯┖闄勪欢
+ this.fileList = []
},
/** 鎼滅储鎸夐挳鎿嶄綔 */
@@ -868,7 +886,6 @@
},
/** 鏂板鎸夐挳鎿嶄綔 */
handleAdd() {
- console.log("222", this.curCase);
if (this.curCase.id) {
this.istrue += 2;
this.reset();
@@ -908,6 +925,8 @@
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;
@@ -916,7 +935,6 @@
this.fundDetailArr[m].itemArr = [];
this.getItemArr(m, this.fundDetailArr[m]);
}
- console.log("fundDetailArr:" + JSON.stringify(this.fundDetailArr));
});
});
},
@@ -942,6 +960,9 @@
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++) {
@@ -953,7 +974,6 @@
},
select(row) {
- console.log("娴嬭瘯寮�濮�", row.itemid, row.itemArr);
row.itemArr.map((res) => {
if (row.itemid === res.id) {
row.remark = res.itemdescribe;
@@ -965,7 +985,6 @@
}
});
listcountItem(this.form.infoid, row.itemid).then((res) => {
- console.log("resresresres", res);
if (res.data > 0) {
this.$modal.msgWarning("鎮ㄥ凡缁忔彁浜よ繃璇ユ湇鍔¢」鐩�");
}
@@ -981,7 +1000,7 @@
servivesscope: item.id,
});
});
- console.log("缁勮鍚庣殑鏁版嵁", fundblock);
+
this.fundblock = fundblock;
});
},
@@ -1086,7 +1105,6 @@
},
saverow(row, index, rows) {
- console.log("dwadw", index, rows, row);
let totallist = this.fundDetailArr;
if (this.form.id) {
if (!row.id) {
@@ -1151,14 +1169,12 @@
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 {
@@ -1244,7 +1260,6 @@
})
.then(() => {
updateFunddetail(this.fundDetailArr).then((res) => {
- console.log("鐗涗父鐗涘晩", res);
});
})
.catch(() => {
@@ -1257,10 +1272,8 @@
//鍒ゆ柇鏁版嵁鏄庣粏鏁版嵁鏄惁姝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 ||
@@ -1336,7 +1349,6 @@
//鑾峰彇璐圭敤绫诲瀷
getCurFundType() {
getFundTypeAll(3).then((res) => {
- console.log("璐圭敤绫诲瀷", res.data);
let dataList = res.data;
this.fundtypeArrAll = dataList;
this.fundtypeArr = [];
@@ -1370,7 +1382,6 @@
listReportname(arr[i]).then((res) => {
this.arrr2 = res.data;
this.arrr3 = this.arrr3.concat(this.arrr2);
- console.log("adadadadasdsad", this.arrr3, this.userlist);
});
}
},
@@ -1379,7 +1390,6 @@
this.personlist.map((res) => {
if (row.beneficiaryname == res.username) {
row.beneficiaryno = res.userno;
- debugger;
row.beneficiaryname = res.username;
row.bankcardno = res.bankcardno;
row.branchbankname = res.branchbankname;
@@ -1404,10 +1414,8 @@
getUsermsg() {
getUserProfile().then((response) => {
- console.log("鐧诲綍鐢ㄦ埛淇℃伅", response.data);
// this.defaultperson = response.data;
// this.standardlevel = response.data.standardlevel;
- debugger;
if (
response.data.userName === "001" ||
response.data.userName === "002" ||
@@ -1417,7 +1425,6 @@
} else {
this.show = 3;
}
- console.log("where", this.show);
});
},
@@ -1451,7 +1458,6 @@
dayin() {
if (this.form.id) {
const id = this.form.id;
- console.log(id);
getdownloadLW(id).then((res) => {
if (res.downloadUrl) {
var fileUrl = res;
@@ -1567,7 +1573,6 @@
dayin4() {
const id = this.form.id;
// getdownloadLL(id).then(res=>{
- // console.log('鍔冲姟涓嬭浇',res);
// })
},
// 鎹愮尞鑰呭灞炰氦閫氶瀹挎墦鍗�
@@ -1591,7 +1596,6 @@
type: "success",
});
}
- console.log("瀹跺睘浼欓浜ら�氳垂", res);
});
} else {
this.$alert("璇风‘璁ゆ偍瑕佷笅杞界殑涓撳鍔冲姟琛�", "鎻愰啋", {
@@ -1600,6 +1604,36 @@
});
}
},
+
+ //鏂囦欢涓婁紶
+ 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