yxh
yxh
2023-08-08 410d68c849410b4aa28be97bf60eb3af77641aa1
src/views/project/fund/expertFeeFundApply/index.vue
@@ -568,7 +568,7 @@
  getdownloadSS,
  getdownloadYX,
  getdownloadBX,
  batchUploadFund,
  addorupdateFund,
  getdetailsByItemId
} from "@/api/project/fund";
@@ -866,7 +866,7 @@
        this.form.donorno = this.curCase.donorno;
        this.form.name = this.curCase.name;
        this.form.infoid = this.curCase.id;
        console.log("defaultperson", this.defaultperson);
        this.form.username = this.defaultperson.nickName;
        this.form.userno = this.defaultperson.userName;
        this.form.phone = this.defaultperson.phonenumber;
@@ -1022,17 +1022,17 @@
          //查找是否存在登记完成记录
          //判断是否存在上报记录
          row.recordstatus = 0;
          console.log("updateFund", row);
          updateFund(row).then((response) => {
            if (response.code == 200) {
              this.$message({
                type: "success",
                message: "申请成功",
                message: "提交专家费用申请审批成功!",
              });
            } else {
              this.$message({
                type: "error",
                message: "申请失败",
                message: "提交专家费用申请失败!",
              });
            }
            this.loading = false;
@@ -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;
@@ -1396,8 +1405,8 @@
    //获取当前用户信息
    getUsermsg() {
      getUserProfile().then((response) => {
        console.log("getUserProfile", response);
        this.defaultperson = response.data;
        console.log("this.defaultperson", this.defaultperson);
        this.standardlevel = response.data.standardlevel;
        if (this.defaultperson.createBy == "admin" || this.defaultperson.createBy == "001" || this.defaultperson.createBy == "002") {
          this.ismanager = true;
@@ -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;
          }
@@ -1477,7 +1488,6 @@
    /** 查询捐献人道慰问金列表 */
    getList() {
      console.log("getList", "getList");
      this.loading = true;
      this.queryParams.params = {};
      if (null != this.daterangeReporttime && "" != this.daterangeReporttime) {
@@ -1486,6 +1496,8 @@
        this.queryParams.params["endReporttime"] = this.daterangeReporttime[1];
      }
      // this.queryParams.residencetown = this.$refs.areaSelect.getQu();
      console.log("111", this.queryParams);
      listDonatebaseinfo(this.queryParams).then((response) => {
        this.donatebaseinfoList = response.rows;
        this.total = response.total;