11
WXL
2023-09-14 34a4dad9f162543e7c06177374141d9fed06bc9c
11
已修改2个文件
1202 ■■■■ 文件已修改
src/views/project/fund/applyDetail/index.vue 101 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/travelexpensecheck/index.vue 1101 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/fund/applyDetail/index.vue
@@ -177,15 +177,13 @@
              >
            </div></el-col
          >
        </el-row>
        <el-row v-if="businessType == 1&&operationType == 'check'">
        <el-row v-if="businessType == 1 && operationType == 'check'">
          <el-col :span="3"
            ><div style="margin-bottom: 15px;">
              <el-button
                type="success"
                icon="el-icon-download"
                icon="el-icon-edit-outline"
                @click="Manualcalculationfn"
                >计算明细</el-button
              >
@@ -223,7 +221,7 @@
              <template slot-scope="scope">
                <el-select
                  v-model="scope.row.applytype"
                  placeholder="服务类型"
                  placeholder="请选择服务类型"
                  @change="verifyFeeItemType(scope.row)"
                >
                  <el-option
@@ -244,7 +242,7 @@
              <template slot-scope="scope">
                <el-select
                  v-model="scope.row.itemid"
                  placeholder="服务项目"
                  placeholder="请选择服务项目"
                  filterable
                  @change="verifyFeeItem(scope.row)"
                  :filter-method="val => searchItemType(val, scope)"
@@ -385,7 +383,11 @@
                  type="primary"
                  plain
                  @click="ShowDetailDialog(scope, 'expert')"
                  >{{ scope.row.beneficiaryname }}</el-button
                  >{{
                    scope.row.beneficiaryname
                      ? scope.row.beneficiaryname
                      : "点击选择"
                  }}</el-button
                >
                <!-- <el-select
                  filterable
@@ -1441,8 +1443,8 @@
      cityOptions: [],
      checkAll: false,
      checkedCities: [],
      Personnelforname: "请选择",
      unitforname: "请选择",
      Personnelforname: null,
      unitforname: null,
      isIndeterminate: true,
      //是否是专家费的OPO审批人员
