|
@@ -1,15 +1,20 @@
|
|
|
<template>
|
|
|
<el-card>
|
|
|
<el-container direction="vertical">
|
|
|
- <el-header height="40px">
|
|
|
+ <el-header height="auto">
|
|
|
+ <el-input
|
|
|
+ style="width:200px;margin-bottom:20px;margin-right: 10px;"
|
|
|
+ placeholder="请输入客户单号"
|
|
|
+ v-model.trim="mch_order"></el-input>
|
|
|
<el-date-picker
|
|
|
v-model="dataRange"
|
|
|
:clearable="false"
|
|
|
value-format="timestamp"
|
|
|
format="yyyy-MM-dd HH:mm:ss"
|
|
|
type="datetimerange"
|
|
|
- range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
|
|
|
- <el-select v-model="RechargeType" placeholder="--充值卡类型--" style="margin-left: 10px">
|
|
|
+ range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"
|
|
|
+ style="margin-bottom:20px;margin-right: 10px;"></el-date-picker>
|
|
|
+ <el-select v-model="RechargeType" placeholder="--充值卡类型--" style="margin-right: 10px;margin-bottom:20px">
|
|
|
<el-option
|
|
|
v-for="item in moneyType"
|
|
|
:key="item.value"
|
|
@@ -17,7 +22,15 @@
|
|
|
:value="item.value">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
- <el-select v-model="RechargeStatus" placeholder="--充值状态--" style="margin-left: 10px">
|
|
|
+ <el-select v-model="amount" placeholder="--充值面额--" style="margin-right: 10px;margin-bottom:20px">
|
|
|
+ <el-option
|
|
|
+ v-for="item in amountConstant"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ <el-select v-model="RechargeStatus" placeholder="--充值状态--" style="margin-right: 10px;margin-bottom:20px">
|
|
|
<el-option
|
|
|
v-for="item in orderState"
|
|
|
:key="item.value"
|
|
@@ -25,11 +38,27 @@
|
|
|
:value="item.value">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
- <el-button style="margin-left:10px;" type="primary" @click="queryList">查询</el-button>
|
|
|
- <el-button style="margin-left:10px;" type="danger" @click="onReset">重置</el-button>
|
|
|
+ <el-select
|
|
|
+ v-model="time"
|
|
|
+ placeholder="--充值耗时--"
|
|
|
+ style="margin-right: 10px;margin-bottom:20px"
|
|
|
+ no-data-text="充值状态为充值中时,才可查询耗时">
|
|
|
+ <template v-if="RechargeStatus == 30">
|
|
|
+ <el-option
|
|
|
+ v-for="item in timeConstant"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </template>
|
|
|
+ </el-select>
|
|
|
+ <div>
|
|
|
+ <el-button style="margin-right:10px;margin-bottom:20px" type="primary" @click="queryList">查询</el-button>
|
|
|
+ <el-button style="margin-right:10px;margin-left:0px;margin-bottom:20px" type="danger" @click="onReset">重置</el-button>
|
|
|
+ </div>
|
|
|
</el-header>
|
|
|
|
|
|
- <el-table :data="tableData" border style="width: 1561px; margin-top:20px" v-loading="isLoading">
|
|
|
+ <el-table :data="tableData" border style="width: 1561px;" v-loading="isLoading">
|
|
|
<el-table-column align="left" type="index" width="50" label="序号" />
|
|
|
<el-table-column align="left" prop="mch_order" width="200" label="客户单号"></el-table-column>
|
|
|
<el-table-column align="left" prop="card_no" width="180" label="卡号"></el-table-column>
|
|
@@ -53,6 +82,7 @@
|
|
|
{{row.official_sn ? row.official_sn : '无'}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column align="left" prop="err_msg" label="失败原因" width="180"></el-table-column>
|
|
|
<el-table-column align="right" prop="mch_amount" label="扣款金额" width="80"></el-table-column>
|
|
|
<!-- <el-table-column align="left" width="200" label="状态查询">
|
|
|
<template slot-scope="{row}">
|
|
@@ -74,7 +104,7 @@ import {
|
|
|
getOrderList,
|
|
|
queryList
|
|
|
} from "@/api";
|
|
|
-import { moneyType, orderState } from '@/utils/constants'
|
|
|
+import { moneyType, orderState, amountConstant, timeConstant } from '@/utils/constants'
|
|
|
// import getIp from '@/utils/ip'
|
|
|
export default {
|
|
|
name: 'order',
|
|
@@ -97,7 +127,17 @@ export default {
|
|
|
// 充值状态
|
|
|
RechargeStatus: '',
|
|
|
// 充值状态 常量
|
|
|
- orderState
|
|
|
+ orderState,
|
|
|
+ // 客户单号
|
|
|
+ mch_order: '',
|
|
|
+ // 充值面额
|
|
|
+ amount: '',
|
|
|
+ // 充值面额-常量
|
|
|
+ amountConstant,
|
|
|
+ // 充值耗时
|
|
|
+ time: '',
|
|
|
+ // 充值耗时-常量
|
|
|
+ timeConstant
|
|
|
};
|
|
|
},
|
|
|
created () {
|
|
@@ -151,6 +191,9 @@ export default {
|
|
|
param.append('end_time', this.endTime)
|
|
|
param.append('card_type', this.RechargeType)
|
|
|
param.append('order_state', this.RechargeStatus)
|
|
|
+ param.append('refill_amount', this.amount)
|
|
|
+ param.append('mch_order', this.mch_order)
|
|
|
+ param.append('time', this.time)
|
|
|
// const res = await queryList(this.pageNumber, startTime, endTime, this.RechargeType)
|
|
|
const res = await queryList(param)
|
|
|
console.log('查询订单', res);
|
|
@@ -170,6 +213,9 @@ export default {
|
|
|
this.dataRange = [];
|
|
|
this.RechargeType = ''
|
|
|
this.RechargeStatus = ''
|
|
|
+ this.amount = ''
|
|
|
+ this.mch_order = ''
|
|
|
+ this.time = ''
|
|
|
this.getOrderList();
|
|
|
},
|
|
|
// 分页
|
|
@@ -193,6 +239,8 @@ export default {
|
|
|
param.append('end_time', this.endTime)
|
|
|
param.append('card_type', this.RechargeType)
|
|
|
param.append('order_state', this.RechargeStatus)
|
|
|
+ param.append('refill_amount', this.amount)
|
|
|
+ param.append('mch_order', this.mch_order)
|
|
|
// const res = await queryList(this.pageNumber, startTime, endTime, this.RechargeType)
|
|
|
const res = await queryList(param)
|
|
|
console.log('查询订单', res);
|
|
@@ -216,6 +264,9 @@ export default {
|
|
|
}
|
|
|
</style>
|
|
|
<style>
|
|
|
+.el-select-dropdown__empty {
|
|
|
+ padding: 5px;
|
|
|
+}
|
|
|
.el-main {
|
|
|
padding: 0;
|
|
|
margin-right: calc(100% - 100vw);
|