|  |  | 
 |  |  |           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); | 
 |  |  | 
 |  |  |             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(); | 
 |  |  | 
 |  |  |                 let tempData = this.fundDetails[m]; | 
 |  |  |                 let tempItemArr = tempData.itemArr; | 
 |  |  |                 tempData.fundid = formData.id; | 
 |  |  |  | 
 |  |  |                 //获取服务项目明细 | 
 |  |  |                 let itemIndex = tempItemArr.findIndex( | 
 |  |  |                   (item) => tempData.itemid == item.id | 
 |  |  | 
 |  |  |                   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) => { }); | 
 |  |  |                 } | 
 |  |  |               } | 
 |  |  |             }); | 
 |  |  | 
 |  |  |                 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; | 
 |  |  |             } | 
 |  |  | 
 |  |  |           this.rowfeeItemTypes.push({ | 
 |  |  |             value: dataList[m].itemType, | 
 |  |  |             label: dataList[m].itemTypeName, | 
 |  |  |             subjecttype: dataList[m].subjecttype, | 
 |  |  |             subjecttypename: dataList[m].subjecttypename, | 
 |  |  |           }); | 
 |  |  |         } | 
 |  |  |       }); |