master
飘泊客 1 year ago
parent a5961a1089
commit 690444cbda

@ -25,9 +25,15 @@ export function getReservation(pageParams: queryReservation) {
params: pageParams
})
}
export function deleteShop(id: number) {
return httpClient.delete<ApiResult<void>>(`/store/${id}`)
}
export function exportI18nDataExcel(params: queryReservation) {
return httpClient.get('/store/export', { params, responseType: 'blob' })
}
// 所有店铺列表
export function getShopQueryAll(type: number) {
return httpClient.get('/store/queryAll', { params: { roleType: type } })
}

@ -30,6 +30,7 @@
<a-input
v-model:value="modelRef.code"
size="large"
type="number"
auto-complete="off"
placeholder="验证码"
style="width: 63%"

@ -98,6 +98,10 @@ const columns: ProColumns[] = [
title: '联系方式',
dataIndex: 'customNid'
},
{
title: '分发门店',
dataIndex: 'storeName'
},
{
title: '分发状态',
dataIndex: 'enrollStatus',
@ -106,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', '已通过')
}
}
},

@ -1,11 +1,3 @@
<!--
* @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
* @Date: 2023-09-12 13:56:02
* @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
* @LastEditTime: 2023-09-14 17:37:10
* @FilePath: \byhl-zt\src\views\qualityInspectionDistribution\inspectionModal.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<a-modal
:title="title"
@ -84,7 +76,6 @@ import { overrideProperties } from '@/utils/bean-utils'
import { message } from 'ant-design-vue'
import type { CustomerDTO, GeopoliticalCustomersRecord } from '@/api/geopoliticalCustomers/types'
import { updateCustomerAudit } from '@/api/geopoliticalCustomers/index'
import { doRequest } from '@/utils/axios/request'
import { useAdminForm, useFormAction, FormAction, labelCol, wrapperCol } from '@/hooks/form'
import { useUserStore } from '@/stores/user-store'
//

@ -22,11 +22,16 @@
</a-form-item>
</a-col>
<a-col :xl="8" :md="12" :sm="24">
<a-form-item label="分发门店">
<a-input v-model:value="formModel.customNid" placeholder="请输入" />
<a-form-item label="分发门店" name="customNid">
<a-select
v-model:value="formModel.customNid"
:field-names="{ label: 'storeName', value: 'id' }"
:options="shopList"
placeholder="请选择分发门店"
/>
</a-form-item>
</a-col>
<a-col :xl="8" :md="12" :sm="24">
<!-- <a-col :xl="8" :md="12" :sm="24">
<a-form-item label="分发时间">
<a-range-picker
v-model:value="searchTimeValue"
@ -38,7 +43,7 @@
}"
/>
</a-form-item>
</a-col>
</a-col> -->
<a-col :xl="24" :md="24" :sm="24">
<search-actions :loading="props.loading" @search="search" @reset="reset" />
</a-col>
@ -50,8 +55,10 @@
<script setup lang="ts">
import { Form } from 'ant-design-vue'
import type { GeopoliticalCustomersSearch } from '@/api/geopoliticalCustomers/types'
import { getShopQueryAll } from '@/api/shopManage/index'
import dayjs from 'dayjs'
import type { Dayjs } from 'dayjs'
import { doRequest } from '@/utils/axios/request'
//
import { useUserStore } from '@/stores/user-store'
const { userInfo } = useUserStore()
@ -61,6 +68,7 @@ onMounted(() => {
console.log(userInfo, 'userInfo?.permissions')
// userInfoCurrent = userInfo?.roleCodes
userInfoCurrent.value = userInfo?.roleCodes?.toLocaleString()
initShopList()
})
const useForm = Form.useForm
@ -78,7 +86,7 @@ const props = withDefaults(
const emits = defineEmits<{
(e: 'search', params: Record<string, any>): void
}>()
const shopList: any = ref([])
const searchTimeValue = ref<[Dayjs, Dayjs]>()
const formModel = reactive<GeopoliticalCustomersSearch>({
customName: '',
@ -88,6 +96,14 @@ const formModel = reactive<GeopoliticalCustomersSearch>({
const { resetFields } = useForm(formModel)
const initShopList = () => {
doRequest(getShopQueryAll(2), {
onSuccess: res => {
shopList.value = res.data
}
})
}
const search = () => {
const param = toRaw(formModel)
if (searchTimeValue.value && searchTimeValue.value.length == 2) {

@ -155,6 +155,10 @@ const columns: ProColumns[] = [
}
}
},
{
title: '承接销售',
dataIndex: 'userName'
},
{
title: '创建日期',
dataIndex: 'createTime',

@ -235,14 +235,16 @@ const initMap = () => {
}
placeSearch.value = new AMap.PlaceSearch(placeOptions)
})
autoComplete.value.on('select', (e: any) => {
setTimeout(() => {
autoComplete.value?.on('select', (e: any) => {
placeSearch.value.setCity(e.poi.adcode)
placeSearch.value.search(e.poi.name)
})
placeSearch.value.on('markerClick', (e: any) => {
placeSearch.value?.on('markerClick', (e: any) => {
formModel.address = `${e.data.pname}${e.data.cityname}${e.data.adname}${e.data.address}`
anchorData = { ...e.data }
})
}, 300)
map.value.addControl(geolocation)
}
@ -288,7 +290,6 @@ const handleSubmit = () => {
)
})
}
defineExpose({
async open(newFormAction: FormAction, record?: shopDetailVO) {
await selectUserList()

@ -69,6 +69,7 @@ declare module '@vue/runtime-core' {
ATag: typeof import('ant-design-vue/es')['Tag']
ATextarea: typeof import('ant-design-vue/es')['Textarea']
ATimePicker: typeof import('ant-design-vue/es')['TimePicker']
ATimeRangePicker: typeof import('ant-design-vue/es')['TimeRangePicker']
ATooltip: typeof import('ant-design-vue/es')['Tooltip']
ATransfer: typeof import('ant-design-vue/es')['Transfer']
ATree: typeof import('ant-design-vue/es')['Tree']

Loading…
Cancel
Save