@@ -2019,10 +2021,7 @@
                return;
              }
              if (
                tempDetail.beneficiaryno == null ||
                tempDetail.beneficiaryno == "点击选择"
              ) {
              if (tempDetail.beneficiaryno == null) {
                this.$modal.msgWarning(
                  "服务项目表中,第" +
                    (k + 1).toString() +
@@ -2558,30 +2557,36 @@
    //计算个税:type(A:已知税前金额,计算税后金额;B:已知税后金额,计算税前金额)
    calculateTax(row, type) {
      let targetValue = 0;
      for (let i = 0; i < this.rbDetails.length; i++) {
        targetValue += parseFloat(this.rbDetails[i].amount); // 假设每个对象中的特定值存储在'specificValue'属性下
      }
      this.form.pretaxcost = targetValue;
      //if (isNaN(parseFloat(tempDetail.taxedamount)))
      //获取参数
      this.taxParam.beneficiaryNo = row.beneficiaryno;
      this.taxParam.startTime = this.form.createTime.substring(0, 10);
      // this.taxParam.beneficiaryNo = row.beneficiaryno;
      // this.taxParam.startTime = this.form.createTime.substring(0, 10);
      if (type == "A") {
        // 计算个税、税后金额
        this.taxParam.money = row.amount.toString();
        getTaxByBeneFiciaryNo(this.taxParam).then(res => {
          if (res.code == 200) {
            row.taxamount = res.data;
            row.taxedamount = row.amount - row.taxamount;
          }
        });
      } else {
        // 计算税前、个税金额
        this.taxParam.money = row.taxedamount.toString();
        getTaxBeforeByAfterMoney(this.taxParam).then(res => {
          if (res.code == 200) {
            row.taxamount = res.data.nowTax;
            row.amount = parseFloat(res.data.nowTaxBeforeMoney);
          }
        });
      }
      // if (type == "A") {
      //   // 计算个税、税后金额
      //   this.taxParam.money = row.amount.toString();
      //   getTaxByBeneFiciaryNo(this.taxParam).then(res => {
      //     if (res.code == 200) {
      //       row.taxamount = res.data;
      //       row.taxedamount = row.amount - row.taxamount;
      //     }
      //   });
      // } else {
      //   // 计算税前、个税金额
      //   this.taxParam.money = row.taxedamount.toString();
      //   getTaxBeforeByAfterMoney(this.taxParam).then(res => {
      //     if (res.code == 200) {
      //       row.taxamount = res.data.nowTax;
      //       row.amount = parseFloat(res.data.nowTaxBeforeMoney);
      //     }
      //   });
      // }
    },
    //导入所有项目
@@ -2608,8 +2613,8 @@
              itemid: this.feeItemTypes[i].itemDetails[j].id,
              itemcode: this.feeItemTypes[i].itemDetails[j].itemCode,
              recordstatus: "-1",
              beneficiaryname: "点击选择",
              unitname: "点击选择",
              beneficiaryname: null,
              unitname: null,
              itemlist: this.feeItemTypes[i].itemDetails,
              rowfeeblocks: null,
              servicesscope: null,
@@ -2691,10 +2696,7 @@
                return;
              }
              if (
                tempDetail.beneficiaryno == null ||
                tempDetail.beneficiaryno == "点击选择"
              ) {
              if (tempDetail.beneficiaryno == null) {
                this.$modal.msgWarning(
                  "服务项目表中,第" +
                    (k + 1).toString() +
@@ -2910,6 +2912,21 @@
    Manualcalculationfn() {
      ManualCalculation(this.rbDetails).then(res => {
        console.log(res);
        if (res.code == 200) {
          sessionStorage.removeItem("apiform");
          sessionStorage.removeItem("apifunddetail");
          sessionStorage.setItem(
            "apifunddetail",
            JSON.stringify(this.rbDetails)
          );
          sessionStorage.setItem("apiform", JSON.stringify(this.form));
          this.$router.go(0);
        } else {
          // this.$message({
          //   type: "error",
          //   message: "申请失败"
          // });
        }
      });
    },
    // 批量录入点击
@@ -2982,9 +2999,9 @@
        orderno: null,
        id: null,
        fundid: null,
        beneficiaryname: "点击选择",
        beneficiaryname: null,
        beneficiaryno: null,
        unitname: "点击选择",
        unitname: null,
        unitno: null,
        uintuserno: null,
        title: null,
src/views/project/travelexpensecheck/index.vue
@@ -1,7 +1,12 @@
<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
    <el-form
      :model="queryParams"
      ref="queryForm"
      :inline="true"
      v-show="showSearch"
      label-width="68px"
    >
      <el-row>
        <!--        <el-col :span="6">
          <el-form-item label="出差人" prop="travelers">
@@ -11,30 +16,71 @@
        </el-col>-->
        <el-col :span="8">
          <el-form-item label="申请日期" prop="createTime">
            <el-date-picker format="yyyy-MM-dd" value-format="yyyy-MM-dd" v-model="value1" type="daterange" @blur="onpick"
              range-separator="至" start-placeholder="报销申请开始日期" end-placeholder="报销申请结束日期"
              @keyup.enter.native="handleQuery">
            <el-date-picker
              format="yyyy-MM-dd"
              value-format="yyyy-MM-dd"
              v-model="value1"
              type="daterange"
              @blur="onpick"
              range-separator="至"
              start-placeholder="报销申请开始日期"
              end-placeholder="报销申请结束日期"
              @keyup.enter.native="handleQuery"
            >
            </el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="5">
          <el-form-item label="经办人" prop="username">
            <el-input v-model="queryParams.username" placeholder="请输入报销人" clearable size="small"
              @keyup.enter.native="handleQuery" />
            <el-input
              v-model="queryParams.username"
              placeholder="请输入报销人"
              clearable
              size="small"
              @keyup.enter.native="handleQuery"
            />
          </el-form-item>
        </el-col>
        <el-col :span="5">
          <el-form-item label="金额" prop="money" style="float: left">
            <el-input
              v-model="queryParams.money"
              placeholder="请输入申请人金额"
              clearable
              size="small"
              @keyup.enter.native="handleQuery"
            />
          </el-form-item>
        </el-col>
        <el-col :span="5">
          <el-form-item label="审批状态" prop="CHECKFLAG" style="float: left">
            <el-select v-model="queryParams.CHECKFLAG" placeholder="请选择" style="width: 100%">
              <el-option v-for="item in checkFlagOptions" :key="item.value" :label="item.label" :value="item.value">
            <el-select
              v-model="queryParams.CHECKFLAG"
              placeholder="请选择"
              style="width: 100%"
            >
              <el-option
                v-for="item in checkFlagOptions"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item>
            <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
            <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
            <el-button
              type="primary"
              icon="el-icon-search"
              size="mini"
              @click="handleQuery"
              >搜索</el-button
            >
            <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
              >重置</el-button
            >
          </el-form-item>
        </el-col>
      </el-row>
@@ -42,15 +88,29 @@
    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button type="warning" plain icon="el-icon-download" size="mini" :loading="exportLoading"
          @click="handleExport">导出</el-button>
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
          :loading="exportLoading"
          @click="handleExport"
          >导出</el-button
        >
      </el-col>
      <!-- v-hasPermi="['project:funddetail:export']" -->
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
      <right-toolbar
        :showSearch.sync="showSearch"
        @queryTable="getList"
      ></right-toolbar>
    </el-row>
    <el-table border v-loading="loading" :data="reimbursementList" @selection-change="handleSelectionChange">
    <el-table
      border
      v-loading="loading"
      :data="reimbursementList"
      @selection-change="handleSelectionChange"
    >
      <!-- <el-table-column type="selection" width="55" align="center" /> -->
      <!--
      <el-table-column label="报销归类" width="120" align="center" prop="costtype">
@@ -58,24 +118,62 @@
          <dict-tag :options="dict.type.sys_travelexpensebelong" :value="scope.row.costtype" />
        </template>
      </el-table-column>-->
      <el-table-column label="申请日期" width="120" align="center" prop="createTime">
      <el-table-column
        label="申请日期"
        width="120"
        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="审批状态" width="120" align="center" prop="checkFlag">
      <el-table-column
        label="审批状态"
        width="120"
        align="center"
        prop="checkFlag"
      >
        <template slot-scope="scope">
          <dict-tag :options="dict.type.sys_recordstatus" :value="scope.row.recordstatus" />
          <dict-tag
            :options="dict.type.sys_recordstatus"
            :value="scope.row.recordstatus"
          />
        </template>
      </el-table-column>
      <el-table-column label="经办人" width="120" align="center" prop="username" />
      <el-table-column label="所属组别" width="120" align="center" prop="deptmentname" />
      <el-table-column label="组长" width="120" align="center" prop="managername" />
      <el-table-column label="报销金额" width="120" align="center" prop="amountrequested">
      <el-table-column
        label="经办人"
        width="120"
        align="center"
        prop="username"
      />
      <el-table-column
        label="所属组别"
        width="120"
        align="center"
        prop="deptmentname"
      />
      <el-table-column
        label="组长"
        width="120"
        align="center"
        prop="managername"
      />
      <el-table-column
        label="报销金额"
        width="120"
        align="center"
        prop="amountrequested"
      >
      </el-table-column>
      <el-table-column label="出差事由" align="center" prop="reason">
      </el-table-column>
      <el-table-column label="捐献者" width="120" align="center" prop="donorname">
      <el-table-column
        label="捐献者"
        width="120"
        align="center"
        prop="donorname"
      >
      </el-table-column>
      <!-- 
      <el-table-column label="出差人" width="180" align="center" prop="travelers">
@@ -93,50 +191,110 @@
      <el-table-column label="财务核对" align="center" prop="financechecher"/>
      <el-table-column label="财务审核" width="120" align="center" prop="financedirector"/>
-->
      <el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width" width="270">
      <el-table-column
        label="操作"
        align="center"
        fixed="right"
        class-name="small-padding fixed-width"
        width="270"
      >
        <template slot-scope="scope">
          <el-button size="mini" type="text" icon="el-icon-edit" v-if="scope.row.checkFlag == 1 || scope.row.checkFlag == 0"
            @click="handleUpdate(scope.row)">审批</el-button>
          <el-button size="mini" type="text" icon="el-icon-edit" v-if="scope.row.checkFlag == 0"
            @click="handleShow(scope.row)">详情</el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            v-if="scope.row.checkFlag == 1 || scope.row.checkFlag == 0"
            @click="handleUpdate(scope.row)"
            >审批</el-button
          >
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            v-if="scope.row.checkFlag == 0"
            @click="handleShow(scope.row)"
            >详情</el-button
          >
          <!-- v-hasPermi="['project:funddetail:edit']" -->
          <el-button size="mini" type="text" icon="el-icon-download" @click="gettable(scope.row)">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-download"
            @click="gettable(scope.row)"
          >
            下载
          </el-button>
          <!-- v-hasPermi="['project:funddetail:edit']" -->
          <el-button size="mini" type="text" icon="el-icon-delete" :disabled="true"
            @click="handleDelete(scope.row)">删除</el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            :disabled="true"
            @click="handleDelete(scope.row)"
            >删除</el-button
          >
          <!-- v-hasPermi="['project:funddetail:remove']" -->
        </template>
      </el-table-column>
    </el-table>
    <!-- v-hasPermi="['project:donateconsolationfund:edit']" -->
    <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
      @pagination="getList" />
    <pagination
      v-show="total > 0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />
    <!-- 添加或修改费用申请明细对话框 -->
    <el-dialog :title="title" :visible.sync="open" width="1400px" append-to-body>
    <el-dialog
      :title="title"
      :visible.sync="open"
      width="1400px"
      append-to-body
    >
      <el-form ref="form" :model="form" label-width="120px">
        <el-row>
          <el-col :span="5">
            <el-form-item label="申请日期" prop="createTime">
              <el-date-picker style="width: 100%" v-model="form.createTime" :disabled="true" type="date"
                value-format="yyyy-MM-dd HH:mm:ss" placeholder="申请日期">
              <el-date-picker
                style="width: 100%"
                v-model="form.createTime"
                :disabled="true"
                type="date"
                value-format="yyyy-MM-dd HH:mm:ss"
                placeholder="申请日期"
              >
              </el-date-picker>
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="经办人" prop="username">
              <el-input v-model="form.username" placeholder="报销人" :disabled="true" />
              <el-input
                v-model="form.username"
                placeholder="报销人"
                :disabled="true"
              />
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="所属组别" prop="deptmentname">
              <el-input v-model="form.deptmentname" placeholder="所属组别" :disabled="true" />
            </el-form-item> </el-col> <el-col :span="5">
              <el-input
                v-model="form.deptmentname"
                placeholder="所属组别"
                :disabled="true"
              />
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="组长" prop="managername">
              <el-input v-model="form.managername" placeholder="组长" :disabled="true" />
            </el-form-item> </el-col>
              <el-input
                v-model="form.managername"
                placeholder="组长"
                :disabled="true"
              />
            </el-form-item>
          </el-col>
        </el-row>
        <!--
        <el-row>
@@ -173,7 +331,8 @@
              <el-input v-model="form.reason" placeholder="出差事由" />
            </el-form-item>
          </el-col>
          <el-col :span="5"><el-form-item label="捐献者" prop="donorname">
          <el-col :span="5"
            ><el-form-item label="捐献者" prop="donorname">
              <el-input v-model="form.donorname" placeholder="捐献者" />
            </el-form-item>
          </el-col>
@@ -181,15 +340,23 @@
        <el-row style="margin-top: 10px">
          <el-col :span="5">
            <el-form-item label="报销金额" prop="amountrequested">
              <el-input v-model="form.amountrequested" placeholder="报销金额" :disabled="true" />
              <el-input
                v-model="form.amountrequested"
                placeholder="报销金额"
                :disabled="true"
              />
            </el-form-item>
          </el-col>
          <el-col :span="10">
            <el-form-item label="大写金额" prop="bigstrmoney">
              <el-input v-model="form.bigstrmoney" placeholder="大写金额" :disabled="true" />
            </el-form-item>
          </el-col><!--
              <el-input
                v-model="form.bigstrmoney"
                placeholder="大写金额"
                :disabled="true"
              />
            </el-form-item> </el-col
          ><!--
          <el-col :span="6">
            <el-form-item label="领款金额" prop="amountrequested">
              <el-input v-model="form.amountrequested" placeholder="领款金额" />
@@ -201,17 +368,34 @@
          </el-col>-->
          <el-col :span="5">
            <el-form-item label="审核状态" prop="flowlevel">
              <el-select v-model="form.recordstatus" placeholder="请选择审核状态" clearable :disabled="true" size="small">
                <el-option v-for="dict in dict.type.sys_recordstatus" :key="dict.value" :label="dict.label"
                  :value="dict.value" />
              <el-select
                v-model="form.recordstatus"
                placeholder="请选择审核状态"
                clearable
                :disabled="true"
                size="small"
              >
                <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-row>
        <el-row type="flex" :gutter="10" align="right" class="mb8">
          <el-col :span="6">
            <el-button type="primary" plain icon="el-icon-plus" size="mini" :disabled="true"
              @click="addRow">新增一行</el-button>
            <el-button
              type="primary"
              plain
              icon="el-icon-plus"
              size="mini"
              :disabled="true"
              @click="addRow"
              >新增一行</el-button
            >
          </el-col>
        </el-row>
        <el-row style="margin-top: 25px; margin-bottom: 5px">
@@ -219,109 +403,264 @@
        </el-row>
        <el-row>
          <el-table :data="rbDetails" border highlight-current-row>
            <el-table-column prop="orderno" slot="" label="序号" align="center" fixed width="65">
            <el-table-column
              prop="orderno"
              slot=""
              label="序号"
              align="center"
              fixed
              width="65"
            >
              <template slot-scope="scope">
                <el-input v-model="scope.row.orderno" placeholder="序号" />
              </template>
            </el-table-column>
            <!--主键、外不展示-->
            <el-table-column prop="id" slot="" label="主键" align="center" fixed width="95" v-if="false">
            <el-table-column
              prop="id"
              slot=""
              label="主键"
              align="center"
              fixed
              width="95"
              v-if="false"
            >
              <template slot-scope="scope">
                <el-input v-model="scope.row.id" placeholder="id" />
              </template>
            </el-table-column>
            <el-table-column prop="rbid" slot="" label="外键" align="center" fixed width="95" v-if="false">
            <el-table-column
              prop="rbid"
              slot=""
              label="外键"
              align="center"
              fixed
              width="95"
              v-if="false"
            >
              <template slot-scope="scope">
                <el-input v-model="scope.row.rbid" placeholder="rbid" />
              </template>
            </el-table-column>
            <el-table-column prop="persontype" slot="" label="人员类别" align="center" fixed width="130">
            <el-table-column
              prop="persontype"
              slot=""
              label="人员类别"
              align="center"
              fixed
              width="130"
            >
              <template slot-scope="scope">
                <el-select v-model="scope.row.persontype" value-key="value" placeholder="人员类别"
                  @change="getPersons(scope.row)">
                  <el-option v-for="dict in dict.type.sys_travelexpensebelong" :key="dict.value" :label="dict.label"
                    :value="dict.label"></el-option>
                <el-select
                  v-model="scope.row.persontype"
                  value-key="value"
                  placeholder="人员类别"
                  @change="getPersons(scope.row)"
                >
                  <el-option
                    v-for="dict in dict.type.sys_travelexpensebelong"
                    :key="dict.value"
                    :label="dict.label"
                    :value="dict.label"
                  ></el-option>
                </el-select>
              </template>
            </el-table-column>
            <el-table-column prop="personname" slot="" label="费用人员" align="center" fixed width="110">
            <el-table-column
              prop="personname"
              slot=""
              label="费用人员"
              align="center"
              fixed
              width="110"
            >
              <template slot-scope="scope">
                <el-select v-model="scope.row.personname" clearable filterable allow-create default-first-option
                  placeholder="请选择" @focus1="getPersons(scope.row)">
                  <el-option v-for="item in personsSel" :key="item.reportNo" :label="item.reportName"
                    :value="item.reportName">
                <el-select
                  v-model="scope.row.personname"
                  clearable
                  filterable
                  allow-create
                  default-first-option
                  placeholder="请选择"
                  @focus1="getPersons(scope.row)"
                >
                  <el-option
                    v-for="item in personsSel"
                    :key="item.reportNo"
                    :label="item.reportName"
                    :value="item.reportName"
                  >
                  </el-option>
                </el-select>
              </template>
            </el-table-column>
            <el-table-column prop="starttime" slot="" label="开始日期" fixed align="center" width="150">
            <el-table-column
              prop="starttime"
              slot=""
              label="开始日期"
              fixed
              align="center"
              width="150"
            >
              <template slot-scope="scope">
                <el-date-picker :picker-options="{
                  disabledDate: time => {
                    if (scope.row.endtime) { return time.getTime() > new Date(scope.row.endtime.replace(/-/g, '/')) }
                  }
                }" clearable size="small" style="width: 100%" v-model="scope.row.starttime" type="date"
                  value-format="yyyy-MM-dd HH:mm:ss" placeholder="开始日期" @blur="getallowance(scope.row)">
                <el-date-picker
                  :picker-options="{
                    disabledDate: time => {
                      if (scope.row.endtime) {
                        return (
                          time.getTime() >
                          new Date(scope.row.endtime.replace(/-/g, '/'))
                        );
                      }
                    }
                  }"
                  clearable
                  size="small"
                  style="width: 100%"
                  v-model="scope.row.starttime"
                  type="date"
                  value-format="yyyy-MM-dd HH:mm:ss"
                  placeholder="开始日期"
                  @blur="getallowance(scope.row)"
                >
                </el-date-picker>
              </template>
            </el-table-column>
            <el-table-column prop="endtime" slot="" label="结束日期" align="center" fixed width="150">
            <el-table-column
              prop="endtime"
              slot=""
              label="结束日期"
              align="center"
              fixed
              width="150"
            >
              <template slot-scope="scope">
                <el-date-picker :picker-options="{
                  disabledDate: time => {
                    if (scope.row.starttime) { return time.getTime() < new Date(scope.row.starttime.replace(/-/g, '/')) }
                  }
                }" clearable size="small" style="width: 100%" v-model="scope.row.endtime" type="date"
                  value-format="yyyy-MM-dd HH:mm:ss" placeholder="结束日期" @blur="getallowance(scope.row)">
                <el-date-picker
                  :picker-options="{
                    disabledDate: time => {
                      if (scope.row.starttime) {
                        return (
                          time.getTime() <
                          new Date(scope.row.starttime.replace(/-/g, '/'))
                        );
                      }
                    }
                  }"
                  clearable
                  size="small"
                  style="width: 100%"
                  v-model="scope.row.endtime"
                  type="date"
                  value-format="yyyy-MM-dd HH:mm:ss"
                  placeholder="结束日期"
                  @blur="getallowance(scope.row)"
                >
                </el-date-picker>
              </template>
            </el-table-column>
            <el-table-column prop="departure" slot="" label="出发地" align="center" width="100">
            <el-table-column
              prop="departure"
              slot=""
              label="出发地"
              align="center"
              width="100"
            >
              <template slot-scope="scope">
                <el-input v-model="scope.row.departure" placeholder="出发地" />
              </template>
            </el-table-column>
            <el-table-column label="到达地" prop="destination2" align="center" width="140">
            <el-table-column
              label="到达地"
              prop="destination2"
              align="center"
              width="140"
            >
              <template slot-scope="scope">
                <!--  <el-input v-model="scope.row.destination" placeholder="到达地" @blur="getallowance(scope.row)" /> -->
                <el-select filterable allow-create v-model="scope.row.destination" value-key="value" placeholder="到达地"
                  @change="getallowance2(scope.row, scope.row.destination)">
                  <el-option v-for="dict in dict.type.sys_area_name" :key="dict.value" :label="dict.label"
                    :value="dict.value"></el-option>
                <el-select
                  filterable
                  allow-create
                  v-model="scope.row.destination"
                  value-key="value"
                  placeholder="到达地"
                  @change="getallowance2(scope.row, scope.row.destination)"
                >
                  <el-option
                    v-for="dict in dict.type.sys_area_name"
                    :key="dict.value"
                    :label="dict.label"
                    :value="dict.value"
                  ></el-option>
                </el-select>
              </template>
            </el-table-column>
            <el-table-column prop="days" label="天数" width="65" align="center">
              <template slot-scope="scope">
                <el-input v-model="scope.row.days" @blur="getStandard(scope.row)" placeholder="天数" />
                <el-input
                  v-model="scope.row.days"
                  @blur="getStandard(scope.row)"
                  placeholder="天数"
                />
              </template>
            </el-table-column>
            <el-table-column prop="traffictype" label="出发交通工具" align="center" width="100">
            <el-table-column
              prop="traffictype"
              label="出发交通工具"
              align="center"
              width="100"
            >
              <template slot-scope="scope">
                <el-select v-model="scope.row.traffictype" placeholder="出发交通工具">
                  <el-option v-for="dict in dict.type.sys_traffictype" :key="dict.value" :label="dict.label"
                    :value="dict.label"></el-option>
                <el-select
                  v-model="scope.row.traffictype"
                  placeholder="出发交通工具"
                >
                  <el-option
                    v-for="dict in dict.type.sys_traffictype"
                    :key="dict.value"
                    :label="dict.label"
                    :value="dict.label"
                  ></el-option>
                </el-select>
              </template>
            </el-table-column>
            <el-table-column prop="traffictype2" label="返回交通工具" align="center" width="100">
            <el-table-column
              prop="traffictype2"
              label="返回交通工具"
              align="center"
              width="100"
            >
              <template slot-scope="scope">
                <el-select v-model="scope.row.traffictype2" placeholder="返回交通工具">
                  <el-option v-for="dict in dict.type.sys_traffictype" :key="dict.value" :label="dict.label"
                    :value="dict.label"></el-option>
                <el-select
                  v-model="scope.row.traffictype2"
                  placeholder="返回交通工具"
                >
                  <el-option
                    v-for="dict in dict.type.sys_traffictype"
                    :key="dict.value"
                    :label="dict.label"
                    :value="dict.label"
                  ></el-option>
                </el-select>
              </template>
            </el-table-column>
            <el-table-column prop="trafficexpense" label="交通费" align="center" width="80">
            <el-table-column
              prop="trafficexpense"
              label="交通费"
              align="center"
              width="80"
            >
              <template slot-scope="scope">
                <el-input v-model="scope.row.trafficexpense" placeholder="交通费" @blur="(val) => {
                  sumTotalFee();
                }
                  " />
                <el-input
                  v-model="scope.row.trafficexpense"
                  placeholder="交通费"
                  @blur="
                    val => {
                      sumTotalFee();
                    }
                  "
                />
              </template>
            </el-table-column>
            <!--
