新增:商户入驻申请

This commit is contained in:
2024-09-10 12:19:37 +08:00
parent a1a0b360b0
commit 0068553e35
6 changed files with 46 additions and 19 deletions

View File

@@ -45,7 +45,11 @@
</a-card>
<!-- 编辑弹窗 -->
<DealerApplyEdit v-model:visible="showEdit" :data="current" @done="reload" />
<DealerApplyEdit
v-model:visible="showEdit"
:data="current"
@done="reload"
/>
</div>
</div>
</template>
@@ -62,8 +66,15 @@
} from 'ele-admin-pro/es/ele-pro-table/types';
import Search from './components/search.vue';
import DealerApplyEdit from './components/dealerApplyEdit.vue';
import { pageDealerApply, removeDealerApply, removeBatchDealerApply } from '@/api/shop/dealerApply';
import type { DealerApply, DealerApplyParam } from '@/api/shop/dealerApply/model';
import {
pageDealerApply,
removeDealerApply,
removeBatchDealerApply
} from '@/api/shop/dealerApply';
import type {
DealerApply,
DealerApplyParam
} from '@/api/shop/dealerApply/model';
// 表格实例
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
@@ -105,61 +116,61 @@
dataIndex: 'applyId',
key: 'applyId',
align: 'center',
width: 90,
width: 90
},
{
title: '用户ID',
dataIndex: 'userId',
key: 'userId',
align: 'center',
align: 'center'
},
{
title: '姓名',
dataIndex: 'realName',
key: 'realName',
align: 'center',
align: 'center'
},
{
title: '手机号',
dataIndex: 'mobile',
key: 'mobile',
align: 'center',
align: 'center'
},
{
title: '推荐人用户ID',
dataIndex: 'refereeId',
key: 'refereeId',
align: 'center',
align: 'center'
},
{
title: '申请方式(10需后台审核 20无需审核)',
dataIndex: 'applyType',
key: 'applyType',
align: 'center',
align: 'center'
},
{
title: '申请时间',
dataIndex: 'applyTime',
key: 'applyTime',
align: 'center',
align: 'center'
},
{
title: '审核状态 (10待审核 20审核通过 30驳回)',
dataIndex: 'applyStatus',
key: 'applyStatus',
align: 'center',
align: 'center'
},
{
title: '审核时间',
dataIndex: 'auditTime',
key: 'auditTime',
align: 'center',
align: 'center'
},
{
title: '驳回原因',
dataIndex: 'rejectReason',
key: 'rejectReason',
align: 'center',
align: 'center'
},
{
title: '创建时间',
@@ -174,7 +185,7 @@
title: '修改时间',
dataIndex: 'updateTime',
key: 'updateTime',
align: 'center',
align: 'center'
},
{
title: '操作',