yxh
2023-07-26 25310fc13611045f39270022a1f89ea75d35cb32
增加subjecttype
已修改2个文件
25 ■■■■■ 文件已修改
src/views/project/fund/expertFeeFundApply/index.vue 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
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,
          });
        }
      });
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`,