From 37b9d305fa159d523143d41ac1b2e498cb3cf18c Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期二, 08 八月 2023 17:35:58 +0800
Subject: [PATCH] yxh
---
src/views/project/fund/medicalCostFundApply/index.vue | 49 +++++++++++++++++++++++++++++--------------------
1 files changed, 29 insertions(+), 20 deletions(-)
diff --git a/src/views/project/fund/medicalCostFundApply/index.vue b/src/views/project/fund/medicalCostFundApply/index.vue
index 2fe9dd2..4f1dd9c 100644
--- a/src/views/project/fund/medicalCostFundApply/index.vue
+++ b/src/views/project/fund/medicalCostFundApply/index.vue
@@ -367,7 +367,7 @@
deleteRows(scope.row, scope.$index, fundDetails)
" type="text" size="small">
鍒犻櫎
- </el-button>
+ </el-button>
<el-button @click.native.prevent="
Filepopup(scope.$index, fundDetails, scope.row)
" type="text" size="small">
@@ -506,7 +506,7 @@
getdownloadSS,
getdownloadYX,
getdownloadBX,
- batchUploadFund,
+ addorupdateFund,
getdetailsByItemId,
} from "@/api/project/fund";
import {
@@ -614,9 +614,6 @@
],
deptmentname: [
{ required: true, message: "璇疯緭鍏ユ墍灞炰笟鍔$粍", trigger: "blur" },
- ],
- amountrequested: [
- { required: true, message: "璇疯緭鍏ョ敵璇烽噾棰�", trigger: "blur" },
],
},
@@ -732,7 +729,7 @@
singleDetail.unitname = singleDetail.unitno;
}
}
- console.log("singleDetail",singleDetail);
+ console.log("singleDetail", singleDetail);
this.fundDetails[tempIndex] = singleDetail;
this.detailInfoDialogShow = false;
},
@@ -1079,9 +1076,11 @@
this.form.pretaxcost = parseFloat(this.form.amountrequested).toFixed(
2
);
+
if (this.form.id != null) {
updateFund(this.form).then((response) => {
this.getfundList();
+
this.dialogOpen = false;
this.getList();
this.selectDonotor(this.curCase);
@@ -1131,7 +1130,7 @@
}
this.form.serviceFunddetails = this.fundDetails;
- batchUploadFund(this.form).then((response) => {
+ addorupdateFund(this.form).then((response) => {
if (response.code === 200) {
this.$modal.msgSuccess("鏂板鎴愬姛");
this.loading = false;
@@ -1140,8 +1139,16 @@
this.loading = false;
}
});
+
+ //鍏抽棴绐楀彛
+ this.loading = false;
this.dialogOpen = false;
+ // this.getfundList();
+ this.getList();
+ this.selectDonotor(this.curCase);
}
+
+
}
});
},
@@ -1499,7 +1506,7 @@
this.$modal.msgSuccess(response.msg);
this.fileList.push({ name: response.fileName, url: response.fileName });
} else {
- this.$modal.msgError(response.msg);
+ console.log(response.msg);;
}
},
// 涓嬭浇鏂囦欢
@@ -1515,18 +1522,18 @@
// 鐐瑰嚮鏂囦欢
Filepopup(index, rows, row) {
- console.log(index, rows, row);
- this.atpresent = index;
- console.log(this.atpresent);
- this.pdfVisible = true;
- if (this.fundDetails[index].annexfilesList) {
- this.fileListto = this.rbDetails[index].annexfilesList;
- } else {
- this.fileListto = [];
- this.pdfimg = "";
- this.pdftitle = "";
- }
- },
+ console.log(index, rows, row);
+ this.atpresent = index;
+ console.log(this.atpresent);
+ this.pdfVisible = true;
+ if (this.fundDetails[index].annexfilesList) {
+ this.fileListto = this.rbDetails[index].annexfilesList;
+ } else {
+ this.fileListto = [];
+ this.pdfimg = "";
+ this.pdftitle = "";
+ }
+ },
//鐢熷懡鍛ㄦ湡 - 鍒涘缓瀹屾垚锛堝彲浠ヨ闂綋鍓峵his瀹炰緥锛�
created() {
@@ -1537,11 +1544,13 @@
this.getlistUser();
// this.getUnitList();
},
+
//鐢熷懡鍛ㄦ湡 - 鎸傝浇瀹屾垚锛堝彲浠ヨ闂瓺OM鍏冪礌锛�
mounted() {
this.getBankAccount();
this.getUsermsg();
},
+
beforeCreate() { }, //鐢熷懡鍛ㄦ湡 - 鍒涘缓涔嬪墠
beforeMount() { }, //鐢熷懡鍛ㄦ湡 - 鎸傝浇涔嬪墠
beforeUpdate() { }, //鐢熷懡鍛ㄦ湡 - 鏇存柊涔嬪墠
--
Gitblit v1.9.3