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

@ -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>

@ -19,8 +19,10 @@
<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 style="margin-right: 8px" @click="handleCheck(record)">审核</a></a-descriptions-item
<a-descriptions-item
label="操作"
v-if="record.status == 10"
><a style="margin-right: 8px" @click="handleCheck(record)">审核</a></a-descriptions-item
>
</a-descriptions>
</a-card>
@ -33,11 +35,11 @@
<a-descriptions-item label="身份证正面">
<a title="点击查看原图" :href="record.card_front_img" target="_blank">
<img width="50" height="50" :src="record.card_front_img" alt="图片" /> </a
></a-descriptions-item>
></a-descriptions-item>
<a-descriptions-item label="身份证反面">
<a title="点击查看原图" :href="record.card_back_img" target="_blank">
<img width="50" height="50" :src="record.card_back_img" alt="图片" /> </a
></a-descriptions-item>
></a-descriptions-item>
</a-descriptions>
</a-card>
<!-- 营业执照信息 -->
@ -65,7 +67,7 @@ import Check from './modules/Check'
export default {
name: 'RecoveryOrderDetail',
components: { Check },
data() {
data () {
return {
//
inArray,
@ -74,10 +76,10 @@ export default {
// ID
id: null,
//
record: {},
record: {}
}
},
created() {
created () {
// ID
this.id = this.$route.query.id
//
@ -85,16 +87,16 @@ export default {
},
methods: {
//
handleRefresh() {
handleRefresh () {
//
this.getDetail()
},
//
handleCheck(item) {
handleCheck (item) {
this.$refs.check.edit(item)
},
//
getDetail() {
getDetail () {
const { id } = this
this.isLoading = true
Api.detail({ id })
@ -106,8 +108,8 @@ export default {
},
//
initData() {},
},
initData () {}
}
}
</script>
<style lang="less" scoped>

@ -27,7 +27,7 @@
<script>
import * as Api from '@/api/wholesaler'
export default {
data() {
data () {
return {
//
title: '申请审核',
@ -42,12 +42,12 @@ export default {
//
form: this.$form.createForm(this),
//
record: {},
record: {}
}
},
methods: {
//
edit(record) {
edit (record) {
//
this.visible = true
//
@ -55,11 +55,11 @@ export default {
},
//
handleSubmit(e) {
handleSubmit (e) {
e.preventDefault()
//
const {
form: { validateFields },
form: { validateFields }
} = this
validateFields((errors, values) => {
// api
@ -68,13 +68,13 @@ export default {
},
//
handleCancel() {
handleCancel () {
this.visible = false
this.form.resetFields()
},
// api
onFormSubmit(values) {
onFormSubmit (values) {
this.confirmLoading = true
Api.audit({ id: this.record.id, status: values.status, remake: values.remake })
.then((result) => {
@ -86,7 +86,7 @@ export default {
this.$emit('handleSubmit', values)
})
.finally(() => (this.confirmLoading = false))
},
},
}
}
}
</script>

Loading…
Cancel
Save