yxh
yxh
2023-08-12 126d60e2b14c47d390ec05b584b3504465a293d3
src/views/project/fund/expertFeeApply/index.vue
@@ -51,10 +51,6 @@
        <el-card shadow="naver">
          <el-form ref="infoform" label-width="100px">
            <el-row :gutter="4" align="right" class="mb8">
              <el-col :span="1.5">
                <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
                  v-hasPermi="['project:expretfund:add']">专家费用申请</el-button>
              </el-col>
              <el-col :span="9">
                <el-form-item label="捐献编号">
                  <el-input v-model="curCase.donorno" :disabled="true"></el-input>
@@ -66,7 +62,12 @@
                </el-form-item>
              </el-col>
              <el-col>
                <!-- <el-button round @click='totaldayin'>下载</el-button> -->
              </el-col>
            </el-row>
            <el-row :gutter="10" class="mb8">
              <el-col :span="1.5">
                <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
                  v-hasPermi="['project:expretfund:add']">新增申请单</el-button>
              </el-col>
            </el-row>
            <el-row>
@@ -860,6 +861,24 @@
    /** 新增按钮操作 */
    handleAdd() {
      if (this.curCase.id) {
        this.$router.push({
          path: "/finance/applyDetail/",
          query: {
            id: 0,
            businessType: "1",
            operationType: "add",
            curCase: this.curCase
          }
        });
      } else {
        const h = this.$createElement;
        this.$message({
          message: h("p", null, [h("span", null, "请在左边的捐献案例表选择需要操作的案例!")]),
        });
      }
      return;
      if (this.curCase.id) {
        this.istrue += 2;
        this.reset();
        this.queryParams.params = {};
@@ -892,6 +911,17 @@
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.$router.push({
        path: "/finance/applyDetail/",
        query: {
          id: row.id,
          businessType: "1",
          operationType: "update",
          curCase: this.curCase
        }
      });
      return;
      this.isopen = 0;
      this.reset();
      this.queryParams.params = {};
@@ -943,6 +973,17 @@
    /** 查看按钮操作 */
    handleDetail(row) {
      this.$router.push({
        path: "/finance/applyDetail/",
        query: {
          id: row.id,
          businessType: "1",
          operationType: "detail",
          curCase: this.curCase
        }
      });
      return;
      this.isopen = 0;
      this.reset();
      this.queryParams.params = {};
@@ -1016,7 +1057,6 @@
          //查找是否存在登记完成记录
          //判断是否存在上报记录
          row.recordstatus = 0;
          console.log("updateFund", row);
          updateFund(row).then((response) => {
            if (response.code == 200) {
              this.$message({
@@ -1145,7 +1185,6 @@
                  this.totalAfterTaxAmount += parseFloat(tempDetail.taxedamount);
                  this.totalAmount += parseFloat(tempDetail.amount);
                  console.log("1", this.amount);
                }
              });
            }
@@ -1297,7 +1336,6 @@
          //从专家列表获取信息
          this.personlist.map((res) => {
            if (tempName == res.username) {
              console.log("选择专家", res);
              singleDetail.beneficiaryno = res.userno;
              singleDetail.beneficiaryname = res.username;
              singleDetail.bankcardno = res.bankcardno;
@@ -1351,11 +1389,9 @@
              listExternalperson().then((res) => {
                this.personlist = res.rows;
                console.log("new personlist", this.personlist);
                //从专家列表获取信息
                this.personlist.map((res) => {
                  if (res.username == this.funddetailForm.expertname) {
                    console.log("新增专家", res);
                    singleDetail.beneficiaryno = res.userno;
                    singleDetail.beneficiaryname = res.username;
                    singleDetail.bankcardno = res.bankcardno;
@@ -1396,7 +1432,6 @@
    //获取当前用户信息
    getUsermsg() {
      getUserProfile().then((response) => {
        console.log("getUserProfile", response);
        this.defaultperson = response.data;
        this.standardlevel = response.data.standardlevel;
        if (this.defaultperson.createBy == "admin" || this.defaultperson.createBy == "001" || this.defaultperson.createBy == "002") {
@@ -1438,14 +1473,16 @@
          row.itemcode = res.itemCode;
        }
      });
      var repeatNum = 0;
      this.fundDetails.map((res) => {
        if (res.applytype === row.applytype && res.itemid == row.itemid) {
          repeatNum++;
      if (this.businessType == '1') {
        var repeatNum = 0;
        this.fundDetails.map((res) => {
          if (res.applytype === row.applytype && res.itemid == row.itemid) {
            repeatNum++;
          }
        });
        if (repeatNum > 1) {
          this.$modal.msgWarning("您已经提交过该服务项目了");
        }
      });
      if (repeatNum > 1) {
        this.$modal.msgWarning("您已经提交过该服务项目了");
      }
      //获取费用项目的详细信息
@@ -1488,7 +1525,6 @@
      }
      // 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;
@@ -1744,7 +1780,6 @@
    getUserList() {
      listUser().then((res) => {
        console.log("listUser", res);
        this.userlist = res.data;
      });
    },