|
|
|
@ -53,7 +53,7 @@ |
|
|
|
|
v-if="$auth('/wholesaler/apply/Detail')" |
|
|
|
|
:to="{ path: '/wholesaler/apply/Detail', query: { id: item.id } }" |
|
|
|
|
target="_blank" |
|
|
|
|
>详情</router-link |
|
|
|
|
>详情</router-link |
|
|
|
|
> |
|
|
|
|
</span> |
|
|
|
|
</a-table> |
|
|
|
@ -85,68 +85,68 @@ const columns = [ |
|
|
|
|
dataIndex: 'user', |
|
|
|
|
width: '170px', |
|
|
|
|
ellipsis: true, |
|
|
|
|
scopedSlots: { customRender: 'user' }, |
|
|
|
|
scopedSlots: { customRender: 'user' } |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '真实姓名', |
|
|
|
|
dataIndex: 'username', |
|
|
|
|
width: '100px', |
|
|
|
|
ellipsis: true, |
|
|
|
|
ellipsis: true |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '手机号', |
|
|
|
|
dataIndex: 'mobile', |
|
|
|
|
width: '150px', |
|
|
|
|
ellipsis: true, |
|
|
|
|
ellipsis: true |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '身份证号', |
|
|
|
|
dataIndex: 'card_no', |
|
|
|
|
width: '180px', |
|
|
|
|
ellipsis: true, |
|
|
|
|
ellipsis: true |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '公司名称', |
|
|
|
|
dataIndex: 'company_name', |
|
|
|
|
width: '220px', |
|
|
|
|
ellipsis: true, |
|
|
|
|
ellipsis: true |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '社会信用代码', |
|
|
|
|
dataIndex: 'credit_code', |
|
|
|
|
width: '200px', |
|
|
|
|
ellipsis: true, |
|
|
|
|
ellipsis: true |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '经营地址', |
|
|
|
|
width: '120px', |
|
|
|
|
ellipsis: true, |
|
|
|
|
scopedSlots: { customRender: 'region' }, |
|
|
|
|
scopedSlots: { customRender: 'region' } |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '经营类目', |
|
|
|
|
dataIndex: 'business', |
|
|
|
|
width: '200px', |
|
|
|
|
ellipsis: true, |
|
|
|
|
ellipsis: true |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '申请时间', |
|
|
|
|
width: '180px', |
|
|
|
|
ellipsis: true, |
|
|
|
|
dataIndex: 'create_time', |
|
|
|
|
dataIndex: 'create_time' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '状态', |
|
|
|
|
width: '80px', |
|
|
|
|
dataIndex: 'status_text', |
|
|
|
|
dataIndex: 'status_text' |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
title: '操作', |
|
|
|
|
width: '100px', |
|
|
|
|
fixed: 'right', |
|
|
|
|
scopedSlots: { customRender: 'action' }, |
|
|
|
|
}, |
|
|
|
|
scopedSlots: { customRender: 'action' } |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
@ -154,13 +154,13 @@ export default { |
|
|
|
|
components: { |
|
|
|
|
ContentHeader, |
|
|
|
|
STable, |
|
|
|
|
UserItem, |
|
|
|
|
UserItem |
|
|
|
|
}, |
|
|
|
|
data() { |
|
|
|
|
data () { |
|
|
|
|
return { |
|
|
|
|
// 当前表单元素 |
|
|
|
|
searchForm: this.$form.createForm(this), |
|
|
|
|
//状态 |
|
|
|
|
// 状态 |
|
|
|
|
applyStatusList: [], |
|
|
|
|
// 查询参数 |
|
|
|
|
queryParam: { |
|
|
|
@ -169,7 +169,7 @@ export default { |
|
|
|
|
mobile: '', |
|
|
|
|
status: '0', |
|
|
|
|
page: 1, |
|
|
|
|
pageSize: 15, |
|
|
|
|
pageSize: 15 |
|
|
|
|
}, |
|
|
|
|
pageSizeOptions: ['15', '30', '50'], |
|
|
|
|
showTotal: (total) => `共 ${total} 条记录`, // 显示总数 |
|
|
|
@ -181,10 +181,10 @@ export default { |
|
|
|
|
// 选择的元素 |
|
|
|
|
selectedRowKeys: [], |
|
|
|
|
// 加载数据方法 必须为 Promise 对象 |
|
|
|
|
list: [], |
|
|
|
|
list: [] |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
|
created () { |
|
|
|
|
// 默认的查询参数 |
|
|
|
|
if (this.$route.query.status) { |
|
|
|
|
this.queryParam.status = this.$route.query.status |
|
|
|
@ -193,33 +193,33 @@ export default { |
|
|
|
|
this.fetchData() |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
|
rowSelection() { |
|
|
|
|
rowSelection () { |
|
|
|
|
return { |
|
|
|
|
selectedRowKeys: this.selectedRowKeys, |
|
|
|
|
onChange: this.onSelectChange, |
|
|
|
|
onChange: this.onSelectChange |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
// 选中项发生变化时的回调 |
|
|
|
|
onSelectChange(selectedRowKeys) { |
|
|
|
|
onSelectChange (selectedRowKeys) { |
|
|
|
|
this.selectedRowKeys = selectedRowKeys |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 切换tab |
|
|
|
|
handleTabs(e) { |
|
|
|
|
handleTabs (e) { |
|
|
|
|
this.queryParam.page = 1 |
|
|
|
|
this.queryParam.status = e.target.value |
|
|
|
|
this.fetchData() |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 确认搜索 |
|
|
|
|
handleSearch() { |
|
|
|
|
handleSearch () { |
|
|
|
|
this.queryParam.page = 1 |
|
|
|
|
this.fetchData() |
|
|
|
|
}, |
|
|
|
|
// 重置搜索表单 |
|
|
|
|
fetchData() { |
|
|
|
|
fetchData () { |
|
|
|
|
this.isLoading = true |
|
|
|
|
Api.list(this.queryParam) |
|
|
|
|
.then((result) => { |
|
|
|
@ -229,22 +229,22 @@ export default { |
|
|
|
|
.finally(() => (this.isLoading = false)) |
|
|
|
|
}, |
|
|
|
|
// 重置搜索表单 |
|
|
|
|
handleReset() { |
|
|
|
|
handleReset () { |
|
|
|
|
this.searchForm.resetFields() |
|
|
|
|
}, |
|
|
|
|
handlePageChange(current, size) { |
|
|
|
|
handlePageChange (current, size) { |
|
|
|
|
this.queryParam.page = current |
|
|
|
|
this.queryParam.pageSize = size |
|
|
|
|
this.fetchData() |
|
|
|
|
}, |
|
|
|
|
handleSizeChange(current, size) { |
|
|
|
|
handleSizeChange (current, size) { |
|
|
|
|
this.queryParam.page = current |
|
|
|
|
this.queryParam.pageSize = size |
|
|
|
|
this.fetchData() |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
//获取状态 |
|
|
|
|
getStatusList() { |
|
|
|
|
// 获取状态 |
|
|
|
|
getStatusList () { |
|
|
|
|
this.isLoading = true |
|
|
|
|
Api.applyStatus() |
|
|
|
|
.then((result) => { |
|
|
|
@ -253,18 +253,18 @@ export default { |
|
|
|
|
.finally(() => (this.isLoading = false)) |
|
|
|
|
}, |
|
|
|
|
// 验收 |
|
|
|
|
handleAcceptance(item) { |
|
|
|
|
handleAcceptance (item) { |
|
|
|
|
this.$refs.acceptance.add(item) |
|
|
|
|
}, |
|
|
|
|
/** |
|
|
|
|
* 刷新列表 |
|
|
|
|
* @param Boolean bool 强制刷新到第一页 |
|
|
|
|
*/ |
|
|
|
|
handleRefresh(bool = false) { |
|
|
|
|
handleRefresh (bool = false) { |
|
|
|
|
this.selectedRowKeys = [] |
|
|
|
|
this.fetchData() |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|
<style lang="less" scoped> |
|
|
|
|