|
|
@ -5,7 +5,7 @@ |
|
|
|
<a-row> |
|
|
|
<a-row> |
|
|
|
<a-col class="flex flex-x-end"> |
|
|
|
<a-col class="flex flex-x-end"> |
|
|
|
<a-input-search |
|
|
|
<a-input-search |
|
|
|
style="max-width: 300px; min-width: 150px;" |
|
|
|
style="max-width: 300px; min-width: 150px" |
|
|
|
v-model="queryParam.search" |
|
|
|
v-model="queryParam.search" |
|
|
|
placeholder="请输入姓名/手机号/昵称" |
|
|
|
placeholder="请输入姓名/手机号/昵称" |
|
|
|
@search="onSearch" |
|
|
|
@search="onSearch" |
|
|
@ -45,6 +45,11 @@ |
|
|
|
<template slot="apply_type" slot-scope="text"> |
|
|
|
<template slot="apply_type" slot-scope="text"> |
|
|
|
<a-tag>{{ ApplyTypeEnum[text].name }}</a-tag> |
|
|
|
<a-tag>{{ ApplyTypeEnum[text].name }}</a-tag> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
<!-- 店铺类型 --> |
|
|
|
|
|
|
|
<template slot="shop_type" slot-scope="text"> |
|
|
|
|
|
|
|
<a-tag v-if="text.shop_type == 10">企业商户</a-tag> |
|
|
|
|
|
|
|
<a-tag v-else>个人商户</a-tag> |
|
|
|
|
|
|
|
</template> |
|
|
|
<!-- 操作 --> |
|
|
|
<!-- 操作 --> |
|
|
|
<span class="actions" slot="action" slot-scope="text, item"> |
|
|
|
<span class="actions" slot="action" slot-scope="text, item"> |
|
|
|
<span v-if="item.apply_status == ApplyStatusEnum.WAIT.value"> |
|
|
|
<span v-if="item.apply_status == ApplyStatusEnum.WAIT.value"> |
|
|
@ -67,9 +72,9 @@ export default { |
|
|
|
components: { |
|
|
|
components: { |
|
|
|
STable, |
|
|
|
STable, |
|
|
|
UserItem, |
|
|
|
UserItem, |
|
|
|
AuditForm |
|
|
|
AuditForm, |
|
|
|
}, |
|
|
|
}, |
|
|
|
data () { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
// 枚举类 |
|
|
|
// 枚举类 |
|
|
|
ApplyStatusEnum, |
|
|
|
ApplyStatusEnum, |
|
|
@ -77,7 +82,7 @@ export default { |
|
|
|
ApplyStatusTagColor: { |
|
|
|
ApplyStatusTagColor: { |
|
|
|
[ApplyStatusEnum.WAIT.value]: '', |
|
|
|
[ApplyStatusEnum.WAIT.value]: '', |
|
|
|
[ApplyStatusEnum.PASSED.value]: 'green', |
|
|
|
[ApplyStatusEnum.PASSED.value]: 'green', |
|
|
|
[ApplyStatusEnum.REJECT.value]: 'red' |
|
|
|
[ApplyStatusEnum.REJECT.value]: 'red', |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 查询参数 |
|
|
|
// 查询参数 |
|
|
|
queryParam: { search: '' }, |
|
|
|
queryParam: { search: '' }, |
|
|
@ -85,60 +90,87 @@ export default { |
|
|
|
isLoading: false, |
|
|
|
isLoading: false, |
|
|
|
// 表头 |
|
|
|
// 表头 |
|
|
|
columns: [ |
|
|
|
columns: [ |
|
|
|
{ |
|
|
|
|
|
|
|
title: '申请ID', |
|
|
|
|
|
|
|
dataIndex: 'apply_id' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '会员信息', |
|
|
|
title: '会员信息', |
|
|
|
|
|
|
|
|
|
|
|
dataIndex: 'user', |
|
|
|
dataIndex: 'user', |
|
|
|
scopedSlots: { customRender: 'user' } |
|
|
|
scopedSlots: { customRender: 'user' }, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '姓名/手机号', |
|
|
|
title: '姓名/手机号', |
|
|
|
scopedSlots: { customRender: 'contacts' } |
|
|
|
|
|
|
|
|
|
|
|
scopedSlots: { customRender: 'contacts' }, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
title: '店铺名称', |
|
|
|
|
|
|
|
dataIndex: 'shop_name', |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ellipsis: true, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
title: '店铺类型', |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
scopedSlots: { customRender: 'shop_type' }, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
title: '主营类目', |
|
|
|
|
|
|
|
dataIndex: 'business', |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ellipsis: true, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
title: '城市', |
|
|
|
|
|
|
|
dataIndex: 'city', |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ellipsis: true, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '推荐人', |
|
|
|
title: '推荐人', |
|
|
|
scopedSlots: { customRender: 'referee' } |
|
|
|
|
|
|
|
|
|
|
|
scopedSlots: { customRender: 'referee' }, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '审核状态', |
|
|
|
title: '邀请商家数', |
|
|
|
dataIndex: 'apply_status', |
|
|
|
dataIndex: 'wholesaler', |
|
|
|
scopedSlots: { customRender: 'apply_status' } |
|
|
|
|
|
|
|
|
|
|
|
ellipsis: true, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '申请方式', |
|
|
|
title: '审核状态', |
|
|
|
dataIndex: 'apply_type', |
|
|
|
dataIndex: 'apply_status', |
|
|
|
scopedSlots: { customRender: 'apply_type' } |
|
|
|
width: '120px', |
|
|
|
|
|
|
|
scopedSlots: { customRender: 'apply_status' }, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
// { |
|
|
|
|
|
|
|
// title: '申请方式', |
|
|
|
|
|
|
|
// width: '120px', |
|
|
|
|
|
|
|
// dataIndex: 'apply_type', |
|
|
|
|
|
|
|
// scopedSlots: { customRender: 'apply_type' }, |
|
|
|
|
|
|
|
// }, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '申请时间', |
|
|
|
title: '申请时间', |
|
|
|
dataIndex: 'create_time' |
|
|
|
width: '180px', |
|
|
|
|
|
|
|
dataIndex: 'create_time', |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '操作', |
|
|
|
title: '操作', |
|
|
|
dataIndex: 'action', |
|
|
|
dataIndex: 'action', |
|
|
|
width: '180px', |
|
|
|
width: '80px', |
|
|
|
scopedSlots: { customRender: 'action' } |
|
|
|
scopedSlots: { customRender: 'action' }, |
|
|
|
} |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
// 加载数据方法 必须为 Promise 对象 |
|
|
|
// 加载数据方法 必须为 Promise 对象 |
|
|
|
loadData: param => { |
|
|
|
loadData: (param) => { |
|
|
|
return Api.list({ ...param, ...this.queryParam }) |
|
|
|
return Api.providersList({ ...param, ...this.queryParam }).then((response) => { |
|
|
|
.then(response => { |
|
|
|
|
|
|
|
return response.data.list |
|
|
|
return response.data.list |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
created () { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
created() {}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
|
|
|
|
// 审核记录 |
|
|
|
// 审核记录 |
|
|
|
handleAudit (item) { |
|
|
|
handleAudit(item) { |
|
|
|
this.$refs.AuditForm.edit(item) |
|
|
|
this.$refs.AuditForm.edit(item) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -146,15 +178,14 @@ export default { |
|
|
|
* 刷新列表 |
|
|
|
* 刷新列表 |
|
|
|
* @param Boolean bool 强制刷新到第一页 |
|
|
|
* @param Boolean bool 强制刷新到第一页 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
handleRefresh (bool = false) { |
|
|
|
handleRefresh(bool = false) { |
|
|
|
this.$refs.table.refresh(bool) |
|
|
|
this.$refs.table.refresh(bool) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 检索查询 |
|
|
|
// 检索查询 |
|
|
|
onSearch () { |
|
|
|
onSearch() { |
|
|
|
this.handleRefresh(true) |
|
|
|
this.handleRefresh(true) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|