|
|
@ -27,6 +27,7 @@ |
|
|
|
<a-select-option :value="0">全部</a-select-option> |
|
|
|
<a-select-option :value="0">全部</a-select-option> |
|
|
|
<a-select-option :value="'wechat'">微信支付</a-select-option> |
|
|
|
<a-select-option :value="'wechat'">微信支付</a-select-option> |
|
|
|
<a-select-option :value="'balance'">余额支付 </a-select-option> |
|
|
|
<a-select-option :value="'balance'">余额支付 </a-select-option> |
|
|
|
|
|
|
|
<a-select-option :value="'huifu'">银联支付 </a-select-option> |
|
|
|
</a-select> |
|
|
|
</a-select> |
|
|
|
</a-form-item> |
|
|
|
</a-form-item> |
|
|
|
<a-form-item label="付款时间"> |
|
|
|
<a-form-item label="付款时间"> |
|
|
@ -38,7 +39,14 @@ |
|
|
|
</a-form> |
|
|
|
</a-form> |
|
|
|
</a-row> |
|
|
|
</a-row> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<s-table ref="table" rowKey="order_id" :loading="isLoading" :columns="columns" :data="loadData" :pagination="pagination"> |
|
|
|
<s-table |
|
|
|
|
|
|
|
ref="table" |
|
|
|
|
|
|
|
rowKey="order_id" |
|
|
|
|
|
|
|
:loading="isLoading" |
|
|
|
|
|
|
|
:columns="columns" |
|
|
|
|
|
|
|
:data="loadData" |
|
|
|
|
|
|
|
:pagination="pagination" |
|
|
|
|
|
|
|
> |
|
|
|
<!-- 会员信息 --> |
|
|
|
<!-- 会员信息 --> |
|
|
|
<span slot="user" slot-scope="text"> |
|
|
|
<span slot="user" slot-scope="text"> |
|
|
|
<UserItem :user="text" /> |
|
|
|
<UserItem :user="text" /> |
|
|
@ -54,7 +62,7 @@ |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<!-- 支付方式 --> |
|
|
|
<!-- 支付方式 --> |
|
|
|
<span slot="pay_method" slot-scope="text"> |
|
|
|
<span slot="pay_method" slot-scope="text"> |
|
|
|
<a-tag v-if="text">{{ text=='wechat'?'微信支付':'余额支付' }}</a-tag> |
|
|
|
<a-tag v-if="text">{{ PaymentMethodEnum[text].name }}</a-tag> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<!-- 状态 --> |
|
|
|
<!-- 状态 --> |
|
|
|
<span slot="pay_status" slot-scope="text"> |
|
|
|
<span slot="pay_status" slot-scope="text"> |
|
|
@ -72,6 +80,8 @@ import * as Api from '@/api/user/order' |
|
|
|
import { STable, UserItem } from '@/components/Table' |
|
|
|
import { STable, UserItem } from '@/components/Table' |
|
|
|
import PayStatusEnum from '@/common/enum/recharge/order/PayStatus' |
|
|
|
import PayStatusEnum from '@/common/enum/recharge/order/PayStatus' |
|
|
|
import moment from 'moment' |
|
|
|
import moment from 'moment' |
|
|
|
|
|
|
|
import { PaymentMethodEnum } from '@/common/enum/payment' |
|
|
|
|
|
|
|
import { inArray, assignment } from '@/utils/util' |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: 'Index', |
|
|
|
name: 'Index', |
|
|
|
components: { |
|
|
|
components: { |
|
|
@ -106,7 +116,7 @@ export default { |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '会员信息', |
|
|
|
title: '会员信息', |
|
|
|
dataIndex: 'user', |
|
|
|
dataIndex: 'user', |
|
|
|
scopedSlots: { customRender: 'user' } |
|
|
|
scopedSlots: { customRender: 'user' }, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '订单号', |
|
|
|
title: '订单号', |
|
|
@ -115,7 +125,7 @@ export default { |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '订单类型', |
|
|
|
title: '订单类型', |
|
|
|
dataIndex: 'order_type', |
|
|
|
dataIndex: 'order_type', |
|
|
|
scopedSlots: { customRender: 'order_type' } |
|
|
|
scopedSlots: { customRender: 'order_type' }, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '会员时效', |
|
|
|
title: '会员时效', |
|
|
@ -156,6 +166,12 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
created() {}, |
|
|
|
created() {}, |
|
|
|
|
|
|
|
beforeCreate() { |
|
|
|
|
|
|
|
// 批量给当前实例赋值 |
|
|
|
|
|
|
|
assignment(this, { |
|
|
|
|
|
|
|
PaymentMethodEnum, |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 刷新列表 |
|
|
|
* 刷新列表 |
|
|
|