diff --git a/dist.zip b/dist.zip new file mode 100644 index 0000000..c788ca0 Binary files /dev/null and b/dist.zip differ diff --git a/index.html b/index.html index 339f800..464853b 100644 --- a/index.html +++ b/index.html @@ -229,7 +229,7 @@ diff --git a/src/api/geopoliticalCustomers/index.ts b/src/api/geopoliticalCustomers/index.ts index cc1a2c6..dd90193 100644 --- a/src/api/geopoliticalCustomers/index.ts +++ b/src/api/geopoliticalCustomers/index.ts @@ -7,9 +7,13 @@ import type { import type { GeopoliticalCustomersDTO, CustomerDTO, - customId + customId, + auditDTO +} from '@/api/geopoliticalCustomers/types' +import type { + GeopoliticalCustomersPageParam, + storePageParam } from '@/api/geopoliticalCustomers/types' -import type { GeopoliticalCustomersPageParam } from '@/api/geopoliticalCustomers/types' /** * 地缘获客分页查询 @@ -96,3 +100,24 @@ export function getDetail(customId: customId) { params: customId }) } +/** + * 审核客户 + * @param customerDto 客户信息传输对象 + */ +export function auditCustomer(customerDto: auditDTO) { + return httpClient.post>('/custom/audit', customerDto) +} +// export function auditCustomer(customerDto: CustomerDTO) { +// return httpClient.get('/custom/audit', { +// params: customerDto +// }) +// } +/** + * 查询范围内所有的门店 + * @param pageParams 分页参数 + */ +export function getStoreData(pageParams: storePageParam) { + return httpClient.get('/store/queryRange', { + params: pageParams + }) +} diff --git a/src/api/geopoliticalCustomers/types.ts b/src/api/geopoliticalCustomers/types.ts index 2e77c3e..c0d3874 100644 --- a/src/api/geopoliticalCustomers/types.ts +++ b/src/api/geopoliticalCustomers/types.ts @@ -154,32 +154,40 @@ interface customStoreEntitiesItem { // customStoreId: number // storeId: number // customId: number + //门店id + storeId: number //门店名称 - storeName: string + storeName?: string //预约时间 reservationTime: string } export interface CustomerDTO { customId?: number | undefined //客户名称 - customName: string | undefined + customName?: string | undefined //客户联系方式 - customNid: string | undefined + customNid?: string | undefined address?: Array //省 - economize: string + economize?: string //市 - market: string + market?: string //区 - distinguish: string + distinguish?: string //详细地址 - detailAddress: any + detailAddress?: any //半径 - radius: any + radius?: any //报名状态 - enrollStatus: number + enrollStatus?: number //门店信息 customStoreEntities: Array + description?: number | undefined + status?: number | undefined +} +export interface auditDTO { + customId?: number | undefined + status?: number | undefined } /** * 任务ID(接口里面用到) @@ -237,3 +245,32 @@ export interface GeopoliticalCustomersSearch { // 访问时间区间的结束值 endTime?: string } +/** + * 表单重审搜索区域表单 + */ +export interface FormReviewSearch { + batchNo?: string + // 访问时间区间的开始值 + startTime?: string + // 访问时间区间的结束值 + endTime?: string +} +/** + * 门店分页参数 + */ +export type storePageParam = storeQO & PageParam +/** + * 门店查询对象 + */ +export type storeQO = { + //经度 + longitude?: number + //市 + latitude?: number + //纬度 + distance?: number + // 开始时间 + startTime?: string + // 结束时间 + endTime?: string +} diff --git a/src/views/formReview/formReview.vue b/src/views/formReview/formReview.vue index 35d7410..756ffdf 100644 --- a/src/views/formReview/formReview.vue +++ b/src/views/formReview/formReview.vue @@ -25,8 +25,8 @@ @@ -52,7 +52,7 @@ import type { GeopoliticalCustomersPageParam } from '@/api/geopoliticalCustomers/types' -defineOptions({ name: 'GeopoliticalCustomers' }) +defineOptions({ name: 'FormReview' }) //底部表格 // 表格组件引用 @@ -78,23 +78,9 @@ const searchTable = (params: GeopoliticalCustomersPageParam) => { searchParams = params reloadTable(true) // 会调用 tableRequest } -//新建预约 -const newAppointment = () => { - geopoliticalCustomersModalRef.value?.open({ - newFormAction: FormAction.CREATE - }) -} -//查看 -const handleView = (record: GeopoliticalCustomersRecord) => { - geopoliticalCustomersModalRef.value?.open({ - newFormAction: FormAction.UPDATE, - type: 'view', - record: record - }) -} -//编辑预约 -const handleEdit = (record: GeopoliticalCustomersRecord) => { +//审核 +const handleAudit = (record: GeopoliticalCustomersRecord) => { geopoliticalCustomersModalRef.value?.open({ newFormAction: FormAction.UPDATE, type: 'audit', @@ -105,10 +91,8 @@ const handleEdit = (record: GeopoliticalCustomersRecord) => { const columns: ProColumns[] = [ { title: '编号', - width: 80, - customRender: function ({ index }) { - return `${index + 1}` - } + width: 160, + dataIndex: 'batchNo' }, { title: '客户名称', @@ -126,6 +110,8 @@ const columns: ProColumns[] = [ return h('div', '待提交') } else if (record.enrollStatus === 1) { return h('div', '已报名') + } else if (record.enrollStatus === 2) { + return h('div', '审核通过') } } }, @@ -159,15 +145,15 @@ const columns: ProColumns[] = [ } //批量操作、更多操作 -.operationButtonArea { - padding-bottom: 20px; -} -.operationButton { - background-color: #f4f4f5; - border-radius: 5px; - color: #909399; - margin-right: 10px; -} +// .operationButtonArea { +// padding-bottom: 20px; +// } +// .operationButton { +// background-color: #f4f4f5; +// border-radius: 5px; +// color: #909399; +// margin-right: 10px; +// } .editable-row-operations a { margin-right: 8px; } diff --git a/src/views/formReview/formReviewSearch.vue b/src/views/formReview/formReviewSearch.vue index 3ea9057..1ac29f0 100644 --- a/src/views/formReview/formReviewSearch.vue +++ b/src/views/formReview/formReviewSearch.vue @@ -2,42 +2,11 @@ - - + - - - import { Form } from 'ant-design-vue' -import type { GeopoliticalCustomersSearch } from '@/api/geopoliticalCustomers/types' +import type { FormReviewSearch } from '@/api/geopoliticalCustomers/types' import dayjs from 'dayjs' import type { Dayjs } from 'dayjs' -//获取当前账号角色 -import { useUserStore } from '@/stores/user-store' -const { userInfo } = useUserStore() - -const userInfoCurrent = ref('') -onMounted(() => { - console.log(userInfo, 'userInfo?.permissions') - // userInfoCurrent = userInfo?.roleCodes - userInfoCurrent.value = userInfo?.roleCodes?.toLocaleString() -}) const useForm = Form.useForm @@ -92,10 +51,8 @@ const emits = defineEmits<{ }>() const searchTimeValue = ref<[Dayjs, Dayjs]>() -const formModel = reactive({ - customName: '', - customNid: '', - enrollStatus: undefined +const formModel = reactive({ + batchNo: '' }) const { resetFields } = useForm(formModel) diff --git a/src/views/geopoliticalCustomers/geopoliticalCustomers.vue b/src/views/geopoliticalCustomers/geopoliticalCustomers.vue index b40e76b..e583828 100644 --- a/src/views/geopoliticalCustomers/geopoliticalCustomers.vue +++ b/src/views/geopoliticalCustomers/geopoliticalCustomers.vue @@ -27,7 +27,7 @@ @@ -106,10 +106,8 @@ const handleEdit = (record: GeopoliticalCustomersRecord) => { const columns: ProColumns[] = [ { title: '编号', - width: 80, - customRender: function ({ index }) { - return `${index + 1}` - } + width: 160, + dataIndex: 'batchNo' }, { title: '客户名称', @@ -127,6 +125,8 @@ const columns: ProColumns[] = [ return h('div', '待提交') } else if (record.enrollStatus === 1) { return h('div', '已报名') + } else if (record.enrollStatus === 2) { + return h('div', '审核通过') } } }, diff --git a/src/views/geopoliticalCustomers/geopoliticalCustomersModal copy.vue b/src/views/geopoliticalCustomers/geopoliticalCustomersModal copy.vue deleted file mode 100644 index a4e4cd6..0000000 --- a/src/views/geopoliticalCustomers/geopoliticalCustomersModal copy.vue +++ /dev/null @@ -1,1069 +0,0 @@ - - - - diff --git a/src/views/geopoliticalCustomers/geopoliticalCustomersModal.vue b/src/views/geopoliticalCustomers/geopoliticalCustomersModal.vue index 4e07780..9f51427 100644 --- a/src/views/geopoliticalCustomers/geopoliticalCustomersModal.vue +++ b/src/views/geopoliticalCustomers/geopoliticalCustomersModal.vue @@ -1,6 +1,4 @@