您提交的表单信息为:
-称呼:{{ formModel.customName }}
-联系方式:{{ formModel.customNid }}
-- {{ `报名的门店${index + 1}为` }}: {{ item.storeName }} - {{ item.reservationTime }} -
-您提交的表单信息为:
称呼:{{ formModel.customName }}
@@ -252,17 +320,18 @@ import { useAdminForm, useFormAction, FormAction } from '@/hooks/form' import type { FormRequestMapping } from '@/hooks/form' import { doRequest } from '@/utils/axios/request' import { message } from 'ant-design-vue' -// import type { FormInstance } from 'ant-design-vue' -// import { doRequest } from '@/utils/axios/request' -// import { overrideProperties } from '@/utils/bean-utils' -// import { message } from 'ant-design-vue' -// import type { GeopoliticalCustomersDTO } from '@/api/geopoliticalCustomers/types' +import type { FormInstance } from 'ant-design-vue' //预约时间 import type { SelectValue } from 'ant-design-vue/es/select' import type { SelectProps } from 'ant-design-vue' import 'dayjs/locale/zh-cn' -// import dayjs from 'dayjs' -import { addCustomer, updateCustomer, getDetail } from '@/api/geopoliticalCustomers' +import { + addCustomer, + updateCustomer, + auditCustomer, + getDetail, + getStoreData +} from '@/api/geopoliticalCustomers' import type { CustomerDTO, GeopoliticalCustomersRecord } from '@/api/geopoliticalCustomers/types' //dom中可以写成:rules = 'rulesData' @@ -280,6 +349,19 @@ onMounted(() => { provincesAndCitiesAndAutonomousOptions.value = provincesAndCitiesAndAutonomousRegions }) +//动态生成只读/禁用样式 +const isDisabled = ref(false) +const isReadOnly = ref(false) + +const dynamicClass = computed(() => ({ + 'custom-disabled-style': isDisabled.value, + 'custom-readonly-style': isReadOnly.value +})) +const reservationTimeisReadOnly = ref(false) +const reservationTimeClass = computed(() => ({ + 'custom-readonly-style': reservationTimeisReadOnly.value +})) + const formRef = ref