wanghousheng 8 months ago
parent 4daab63379
commit 2317c7fea2
  1. 38
      src/views/wholesaler/Apply.vue
  2. 10
      src/views/wholesaler/ApplyDetail.vue
  3. 8
      src/views/wholesaler/modules/Check.vue

@ -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,7 +154,7 @@ export default {
components: {
ContentHeader,
STable,
UserItem,
UserItem
},
data () {
return {
@ -169,7 +169,7 @@ export default {
mobile: '',
status: '0',
page: 1,
pageSize: 15,
pageSize: 15
},
pageSizeOptions: ['15', '30', '50'],
showTotal: (total) => `${total} 条记录`, //
@ -181,7 +181,7 @@ export default {
//
selectedRowKeys: [],
// Promise
list: [],
list: []
}
},
created () {
@ -196,9 +196,9 @@ export default {
rowSelection () {
return {
selectedRowKeys: this.selectedRowKeys,
onChange: this.onSelectChange,
onChange: this.onSelectChange
}
}
},
},
methods: {
//
@ -263,8 +263,8 @@ export default {
handleRefresh (bool = false) {
this.selectedRowKeys = []
this.fetchData()
},
},
}
}
}
</script>
<style lang="less" scoped>

@ -19,7 +19,9 @@
<a-descriptions-item label="到期时间" v-if="record.user.effective_time">{{
record.user.effective_time
}}</a-descriptions-item>
<a-descriptions-item label="操作" v-if="record.status == 10"
<a-descriptions-item
label="操作"
v-if="record.status == 10"
><a style="margin-right: 8px" @click="handleCheck(record)">审核</a></a-descriptions-item
>
</a-descriptions>
@ -74,7 +76,7 @@ export default {
// ID
id: null,
//
record: {},
record: {}
}
},
created () {
@ -106,8 +108,8 @@ export default {
},
//
initData() {},
},
initData () {}
}
}
</script>
<style lang="less" scoped>

@ -42,7 +42,7 @@ export default {
//
form: this.$form.createForm(this),
//
record: {},
record: {}
}
},
methods: {
@ -59,7 +59,7 @@ export default {
e.preventDefault()
//
const {
form: { validateFields },
form: { validateFields }
} = this
validateFields((errors, values) => {
// api
@ -86,7 +86,7 @@ export default {
this.$emit('handleSubmit', values)
})
.finally(() => (this.confirmLoading = false))
},
},
}
}
}
</script>

Loading…
Cancel
Save