@@ -336,64 +675,138 @@
              </template>
            </el-table-column>
                                                                                                                                      -->
            <el-table-column prop="hotelexpense" label="住宿费" align="center" width="80">
            <el-table-column
              prop="hotelexpense"
              label="住宿费"
              align="center"
              width="80"
            >
              <template slot-scope="scope">
                <el-input v-model="scope.row.hotelexpense" placeholder="住宿费" @blur="(val) => {
                  sumTotalFee();
                }
                  " />
                <el-input
                  v-model="scope.row.hotelexpense"
                  placeholder="住宿费"
                  @blur="
                    val => {
                      sumTotalFee();
                    }
                  "
                />
              </template>
            </el-table-column>
            <el-table-column prop="foodexpenses" label="餐费报销" align="center" width="80">
            <el-table-column
              prop="foodexpenses"
              label="餐费报销"
              align="center"
              width="80"
            >
              <template slot-scope="scope">
                <el-input v-model="scope.row.foodexpenses" placeholder="伙食费报销" @blur="(val) => {
                  sumTotalFee();
                }
                  " />
                <el-input
                  v-model="scope.row.foodexpenses"
                  placeholder="伙食费报销"
                  @blur="
                    val => {
                      sumTotalFee();
                    }
                  "
                />
              </template>
            </el-table-column>
            <el-table-column prop="foodallowance" label="伙食补助" align="center" width="80">
            <el-table-column
              prop="foodallowance"
              label="伙食补助"
              align="center"
              width="80"
            >
              <template slot-scope="scope">
                <el-input v-model="scope.row.foodallowance" placeholder="伙食费补助" @blur="(val) => {
                  sumTotalFee();
                }
                  " />
                <el-input
                  v-model="scope.row.foodallowance"
                  placeholder="伙食费补助"
                  @blur="
                    val => {
                      sumTotalFee();
                    }
                  "
                />
              </template>
            </el-table-column>
            <el-table-column prop="otherexpense" label="公杂费补助" align="center" width="80">
            <el-table-column
              prop="otherexpense"
              label="公杂费补助"
              align="center"
              width="80"
            >
              <template slot-scope="scope">
                <el-input v-model="scope.row.otherexpense" placeholder="杂费" @blur="(val) => {
                  sumTotalFee();
                }
                  " />
                <el-input
                  v-model="scope.row.otherexpense"
                  placeholder="杂费"
                  @blur="
                    val => {
                      sumTotalFee();
                    }
                  "
                />
              </template>
            </el-table-column>
            <el-table-column prop="otherfeeamount" label="其他费用" align="center" width="90">
            <el-table-column
              prop="otherfeeamount"
              label="其他费用"
              align="center"
              width="90"
            >
              <template slot-scope="scope">
                <el-input v-model="scope.row.otherfeeamount" placeholder="其他费用" @blur="(val) => {
                  sumTotalFee();
                }
                  " />
                <el-input
                  v-model="scope.row.otherfeeamount"
                  placeholder="其他费用"
                  @blur="
                    val => {
                      sumTotalFee();
                    }
                  "
                />
              </template>
            </el-table-column>
            <el-table-column prop="departure" slot="" label="其他费用说明" align="center" width="120">
            <el-table-column
              prop="departure"
              slot=""
              label="其他费用说明"
              align="center"
              width="120"
            >
              <template slot-scope="scope">
                <el-input v-model="scope.row.otherfeedesc" placeholder="其他费用说明" />
                <el-input
                  v-model="scope.row.otherfeedesc"
                  placeholder="其他费用说明"
                />
              </template>
            </el-table-column>
            <el-table-column prop="total" label="合计" align="center" width="110">
            <el-table-column
              prop="total"
              label="合计"
              align="center"
              width="110"
            >
              <template slot-scope="scope">
                <el-input v-model="scope.row.total" placeholder="合计" />
              </template>
            </el-table-column>
            <el-table-column fixed="right" label="操作" align="center" width="120">
            <el-table-column
              fixed="right"
              label="操作"
              align="center"
              width="120"
            >
              <template slot-scope="scope">
                <el-button @click.native.prevent="
                  deleteRow(scope.$index, rbDetails, scope.row)
                  " type="text" size="small" :disabled="true">
                <el-button
                  @click.native.prevent="
                    deleteRow(scope.$index, rbDetails, scope.row)
                  "
                  type="text"
                  size="small"
                  :disabled="true"
                >
                  删除
                </el-button>
              </template>
