|
|
|
@ -2,42 +2,11 @@
|
|
|
|
|
<a-card :bordered="false" style="margin-bottom: 16px" :body-style="{ paddingBottom: 0 }">
|
|
|
|
|
<a-form :model="formModel" :label-col="labelCol">
|
|
|
|
|
<a-row :gutter="16">
|
|
|
|
|
<!-- v-if="userInfoCurrent === 'ROLE_ADMIN'" -->
|
|
|
|
|
<a-col :xl="8" :md="12" :sm="24">
|
|
|
|
|
<a-form-item label="编号">
|
|
|
|
|
<a-input v-model:value="formModel.customName" placeholder="请输入" />
|
|
|
|
|
<a-input v-model:value="formModel.batchNo" placeholder="请输入" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<!-- <a-col v-if="userInfoCurrent === 'ROLE_SALES_EXECUTIVE'" :xl="8" :md="12" :sm="24">
|
|
|
|
|
<a-form-item label="坐席名称">
|
|
|
|
|
<a-input v-model:value="formModel.customName" placeholder="请输入" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col> -->
|
|
|
|
|
<!-- <a-col :xl="8" :md="12" :sm="24">
|
|
|
|
|
<a-form-item label="坐席名称">
|
|
|
|
|
<dict-select
|
|
|
|
|
v-model:value="formModel.ip"
|
|
|
|
|
dict-code="user_status"
|
|
|
|
|
allow-clear
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col> -->
|
|
|
|
|
<!-- <a-col :xl="8" :md="12" :sm="24">
|
|
|
|
|
<a-form-item label="报名状态">
|
|
|
|
|
<dict-select
|
|
|
|
|
v-model:value="formModel.enrollStatus"
|
|
|
|
|
dict-code="registration_status"
|
|
|
|
|
allow-clear
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
/>
|
|
|
|
|
</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>
|
|
|
|
|
</a-col> -->
|
|
|
|
|
<a-col :xl="8" :md="12" :sm="24">
|
|
|
|
|
<a-form-item label="填写时间">
|
|
|
|
|
<a-range-picker
|
|
|
|
@ -61,19 +30,9 @@
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
import { Form } from 'ant-design-vue'
|
|
|
|
|
import type { GeopoliticalCustomersSearch } from '@/api/geopoliticalCustomers/types'
|
|
|
|
|
import type { FormReviewSearch } from '@/api/geopoliticalCustomers/types'
|
|
|
|
|
import dayjs from 'dayjs'
|
|
|
|
|
import type { Dayjs } from 'dayjs'
|
|
|
|
|
//获取当前账号角色
|
|
|
|
|
import { useUserStore } from '@/stores/user-store'
|
|
|
|
|
const { userInfo } = useUserStore()
|
|
|
|
|
|
|
|
|
|
const userInfoCurrent = ref<string | undefined>('')
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
console.log(userInfo, 'userInfo?.permissions')
|
|
|
|
|
// userInfoCurrent = userInfo?.roleCodes
|
|
|
|
|
userInfoCurrent.value = userInfo?.roleCodes?.toLocaleString()
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const useForm = Form.useForm
|
|
|
|
|
|
|
|
|
@ -92,10 +51,8 @@ const emits = defineEmits<{
|
|
|
|
|
}>()
|
|
|
|
|
|
|
|
|
|
const searchTimeValue = ref<[Dayjs, Dayjs]>()
|
|
|
|
|
const formModel = reactive<GeopoliticalCustomersSearch>({
|
|
|
|
|
customName: '',
|
|
|
|
|
customNid: '',
|
|
|
|
|
enrollStatus: undefined
|
|
|
|
|
const formModel = reactive<FormReviewSearch>({
|
|
|
|
|
batchNo: ''
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const { resetFields } = useForm(formModel)
|
|
|
|
|