|
|
|
@ -63,6 +63,23 @@
|
|
|
|
|
:readonly="title === '详情' || title === '审核'"
|
|
|
|
|
/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
<a-form-item
|
|
|
|
|
label="备注"
|
|
|
|
|
name="remark"
|
|
|
|
|
:label-col="{ sm: { span: 24 }, md: { span: 5 } }"
|
|
|
|
|
:wrapper-col="
|
|
|
|
|
title === '详情' || title === '审核'
|
|
|
|
|
? { sm: { span: 24 }, md: { span: 9 } }
|
|
|
|
|
: { sm: { span: 24 }, md: { span: 11 } }
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<a-input
|
|
|
|
|
v-model:value="formModel.remark"
|
|
|
|
|
placeholder="请输入备注"
|
|
|
|
|
style="width: 65%"
|
|
|
|
|
:readonly="title === '详情' || title === '审核'"
|
|
|
|
|
/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
<a-row :gutter="16">
|
|
|
|
|
<a-col :xl="14" :md="14" :sm="14">
|
|
|
|
|
<a-form-item
|
|
|
|
@ -388,7 +405,8 @@ onMounted(() => {
|
|
|
|
|
appointmentTimeOptions.value?.push({ value: item, label: item })
|
|
|
|
|
})
|
|
|
|
|
//省市区下拉框列表数据
|
|
|
|
|
provincesAndCitiesAndAutonomousOptions.value = provincesAndCitiesAndAutonomousRegions
|
|
|
|
|
// provincesAndCitiesAndAutonomousOptions.value = provincesAndCitiesAndAutonomousRegions
|
|
|
|
|
provincesAndCitiesAndAutonomousOptions.value = window.globalProvincesAndCitiesAndAutonomousRegions
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
//动态生成只读/禁用样式
|
|
|
|
@ -528,6 +546,7 @@ const pagingQuery = () => {
|
|
|
|
|
message.info('当前位置附近暂无相关门店')
|
|
|
|
|
} else {
|
|
|
|
|
const ids = formModel.customStoreEntities.map(item => item.storeId)
|
|
|
|
|
listData.value.length = 0
|
|
|
|
|
result.data &&
|
|
|
|
|
result.data.forEach((item: any) => {
|
|
|
|
|
const disabled = ids.includes(Number(item.id))
|
|
|
|
@ -728,10 +747,11 @@ const submitOperate = (type: string, status?: number) => {
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
isSubmit.value = true
|
|
|
|
|
registerVisible.value = false
|
|
|
|
|
handleSubmit()
|
|
|
|
|
message.success('操作成功')
|
|
|
|
|
if (type === 'zc' || title.value === '审核') {
|
|
|
|
|
handleSubmit()
|
|
|
|
|
}
|
|
|
|
|
// if (type === 'zc' || title.value === '审核') {
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -795,12 +815,13 @@ const formModel = reactive<CustomerDTO>({
|
|
|
|
|
customId: undefined,
|
|
|
|
|
customName: '',
|
|
|
|
|
customNid: '',
|
|
|
|
|
remark: '',
|
|
|
|
|
address: [],
|
|
|
|
|
economize: '',
|
|
|
|
|
market: '',
|
|
|
|
|
distinguish: '',
|
|
|
|
|
detailAddress: '',
|
|
|
|
|
radius: '',
|
|
|
|
|
radius: '5000',
|
|
|
|
|
enrollStatus: 1,
|
|
|
|
|
customStoreEntities: []
|
|
|
|
|
})
|
|
|
|
@ -876,6 +897,7 @@ defineExpose({
|
|
|
|
|
customId,
|
|
|
|
|
customName,
|
|
|
|
|
customNid,
|
|
|
|
|
remark,
|
|
|
|
|
economize,
|
|
|
|
|
market,
|
|
|
|
|
distinguish,
|
|
|
|
@ -887,6 +909,7 @@ defineExpose({
|
|
|
|
|
formModel.customId = customId
|
|
|
|
|
formModel.customName = customName
|
|
|
|
|
formModel.customNid = customNid
|
|
|
|
|
formModel.remark = remark
|
|
|
|
|
formModel.address = [economize, market, distinguish]
|
|
|
|
|
formModel.economize = economize
|
|
|
|
|
formModel.market = market
|
|
|
|
@ -931,7 +954,7 @@ defineExpose({
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
//地图
|
|
|
|
|
import { provincesAndCitiesAndAutonomousRegions } from '@/utils/geopolitical-customers'
|
|
|
|
|
// import { provincesAndCitiesAndAutonomousRegions } from '@/utils/geopolitical-customers'
|
|
|
|
|
import type { ShowSearchType } from 'ant-design-vue/es/cascader'
|
|
|
|
|
|
|
|
|
|
declare const AMap: any
|
|
|
|
|