master
doublekou 9 months ago
commit 94c87abb6e

@ -266,6 +266,7 @@ export interface GeopoliticalCustomersSearch {
customName?: string customName?: string
customNid?: string customNid?: string
storeId?: string storeId?: string
salesmanUserId?: number
enrollStatus?: string enrollStatus?: string
// 访问时间区间的开始值 // 访问时间区间的开始值
startTime?: string startTime?: string

@ -11,7 +11,7 @@ export type SupportLanguage = Record<string, LanguageInfo>
// 项目标题 // 项目标题
export const projectTitle = '线索分发系统' export const projectTitle = '线索分发系统'
// 项目描述 // 项目描述
export const projectDesc = 'Ballcat Admin 是一套简单好用的后台管理系统' export const projectDesc = '线索分发后台管理系统'
// Local Storage/ Session Storage 的 key 前缀 prefix // Local Storage/ Session Storage 的 key 前缀 prefix
export const storageKeyPrefix = 'ballcat-admin/' export const storageKeyPrefix = 'ballcat-admin/'

@ -19,6 +19,10 @@ const useAdminWebSocket = () => {
const baseUri = import.meta.env.VITE_API_URL const baseUri = import.meta.env.VITE_API_URL
const host = window.location.host const host = window.location.host
const wsUri = `wss://${host}${baseUri}/ws?access_token=${accessToken}` const wsUri = `wss://${host}${baseUri}/ws?access_token=${accessToken}`
<<<<<<< HEAD
=======
console.log(wsUri, 'wsUri')
>>>>>>> 5f87413450a7cc2d78ad58061d92f900031ae1f9
//使用useWebSocket函数创建WebSocket连接并配置自动重连和心跳机制 //使用useWebSocket函数创建WebSocket连接并配置自动重连和心跳机制
useWebSocketReturn = useWebSocket(wsUri, { useWebSocketReturn = useWebSocket(wsUri, {

@ -22,12 +22,12 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :xl="8" :md="12" :sm="24"> <a-col :xl="8" :md="12" :sm="24">
<a-form-item label="分发门店" name="storeId"> <a-form-item label="业务员" name="salesmanUserId">
<a-select <a-select
v-model:value="formModel.storeId" v-model:value="formModel.salesmanUserId"
:field-names="{ label: 'storeName', value: 'id' }" :field-names="{ label: 'userName', value: 'userId' }"
:options="shopList" :options="businessUserList"
placeholder="请选择分发门店" placeholder="请选择业务员"
/> />
</a-form-item> </a-form-item>
</a-col> </a-col>
@ -66,6 +66,7 @@
import { Form } from 'ant-design-vue' import { Form } from 'ant-design-vue'
import type { GeopoliticalCustomersSearch } from '@/api/geopoliticalCustomers/types' import type { GeopoliticalCustomersSearch } from '@/api/geopoliticalCustomers/types'
import { getShopQueryAll } from '@/api/shopManage/index' import { getShopQueryAll } from '@/api/shopManage/index'
import { getDistributorsUserIdList } from '@/api/clueaccess/clueImport/index'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import type { Dayjs } from 'dayjs' import type { Dayjs } from 'dayjs'
import { doRequest } from '@/utils/axios/request' import { doRequest } from '@/utils/axios/request'
@ -97,11 +98,13 @@ const emits = defineEmits<{
(e: 'search', params: Record<string, any>): void (e: 'search', params: Record<string, any>): void
}>() }>()
const shopList: any = ref([]) const shopList: any = ref([])
//
const businessUserList: any = ref([])
const searchTimeValue = ref<[Dayjs, Dayjs]>() const searchTimeValue = ref<[Dayjs, Dayjs]>()
const distributeTime = ref<[Dayjs, Dayjs]>() const distributeTime = ref<[Dayjs, Dayjs]>()
const formModel = reactive<GeopoliticalCustomersSearch>({ const formModel = reactive<GeopoliticalCustomersSearch>({
customName: '', customName: '',
storeId: '', salesmanUserId: undefined,
enrollStatus: undefined enrollStatus: undefined
}) })
@ -117,9 +120,14 @@ const enrollStatusList = [
} }
] ]
const initShopList = () => { const initShopList = () => {
doRequest(getShopQueryAll(2), { // doRequest(getShopQueryAll(2), {
// onSuccess: res => {
// shopList.value = res.data
// }
// })
doRequest(getDistributorsUserIdList(23), {
onSuccess: res => { onSuccess: res => {
shopList.value = res.data businessUserList.value = res.data
} }
}) })
} }

@ -95,6 +95,21 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
<a-row v-if="formModel.userNameList.length > 0" justify="start">
<a-col :span="24">
<a-form-item
label="业务员"
name="customInformation"
:label-col="{ sm: { span: 24 }, md: { span: 4 } }"
:wrapper-col="{ sm: { span: 24 }, md: { span: 20 } }"
>
<div v-for="(item, index) in formModel.userNameList" :key="index">
<a href="#">{{ item }}</a
><a-divider type="vertical" />
</div>
</a-form-item>
</a-col>
</a-row>
<template v-for="item in formModel.customStoreVOList" :key="item.storeId"> <template v-for="item in formModel.customStoreVOList" :key="item.storeId">
<a-row justify="start"> <a-row justify="start">
<a-col xs="24" :sm="24" :md="12"> <a-col xs="24" :sm="24" :md="12">
@ -194,6 +209,7 @@ interface SysUserPageVO {
customStoreVOList: ReservationShop[] customStoreVOList: ReservationShop[]
reviewUserId: number | undefined reviewUserId: number | undefined
customInformation: string customInformation: string
userNameList: string[]
} }
const formModel = reactive<SysUserPageVO>({ const formModel = reactive<SysUserPageVO>({
@ -206,7 +222,8 @@ const formModel = reactive<SysUserPageVO>({
customStoreVOList: [], customStoreVOList: [],
enrollStatus: undefined, enrollStatus: undefined,
reviewUserId: undefined, reviewUserId: undefined,
customInformation: '' customInformation: '',
userNameList: []
}) })
// //
@ -416,7 +433,10 @@ defineExpose({
.large-card { .large-card {
height: 100px; height: 100px;
} }
.u-flex {
display: flex;
align-items: center;
}
::v-deep .bubble-card::before { ::v-deep .bubble-card::before {
content: ''; content: '';
position: absolute; position: absolute;
@ -450,4 +470,8 @@ defineExpose({
margin: 0 0 25px 0; margin: 0 0 25px 0;
line-height: 0.5715; line-height: 0.5715;
} }
::v-deep .ant-form-item-control-input-content {
display: flex;
align-items: center;
}
</style> </style>

@ -26,10 +26,10 @@ import { antdvStyleDeps } from './src/utils/resolvers'
//ts //ts
// export const serverAddress = 'http://172.18.0.228:8000' // export const serverAddress = 'http://172.18.0.228:8000'
//测试 //测试
// export const serverAddress = 'http://39.100.77.21:8000' export const serverAddress = 'http://39.100.77.21:8000'
//线上域名,现在用这个 //线上域名,现在用这个
export const serverAddress = 'https://byffp.top' // export const serverAddress = 'https://byffp.top'
export default defineConfig({ export default defineConfig({
server: { server: {

Loading…
Cancel
Save