yxh
yxh
2023-08-11 f894e1b53bcc948cb1fc9aecd2c01a77d7a1db03
src/views/project/fund/applyDetail/index.vue
@@ -71,7 +71,7 @@
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="应缴税" prop="taxcost">
            <el-form-item label="应缴税" prop="taxcost" v-if="businessType == '1' || businessType == '2'">
              <el-input v-model="form.taxcost" placeholder="应缴税金额合计" :disabled="true" />
            </el-form-item>
          </el-col>
@@ -86,15 +86,15 @@
              <el-input :disabled="true" v-model="form.name" placeholder="请输入捐献者姓名" />
            </el-form-item>
          </el-col>
          <!--
          <el-col :span="5">
            <el-form-item label="申请状态" prop="recordstatus">
              <!-- <el-input v-model="form.recordstatus" placeholder="审核意见"/> -->
              <el-select v-model="form.recordstatus" placeholder="请选择审核状态" clearable size="small" :disabled="true">
                <el-option v-for="dict in dict.type.sys_recordstatus" :key="dict.value" :label="dict.label"
                  :value="dict.value" />
              </el-select>
            </el-form-item>
          </el-col>
          </el-col>-->
        </el-row>
        <el-row style="margin-top: 5px; margin-bottom: 5px" />
        <el-row style="margin-bottom: 10px" v-if="businessType == '1'">
@@ -156,8 +156,8 @@
                  " />
              </template>
            </el-table-column>
            <el-table-column v-if="businessType == 3 || businessType == 4 || ismanager == true" prop="amount" align="center"
              label="税前金额" width="120">
            <el-table-column v-if="businessType == 3 || businessType == 4 || ismanager == true" prop="amount"
              align="center" label="税前金额" width="120">
              <template slot-scope="scope">
                <!--
                  <el-select v-model="scope.row.amount" placeholder="税前金额" clearable filterable allow-create
@@ -505,6 +505,7 @@
  getdownloadSH,
  getdownloadSS,
  getdownloadYX,
  checkfund,
  getdownloadBX,
  addorupdateFund,
  getdetailsByItemId
@@ -706,6 +707,12 @@
        usertype: null,
        wbm: null
      },
      //审批参数
      checkObj: {
        flowlevelone: null,
        flowconclusion: null,
        fundid: null,
      },
      // 查询参数
      queryParams: {
@@ -851,6 +858,7 @@
      this.curId = this.$route.query.id;
      this.businessType = this.$route.query.businessType;
      this.operationType = this.$route.query.operationType;
      console.log(this.businessType, this.operationType);
      //获取费用项目类型
      this.getFundType();
@@ -863,7 +871,7 @@
        this.curCase = this.$route.query.curCase;
        this.businessName = "伦理专家劳务费申请单";
      } else if (this.businessType == "3") {
        this.curCase = this.$route.query.curCase;
        if (this.operationType != "check") { this.curCase = this.$route.query.curCase; }
        this.businessName = "医学成本报销单";
      } else if (this.businessType == "4") {
        this.businessName = "杂项费用报销单";
@@ -961,6 +969,44 @@
        });
      });
    },
    /** 修改按钮操作 */
    handleCheck() {
      this.isopen = 0;
      this.reset();
      getFund(this.curId).then(response => {
        this.form = response.data;
        //附件处理
        // this.fileList = this.form.annexbankcard ? this.form.annexbankcard.split(",").map(item => ({ url: item, name: item })) : []
        //业务明细
        getownFundDetail(this.curId).then(res => {
          console.log(res);
          this.rbDetails = res.data;
          for (let m = 0; m < this.rbDetails.length; m++) {
            this.rbDetails[m].itemlist = [];
            this.getitemlist(m, this.rbDetails[m]);
            this.rbDetails[m].rowfeeblocks = [];
            this.rbDetails[m].rowfeeblocks.push({
              expense: this.rbDetails[m].expense,
              expensedescribe: this.rbDetails[m].servicesscopename,
              remark: this.rbDetails[m].servicesscope,
              servicesscope: this.rbDetails[m].servicesscope
            });
          }
        });
        //业务流程
        let listFundflowparams = {
          fundid: this.curId,
          fundtype: 2
        };
        listFundflow(listFundflowparams).then(res => {
          this.fundflowList = res.rows;
        });
      });
    },
    /** 查看按钮操作 */
    handleDetail() {
@@ -969,10 +1015,6 @@
      getFund(this.curId).then(response => {
        this.form = response.data;
        let listFundflowparams = {
          fundid: this.curId,
          fundtype: this.businessType
        };
        //附件处理
        // this.fileList = this.form.annexbankcard ? this.form.annexbankcard.split(",").map(item => ({ url: item, name: item })) : []
@@ -997,7 +1039,11 @@
          }
        });
        //业务流程
        //业务流程
        let listFundflowparams = {
          fundid: this.curId,
          fundtype: 2
        };
        listFundflow(listFundflowparams).then(res => {
          this.fundflowList = res.rows;
        });
@@ -1250,6 +1296,20 @@
      });
    },
    //审批提交
    checksubmit() {
      let checkFundObj = {
        // fundid: this.checkObj.fundid,
        fundid: this.curId,
        flowconclusion: this.checkObj.flowlevelone,
        flowcontent: this.checkObj.flowconclusion,
      };
      checkfund(checkFundObj).then((res) => {
        this.reset();
        this.$modal.msgSuccess("审核完成!");
      });
    },
    // 取消按钮
    cancel() {
      // this.reset();