|
|
|
@ -18,8 +18,8 @@ |
|
|
|
|
<a-form-item label="订单类型"> |
|
|
|
|
<a-select v-decorator="['order_type', { initialValue: 0 }]"> |
|
|
|
|
<a-select-option :value="0">全部</a-select-option> |
|
|
|
|
<a-select-option :value="10">会员</a-select-option> |
|
|
|
|
<a-select-option :value="20">分销商 </a-select-option> |
|
|
|
|
<a-select-option :value="10">零售商城</a-select-option> |
|
|
|
|
<a-select-option :value="20">批发商城 </a-select-option> |
|
|
|
|
</a-select> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item label="支付方式"> |
|
|
|
@ -38,16 +38,28 @@ |
|
|
|
|
</a-form> |
|
|
|
|
</a-row> |
|
|
|
|
</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"> |
|
|
|
|
<UserItem :user="text" /> |
|
|
|
|
</span> |
|
|
|
|
<!-- 充值方式 --> |
|
|
|
|
<span slot="order_type" slot-scope="text"> |
|
|
|
|
<a-tag v-if="text==10">会员</a-tag> |
|
|
|
|
<a-tag v-if="text==20">分销商</a-tag> |
|
|
|
|
<a-tag v-if="text == 10">零售商城</a-tag> |
|
|
|
|
<a-tag v-if="text == 20">批发商城</a-tag> |
|
|
|
|
</span> |
|
|
|
|
<!-- 时效 --> |
|
|
|
|
<span slot="month" slot-scope="text"> |
|
|
|
|
<p class="twoline-hide">{{ text }}个月</p> |
|
|
|
|
</span> |
|
|
|
|
<span slot="year" slot-scope="text"> {{ text }}年 </span> |
|
|
|
|
<!-- 支付方式 --> |
|
|
|
|
<span slot="pay_method" slot-scope="text"> |
|
|
|
|
<a-tag v-if="text">{{ text == 'wechat' ? '微信支付' : '余额支付' }}</a-tag> |
|
|
|
@ -99,6 +111,11 @@ export default { |
|
|
|
|
title: 'ID', |
|
|
|
|
dataIndex: 'order_id', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '会员信息', |
|
|
|
|
dataIndex: 'user', |
|
|
|
|
scopedSlots: { customRender: 'user' }, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '订单号', |
|
|
|
|
dataIndex: 'order_no', |
|
|
|
@ -106,7 +123,12 @@ export default { |
|
|
|
|
{ |
|
|
|
|
title: '订单类型', |
|
|
|
|
dataIndex: 'order_type', |
|
|
|
|
scopedSlots: { customRender: 'order_type' } |
|
|
|
|
scopedSlots: { customRender: 'order_type' }, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '时效', |
|
|
|
|
dataIndex: 'year', |
|
|
|
|
scopedSlots: { customRender: 'year' }, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '订单金额', |
|
|
|
|