export interface OptionFields { value: T; label: string; color?: string; } // 显示和隐藏 export const OPTIONS_VISIBLE: OptionFields[] = [ { value: '1', label: '显示', }, { value: '2', label: '隐藏', }, ]; // 停用状态 export const OPTIONS_AVAILABLE: OptionFields[] = [ { value: '1', label: '启用', }, { value: '2', label: '停用', }, ]; // 性别类型 export const OPTIONS_SEX: OptionFields[] = [ { value: '1', label: '男', }, { value: '0', label: '女', }, ]; // 菜单类型 export const OPTIONS_MENU_TYPE: OptionFields[] = [ { value: 'M', label: '目录', }, { value: 'C', label: '菜单', }, { value: 'F', label: '按钮', }, ]; // 是否缓存 export const OPTIONS_CACHE: OptionFields[] = [ { value: '1', label: '缓存', }, { value: '2', label: '不缓存', }, ]; // 是否外链 export const OPTIONS_FRAME: OptionFields[] = [ { value: '1', label: '是', }, { value: '2', label: '否', }, ]; // 启用停用状态 export const OPTIONS_APPROVAL: OptionFields[] = [ { value: '1', label: '已启用', color: 'cyan', }, { value: '2', label: '已停用', color: 'red', }, { value: '3', label: '待审核', color: 'orange', }, { value: '4', label: '已驳回', color: 'yellow', }, ]; // 用户类型 export const OPTIONS_USER: OptionFields[] = [ { value: '1', label: '内部用户', }, { value: '2', label: '外部用户', }, ]; // 角色类型 export const OPTIONS_ROLE: OptionFields[] = [ { value: '1', label: '内部角色', }, { value: '2', label: '外部角色', }, ]; // 参数类型 export const OPTIONS_CONFIG: OptionFields[] = [ { value: 'Y', label: '是', }, { value: 'N', label: '否', }, ]; // 状态 export const OPTIONS_STATUS: OptionFields[] = [ { value: '0', label: '启用', }, { value: '1', label: '停用', }, ]; // 字典数据 - 回显样式 export const OPTIONS_DICT_CLASS: OptionFields[] = [ { value: 'default', label: '默认', }, { value: 'primary', label: '主要', }, { value: 'success', label: '成功', }, { value: 'info', label: '信息', }, { value: 'warning', label: '警告', }, { value: 'danger', label: '危险', }, ]; export const OPTIONS_TAG: OptionFields[] = [ { value: '1', label: '是', }, { value: '2', label: '否', }, ]; // 机构等级 export const OPTIONS_ORG_LEVEL: OptionFields[] = [ { value: '1', label: '一级', }, { value: '2', label: '二级', }, { value: '3', label: '三级', }, ]; // 机构等次 export const OPTIONS_ORG_EQUAL_DEGREE: OptionFields[] = [ { value: '1', label: '特等', }, { value: '2', label: '甲等', }, { value: '3', label: '乙等', }, { value: '4', label: '丙等', }, ]; // 状态 export const OPTIONS_ORG_STATUS: OptionFields[] = [ { value: '1', label: '正常', }, { value: '2', label: '撤销', }, { value: '3', label: '待审核', }, ]; // 科室状态 export const OPTIONS_DEPT_STATUS: OptionFields[] = [ { value: '1', label: '正常', }, { value: '2', label: '撤销', }, { value: '3', label: '待审核', }, ]; // 机构类型 export const OPTIONS_ORG_TYPE: OptionFields[] = [ { value: '1', label: '卫健委', }, { value: '2', label: '医院', }, { value: '3', label: '基层', }, ]; // 床位类型 export const OPTIONS_BED_TYPE: OptionFields[] = [ { value: '1', label: '编制床位', }, { value: '2', label: '超过半年的加床', }, { value: '3', label: '临时加床', }, { value: '4', label: '观察床位', }, { value: '5', label: '家庭病床', }, { value: '9', label: '其他', }, ]; export const OPTIONS_APPROVAL_SEARCH: OptionFields[] = [ { value: '1', label: '已启用', color: 'cyan', }, { value: '2', label: '已停用', color: 'red', }, ]; export const BED_STATUS: OptionFields[] = [ { value: '1', label: '已启用', }, { value: '2', label: '已停用', }, { value: '3', label: '待审核', }, ]; export const OPTIONS_SEX_COMPLETE: OptionFields[] = [ { value: '0', label: '未知的性别', }, { value: '1', label: '男', }, { value: '2', label: '女', }, { value: '9', label: '未说明的性别', }, ]; export const OPTIONS_BATCH: OptionFields[] = [ { value: '1', label: '启用', }, { value: '2', label: '停用', }, { value: '3', label: '通过', }, { value: '4', label: '驳回', }, ];