yxh
2023-08-02 57451296729e00be76124e4a6be7c14bdf67c0e6
src/views/project/fund/expertFeeFundApply/index.vue
@@ -568,7 +568,7 @@
  getdownloadSS,
  getdownloadYX,
  getdownloadBX,
  batchUploadFund,
  addorupdateFund,
  getdetailsByItemId
} from "@/api/project/fund";
@@ -1174,34 +1174,43 @@
            //捐献者
            this.form.donorname = this.curCase.name;
            updateFund(this.form).then((response) => {
              if (response.code === 200) {
                this.loading = false;
                for (let m = 0; m < this.fundDetails.length; m++) {
                  if (this.fundDetails[m].id > 0) {
                    updateFunddetail(this.fundDetails[m]).then((response2) => { this.$modal.msgError("专家劳务费保存失败1:" + response.msg); });
                  } else {
                    addFunddetail(this.fundDetails[m]).then((response2) => { this.$modal.msgError("专家劳务费保存失败2:" + response.msg); });
                  }
                }
                this.$modal.msgSuccess("专家劳务费保存成功!");
              } else {
                this.$modal.msgError("专家劳务费保存失败:" + response.msg);
              }
            });
            // updateFund(this.form).then((response) => {
            //   if (response.code === 200) {
            //     this.loading = false;
            //     for (let m = 0; m < this.fundDetails.length; m++) {
            //       if (this.fundDetails[m].id > 0) {
            //         updateFunddetail(this.fundDetails[m]).then((response2) => { if (response.code != 200) { this.$modal.msgError("专家劳务费保存失败1:" + response.msg); } });
            //       } else {
            //         addFunddetail(this.fundDetails[m]).then((response2) => { if (response.code != 200) { this.$modal.msgError("专家劳务费保存失败2:" + response.msg); } });
            //       }
            //     }
            //     this.$modal.msgSuccess("专家劳务费保存成功!");
            //   } else {
            //     this.$modal.msgError("专家劳务费保存失败:" + response.msg);
            //   }
            // });
          } else {
            this.form.recordstatus = -1;
            batchUploadFund(this.form).then((response) => {
              if (response.code === 200) {
                this.selectDonotor(this.curCase);
              } else {
                this.$modal.msgError("专家劳务费保存失败:" + response.msg);
              }
            });
            // addorupdateFund(this.form).then((response) => {
            //   if (response.code === 200) {
            //     this.selectDonotor(this.curCase);
            //   } else {
            //     this.$modal.msgError("专家劳务费保存失败:" + response.msg);
            //   }
            // });
          }
          addorupdateFund(this.form).then((response) => {
            if (response.code === 200) {
              this.selectDonotor(this.curCase);
              this.$modal.msgSuccess("专家劳务费保存成功!");
            } else {
              this.$modal.msgError("专家劳务费保存失败:" + response.msg);
            }
          });
          //关闭窗口
          this.loading = false;
          this.dialogOpen = false;
@@ -1414,9 +1423,11 @@
          row.servicesscopename = item.expensedescribe;
          if (row.servicesscopename.includes("税后")) {
            row.amount = 0.0;
            row.taxamount = 0.0;
            row.taxedamount = item.expense;
          } else {
            row.amount = item.expense;
            row.taxamount = 0.0;
            row.taxedamount = 0.0;
          }