@@ -438,74 +851,193 @@
        </el-row>
        <el-row style="margin-top: 30px">
          <el-table :data="rbPayees" border highlight-current-row>
            <el-table-column prop="orderno" slot="" label="序号" align="center" fixed width="65">
            <el-table-column
              prop="orderno"
              slot=""
              label="序号"
              align="center"
              fixed
              width="65"
            >
              <template slot-scope="scope">
                <el-input v-model="scope.row.orderno" placeholder="序号" />
              </template>
            </el-table-column>
            <!--主键、外键不展示-->
            <el-table-column prop="id" slot="" label="主键" align="center" fixed width="95" v-if="false">
            <el-table-column
              prop="id"
              slot=""
              label="主键"
              align="center"
              fixed
              width="95"
              v-if="false"
            >
              <template slot-scope="scope">
                <el-input v-model="scope.row.id" placeholder="id" />
              </template>
            </el-table-column>
            <el-table-column prop="rbid" slot="" label="外键" align="center" fixed width="95" v-if="false">
            <el-table-column
              prop="rbid"
              slot=""
              label="外键"
              align="center"
              fixed
              width="95"
              v-if="false"
            >
              <template slot-scope="scope">
                <el-input v-model="scope.row.rbid" placeholder="rbid" />
              </template>
            </el-table-column>
            <el-table-column prop="persontype" slot="" label="人员类别" align="center" fixed width="130">
            <el-table-column
              prop="persontype"
              slot=""
              label="人员类别"
              align="center"
              fixed
              width="130"
            >
              <template slot-scope="scope">
                <el-select v-model="scope.row.persontype" value-key="value" placeholder="人员类别"
                  @change="getPersons(scope.row)">
                  <el-option v-for="dict in dict.type.sys_travelexpensebelong" :key="dict.value" :label="dict.label"
                    :value="dict.label"></el-option>
                <el-select
                  v-model="scope.row.persontype"
                  value-key="value"
                  placeholder="人员类别"
                  @change="getPersons(scope.row)"
                >
                  <el-option
                    v-for="dict in dict.type.sys_travelexpensebelong"
                    :key="dict.value"
                    :label="dict.label"
                    :value="dict.label"
                  ></el-option>
                </el-select>
              </template>
            </el-table-column>
            <el-table-column prop="personname" slot="" label="收款人" align="center" fixed width="110">
            <el-table-column
              prop="personname"
              slot=""
              label="收款人"
              align="center"
              fixed
              width="110"
            >
              <template slot-scope="scope">
                <el-select v-model="scope.row.personname" clearable filterable allow-create ref="getReportname"
                  default-first-option placeholder="请选择" @change="getAccountinfo2(scope.row, scope.row.persontype)">
                  <el-option v-for="item in personsSel" :key="item.reportNo" :label="item.reportName"
                    :value="item.reportName">
                <el-select
                  v-model="scope.row.personname"
                  clearable
                  filterable
                  allow-create
                  ref="getReportname"
                  default-first-option
                  placeholder="请选择"
                  @change="getAccountinfo2(scope.row, scope.row.persontype)"
                >
                  <el-option
                    v-for="item in personsSel"
                    :key="item.reportNo"
                    :label="item.reportName"
                    :value="item.reportName"
                  >
                  </el-option>
                </el-select>
              </template>
            </el-table-column>
            <el-table-column prop="bankname" slot="" label="银行名称" align="center" fixed width="200">
            <el-table-column
              prop="bankname"
              slot=""
              label="银行名称"
              align="center"
              fixed
              width="200"
            >
              <template slot-scope="scope">
                <el-input v-model="scope.row.bankname" placeholder="银行名称" />
              </template>
            </el-table-column>
            <el-table-column prop="bankcardno" slot="" label="银行卡号" align="center" fixed width="200">
            <el-table-column
              prop="bankcardno"
              slot=""
              label="银行卡号"
              align="center"
              fixed
              width="200"
            >
              <template slot-scope="scope">
                <el-input v-model="scope.row.bankcardno" placeholder="银行卡号" />
                <el-input
                  v-model="scope.row.bankcardno"
                  placeholder="银行卡号"
                />
              </template>
            </el-table-column>
            <el-table-column prop="amount" slot="" label="打款金额" align="center" fixed width="130">
            <el-table-column
              prop="amount"
              slot=""
              label="打款金额"
              align="center"
              fixed
              width="130"
            >
              <template slot-scope="scope">
                <el-input v-model="scope.row.amount" placeholder="打款金额" />
              </template>
            </el-table-column>
            <el-table-column prop="remark" slot="" label="请款说明" align="center" fixed width="280">
            <el-table-column
              prop="remark"
              slot=""
              label="请款说明"
              align="center"
              fixed
              width="280"
            >
              <template slot-scope="scope">
                <el-input v-model="scope.row.remark" placeholder="说明" />
              </template>
            </el-table-column><el-table-column prop="paiddate" slot="" label="打款日期" fixed align="center" width="150">
              </template> </el-table-column
            ><el-table-column
              prop="paiddate"
              slot=""
              label="打款日期"
              fixed
              align="center"
              width="150"
            >
              <template slot-scope="scope">
                <el-date-picker clearable size="small" style="width: 100%" v-model="scope.row.paiddate" type="date"
                  value-format="yyyy-MM-dd HH:mm:ss" placeholder="打款日期" :disabled="true" @blur="getallowance(scope.row)">
                <el-date-picker
                  clearable
                  size="small"
                  style="width: 100%"
                  v-model="scope.row.paiddate"
                  type="date"
                  value-format="yyyy-MM-dd HH:mm:ss"
                  placeholder="打款日期"
                  :disabled="true"
                  @blur="getallowance(scope.row)"
                >
                </el-date-picker>
              </template>
            </el-table-column>
            <el-table-column label="操作" align="center" width="100" v-if="dialogType == 'edit'">
            <el-table-column
              label="操作"
              align="center"
              width="100"
              v-if="dialogType == 'edit'"
            >
              <template slot-scope="scope">
                <el-button type="text" size="mini" @click="addPayeeRow(scope.$index)">新增</el-button>
                <el-button @click.native.prevent="deletePayeeRow(scope.$index, rbPayees, scope.row)
                  " type="text" size="small">
                <el-button
                  type="text"
                  size="mini"
                  @click="addPayeeRow(scope.$index)"
                  >新增</el-button
                >
                <el-button
                  @click.native.prevent="
                    deletePayeeRow(scope.$index, rbPayees, scope.row)
                  "
                  type="text"
                  size="small"
                >
                  删除
                </el-button>
              </template>
