From 25310fc13611045f39270022a1f89ea75d35cb32 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期三, 26 七月 2023 19:24:18 +0800
Subject: [PATCH] 增加subjecttype
---
src/views/project/fund/expertFeeFundApply/index.vue | 23 ++++++++++++++++-------
vue.config.js | 2 +-
2 files changed, 17 insertions(+), 8 deletions(-)
diff --git a/src/views/project/fund/expertFeeFundApply/index.vue b/src/views/project/fund/expertFeeFundApply/index.vue
index c99482d..c934696 100644
--- a/src/views/project/fund/expertFeeFundApply/index.vue
+++ b/src/views/project/fund/expertFeeFundApply/index.vue
@@ -875,7 +875,7 @@
addExternalperson(this.expertform).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("鏂板涓撳淇℃伅鎴愬姛锛�");
-
+
listExternalperson().then((res) => {
this.personlist = res.rows;
console.log("new personlist", this.personlist);
@@ -1427,13 +1427,14 @@
this.form.annexbankcard = list.map(item => item.url).join(",");
}
+ //
this.form.donorname = this.curCase.name;
this.form.pretaxcost = parseFloat(totalPreTaxAmount).toFixed(2);
this.form.taxedcost = parseFloat(totalAfterTaxAmount).toFixed(2);
this.form.amountrequested = totalAmount.toFixed(2);
if (this.form.id != null) {
this.form.recordstatus = -1;
- updateFund(this.form).then((response) => {
+ updateFund(this.form).then((res) => {
this.getfundList();
this.dialogOpen = false;
this.getList();
@@ -1444,6 +1445,7 @@
let tempData = this.fundDetails[m];
let tempItemArr = tempData.itemArr;
tempData.fundid = formData.id;
+
//鑾峰彇鏈嶅姟椤圭洰鏄庣粏
let itemIndex = tempItemArr.findIndex(
(item) => tempData.itemid == item.id
@@ -1453,18 +1455,21 @@
tempData.itemid = tempItemArr[itemIndex].id;
}
- //鑾峰彇applytypename
+ //鑾峰彇applytypename銆佹湇鍔¤垂鐢ㄥぇ绫�
let applytypeIndex = this.rowfeeItemTypes.findIndex(
(item) => tempData.applytype == item.value
);
if (applytypeIndex > -1) {
+ console.log("tempData1", tempData);
tempData.applytypename = this.rowfeeItemTypes[applytypeIndex].label;
+ tempData.subjecttype = this.rowfeeItemTypes[applytypeIndex].subjecttype;
+ tempData.subjecttypename = this.rowfeeItemTypes[applytypeIndex].subjecttypename;
}
-
+ console.log("tempData2", tempData);
if (tempData.id > 0) {
- updateFunddetail(tempData).then((response2) => { });
+ updateFunddetail(tempData).then((res) => { });
} else {
- addFunddetail(tempData).then((response2) => { });
+ addFunddetail(tempData).then((res) => { });
}
}
});
@@ -1483,12 +1488,14 @@
tempData.itemid = tempUtemArr[itemIndex].id;
}
- //鑾峰彇applytypename
+ //鑾峰彇applytypename銆佹湇鍔¤垂鐢ㄥぇ绫�
let applytypeIndex = this.rowfeeItemTypes.findIndex(
(item) => tempData.applytype == item.value
);
if (applytypeIndex > -1) {
tempData.applytypename = this.rowfeeItemTypes[applytypeIndex].label;
+ tempData.subjecttype = this.rowfeeItemTypes[applytypeIndex].subjecttype;
+ tempData.subjecttypename = this.rowfeeItemTypes[applytypeIndex].subjecttypename;
}
this.fundDetails[m] = tempData;
}
@@ -1779,6 +1786,8 @@
this.rowfeeItemTypes.push({
value: dataList[m].itemType,
label: dataList[m].itemTypeName,
+ subjecttype: dataList[m].subjecttype,
+ subjecttypename: dataList[m].subjecttypename,
});
}
});
diff --git a/vue.config.js b/vue.config.js
index eaaf55f..09f43f3 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -33,7 +33,7 @@
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
- target:`http://localhost:8080`,
+ target:`http://localhost:8086`,
// target:`http://116.62.18.175:8080`,
// target:`http://192.168.1.4:8080`,
// target: `https://slb.hospitalstar.com:9093`,
--
Gitblit v1.9.3