diff --git a/src/api/system/user/types.ts b/src/api/system/user/types.ts index b5c8324..bb27f61 100644 --- a/src/api/system/user/types.ts +++ b/src/api/system/user/types.ts @@ -170,7 +170,7 @@ export type SysUserDTO = { chargingStatus?: number nickname?: string | undefined //剩余线索数量 - residueClueNum?: number | undefined + // residueClueNum?: number | undefined } //编辑线索阶段表单 diff --git a/src/views/geopoliticalCustomers/geopoliticalCustomersModal.vue b/src/views/geopoliticalCustomers/geopoliticalCustomersModal.vue index 1d02f3c..2880260 100644 --- a/src/views/geopoliticalCustomers/geopoliticalCustomersModal.vue +++ b/src/views/geopoliticalCustomers/geopoliticalCustomersModal.vue @@ -109,7 +109,10 @@ :wrapper-col="{ sm: { span: 24 }, md: { span: 15 } }" :rules="[ { - required: activeKey === '1', + required: + activeKey === '1' || + (activeKey === '2' && title === '编辑') || + (activeKey === '2' && title === '分发'), message: '请选择地址信息', trigger: ['blur', 'change'] } @@ -134,7 +137,14 @@ @@ -164,7 +174,16 @@ label="请输入区域半径" class="radius" name="radius" - :rules="[{ required: activeKey === '1', message: '请选择区域半径', trigger: 'blur' }]" + :rules="[ + { + required: + activeKey === '1' || + (activeKey === '2' && title === '编辑') || + (activeKey === '2' && title === '分发'), + message: '请选择区域半径', + trigger: 'blur' + } + ]" > 暂存 - 确定
@@ -469,13 +488,7 @@ const userInfoCurrent = ref('') // required: true, // trigger: 'change' // } -// watch( -// () => activeKey.value, -// (newVal, oldVal) => { -// console.log('newVal, oldVal', newVal, oldVal) -// }, -// { immediate: true, deep: true } -// ) + onMounted(() => { //省市区三级下拉框列表数据 provincesAndCitiesAndAutonomousOptions.value = window.globalProvincesAndCitiesAndAutonomousRegions @@ -549,7 +562,6 @@ const formRef = ref() const provincesAndCitiesAndAutonomousOptions: any = ref([]) //省市区change const addressChange = async (value: any) => { - // console.log(value, 'value') formModel.detailAddress = '' if (value) { @@ -1027,10 +1039,7 @@ const idThen = (detailAddress: string) => { // 处理搜索结果 const pois = result.poiList.pois console.log(pois, 'pois') - console.log(formModel.detailAddress, 'formModel.detailAddress') // 对获取到的兴趣点列表进行处理 - // console.log(pois, 'pois') - // console.log(pois[0].location.lng, pois[0].location.lat, 'pois经纬度') if (pois[0].name.includes('小区')) { const result = pois[0].name.replace('小区', '') if ( @@ -1208,9 +1217,11 @@ const showModal = () => { if (formModel.customStoreEntities.length === 0) { message.info('请先添加预约门店') } else { + formModel.enrollStatus = 1 registerVisible.value = true } } else { + formModel.enrollStatus = 1 registerVisible.value = true } }) @@ -1340,7 +1351,7 @@ const { title, visible, openModal, closeModal } = useModal() const { formAction } = useFormAction() // 表单模型 const formModel = reactive({ - customType: 0, + customType: undefined, customId: undefined, customName: '', customNid: '', @@ -1413,7 +1424,9 @@ const handleClose = () => { } // listData.value.length = 0 formRef.value?.resetFields() - // resetFields.value() + + resetFields.value() + // formModel.customType = undefined delete formModel.description submitLoading.value = false } @@ -1433,7 +1446,6 @@ const handleMapInit = async () => { defineExpose({ open(opendata: openObj) { isSubmit.value = false - openModal() // console.log('formModel.customType resssssssss', formModel.customType) //不写resetFields.value()预约门店信息会反复追加进去,但是加了resetFields.value()会导致formModel.customType为0 // resetFields.value() @@ -1504,11 +1516,11 @@ defineExpose({ if (formModel.detailAddress) { isDetailAddressDisabled.value = true } - if (formModel.address.length !== 0 && formModel.detailAddress && formModel.radius) { - handleMapInit().then(() => { + handleMapInit().then(() => { + if (formModel.address?.length !== 0 && formModel.detailAddress && formModel.radius) { match(formModel.detailAddress) - }) - } + } + }) } else if (opendata.type === 'edit') { getActiveKey() title.value = '编辑预约' @@ -1521,11 +1533,11 @@ defineExpose({ if (formModel.detailAddress) { isDetailAddressDisabled.value = true } - if (formModel.address.length !== 0 && formModel.detailAddress && formModel.radius) { - handleMapInit().then(() => { + handleMapInit().then(() => { + if (formModel.address?.length !== 0 && formModel.detailAddress && formModel.radius) { match(formModel.detailAddress) - }) - } + } + }) } else if (opendata.type === 'view') { if (formModel.customType === 0) { activeKey.value = '1' @@ -1546,6 +1558,7 @@ defineExpose({ isReservationTimeisReadOnly.value = true formModel.description = 1 } + openModal() } if (opendata.newFormAction === FormAction.CREATE) { @@ -1553,6 +1566,8 @@ defineExpose({ handleMapInit() title.value = '新建预约' formModel.customStoreEntities.length = 0 + formModel.customType = 0 + openModal() } else if (opendata.newFormAction === FormAction.UPDATE) { doRequest(getDetail({ id: opendata.record?.customId }), { onSuccess: handleSuccess @@ -1608,7 +1623,6 @@ const initMap = async () => { // center: [120.1551, 30.2741], // 地图中心点经纬度 zoom: 18 // 缩放级别 }) - console.log(map.value, 'initMap map.value') // await auto('全国') if ( (title.value === '编辑预约' && formModel.otherAddressesInfo) || diff --git a/src/views/salesmanagement/salespersonList/chargeClueModal.vue b/src/views/salesmanagement/salespersonList/chargeClueModal.vue new file mode 100644 index 0000000..90f6296 --- /dev/null +++ b/src/views/salesmanagement/salespersonList/chargeClueModal.vue @@ -0,0 +1,143 @@ + + + + diff --git a/src/views/salesmanagement/salespersonList/salespersonList.vue b/src/views/salesmanagement/salespersonList/salespersonList.vue index 5faf02e..2e6f601 100644 --- a/src/views/salesmanagement/salespersonList/salespersonList.vue +++ b/src/views/salesmanagement/salespersonList/salespersonList.vue @@ -28,6 +28,7 @@ 改密 编辑 + 充值 @@ -37,6 +38,8 @@ + + + diff --git a/vite.config.ts b/vite.config.ts index 17cb009..3d382a1 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -22,13 +22,13 @@ import { antdvStyleDeps } from './src/utils/resolvers' //项目 // export const serverAddress = 'http://admin.ballcat.cn' //xy -// export const serverAddress = 'http://172.18.0.225:8000' +export const serverAddress = 'http://172.18.0.225:8000' //jt // export const serverAddress = 'http://172.18.1.8:8000' //ts // 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' //线上ip // export const serverAddress = 'http://175.27.212.74:80'