@@ -519,12 +1051,31 @@
          <el-col :span="14">
            <el-form-item label="附件" align="left" prop="annexfiles">
              <!-- <file-upload ref="fileUpload" :fileType=fileType :limit="1" :on-success="handleUploadSuccess"></file-upload> -->
              <el-upload size="mini" class="upload-demo" :action="uploadFileUrl" :file-list="fileList" multiple :limit="20"
                :headers="headers" :on-success="(response, file, fileList) =>
                  uploadSccess(response, file, fileList)
                  " :on-preview="downFile" :disabled='dialogType == "detail"' :on-error="handleUploadError"
                :on-exceed="handleExceed" :on-remove="remove" accept="image/*,.pdf">
                <el-button :disabled='dialogType == "detail"' size="small" type="primary">上传</el-button>
              <el-upload
                size="mini"
                class="upload-demo"
                :action="uploadFileUrl"
                :file-list="fileList"
                multiple
                :limit="20"
                :headers="headers"
                :on-success="
                  (response, file, fileList) =>
                    uploadSccess(response, file, fileList)
                "
                :on-preview="downFile"
                :disabled="dialogType == 'detail'"
                :on-error="handleUploadError"
                :on-exceed="handleExceed"
                :on-remove="remove"
                accept="image/*,.pdf"
              >
                <el-button
                  :disabled="dialogType == 'detail'"
                  size="small"
                  type="primary"
                  >上传</el-button
                >
              </el-upload>
            </el-form-item>
          </el-col>
