|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <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"> | 
|---|
|  |  |  | <el-input v-model="queryParams.travelers" placeholder="请输入出差人" clearable size="small" | 
|---|
|  |  |  | @keyup.enter.native="handleQuery" /> | 
|---|
|  |  |  | </el-form-item> | 
|---|
|  |  |  | </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> | 
|---|
|  |  |  | <el-col :span="5"> | 
|---|
|  |  |  | <el-form-item label="捐献案例" prop="name"> | 
|---|
|  |  |  | <el-input | 
|---|
|  |  |  | v-model="queryParams.donorname" | 
|---|
|  |  |  | placeholder="请输入捐献者姓名" | 
|---|
|  |  |  | clearable | 
|---|
|  |  |  | size="small" | 
|---|
|  |  |  | @keyup.enter.native="handleQuery" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </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-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-form-item label="预审状态" prop="checkstatus" style="float: left"> | 
|---|
|  |  |  | <el-select | 
|---|
|  |  |  | v-model="queryParams.checkstatus" | 
|---|
|  |  |  | placeholder="请选择" | 
|---|
|  |  |  | style="width: 100%" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <el-option | 
|---|
|  |  |  | v-for="item in checkmaterials" | 
|---|
|  |  |  | :key="item.value" | 
|---|
|  |  |  | :label="item.label" | 
|---|
|  |  |  | :value="item.value" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | </el-option> | 
|---|
|  |  |  | </el-select> | 
|---|
|  |  |  | </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-option> | 
|---|
|  |  |  | </el-select> | 
|---|
|  |  |  | </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-form-item> | 
|---|
|  |  |  | </el-col> | 
|---|
|  |  |  | </el-row> | 
|---|
|  |  |  | <el-row> | 
|---|
|  |  |  | <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="8"> | 
|---|
|  |  |  | <el-form-item label="申请日期" prop="applyTime"> | 
|---|
|  |  |  | <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="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> | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <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"> | 
|---|
|  |  |  | 
|---|
|  |  |  | <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="bh" /> | 
|---|
|  |  |  | <el-table-column | 
|---|
|  |  |  | label="申请日期" | 
|---|
|  |  |  | width="120" | 
|---|
|  |  |  | align="center" | 
|---|
|  |  |  | prop="applyTime" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <template slot-scope="scope"> | 
|---|
|  |  |  | <span>{{ parseTime(scope.row.createTime, "{y}-{m}-{d}") }}</span> | 
|---|
|  |  |  | <span>{{ parseTime(scope.row.applyTime, "{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="amountrequested" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | <el-table-column | 
|---|
|  |  |  | label="经办人" | 
|---|
|  |  |  | width="120" | 
|---|
|  |  |  | align="center" | 
|---|
|  |  |  | prop="username" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | <el-table-column | 
|---|
|  |  |  | label="申请材料状态" | 
|---|
|  |  |  | width="140" | 
|---|
|  |  |  | align="center" | 
|---|
|  |  |  | prop="checkstatus" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <template slot-scope="scope"> | 
|---|
|  |  |  | <dict-tag :options="dict.type.sys_recordstatus" :value="scope.row.recordstatus" /> | 
|---|
|  |  |  | <dict-tag | 
|---|
|  |  |  | :options="dict.type.sys_stage_type" | 
|---|
|  |  |  | :value="scope.row.checkstatus" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </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="140" | 
|---|
|  |  |  | align="center" | 
|---|
|  |  |  | prop="checkFlag" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <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="reason"> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column label="捐献者" width="120" align="center" prop="donorname"> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column label="出差事由" align="center" prop="reason" /> | 
|---|
|  |  |  | <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="donorname" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | <!-- | 
|---|
|  |  |  | <el-table-column label="出差人" width="180" align="center" prop="travelers"> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | 
|---|
|  |  |  | <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" | 
|---|
|  |  |  | @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-form-item label="申请日期" prop="applyTime"> | 
|---|
|  |  |  | <el-date-picker | 
|---|
|  |  |  | style="width: 100%" | 
|---|
|  |  |  | v-model="form.applyTime" | 
|---|
|  |  |  | :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> | 
|---|
|  |  |  | 
|---|
|  |  |  | <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> | 
|---|
|  |  |  | 
|---|
|  |  |  | <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="领款金额" /> | 
|---|
|  |  |  | 
|---|
|  |  |  | </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"> | 
|---|
|  |  |  | 
|---|
|  |  |  | </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> | 
|---|
|  |  |  | <!-- | 
|---|
|  |  |  | 
|---|
|  |  |  | </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> | 
|---|
|  |  |  | 
|---|
|  |  |  | </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> | 
|---|
|  |  |  | 
|---|
|  |  |  | <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> | 
|---|
|  |  |  | 
|---|
|  |  |  | <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"> | 
|---|
|  |  |  | 
|---|
|  |  |  | </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> | 
|---|
|  |  |  | 
|---|
|  |  |  | //获取地市对应基准金额 | 
|---|
|  |  |  | getstandardRMB, | 
|---|
|  |  |  | checkfund, | 
|---|
|  |  |  | listbypowerone, addShareData | 
|---|
|  |  |  | listbypowerone, | 
|---|
|  |  |  | addShareData | 
|---|
|  |  |  | } from "@/api/project/reimbursement"; | 
|---|
|  |  |  | import { | 
|---|
|  |  |  | provinceAndCityData, | 
|---|
|  |  |  | 
|---|
|  |  |  | provinceAndCityDataPlus, | 
|---|
|  |  |  | regionDataPlus, | 
|---|
|  |  |  | CodeToText, | 
|---|
|  |  |  | TextToCode, | 
|---|
|  |  |  | TextToCode | 
|---|
|  |  |  | } from "element-china-area-data"; | 
|---|
|  |  |  | import { | 
|---|
|  |  |  | listFundflow, | 
|---|
|  |  |  | 
|---|
|  |  |  | delFundflow, | 
|---|
|  |  |  | addFundflow, | 
|---|
|  |  |  | updateFundflow, | 
|---|
|  |  |  | exportFundflow, | 
|---|
|  |  |  | exportFundflow | 
|---|
|  |  |  | } from "@/api/project/fundflow"; | 
|---|
|  |  |  | import { | 
|---|
|  |  |  | listReimbursementdetail, | 
|---|
|  |  |  | 
|---|
|  |  |  | 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"; | 
|---|
|  |  |  | import { setItem, grtItem, removeItem } from "@/utils/storage.js"; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | export default { | 
|---|
|  |  |  | components: { | 
|---|
|  |  |  | Li_area_select, | 
|---|
|  |  |  | Li_area_select | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | name: "Funddetail", | 
|---|
|  |  |  | dicts: [ | 
|---|
|  |  |  | 
|---|
|  |  |  | "sys_0_1", | 
|---|
|  |  |  | "sys_fund_type", | 
|---|
|  |  |  | "sys_financeitemtype", | 
|---|
|  |  |  | "sys_travelexpensebelong" | 
|---|
|  |  |  | "sys_travelexpensebelong", | 
|---|
|  |  |  | "sys_stage_type" | 
|---|
|  |  |  | ], | 
|---|
|  |  |  | data() { | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | checkObj: { | 
|---|
|  |  |  | flowlevelone: null, | 
|---|
|  |  |  | flowconclusion: null, | 
|---|
|  |  |  | fundid: null, | 
|---|
|  |  |  | fundid: null | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | fundflowList: [], | 
|---|
|  |  |  | checkopen: false, | 
|---|
|  |  |  | 
|---|
|  |  |  | searchAddress: { | 
|---|
|  |  |  | sheng: "", | 
|---|
|  |  |  | shi: "", | 
|---|
|  |  |  | qu: "", | 
|---|
|  |  |  | qu: "" | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | value1: "", | 
|---|
|  |  |  | // 遮罩层 | 
|---|
|  |  |  | 
|---|
|  |  |  | checkFlagOptions: [ | 
|---|
|  |  |  | { | 
|---|
|  |  |  | value: 0, | 
|---|
|  |  |  | label: "已审批", | 
|---|
|  |  |  | label: "已审批" | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | value: 1, | 
|---|
|  |  |  | label: "待审批", | 
|---|
|  |  |  | label: "待审批" | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | value: 2, | 
|---|
|  |  |  | label: "全部", | 
|---|
|  |  |  | label: "全部" | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ], | 
|---|
|  |  |  | checkmaterials: [ | 
|---|
|  |  |  | { | 
|---|
|  |  |  | value: 1, | 
|---|
|  |  |  | label: "待审核" | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | value: 2, | 
|---|
|  |  |  | label: "审核通过等待材料" | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | value: 3, | 
|---|
|  |  |  | label: "已收到材料" | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ], | 
|---|
|  |  |  | // 查询参数 | 
|---|
|  |  |  | queryParams: { | 
|---|
|  |  |  | 
|---|
|  |  |  | APPLICANT: null, | 
|---|
|  |  |  | APPLICATIONBEGTIME: null, | 
|---|
|  |  |  | APPLICATIONENDTIME: null, | 
|---|
|  |  |  | CHECKFLAG: 1, | 
|---|
|  |  |  | CHECKFLAG: 1 | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | //查询付款 | 
|---|
|  |  |  | queryParamsPayee: { | 
|---|
|  |  |  | rbid: null, | 
|---|
|  |  |  | rbid: null | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // 表单参数 | 
|---|
|  |  |  | form: {}, | 
|---|
|  |  |  | 
|---|
|  |  |  | applicationType: null, | 
|---|
|  |  |  | donorno: null, | 
|---|
|  |  |  | donorname: null, | 
|---|
|  |  |  | bigstrmoney: null, | 
|---|
|  |  |  | bigstrmoney: null | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | rbDetails: [], | 
|---|
|  |  |  | rbPayees: [], | 
|---|
|  |  |  | 
|---|
|  |  |  | //文件列表 | 
|---|
|  |  |  | fileList: [], | 
|---|
|  |  |  | headers: { | 
|---|
|  |  |  | Authorization: "Bearer " + getToken(), | 
|---|
|  |  |  | Authorization: "Bearer " + getToken() | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | standardlevel: 0, | 
|---|
|  |  |  | createTime: [], | 
|---|
|  |  |  | applyTime: [], | 
|---|
|  |  |  | //弹窗详情--show;edit | 
|---|
|  |  |  | dialogType: "show", | 
|---|
|  |  |  | dialogType: "show" | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | created() { | 
|---|
|  |  |  | this.getList(); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | created() {}, | 
|---|
|  |  |  | mounted() { | 
|---|
|  |  |  | if (grtItem("travelexpensecheck")) { | 
|---|
|  |  |  | this.queryParams = grtItem("travelexpensecheck"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //this.getlistDonatebaseinfo(); | 
|---|
|  |  |  | this.getList(); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | selectapplication() { | 
|---|
|  |  |  | this.queryParams.APPLICATIONBEGTIME = this.createTime[0]; | 
|---|
|  |  |  | this.queryParams.APPLICATIONENDTIME = this.createTime[1]; | 
|---|
|  |  |  | this.queryParams.APPLICATIONBEGTIME = this.applyTime[0]; | 
|---|
|  |  |  | this.queryParams.APPLICATIONENDTIME = this.applyTime[1]; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | 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 => { | 
|---|
|  |  |  | removeItem("travelexpensecheck"); | 
|---|
|  |  |  | setItem("travelexpensecheck", this.queryParams); | 
|---|
|  |  |  | this.reimbursementList = response.rows; | 
|---|
|  |  |  | this.total = response.total; | 
|---|
|  |  |  | this.loading = false; | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | getUserProfile() { | 
|---|
|  |  |  | getUserProfile().then((response) => { | 
|---|
|  |  |  | getUserProfile().then(response => { | 
|---|
|  |  |  | this.standardlevel = response.data.standardlevel; | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | 
|---|
|  |  |  | let checkfundobj = { | 
|---|
|  |  |  | flowconclusion: this.checkObj.flowlevelone, | 
|---|
|  |  |  | flowcontent: this.checkObj.flowconclusion, | 
|---|
|  |  |  | fundid: this.checkObj.fundid, | 
|---|
|  |  |  | fundid: this.checkObj.fundid | 
|---|
|  |  |  | }; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if ( | 
|---|
|  |  |  | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | checkfund(checkfundobj).then((res) => { | 
|---|
|  |  |  | checkfund(checkfundobj).then(res => { | 
|---|
|  |  |  | this.reset(); | 
|---|
|  |  |  | this.open = false; | 
|---|
|  |  |  | this.getList(); | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 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; | 
|---|
|  |  |  | 
|---|
|  |  |  | var aEle = document.createElement("a"); | 
|---|
|  |  |  | aEle.href = | 
|---|
|  |  |  | curWWWPath.substring(0, pos) + urlBase + fileUrl["downloadUrl"]; | 
|---|
|  |  |  | aEle.click(); | 
|---|
|  |  |  | console.log(aEle.href); | 
|---|
|  |  |  | // 添加Authorization头部 | 
|---|
|  |  |  | fetch(aEle.href, { | 
|---|
|  |  |  | headers: this.headers | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | .then(response => { | 
|---|
|  |  |  | // 将文件下载链接作为blob对象进行下载 | 
|---|
|  |  |  | return response.blob(); | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | .then(blob => { | 
|---|
|  |  |  | const url = window.URL.createObjectURL(new Blob([blob])); | 
|---|
|  |  |  | console.log(url); | 
|---|
|  |  |  | const link = document.createElement("a"); | 
|---|
|  |  |  | link.href = url; | 
|---|
|  |  |  | const name=fileUrl["downloadName"] | 
|---|
|  |  |  | link.setAttribute("download", name); // 替换file.pdf为实际的文件名 | 
|---|
|  |  |  | document.body.appendChild(link); | 
|---|
|  |  |  | link.click(); | 
|---|
|  |  |  | link.parentNode.removeChild(link); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | remark: null, | 
|---|
|  |  |  | recordstatus: "0", | 
|---|
|  |  |  | uploadflag: null, | 
|---|
|  |  |  | uploadtime: null, | 
|---|
|  |  |  | uploadtime: null | 
|---|
|  |  |  | }; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | this.rbDetails = [ | 
|---|
|  |  |  | 
|---|
|  |  |  | searchAddress: { | 
|---|
|  |  |  | sheng: "", | 
|---|
|  |  |  | shi: "", | 
|---|
|  |  |  | qu: "", | 
|---|
|  |  |  | qu: "" | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | id: null, | 
|---|
|  |  |  | rbid: null, | 
|---|
|  |  |  | 
|---|
|  |  |  | 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"); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | 
|---|
|  |  |  | let listFundflowparams = { | 
|---|
|  |  |  | // fundid:row.id, | 
|---|
|  |  |  | fundid: 75, | 
|---|
|  |  |  | fundtype: 1, | 
|---|
|  |  |  | fundtype: 1 | 
|---|
|  |  |  | }; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | listFundflow(listFundflowparams).then((res) => { | 
|---|
|  |  |  | listFundflow(listFundflowparams).then(res => { | 
|---|
|  |  |  | this.fundflowList = res.rows; | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | /** 重置按钮操作 */ | 
|---|
|  |  |  | resetQuery() { | 
|---|
|  |  |  | this.resetForm("queryForm"); | 
|---|
|  |  |  | this.handleQuery(); | 
|---|
|  |  |  | (this.queryParams = { | 
|---|
|  |  |  | pageNum: 1, | 
|---|
|  |  |  | pageSize: 10, | 
|---|
|  |  |  | APPLICANT: null, | 
|---|
|  |  |  | APPLICATIONBEGTIME: null, | 
|---|
|  |  |  | APPLICATIONENDTIME: null, | 
|---|
|  |  |  | CHECKFLAG: 1 | 
|---|
|  |  |  | }), | 
|---|
|  |  |  | this.handleQuery(); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // 多选框选中数据 | 
|---|
|  |  |  | 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; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | 
|---|
|  |  |  | this.open = true; | 
|---|
|  |  |  | this.title = "添加报销申请"; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** 修改按钮操作 */ | 
|---|
|  |  |  | handleUpdate(row) { | 
|---|
|  |  |  | this.$router.push({ | 
|---|
|  |  |  | 
|---|
|  |  |  | 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); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | //查看审核详情 | 
|---|
|  |  |  | handleShow(row) { | 
|---|
|  |  |  | this.$router.push({ | 
|---|
|  |  |  | path: "/finance/travelexpenseapply/travelexpensedetail/", | 
|---|
|  |  |  | query: { id: row.id, pos: 3 } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | this.dialogType = "show"; | 
|---|
|  |  |  | //加载审核记录 | 
|---|
|  |  |  | 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++) { | 
|---|
|  |  |  | 
|---|
|  |  |  | 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]); | 
|---|
|  |  |  | 
|---|
|  |  |  | 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; | 
|---|
|  |  |  | 
|---|
|  |  |  | const ids = row.id || this.ids; | 
|---|
|  |  |  | this.$modal | 
|---|
|  |  |  | .confirm('是否确认删除报销申请编号为"' + ids + '"的数据项?') | 
|---|
|  |  |  | .then(function () { | 
|---|
|  |  |  | .then(function() { | 
|---|
|  |  |  | // 删除details内的数据 | 
|---|
|  |  |  | return delReimbursement(ids); | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | 
|---|
|  |  |  | this.getList(); | 
|---|
|  |  |  | this.$modal.msgSuccess("删除成功"); | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | .catch(() => { }); | 
|---|
|  |  |  | .catch(() => {}); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | /** 导出按钮操作 */ | 
|---|
|  |  |  | handleExport() { | 
|---|
|  |  |  | 
|---|
|  |  |  | this.exportLoading = true; | 
|---|
|  |  |  | return exportReimbursement(queryParams); | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | .then((response) => { | 
|---|
|  |  |  | .then(response => { | 
|---|
|  |  |  | this.$download.name(response.msg); | 
|---|
|  |  |  | this.exportLoading = false; | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | .catch(() => { }); | 
|---|
|  |  |  | .catch(() => {}); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //新增一行 | 
|---|
|  |  |  | 
|---|
|  |  |  | searchAddress: { | 
|---|
|  |  |  | sheng: "", | 
|---|
|  |  |  | shi: "", | 
|---|
|  |  |  | qu: "", | 
|---|
|  |  |  | qu: "" | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | id: null, | 
|---|
|  |  |  | rbid: null, | 
|---|
|  |  |  | 
|---|
|  |  |  | updateTime: null, | 
|---|
|  |  |  | uploadFlag: null, | 
|---|
|  |  |  | uploadTime: null, | 
|---|
|  |  |  | total: 0, | 
|---|
|  |  |  | total: 0 | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | this.rbDetails.push(rowData); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | 
|---|
|  |  |  | this.$confirm("是否确认删除?", "提示", { | 
|---|
|  |  |  | confirmButtonText: "确定", | 
|---|
|  |  |  | cancelButtonText: "取消", | 
|---|
|  |  |  | type: "warning", | 
|---|
|  |  |  | type: "warning" | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | .then(() => { | 
|---|
|  |  |  | rows.splice(index, 1); | 
|---|
|  |  |  | 
|---|
|  |  |  | 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 {} | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //金额大写 | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //附件处理 | 
|---|
|  |  |  | handleUploadError() { }, | 
|---|
|  |  |  | handleUploadError() {}, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | remove(file) { | 
|---|
|  |  |  | this.fileList.splice(this.fileList.indexOf(file), 1) | 
|---|
|  |  |  | this.fileList.splice(this.fileList.indexOf(file), 1); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | handleExceed() { | 
|---|
|  |  |  | 
|---|
|  |  |  | 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> | 
|---|