|
@@ -1,449 +1,290 @@
|
|
|
<template>
|
|
|
- <div class="app-container">
|
|
|
- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
- <el-form-item label="采购计划" prop="ppid">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.ppid"
|
|
|
- placeholder="请输入采购计划id"
|
|
|
- clearable
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="投标序号" prop="index">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.index"
|
|
|
- placeholder="请输入投标序号"
|
|
|
- clearable
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="投标编号" prop="tdrno">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.tdrno"
|
|
|
- placeholder="请输入投标编号"
|
|
|
- clearable
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="转出方式" prop="tfroutmd">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.tfroutmd"
|
|
|
- placeholder="请输入转出方式0-本金退还 1-本息退还"
|
|
|
- clearable
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="流水号" prop="rtnTrnuid">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.rtnTrnuid"
|
|
|
- placeholder="请输入客户端交易的唯一标志"
|
|
|
- clearable
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="处理结果等级" prop="rtnSeverity" label-width="70">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.rtnSeverity"
|
|
|
- placeholder="请输入处理结果等级(info/warn/error)"
|
|
|
- clearable
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="投标序号" prop="rtnIndex">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.rtnIndex"
|
|
|
- placeholder="请输入投标序号"
|
|
|
- clearable
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="投标编号" prop="rtnTdrno">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.rtnTdrno"
|
|
|
- placeholder="请输入投标编号"
|
|
|
- clearable
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="退款状态" prop="rtnRefundstat">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.rtnRefundstat"
|
|
|
- placeholder="请输入退款状态2-处理中,3-失败"
|
|
|
- clearable
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="退款返回信息" prop="rtnRefundmsg" label-width="70">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.rtnRefundmsg"
|
|
|
- placeholder="请输入退款返回信息"
|
|
|
- clearable
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- <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-form-item>
|
|
|
- </el-form>
|
|
|
+ <div class="app-container">
|
|
|
+ <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"
|
|
|
+ label-width="68px">
|
|
|
+ <el-form-item label="采购公告" prop="ppid">
|
|
|
+ <el-input
|
|
|
+ v-model="queryParams.ppid"
|
|
|
+ placeholder="请输入采购公告"
|
|
|
+ clearable
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <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-form-item>
|
|
|
+ </el-form>
|
|
|
|
|
|
- <el-row :gutter="10" class="mb8">
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- plain
|
|
|
- icon="el-icon-plus"
|
|
|
- size="mini"
|
|
|
- @click="handleAdd"
|
|
|
- v-hasPermi="['bank:refundbat:add']"
|
|
|
- >新增</el-button>
|
|
|
- </el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- type="success"
|
|
|
- plain
|
|
|
- icon="el-icon-edit"
|
|
|
- size="mini"
|
|
|
- :disabled="single"
|
|
|
- @click="handleUpdate"
|
|
|
- v-hasPermi="['bank:refundbat:edit']"
|
|
|
- >修改</el-button>
|
|
|
- </el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- type="danger"
|
|
|
- plain
|
|
|
- icon="el-icon-delete"
|
|
|
- size="mini"
|
|
|
- :disabled="multiple"
|
|
|
- @click="handleDelete"
|
|
|
- v-hasPermi="['bank:refundbat:remove']"
|
|
|
- >删除</el-button>
|
|
|
- </el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- type="warning"
|
|
|
- plain
|
|
|
- icon="el-icon-download"
|
|
|
- size="mini"
|
|
|
- @click="handleExport"
|
|
|
- v-hasPermi="['bank:refundbat:export']"
|
|
|
- >导出</el-button>
|
|
|
- </el-col>
|
|
|
- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
- </el-row>
|
|
|
+ <el-row :gutter="10" class="mb8">
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button
|
|
|
+ type="warning"
|
|
|
+ plain
|
|
|
+ icon="el-icon-download"
|
|
|
+ size="mini"
|
|
|
+ @click="handleExport"
|
|
|
+ v-hasPermi="['bank:refundbat:export']"
|
|
|
+ >导出
|
|
|
+ </el-button>
|
|
|
+ </el-col>
|
|
|
+ <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
+ </el-row>
|
|
|
|
|
|
- <el-table v-loading="loading" :data="refundbatList" @selection-change="handleSelectionChange">
|
|
|
- <el-table-column type="selection" width="55" align="center" />
|
|
|
- <el-table-column label="${comment}" align="center" prop="refundbatid" v-if="false"/>
|
|
|
- <el-table-column label="采购公告" align="center" prop="ppid" />
|
|
|
- <el-table-column label="银行流水" align="center" prop="trnuid" />
|
|
|
- <el-table-column label="报文节点" align="center" prop="rqbody" v-if="false"/>
|
|
|
- <el-table-column label="投标id集合信息数组报文节点" align="center" prop="content" v-if="false"/>
|
|
|
- <el-table-column label="投标序号" align="center" prop="index" />
|
|
|
- <el-table-column label="投标编号" align="center" prop="tdrno" />
|
|
|
- <el-table-column label="退款备注" align="center" prop="remark" />
|
|
|
- <el-table-column label="转出方式0-本金退还 1-本息退还" align="center" prop="tfroutmd" v-if="false"/>
|
|
|
- <el-table-column label="银行流水" align="center" prop="rtnTrnuid" />
|
|
|
- <el-table-column label="交易处理状态" align="center" prop="rtnStatus" v-if="false"/>
|
|
|
- <el-table-column label="处理结果码" align="center" prop="rtnCode" v-if="false"/>
|
|
|
- <el-table-column label="处理结果等级" align="center" prop="rtnSeverity" >
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-tag type="info" v-if="scope.row.rtnSeverity.toLowerCase() === 'info'">info</el-tag>
|
|
|
- <el-tag type="warning" v-if="scope.row.rtnSeverity.toLowerCase() === 'warn'">warn</el-tag>
|
|
|
- <el-tag type="danger" v-if="scope.row.rtnSeverity.toLowerCase() === 'error'">error</el-tag>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="报文节点" align="center" prop="rtnRsbody" v-if="false"/>
|
|
|
- <el-table-column label="投标id集合信息数组报文节点" align="center" prop="rtnContent" v-if="false"/>
|
|
|
- <el-table-column label="投标序号" align="center" prop="rtnIndex" />
|
|
|
- <el-table-column label="投标编号" align="center" prop="rtnTdrno" />
|
|
|
- <el-table-column label="退款状态" align="center" prop="rtnRefundstat" >
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-tag type="warning" v-if="scope.row.rtnRefundstat.toLowerCase() === '2'">处理中</el-tag>
|
|
|
- <el-tag type="danger" v-if="scope.row.rtnRefundstat.toLowerCase() === '3'">失败</el-tag>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="退款返回信息" align="center" prop="rtnRefundmsg" />
|
|
|
- <el-table-column label="指令处理状态报文节点" align="center" prop="rtnXferprcsts" v-if="false"/>
|
|
|
- <el-table-column label="指令状态编码" align="center" prop="rtnXferprccode" />
|
|
|
- <el-table-column label="指令处理时间" align="center" prop="rtnDtxferprc" />
|
|
|
- <el-table-column label="指令处理信息" align="center" prop="rtnMessage" />
|
|
|
- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-edit"
|
|
|
- @click="handleUpdate(scope.row)"
|
|
|
- v-hasPermi="['bank:refundbat:edit']"
|
|
|
- >修改</el-button>
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-delete"
|
|
|
- @click="handleDelete(scope.row)"
|
|
|
- v-hasPermi="['bank:refundbat:remove']"
|
|
|
- >删除</el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
+ <el-table v-loading="loading" :data="refundbatList" @selection-change="handleSelectionChange">
|
|
|
+ <el-table-column type="selection" width="55" align="center"/>
|
|
|
+ <el-table-column label="${comment}" align="center" prop="refundbatid" v-if="false"/>
|
|
|
+ <el-table-column label="采购公告" align="center" prop="ppid"/>
|
|
|
+ <el-table-column label="银行流水" align="center" prop="trnuid" v-if="false"/>
|
|
|
+ <el-table-column label="报文节点" align="center" prop="rqbody" v-if="false"/>
|
|
|
+ <el-table-column label="投标id集合信息数组报文节点" align="center" prop="content" v-if="false"/>
|
|
|
+ <el-table-column label="投标序号" align="center" prop="index" v-if="false"/>
|
|
|
+ <el-table-column label="投标编号" align="center" prop="tdrno" v-if="false"/>
|
|
|
+ <el-table-column label="退款备注" align="center" prop="remark" v-if="false"/>
|
|
|
+ <el-table-column label="转出方式0-本金退还 1-本息退还" align="center" prop="tfroutmd" v-if="false"/>
|
|
|
+ <el-table-column label="银行流水" align="center" prop="rtnTrnuid"/>
|
|
|
+ <el-table-column label="交易处理状态" align="center" prop="rtnStatus" v-if="false"/>
|
|
|
+ <el-table-column label="处理结果码" align="center" prop="rtnCode" v-if="false"/>
|
|
|
+ <el-table-column label="处理结果等级" align="center" prop="rtnSeverity">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tag type="info" v-if="scope.row.rtnSeverity.toLowerCase() === 'info'">info</el-tag>
|
|
|
+ <el-tag type="warning" v-if="scope.row.rtnSeverity.toLowerCase() === 'warn'">warn</el-tag>
|
|
|
+ <el-tag type="danger" v-if="scope.row.rtnSeverity.toLowerCase() === 'error'">error</el-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="报文节点" align="center" prop="rtnRsbody" v-if="false"/>
|
|
|
+ <el-table-column label="投标id集合信息数组报文节点" align="center" prop="rtnContent" v-if="false"/>
|
|
|
+ <el-table-column label="投标序号" align="center" prop="rtnIndex"/>
|
|
|
+ <el-table-column label="投标编号" align="center" prop="rtnTdrno"/>
|
|
|
+ <el-table-column label="退款状态" align="center" prop="rtnRefundstat">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tag type="warning" v-if="scope.row.rtnRefundstat.toLowerCase() === '2'">处理中</el-tag>
|
|
|
+ <el-tag type="danger" v-if="scope.row.rtnRefundstat.toLowerCase() === '3'">失败</el-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="退款返回信息" align="center" prop="rtnRefundmsg"/>
|
|
|
+ <el-table-column label="指令处理状态报文节点" align="center" prop="rtnXferprcsts" v-if="false"/>
|
|
|
+ <el-table-column label="指令状态编码" align="center" prop="rtnXferprccode"/>
|
|
|
+ <el-table-column label="指令处理时间" align="center" prop="rtnDtxferprc"/>
|
|
|
+ <el-table-column label="指令处理信息" align="center" prop="rtnMessage"/>
|
|
|
+ <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-edit"
|
|
|
+ @click="handleUpdate(scope.row)"
|
|
|
+ v-hasPermi="['bank:refundbat:edit']"
|
|
|
+ >修改
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-delete"
|
|
|
+ @click="handleDelete(scope.row)"
|
|
|
+ v-hasPermi="['bank:refundbat:remove']"
|
|
|
+ >删除
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
|
|
|
- <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="500px" append-to-body>
|
|
|
- <el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
- <el-form-item label="采购计划id" prop="ppid">
|
|
|
- <el-input v-model="form.ppid" placeholder="请输入采购计划id" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="报文节点" prop="rqbody">
|
|
|
- <el-input v-model="form.rqbody" placeholder="请输入报文节点" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="投标id集合信息数组报文节点">
|
|
|
- <editor v-model="form.content" :min-height="192"/>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="投标序号" prop="index">
|
|
|
- <el-input v-model="form.index" placeholder="请输入投标序号" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="投标编号" prop="tdrno">
|
|
|
- <el-input v-model="form.tdrno" placeholder="请输入投标编号" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="退款备注" prop="remark">
|
|
|
- <el-input v-model="form.remark" placeholder="请输入退款备注" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="转出方式0-本金退还 1-本息退还" prop="tfroutmd">
|
|
|
- <el-input v-model="form.tfroutmd" placeholder="请输入转出方式0-本金退还 1-本息退还" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="客户端交易的唯一标志" prop="rtnTrnuid">
|
|
|
- <el-input v-model="form.rtnTrnuid" placeholder="请输入客户端交易的唯一标志" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="处理结果码" prop="rtnCode">
|
|
|
- <el-input v-model="form.rtnCode" placeholder="请输入处理结果码" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="处理结果等级(info/warn/error)" prop="rtnSeverity">
|
|
|
- <el-input v-model="form.rtnSeverity" placeholder="请输入处理结果等级(info/warn/error)" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="报文节点" prop="rtnRsbody">
|
|
|
- <el-input v-model="form.rtnRsbody" placeholder="请输入报文节点" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="投标id集合信息数组报文节点">
|
|
|
- <editor v-model="form.rtnContent" :min-height="192"/>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="投标序号" prop="rtnIndex">
|
|
|
- <el-input v-model="form.rtnIndex" placeholder="请输入投标序号" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="投标编号" prop="rtnTdrno">
|
|
|
- <el-input v-model="form.rtnTdrno" placeholder="请输入投标编号" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="退款状态2-处理中,3-失败" prop="rtnRefundstat">
|
|
|
- <el-input v-model="form.rtnRefundstat" placeholder="请输入退款状态2-处理中,3-失败" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="退款返回信息" prop="rtnRefundmsg">
|
|
|
- <el-input v-model="form.rtnRefundmsg" placeholder="请输入退款返回信息" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="指令处理状态报文节点" prop="rtnXferprcsts">
|
|
|
- <el-input v-model="form.rtnXferprcsts" placeholder="请输入指令处理状态报文节点" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="指令状态编码" prop="rtnXferprccode">
|
|
|
- <el-input v-model="form.rtnXferprccode" placeholder="请输入指令状态编码" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="指令处理时间yyyymmdd hhmmss" prop="rtnDtxferprc">
|
|
|
- <el-input v-model="form.rtnDtxferprc" placeholder="请输入指令处理时间yyyymmdd hhmmss" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="指令处理信息" prop="rtnMessage">
|
|
|
- <el-input v-model="form.rtnMessage" type="textarea" placeholder="请输入内容" />
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- <div slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
- <el-button @click="cancel">取 消</el-button>
|
|
|
- </div>
|
|
|
- </el-dialog>
|
|
|
- </div>
|
|
|
+ <!-- 添加或修改批量退还保证金对话框 -->
|
|
|
+ <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
+ <el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
+ <el-button @click="cancel">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { listRefundbat, getRefundbat, delRefundbat, addRefundbat, updateRefundbat } from "@/api/bank/refundbat";
|
|
|
+import {listRefundbat, getRefundbat, delRefundbat, addRefundbat, updateRefundbat} from "@/api/bank/refundbat";
|
|
|
|
|
|
export default {
|
|
|
- name: "Refundbat",
|
|
|
- data() {
|
|
|
- return {
|
|
|
- // 遮罩层
|
|
|
- loading: true,
|
|
|
- // 选中数组
|
|
|
- ids: [],
|
|
|
- // 非单个禁用
|
|
|
- single: true,
|
|
|
- // 非多个禁用
|
|
|
- multiple: true,
|
|
|
- // 显示搜索条件
|
|
|
- showSearch: true,
|
|
|
- // 总条数
|
|
|
- total: 0,
|
|
|
- // 批量退还保证金表格数据
|
|
|
- refundbatList: [],
|
|
|
- // 弹出层标题
|
|
|
- title: "",
|
|
|
- // 是否显示弹出层
|
|
|
- open: false,
|
|
|
- // 查询参数
|
|
|
- queryParams: {
|
|
|
- pageNum: 1,
|
|
|
- pageSize: 10,
|
|
|
- ppid: null,
|
|
|
- rqbody: null,
|
|
|
- content: null,
|
|
|
- index: null,
|
|
|
- tdrno: null,
|
|
|
- tfroutmd: null,
|
|
|
- rtnTrnuid: null,
|
|
|
- rtnStatus: null,
|
|
|
- rtnCode: null,
|
|
|
- rtnSeverity: null,
|
|
|
- rtnRsbody: null,
|
|
|
- rtnContent: null,
|
|
|
- rtnIndex: null,
|
|
|
- rtnTdrno: null,
|
|
|
- rtnRefundstat: null,
|
|
|
- rtnRefundmsg: null,
|
|
|
- rtnXferprcsts: null,
|
|
|
- rtnXferprccode: null,
|
|
|
- rtnDtxferprc: null,
|
|
|
- rtnMessage: null
|
|
|
- },
|
|
|
- // 表单参数
|
|
|
- form: {},
|
|
|
- // 表单校验
|
|
|
- rules: {
|
|
|
- ppid: [
|
|
|
- { required: true, message: "采购计划id不能为空", trigger: "blur" }
|
|
|
- ],
|
|
|
- }
|
|
|
- };
|
|
|
- },
|
|
|
- created() {
|
|
|
- this.getList();
|
|
|
- },
|
|
|
- methods: {
|
|
|
- /** 查询批量退还保证金列表 */
|
|
|
- getList() {
|
|
|
- this.loading = true;
|
|
|
- listRefundbat(this.queryParams).then(response => {
|
|
|
- this.refundbatList = response.rows;
|
|
|
- this.total = response.total;
|
|
|
- this.loading = false;
|
|
|
- });
|
|
|
- },
|
|
|
- // 取消按钮
|
|
|
- cancel() {
|
|
|
- this.open = false;
|
|
|
- this.reset();
|
|
|
- },
|
|
|
- // 表单重置
|
|
|
- reset() {
|
|
|
- this.form = {
|
|
|
- refundbatid: null,
|
|
|
- ppid: null,
|
|
|
- trnuid: null,
|
|
|
- rqbody: null,
|
|
|
- content: null,
|
|
|
- index: null,
|
|
|
- tdrno: null,
|
|
|
- remark: null,
|
|
|
- tfroutmd: null,
|
|
|
- rtnTrnuid: null,
|
|
|
- rtnStatus: null,
|
|
|
- rtnCode: null,
|
|
|
- rtnSeverity: null,
|
|
|
- rtnRsbody: null,
|
|
|
- rtnContent: null,
|
|
|
- rtnIndex: null,
|
|
|
- rtnTdrno: null,
|
|
|
- rtnRefundstat: null,
|
|
|
- rtnRefundmsg: null,
|
|
|
- rtnXferprcsts: null,
|
|
|
- rtnXferprccode: null,
|
|
|
- rtnDtxferprc: null,
|
|
|
- rtnMessage: null
|
|
|
- };
|
|
|
- this.resetForm("form");
|
|
|
- },
|
|
|
- /** 搜索按钮操作 */
|
|
|
- handleQuery() {
|
|
|
- this.queryParams.pageNum = 1;
|
|
|
- this.getList();
|
|
|
- },
|
|
|
- /** 重置按钮操作 */
|
|
|
- resetQuery() {
|
|
|
- this.resetForm("queryForm");
|
|
|
- this.handleQuery();
|
|
|
- },
|
|
|
- // 多选框选中数据
|
|
|
- handleSelectionChange(selection) {
|
|
|
- this.ids = selection.map(item => item.refundbatid)
|
|
|
- this.single = selection.length!==1
|
|
|
- this.multiple = !selection.length
|
|
|
- },
|
|
|
- /** 新增按钮操作 */
|
|
|
- handleAdd() {
|
|
|
- this.reset();
|
|
|
- this.open = true;
|
|
|
- this.title = "添加批量退还保证金";
|
|
|
- },
|
|
|
- /** 修改按钮操作 */
|
|
|
- handleUpdate(row) {
|
|
|
- this.reset();
|
|
|
- const refundbatid = row.refundbatid || this.ids
|
|
|
- getRefundbat(refundbatid).then(response => {
|
|
|
- this.form = response.data;
|
|
|
- this.open = true;
|
|
|
- this.title = "修改批量退还保证金";
|
|
|
- });
|
|
|
- },
|
|
|
- /** 提交按钮 */
|
|
|
- submitForm() {
|
|
|
- this.$refs["form"].validate(valid => {
|
|
|
- if (valid) {
|
|
|
- if (this.form.refundbatid != null) {
|
|
|
- updateRefundbat(this.form).then(response => {
|
|
|
- this.$modal.msgSuccess("修改成功");
|
|
|
- this.open = false;
|
|
|
- this.getList();
|
|
|
- });
|
|
|
- } else {
|
|
|
- addRefundbat(this.form).then(response => {
|
|
|
- this.$modal.msgSuccess("新增成功");
|
|
|
- this.open = false;
|
|
|
- this.getList();
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
- /** 删除按钮操作 */
|
|
|
- handleDelete(row) {
|
|
|
- const refundbatids = row.refundbatid || this.ids;
|
|
|
- this.$modal.confirm('是否确认删除批量退还保证金编号为"' + refundbatids + '"的数据项?').then(function() {
|
|
|
- return delRefundbat(refundbatids);
|
|
|
- }).then(() => {
|
|
|
- this.getList();
|
|
|
- this.$modal.msgSuccess("删除成功");
|
|
|
- }).catch(() => {});
|
|
|
- },
|
|
|
- /** 导出按钮操作 */
|
|
|
- handleExport() {
|
|
|
- this.download('bank/refundbat/export', {
|
|
|
- ...this.queryParams
|
|
|
- }, `refundbat_${new Date().getTime()}.xlsx`)
|
|
|
- }
|
|
|
- }
|
|
|
+ name: "Refundbat",
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ // 遮罩层
|
|
|
+ loading: true,
|
|
|
+ // 选中数组
|
|
|
+ ids: [],
|
|
|
+ // 非单个禁用
|
|
|
+ single: true,
|
|
|
+ // 非多个禁用
|
|
|
+ multiple: true,
|
|
|
+ // 显示搜索条件
|
|
|
+ showSearch: true,
|
|
|
+ // 总条数
|
|
|
+ total: 0,
|
|
|
+ // 批量退还保证金表格数据
|
|
|
+ refundbatList: [],
|
|
|
+ // 弹出层标题
|
|
|
+ title: "",
|
|
|
+ // 是否显示弹出层
|
|
|
+ open: false,
|
|
|
+ // 查询参数
|
|
|
+ queryParams: {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ ppid: null,
|
|
|
+ rqbody: null,
|
|
|
+ content: null,
|
|
|
+ index: null,
|
|
|
+ tdrno: null,
|
|
|
+ tfroutmd: null,
|
|
|
+ rtnTrnuid: null,
|
|
|
+ rtnStatus: null,
|
|
|
+ rtnCode: null,
|
|
|
+ rtnSeverity: null,
|
|
|
+ rtnRsbody: null,
|
|
|
+ rtnContent: null,
|
|
|
+ rtnIndex: null,
|
|
|
+ rtnTdrno: null,
|
|
|
+ rtnRefundstat: null,
|
|
|
+ rtnRefundmsg: null,
|
|
|
+ rtnXferprcsts: null,
|
|
|
+ rtnXferprccode: null,
|
|
|
+ rtnDtxferprc: null,
|
|
|
+ rtnMessage: null
|
|
|
+ },
|
|
|
+ // 表单参数
|
|
|
+ form: {},
|
|
|
+ // 表单校验
|
|
|
+ rules: {
|
|
|
+ ppid: [
|
|
|
+ {required: true, message: "采购计划id不能为空", trigger: "blur"}
|
|
|
+ ],
|
|
|
+ }
|
|
|
+ };
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ /** 查询批量退还保证金列表 */
|
|
|
+ getList() {
|
|
|
+ this.loading = true;
|
|
|
+ listRefundbat(this.queryParams).then(response => {
|
|
|
+ this.refundbatList = response.rows;
|
|
|
+ this.total = response.total;
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 取消按钮
|
|
|
+ cancel() {
|
|
|
+ this.open = false;
|
|
|
+ this.reset();
|
|
|
+ },
|
|
|
+ // 表单重置
|
|
|
+ reset() {
|
|
|
+ this.form = {
|
|
|
+ refundbatid: null,
|
|
|
+ ppid: null,
|
|
|
+ trnuid: null,
|
|
|
+ rqbody: null,
|
|
|
+ content: null,
|
|
|
+ index: null,
|
|
|
+ tdrno: null,
|
|
|
+ remark: null,
|
|
|
+ tfroutmd: null,
|
|
|
+ rtnTrnuid: null,
|
|
|
+ rtnStatus: null,
|
|
|
+ rtnCode: null,
|
|
|
+ rtnSeverity: null,
|
|
|
+ rtnRsbody: null,
|
|
|
+ rtnContent: null,
|
|
|
+ rtnIndex: null,
|
|
|
+ rtnTdrno: null,
|
|
|
+ rtnRefundstat: null,
|
|
|
+ rtnRefundmsg: null,
|
|
|
+ rtnXferprcsts: null,
|
|
|
+ rtnXferprccode: null,
|
|
|
+ rtnDtxferprc: null,
|
|
|
+ rtnMessage: null
|
|
|
+ };
|
|
|
+ this.resetForm("form");
|
|
|
+ },
|
|
|
+ /** 搜索按钮操作 */
|
|
|
+ handleQuery() {
|
|
|
+ this.queryParams.pageNum = 1;
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ /** 重置按钮操作 */
|
|
|
+ resetQuery() {
|
|
|
+ this.resetForm("queryForm");
|
|
|
+ this.handleQuery();
|
|
|
+ },
|
|
|
+ // 多选框选中数据
|
|
|
+ handleSelectionChange(selection) {
|
|
|
+ this.ids = selection.map(item => item.refundbatid)
|
|
|
+ this.single = selection.length !== 1
|
|
|
+ this.multiple = !selection.length
|
|
|
+ },
|
|
|
+ /** 新增按钮操作 */
|
|
|
+ handleAdd() {
|
|
|
+ this.reset();
|
|
|
+ this.open = true;
|
|
|
+ this.title = "添加批量退还保证金";
|
|
|
+ },
|
|
|
+ /** 修改按钮操作 */
|
|
|
+ handleUpdate(row) {
|
|
|
+ this.reset();
|
|
|
+ const refundbatid = row.refundbatid || this.ids
|
|
|
+ getRefundbat(refundbatid).then(response => {
|
|
|
+ this.form = response.data;
|
|
|
+ this.open = true;
|
|
|
+ this.title = "修改批量退还保证金";
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /** 提交按钮 */
|
|
|
+ submitForm() {
|
|
|
+ this.$refs["form"].validate(valid => {
|
|
|
+ if (valid) {
|
|
|
+ if (this.form.refundbatid != null) {
|
|
|
+ updateRefundbat(this.form).then(response => {
|
|
|
+ this.$modal.msgSuccess("修改成功");
|
|
|
+ this.open = false;
|
|
|
+ this.getList();
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ addRefundbat(this.form).then(response => {
|
|
|
+ this.$modal.msgSuccess("新增成功");
|
|
|
+ this.open = false;
|
|
|
+ this.getList();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /** 删除按钮操作 */
|
|
|
+ handleDelete(row) {
|
|
|
+ const refundbatids = row.refundbatid || this.ids;
|
|
|
+ this.$modal.confirm('是否确认删除批量退还保证金编号为"' + refundbatids + '"的数据项?').then(function () {
|
|
|
+ return delRefundbat(refundbatids);
|
|
|
+ }).then(() => {
|
|
|
+ this.getList();
|
|
|
+ this.$modal.msgSuccess("删除成功");
|
|
|
+ }).catch(() => {
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /** 导出按钮操作 */
|
|
|
+ handleExport() {
|
|
|
+ this.download('bank/refundbat/export', {
|
|
|
+ ...this.queryParams
|
|
|
+ }, `refundbat_${new Date().getTime()}.xlsx`)
|
|
|
+ }
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|