@@ -535,16 +1086,37 @@
          <el-col :span="20">报销审批记录:</el-col>
        </el-row>
        <el-table :data="fundflowList" border>
          <el-table-column label="审核人" align="center" width="120" prop="checkusername" />
          <el-table-column label="审核日期" align="center" width="160" prop="createTime" />
          <el-table-column label="审核结果" align="center" width="200" prop="flowconclusion"><template
              slot-scope="scope"><span v-if="scope.row.flowconclusion == 1">通过</span><span
                v-if="scope.row.flowconclusion == 2">不通过</span></template>
          <el-table-column
            label="审核人"
            align="center"
            width="120"
            prop="checkusername"
          />
          <el-table-column
            label="审核日期"
            align="center"
            width="160"
            prop="createTime"
          />
          <el-table-column
            label="审核结果"
            align="center"
            width="200"
            prop="flowconclusion"
            ><template slot-scope="scope"
              ><span v-if="scope.row.flowconclusion == 1">通过</span
              ><span v-if="scope.row.flowconclusion == 2"
                >不通过</span
              ></template
            >
          </el-table-column>
          <el-table-column label="审核备注" align="center" prop="flowcontent" />
        </el-table>
        <el-row style="margin-top: 25px; margin-bottom: 5px" v-if="dialogType == 'edit'">
        <el-row
          style="margin-top: 25px; margin-bottom: 5px"
          v-if="dialogType == 'edit'"
        >
          <el-col :span="7">
            <el-form-item label="审核结果" align="left">
              <el-radio-group v-model="checkObj.flowlevelone" align="left">
