import { useEnumStore } from '@/stores' const { getEnumTypeList, getEnumTypeName, getEnumTypeValue } = useEnumStore() /** * 获取对应的证件类型列表 * @returns */ export function getCertificateTypeList() { return getEnumTypeList('certificatetype') } /** * 获取对应的证件类型名称 * @returns */ export function getCertificateTypeCodeName(value: number) { const enums = getCertificateTypeList() return getEnumTypeName(enums, value) } /** * 获取对应的证件类型名称的值 * @returns */ export function getCertificateTypeCodeValue(label: string) { const enums = getCertificateTypeList() return getEnumTypeValue(enums, label) }