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