@@ -563,7 +1135,12 @@
        </el-row>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="checksubmit" v-if="dialogType == 'edit'">保 存</el-button>
        <el-button
          type="primary"
          @click="checksubmit"
          v-if="dialogType == 'edit'"
          >保 存</el-button
        >
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
@@ -583,7 +1160,8 @@
  //获取地市对应基准金额
  getstandardRMB,
  checkfund,
  listbypowerone, addShareData
  listbypowerone,
  addShareData
} from "@/api/project/reimbursement";
import {
  provinceAndCityData,
@@ -591,7 +1169,7 @@
  provinceAndCityDataPlus,
  regionDataPlus,
  CodeToText,
  TextToCode,
  TextToCode
} from "element-china-area-data";
import {
  listFundflow,
@@ -599,7 +1177,7 @@
  delFundflow,
  addFundflow,
  updateFundflow,
  exportFundflow,
  exportFundflow
} from "@/api/project/fundflow";
import {
  listReimbursementdetail,
@@ -611,16 +1189,20 @@
  delReimbursementdetail,
  delReimbursementdetailrbid,
  exportReimbursementdetail,
  getTravelStandard,
  getTravelStandard
} from "@/api/project/reimbursementdetail";
import { listReimbursementpayee, addReimbursementpayee, updateReimbursementpayee } from "@/api/project/reimbursementpayee";
import {
  listReimbursementpayee,
  addReimbursementpayee,
  updateReimbursementpayee
} from "@/api/project/reimbursementpayee";
import Li_area_select from "@/components/Address";
import { getUserProfile } from "@/api/system/user";
import { getToken } from "@/utils/auth";
export default {
  components: {
    Li_area_select,
    Li_area_select
  },
  name: "Funddetail",
  dicts: [
@@ -636,7 +1218,7 @@
      checkObj: {
        flowlevelone: null,
        flowconclusion: null,
        fundid: null,
        fundid: null
      },
      fundflowList: [],
      checkopen: false,
@@ -645,7 +1227,7 @@
      searchAddress: {
        sheng: "",
        shi: "",
        qu: "",
        qu: ""
      },
      value1: "",
      // 遮罩层
@@ -671,16 +1253,16 @@
      checkFlagOptions: [
        {
          value: 0,
          label: "已审批",
          label: "已审批"
        },
        {
          value: 1,
          label: "待审批",
          label: "待审批"
        },
        {
          value: 2,
          label: "全部",
        },
          label: "全部"
        }
      ],
      // 查询参数
      queryParams: {
@@ -689,11 +1271,11 @@
        APPLICANT: null,
        APPLICATIONBEGTIME: null,
        APPLICATIONENDTIME: null,
        CHECKFLAG: 1,
        CHECKFLAG: 1
      },
      //查询付款
      queryParamsPayee: {
        rbid: null,
        rbid: null
      },
      // 表单参数
      form: {},
@@ -705,7 +1287,7 @@
        applicationType: null,
        donorno: null,
        donorname: null,
        bigstrmoney: null,
        bigstrmoney: null
      },
      rbDetails: [],
      rbPayees: [],
