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 ++++++++++++++++------- 1 files changed, 16 insertions(+), 7 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, }); } }); -- Gitblit v1.9.3