yxh
yxh
2023-08-07 cef0ffebad11bf1444be8ff3d54172c83800c78d
src/views/project/fund/overheadcosts/index.vue
@@ -4,8 +4,8 @@
    <el-form :model="queryParams" ref="queryForm" :inline="true" label-width="70px">
      <el-row align="left">
        <el-col :span="6">
          <el-form-item label="姓名" prop="name">
            <el-input v-model="queryParams.name" placeholder="请输入姓名" clearable size="small"
          <el-form-item label="经办人" prop="name">
            <el-input v-model="queryParams.name" placeholder="请输入经办人" clearable size="small"
              @keyup.enter.native="handleQuery" />
          </el-form-item>
        </el-col>
@@ -28,18 +28,6 @@
        <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
          v-hasPermi="['project:medicalfund:add']">创建申请单</el-button>
      </el-col>
      <el-col :span="9">
        <el-form-item label="捐献编号">
          <el-input v-model="curCase.donorno" :disabled="true"></el-input>
        </el-form-item>
      </el-col>
      <el-col :span="9">
        <el-form-item label="姓名">
          <el-input v-model="curCase.name" :disabled="true"></el-input>
        </el-form-item>
      </el-col>
      <el-col> </el-col>
    </el-row>
    <el-row>
      <el-table v-loading="loading" border :data="donateconsolationfundList">
@@ -195,7 +183,7 @@
              </template>
            </el-table-column>
            <el-table-column prop="beneficiaryno" align="center" label="姓名" width="120" v-if="form.applytype != 3">
            <el-table-column prop="beneficiaryno" align="center" label="姓名" width="120" v-if="form.applytype=='1' || form.applytype=='2'">
              <template slot-scope="scope">
                <el-button type="primary" plain @click="ShowDetailDialog(scope, 'name')">{{ scope.row.beneficiaryname
                }}</el-button>
@@ -536,7 +524,7 @@
  data() {
    //这里存放数据
    return {
      currentApplyType: "4",
      businesstype: "4",
      // 遮罩层
      loading: true,
      // 导出遮罩层
@@ -582,10 +570,7 @@
      },
      //捐献案例列表数据
      // donationCaseTableData:[],
      donatebaseinfoList: [],
      //当前选中捐献案例
      curCase: {},
      //是否显示费用申请弹窗
      dialogOpen: false,
      // title: "",
@@ -805,7 +790,7 @@
    /** 新增按钮操作 */
    handleAdd() {
      this.$router.push({
        path: "/finance/funddetail/",
        path: "/finance/fundcontext/",
        query: { id: 0, businesstype: "4", operationtype: "add" }
      });
@@ -830,7 +815,7 @@
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.$router.push({
        path: "/finance/funddetail/",
        path: "/finance/fundcontext/",
        query: { id: row.id, businesstype: 4, operationtype: "edit" }
      });
@@ -845,7 +830,6 @@
      const id = row.id || this.ids;
      getFund(id).then((response) => {
        this.form = response.data;
        this.form.name = this.curCase.name;
        //附件处理
        this.fileList = this.form.annexbankcard ? this.form.annexbankcard.split(",").map(item => ({ url: item, name: item })) : []
@@ -862,15 +846,13 @@
    /** 查看按钮操作 */
    handleDetail(row) {
      this.$router.push({
        path: "/finance/funddetail/",
        path: "/finance/fundcontext/",
        query: { id: row.id, businesstype: 4, operationtype: "detail" }
      });
      this.isopen = 0;
      this.reset();
      this.queryParams.params = {};
      this.form.donorno = this.curCase.donorno;
      this.form.infoid = this.curCase.id;
      this.dialogOpen = true;
      this.title = "查看费用申请";
      this.dialogType = "detail";
@@ -878,10 +860,9 @@
      getFund(id).then((response) => {
        this.form = response.data;
        this.form.name = this.curCase.name;
        let listFundflowparams = {
          fundid: row.id,
          fundtype: 2,
          fundtype: 4,
        };
        //附件处理
        this.fileList = this.form.annexbankcard ? this.form.annexbankcard.split(",").map(item => ({ url: item, name: item })) : []
@@ -920,8 +901,7 @@
              delFunddetail(listdetails[i].id);
            }
          });
          // this.getList();
          this.getfundList();
          this.getList();
          this.$modal.msgSuccess("删除成功");
        })
        .catch(() => { });
@@ -967,18 +947,14 @@
            this.form.annexbankcard = list.map(item => item.url).join(",");
          }
          this.form.donorname = this.curCase.name;
          this.form.pretaxcost = parseFloat(this.form.amountrequested).toFixed(
            2
          );
          if (this.form.id != null) {
            updateFund(this.form).then((response) => {
              this.getfundList();
              this.dialogOpen = false;
              this.getList();
              this.selectDonotor(this.curCase);
              this.$modal.msgSuccess("修改成功");
              this.loading = false;
              for (let m = 0; m < this.fundDetails.length; m++) {
@@ -1043,20 +1019,14 @@
        }
      });
    },
    /** 查询捐献人道慰问金列表 */
    /** 查询列表 */
    getList() {
      this.loading = true;
      this.queryParams.params = {};
      if (null != this.daterangeReporttime && "" != this.daterangeReporttime) {
        this.queryParams.params["beginReporttime"] =
          this.daterangeReporttime[0];
        this.queryParams.params["endReporttime"] = this.daterangeReporttime[1];
      }
      // this.queryParams.residencetown = this.$refs.areaSelect.getQu();
      listDonatebaseinfo(this.queryParams).then((response) => {
        this.donatebaseinfoList = response.rows;
        this.total = response.total;
      this.reset();
      listFund(this.fundQueryParam).then((response) => {
        this.loading = false;
        this.donateconsolationfundList = response.rows;
      });
    },
@@ -1067,20 +1037,7 @@
        this.total = response.total;
        this.loading = false;
      });
    },
    getfundList() {
      this.loading = true;
      this.reset();
      this.fundQueryParam.infoid = this.curCase.id;
      listFund(this.fundQueryParam).then((response) => {
        this.loading = false;
        this.donateconsolationfundList = response.rows;
      });
    },
    },
    // 取消按钮
    cancel() {
@@ -1296,7 +1253,7 @@
    //获取费用类型
    getCurFundType() {
      getFundTypeAll(this.currentApplyType).then((res) => {
      getFundTypeAll(this.businesstype).then((res) => {
        let dataList = res.data;
        this.fundtypeArrAll = dataList;
        this.fundtypeArr = [];
@@ -1500,12 +1457,11 @@
  //生命周期 - 创建完成(可以访问当前this实例)
  created() {
    this.getList();
    this.getBaseInfoList();
    this.getCurFundType();
    this.getlistUser();
    // this.getUnitList();
    this.getUnitList();
    this.getList();
  },
  //生命周期 - 挂载完成(可以访问DOM元素)