@@ -717,13 +1299,13 @@
      //文件列表
      fileList: [],
      headers: {
        Authorization: "Bearer " + getToken(),
        Authorization: "Bearer " + getToken()
      },
      standardlevel: 0,
      createTime: [],
      //弹窗详情--show;edit
      dialogType: "show",
      dialogType: "show"
    };
  },
  created() {
@@ -740,9 +1322,8 @@
    },
    getList() {
      this.loading = true;
      console.log("this.queryParams", this.queryParams)
      listbypowerone(this.queryParams).then((response) => {
      console.log("this.queryParams", this.queryParams);
      listbypowerone(this.queryParams).then(response => {
        this.reimbursementList = response.rows;
        this.total = response.total;
        this.loading = false;
@@ -750,7 +1331,7 @@
    },
    getUserProfile() {
      getUserProfile().then((response) => {
      getUserProfile().then(response => {
        this.standardlevel = response.data.standardlevel;
      });
    },
@@ -759,7 +1340,7 @@
      let checkfundobj = {
        flowconclusion: this.checkObj.flowlevelone,
        flowcontent: this.checkObj.flowconclusion,
        fundid: this.checkObj.fundid,
        fundid: this.checkObj.fundid
      };
      if (
@@ -771,7 +1352,7 @@
        return;
      }
      checkfund(checkfundobj).then((res) => {
      checkfund(checkfundobj).then(res => {
        this.reset();
        this.open = false;
        this.getList();
@@ -785,7 +1366,7 @@
    gettable(e) {
      const id = e.id;
      getdownload(e.id).then((res) => {
      getdownload(e.id).then(res => {
        var fileUrl = res;
        //获取当前网址
        var urlBase = process.env.VUE_APP_BASE_API;
@@ -846,7 +1427,7 @@
        remark: null,
        recordstatus: "0",
        uploadflag: null,
        uploadtime: null,
        uploadtime: null
      };
      this.rbDetails = [
@@ -855,7 +1436,7 @@
          searchAddress: {
            sheng: "",
            shi: "",
            qu: "",
            qu: ""
          },
          id: null,
          rbid: null,
@@ -881,22 +1462,23 @@
          uploadTime: null,
          uploadFlag: null,
          uploadFlag: null,
          total: 0,
        },
          total: 0
        }
      ];
      this.rbDetails = [{
        id: null,
        personType: null,
        personname: null,
        bankname: null,
        bankcardno: null,
        paiddate: null,
        remark: null,
        orderno: null,
        personname: null,
        amount: null,
      },
      this.rbDetails = [
        {
          id: null,
          personType: null,
          personname: null,
          bankname: null,
          bankcardno: null,
          paiddate: null,
          remark: null,
          orderno: null,
          personname: null,
          amount: null
        }
      ];
      this.resetForm("form");
    },
@@ -912,10 +1494,10 @@
      let listFundflowparams = {
        // fundid:row.id,
        fundid: 75,
        fundtype: 1,
        fundtype: 1
      };
      listFundflow(listFundflowparams).then((res) => {
      listFundflow(listFundflowparams).then(res => {
        this.fundflowList = res.rows;
      });
    },
@@ -932,7 +1514,7 @@
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map((item) => item.id);
      this.ids = selection.map(item => item.id);
      this.single = selection.length !== 1;
      this.multiple = !selection.length;
    },
@@ -956,37 +1538,43 @@
      this.checkObj.fundid = id;
      let listFundflowparams = {
        fundid: row.id,
        fundtype: 1,
        fundtype: 1
      };
      listFundflow(listFundflowparams).then((res) => {
      listFundflow(listFundflowparams).then(res => {
        this.fundflowList = res.rows;
      });
      this.reset();
      getReimbursement(id).then((response1) => {
      getReimbursement(id).then(response1 => {
        this.form = response1.data;
        this.open = true;
        this.title = "修改报销申请";
        let ids = response1.data.id;
        this.fileList = this.form.annexfiles ? this.form.annexfiles.split(",").map(item => ({ url: item, name: item })) : []
        this.fileList = this.form.annexfiles
          ? this.form.annexfiles
              .split(",")
              .map(item => ({ url: item, name: item }))
          : [];
        getReimbursementdetaillist(ids).then((res2) => {
        getReimbursementdetaillist(ids).then(res2 => {
          this.rbDetails = res2.data;
          for (let i = 0; i < this.rbDetails.length; i++) {
            this.rbDetails[i].index = i;
            this.rbDetails[i].searchAddress = {
              sheng: this.rbDetails[i].travelprovincename,
              shi: this.rbDetails[i].travelcityname,
              qu: this.rbDetails[i].traveltownname,
              qu: this.rbDetails[i].traveltownname
            };
          }
          //this.sumTotalFee();
        });
        //获取报销打款信息
        this.queryParamsPayee.rbid = ids;
        listReimbursementpayee(this.queryParamsPayee).then((res) => {
        listReimbursementpayee(this.queryParamsPayee).then(res => {
          this.rbPayees = res.rows;
          if (this.rbPayees.length == 0) { this.addPayeeRow(0); }
          if (this.rbPayees.length == 0) {
            this.addPayeeRow(0);
          }
        });
      });
    },
@@ -996,17 +1584,17 @@
      //加载审核记录
      let listFundflowparams = {
        fundid: row.id,
        fundtype: 1,
        fundtype: 1
      };
      listFundflow(listFundflowparams).then((res) => {
      listFundflow(listFundflowparams).then(res => {
        this.fundflowList = res.rows;
      });
      getReimbursement(row.id).then((response) => {
      getReimbursement(row.id).then(response => {
        this.form = response.data;
        this.open = true;
        this.title = "查看报销申请";
        let ids = response.data.id;
        getReimbursementdetaillist(ids).then((res) => {
        getReimbursementdetaillist(ids).then(res => {
          this.rbDetails = res.data;
          console.log("getReimbursementdetaillist", res);
          for (let i = 0; i < this.rbDetails.length; i++) {
@@ -1014,29 +1602,31 @@
            this.rbDetails[i].searchAddress = {
              sheng: this.rbDetails[i].travelprovincename,
              shi: this.rbDetails[i].travelcityname,
              qu: this.rbDetails[i].traveltownname,
              qu: this.rbDetails[i].traveltownname
            };
          }
        });
        //获取报销打款信息
        this.queryParamsPayee.rbid = ids;
        listReimbursementpayee(this.queryParamsPayee).then((res) => {
        listReimbursementpayee(this.queryParamsPayee).then(res => {
          this.rbPayees = res.rows;
          if (this.rbPayees.length == 0) { this.addPayeeRow(0); }
          if (this.rbPayees.length == 0) {
            this.addPayeeRow(0);
          }
        });
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate((valid) => {
      this.$refs["form"].validate(valid => {
        if (valid) {
          //  this.rbDetails.forEach(item=>{
          //    item.destination = this.searchAddress.sheng
          //  })
          if (this.form.id != null) {
            updateReimbursement(this.form).then((response) => {
            updateReimbursement(this.form).then(response => {
              for (let i = 0; i < this.rbDetails.length; i++) {
                if (this.rbDetails[i].rbid != null) {
                  updateReimbursementdetail(this.rbDetails[i]);
@@ -1050,11 +1640,11 @@
              this.getList();
            });
          } else {
            addReimbursement(this.form).then((response) => {
            addReimbursement(this.form).then(response => {
              this.$modal.msgSuccess("新增成功");
              this.open = false;
              this.getList();
              listReimbursementdetailid().then((res) => {
              listReimbursementdetailid().then(res => {
                let id = res.data;
                for (let i = 0; i < this.rbDetails.length; i++) {
                  this.rbDetails[i].rbid = id;
@@ -1073,7 +1663,7 @@
      const ids = row.id || this.ids;
      this.$modal
        .confirm('是否确认删除报销申请编号为"' + ids + '"的数据项?')
        .then(function () {
        .then(function() {
          // 删除details内的数据
          return delReimbursement(ids);
        })
@@ -1082,7 +1672,7 @@
          this.getList();
          this.$modal.msgSuccess("删除成功");
        })
        .catch(() => { });
        .catch(() => {});
    },
    /** 导出按钮操作 */
    handleExport() {
@@ -1093,11 +1683,11 @@
          this.exportLoading = true;
          return exportReimbursement(queryParams);
        })
        .then((response) => {
        .then(response => {
          this.$download.name(response.msg);
          this.exportLoading = false;
        })
        .catch(() => { });
        .catch(() => {});
    },
    //新增一行
@@ -1107,7 +1697,7 @@
        searchAddress: {
          sheng: "",
          shi: "",
          qu: "",
          qu: ""
        },
        id: null,
        rbid: null,
@@ -1134,7 +1724,7 @@
        updateTime: null,
        uploadFlag: null,
        uploadTime: null,
        total: 0,
        total: 0
      };
      this.rbDetails.push(rowData);
    },
@@ -1143,7 +1733,7 @@
      this.$confirm("是否确认删除?", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning",
        type: "warning"
      })
        .then(() => {
          rows.splice(index, 1);
@@ -1183,18 +1773,14 @@
            totalFee += parseFloat(this.rbDetails[i].otherfeeamount);
          }
          this.rbDetails[i].total = parseFloat(totalFee).toFixed(2);
          this.$set(
            this.rbDetails,
            scope.$index,
            this.rbDetails[i]
          );
          this.$set(this.rbDetails, scope.$index, this.rbDetails[i]);
          if (!isNaN(parseFloat(this.rbDetails[i].total))) {
            allSum += parseFloat(this.rbDetails[i].total);
          }
        }
        this.form.amountrequested = allSum.toFixed(2);
        this.form.bigstrmoney = this.convertCurrency(this.form.amountrequested);
      } catch { }
      } catch {}
    },
    //金额大写
@@ -1298,10 +1884,10 @@
    },
    //附件处理
    handleUploadError() { },
    handleUploadError() {},
    remove(file) {
      this.fileList.splice(this.fileList.indexOf(file), 1)
      this.fileList.splice(this.fileList.indexOf(file), 1);
    },
    handleExceed() {
@@ -1317,20 +1903,19 @@
        this.$modal.msgSuccess(response.msg);
        this.fileList.push({ name: response.fileName, url: response.fileName });
      } else {
        console.log(response.msg);;
        console.log(response.msg);
      }
    },
    // 下载文件
    downFile(item) {
      const url = process.env.VUE_APP_BASE_API + item.url
      var a = document.createElement('a');
      var event = new MouseEvent('click');
      const url = process.env.VUE_APP_BASE_API + item.url;
      var a = document.createElement("a");
      var event = new MouseEvent("click");
      a.download = item.name;
      a.href = url;
      a.dispatchEvent(event);
    },
  },
    }
  }
};
</script>
</script>