5 changed files with 358 additions and 161 deletions
@ -0,0 +1,228 @@ |
|||||
|
<template> |
||||
|
<div class="app-container"> |
||||
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="116px" |
||||
|
class="flex form" style="position: relative"> |
||||
|
<el-form-item label="平台订单号" prop="noOrder"> |
||||
|
<el-input size="medium" v-model="queryParams.noOrder" placeholder="请输入平台订单号" |
||||
|
@keyup.enter.native="handleQuery" style="width: 180px; border-color: #e6f1ff" /> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="商户订单号" prop="merchantOrderNo"> |
||||
|
<el-input size="medium" v-model="queryParams.merchantOrderNo" placeholder="请输入商户订单号" |
||||
|
@keyup.enter.native="handleQuery" style="width: 180px; border-color: #e6f1ff" /> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="收款卡号" prop="cardNumber"> |
||||
|
<el-input size="medium" v-model="queryParams.cardNumber" placeholder="请输入收款卡号" |
||||
|
@keyup.enter.native="handleQuery" style="width: 180px; border-color: #e6f1ff" /> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="商户名称" prop="merchantName"> |
||||
|
<el-input size="medium" v-model="queryParams.merchantName" placeholder="请输入商户名称" |
||||
|
@keyup.enter.native="handleQuery" style="width: 180px; border-color: #e6f1ff" /> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="开户名" prop="accountName"> |
||||
|
<el-input size="medium" v-model="queryParams.accountName" placeholder="请输入开户名" |
||||
|
@keyup.enter.native="handleQuery" style="width: 180px; border-color: #e6f1ff" /> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="代付金额" prop="tranAmt"> |
||||
|
<el-input size="medium" v-model="queryParams.tranAmt" placeholder="请输入代付金额" |
||||
|
@keyup.enter.native="handleQuery" style="width: 180px; border-color: #e6f1ff" /> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="批次号" prop="batchNo"> |
||||
|
<el-input size="medium" v-model="queryParams.batchNo" placeholder="请输入批次号" @keyup.enter.native="handleQuery" |
||||
|
style="width: 180px; border-color: #e6f1ff" /> |
||||
|
</el-form-item> |
||||
|
|
||||
|
<el-form-item label="订单状态" prop="orderStatus"> |
||||
|
<el-select v-model="queryParams.orderStatus" placeholder="请选择状态" clearable size="small"> |
||||
|
<el-option v-for="dict in sysOrderStatus" :key="dict.dictValue" :label="dict.dictLabel" |
||||
|
:value="dict.dictValue" /> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
|
||||
|
<el-form-item label="创建时间"> |
||||
|
<el-date-picker v-model="dateRange" size="small" style="width: 340px" value-format="yyyy-MM-dd HH:mm:ss" |
||||
|
type="datetimerange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" |
||||
|
:unlink-panels="true" :default-time="['00:00:00', '23:59:59']"></el-date-picker> |
||||
|
</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="warning" plain icon="el-icon-download" size="mini" @click="handleExport">导出</el-button> |
||||
|
</el-col> |
||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
||||
|
</el-row> |
||||
|
|
||||
|
<el-table stripe :data="infoList" v-loading="loading" :row-class-name="tableRowClassName"> |
||||
|
|
||||
|
<el-table-column label="平台订单号" align="center" prop="noOrder" /> |
||||
|
|
||||
|
<el-table-column label="商户订单号" align="center" prop="outTradeNo" /> |
||||
|
<el-table-column label="商户" align="center" prop="merchantName" /> |
||||
|
<el-table-column label="批次号" align="center" prop="batchNo" min-width="120" /> |
||||
|
<el-table-column :label="'代付金额'" align="center" prop="tranAmt"> |
||||
|
<template slot-scope="scope"> |
||||
|
{{ scope.row.tranAmt }} |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
|
||||
|
<el-table-column :label="'商户手续费'" align="center" prop="merchantFee"> |
||||
|
<template slot-scope="scope"> |
||||
|
{{ scope.row.merchantFee }} |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
|
||||
|
<el-table-column :label="'商户单笔手续费'" align="center" prop="merchantSingleFee"> |
||||
|
<template slot-scope="scope"> |
||||
|
{{ scope.row.merchantSingleFee }} |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column :label="'商户费率(%)'" align="center" prop="merchantSingleFee"> |
||||
|
<template slot-scope="scope"> |
||||
|
{{ parseFloat(NumberMul(scope.row.merchantRate, 100)).toFixed(2) }} |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="银行名称" align="center" prop="bankName" /> |
||||
|
<el-table-column label="卡号" align="center" prop="cardNumber" /> |
||||
|
<el-table-column label="开户名" align="center" prop="accountName" /> |
||||
|
<el-table-column label="开户行" align="center" prop="branchName" /> |
||||
|
<el-table-column label="订单状态" align="center" prop="orderStatus" :formatter="sysOrderStatusFormat" /> |
||||
|
<!-- <el-table-column label="异步通知状态" align="center" prop="notifyStatus" :formatter="notifyStatusFormat" /> --> |
||||
|
|
||||
|
<el-table-column label="备注" align="center" prop="orderMsg" /> |
||||
|
|
||||
|
|
||||
|
<el-table-column label="创建时间" align="center" prop="createTime" min-width="180" /> |
||||
|
<el-table-column label="更新时间" align="center" prop="updateTime" min-width="180" /> |
||||
|
|
||||
|
</el-table> |
||||
|
|
||||
|
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" |
||||
|
@pagination="getList" /> |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { paymentDaiFuRecord, common_api } from "@/api/form"; |
||||
|
export default { |
||||
|
name: "otcStoreDaiFuOrder", |
||||
|
components: { |
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
dateRange: [], |
||||
|
sysOrderStatus: [], |
||||
|
notifyStatusOptions: [], |
||||
|
// 遮罩层 |
||||
|
loading: true, |
||||
|
// 选中数组 |
||||
|
ids: [], |
||||
|
// 非单个禁用 |
||||
|
single: true, |
||||
|
// 非多个禁用 |
||||
|
multiple: true, |
||||
|
// 显示搜索条件 |
||||
|
showSearch: true, |
||||
|
// 总条数 |
||||
|
total: 0, |
||||
|
// OTC币种表格数据 |
||||
|
otcCoinList: [], |
||||
|
// 弹出层标题 |
||||
|
title: "", |
||||
|
// 是否显示弹出层 |
||||
|
open: false, |
||||
|
openTest: false, |
||||
|
// 查询参数 |
||||
|
queryParams: { |
||||
|
pageNum: 1, |
||||
|
pageSize: 10, |
||||
|
noOrder: null, |
||||
|
merchantOrderNo: null, |
||||
|
cardNumber: null, |
||||
|
merchantName: null, |
||||
|
accountName: null, |
||||
|
tranAmt: null, |
||||
|
orderStatus: null, |
||||
|
batchNo: null |
||||
|
}, |
||||
|
// 表单参数 |
||||
|
form: {}, |
||||
|
// 表单校验 |
||||
|
rules: { |
||||
|
}, |
||||
|
}; |
||||
|
}, |
||||
|
created() { |
||||
|
this.getList(); |
||||
|
|
||||
|
this.getDicts("d_order_status").then(response => { |
||||
|
this.sysOrderStatus = response.data; |
||||
|
}); |
||||
|
this.getDicts("notify_status").then(response => { |
||||
|
this.notifyStatusOptions = response.data; |
||||
|
}); |
||||
|
}, |
||||
|
methods: { |
||||
|
getList() { |
||||
|
this.loading = true; |
||||
|
paymentDaiFuRecord.listInfo(this.addSESDateRange(this.queryParams, this.dateRange)).then(response => { |
||||
|
this.otcCoinList = response.rows; |
||||
|
this.total = Number(response.total); |
||||
|
this.loading = false; |
||||
|
}); |
||||
|
}, |
||||
|
|
||||
|
sysOrderStatusFormat(row, column) { |
||||
|
return this.selectDictLabel(this.sysOrderStatus, row.orderStatus); |
||||
|
}, |
||||
|
notifyStatusFormat(row, column) { |
||||
|
return this.selectDictLabel(this.notifyStatusOptions, row.notifyStatus); |
||||
|
}, |
||||
|
|
||||
|
// 取消按钮 |
||||
|
cancel() { |
||||
|
this.open = false; |
||||
|
this.openTest = false; |
||||
|
this.reset(); |
||||
|
}, |
||||
|
// 表单重置 |
||||
|
reset() { |
||||
|
this.form = { |
||||
|
}; |
||||
|
this.resetForm("form"); |
||||
|
}, |
||||
|
/** 搜索按钮操作 */ |
||||
|
handleQuery() { |
||||
|
this.queryParams.pageNum = 1; |
||||
|
this.getList(); |
||||
|
}, |
||||
|
/** 重置按钮操作 */ |
||||
|
resetQuery() { |
||||
|
this.dateRange = [] |
||||
|
this.resetForm("queryForm"); |
||||
|
this.handleQuery(); |
||||
|
}, |
||||
|
|
||||
|
/** 导出按钮操作 */ |
||||
|
handleExport() { |
||||
|
const queryParams = this.queryParams; |
||||
|
this.$confirm('是否确认导出所有数据项?', "警告", { |
||||
|
confirmButtonText: "确定", |
||||
|
cancelButtonText: "取消", |
||||
|
type: "warning" |
||||
|
}).then(function () { |
||||
|
return paymentDaiFuRecord.exportList(queryParams); |
||||
|
}).then(response => { |
||||
|
this.download(response.msg); |
||||
|
}) |
||||
|
} |
||||
|
} |
||||
|
}; |
||||
|
</script> |
||||
|
|
Loading…
Reference in new issue