11
WXL
2023-09-11 c7c376e151fd91c6b94b72b691e9b158755723a8
src/views/project/fundcheck/officeExpenseCheck/index.vue
@@ -6,14 +6,14 @@
          <el-form-item label="申请日期" prop="createTime">
            <el-date-picker format="yyyy-MM-dd" @change="selectapplication" value-format="yyyy-MM-dd" v-model="createTime"
              type="daterange" range-separator="至" start-placeholder="申请开始日期" end-placeholder="申请结束日期"
              @keyup.enter.native="handleQuery">
              @keyup.enter.native="flowconclusion">
            </el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="5">
          <el-form-item label="经办人" prop="APPLICANT" style="float: left">
            <el-input v-model="queryParams.APPLICANT" placeholder="请输入经办人" clearable size="small"
              @keyup.enter.native="handleQuery" />
            <el-input v-model="queryParams.APPLICANT" placeholder="请输入申请人姓名" clearable size="small"
              @keyup.enter.native="flowconclusion" />
          </el-form-item>
        </el-col>
        <el-col :span="5">
@@ -32,26 +32,28 @@
    <el-form ref="infoform" label-width="100px">
      <el-row>
        <el-table v-loading="loading" border :data="donateconsolationfundList" @selection-change="handleSelectionChange">
         <!--
          <el-table-column label="审批状态" width="120" align="center" prop="checkFlag">
            <template slot-scope="scope">
              <span v-if="scope.row.checkFlag == 0"><i class="el-icon-check"
                  style="color: #5fb878; font-weight: bold"></i></span>
              <!-- <span v-else>待审核</span> -->
              <span v-else>待审核</span>
            </template>
          </el-table-column>
          <el-table-column label="申请日期" width="120" align="center" prop="createTime">
           -->
           <el-table-column label="申请日期" width="180" align="center" prop="createTime">
            <template slot-scope="scope">
              <span>{{ parseTime(scope.row.createTime, "{y}-{m}-{d}") }}</span>
            </template>
          </el-table-column>
          <el-table-column label="申请人" align="center" prop="username" width="120px" />
          <el-table-column label="所属组别" align="center" prop="deptmentname" width="140px" />
          <el-table-column label="组长" align="center" prop="managername" width="120px" />
          <el-table-column label="捐献者" align="center" prop="donorname" width="120px" />
          <el-table-column label="经办人" align="center" prop="username" width="150px" />
          <el-table-column label="申请金额" align="center" prop="pretaxcost" width="200px" />
          <el-table-column label="所属组别" align="center" prop="deptmentname" width="200px" />
          <el-table-column label="组长" align="center" prop="managername" width="150px" />
          <!--<el-table-column label="捐献编号" align="center" prop="donorno" />-->
          <el-table-column label="申请金额" align="center" prop="amountrequested" width="120px" />
          <!--
          <el-table-column label="预支费用" align="center" prop="prepaidamount" width="120px" />
          <!--<el-table-column label="工作单位" align="center" prop="unitname" width="230px" />
          <el-table-column label="工作单位" align="center" prop="unitname" width="230px" />
          <el-table-column label="联系电话" align="center" prop="phone" width="160" />
          <el-table-column label="当前审核级别" width="180" align="center" prop="flowlevel">
            <template slot-scope="scope">
@@ -60,17 +62,19 @@
          </el-table-column>
          <el-table-column label="财务审核" align="center" prop="financechecher" width="140" />
          -->
          <el-table-column label="记录状态" align="center" prop="recordstatus" width="180">
          <el-table-column label="捐献者" align="center" prop="donorname" width="150px" />
          <el-table-column label="审核状态" align="center" prop="recordstatus" width="200">
            <template slot-scope="scope">
              <dict-tag :options="dict.type.sys_recordstatus" :value="scope.row.recordstatus" />
            </template>
          </el-table-column>
          <el-table-column label="备注" align="center" prop="remark" />
          <el-table-column label="操作" fixed="right" align="center" class-name="small-padding fixed-width" width="260px">
            <template slot-scope="scope">
              <el-button size="mini" type="text" icon="el-icon-edit" v-if="scope.row.checkFlag == 0"
                @click="handleShow(scope.row)">详情</el-button>
                @click="handleDetail(scope.row)">详情</el-button>
              <el-button v-if="scope.row.checkFlag == 1" size="mini" type="text" icon="el-icon-edit"
                @click="handleUpdate(scope.row)">审核</el-button>
                @click="handleCheck(scope.row)">审核</el-button>
              <!-- v-hasPermi="['project:donateconsolationfund:edit']" -->
              <el-button size="mini" type="text" icon="el-icon-download" @click="totaldayin(scope.row.id)"
                v-hasPermi="['project:donateconsolationfund:download']">下载</el-button>
@@ -131,7 +135,7 @@
              <el-radio-group v-model="form.applytype" @change="LoadItemTypeArr">
                <!--<el-radio v-for="dict in dict.type.sys_financeitemtype" :key="dict.value" :label="dict.value"
                  :disabled="form.id != null">{{ dict.label }}</el-radio>-->
                <el-radio v-model="form.applytype" label="3">医学成本费用申请</el-radio>
                <el-radio v-model="form.applytype" label="4">办公费用申请</el-radio>
              </el-radio-group>
            </el-form-item>
          </el-col>
@@ -548,7 +552,7 @@
        APPLICATIONBEGTIME: null,
        APPLICATIONENDTIME: null,
        CHECKFLAG: 1,
        APPLYTYPE: 3,
        APPLYTYPE: 4,
      },
      // 表单参数
      form: {},
@@ -634,12 +638,14 @@
    this.getCurFundType();
    this.getUsermsg();
  },
  mounted() {
    this.selectReporters();
    this.getlistOrganization();
    //his.getlistUser();
    this.getlistbypower();
  },
  methods: {
    selectapplication() {
      this.queryParams.APPLICATIONBEGTIME = this.createTime[0];
@@ -648,10 +654,10 @@
    getlistbypower() {
      this.loading = true;
      // this.queryParams.params = {};
      console.log("this.queryParams",this.queryParams);
      listbypower(this.queryParams).then((res) => {
        this.loading = false;
        let list = res.rows;
        let arr = [];
        this.total = res.total;
        this.donateconsolationfundList = list;
      });
@@ -859,7 +865,7 @@
        annexbankcard: null,
        annexregistform: null,
        consolationmoney: null,
        applytype: "3",
        applytype: "4",
      };
      this.resetForm("form");
@@ -908,8 +914,18 @@
        });
      }
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
    /** 审核按钮操作 */
    handleCheck(row) {
      this.$router.push({
        path: "/finance/applyDetail/",
        query: {
          id: row.id,
          businessType: "4",
          operationType: "check"
        }
      });
      return;
      this.isopen = 0;
      this.reset();
      this.queryParams.params = {};
@@ -940,7 +956,17 @@
    },
    //查看审核详情
    handleShow(row) {
    handleDetail(row) {
      this.$router.push({
        path: "/finance/applyDetail/",
        query: {
          id: row.id,
          businessType: "4",
          operationType: "detail"
        }
      });
      return;
      this.isopen = 0;
      this.reset();
      this.queryParams.params = {};
@@ -1348,7 +1374,7 @@
    //获取费用类型
    getCurFundType() {
      getFundTypeAll(3).then((res) => {
      getFundTypeAll(4).then((res) => {
        let dataList = res.data;
        this.fundtypeArrAll = dataList;
        this.fundtypeArr = [];