在申请单信息中增加 researchCategory(生物新技术临床科研/临床课题联合申报/生物制药研发),贯通 SQL、后端校验与 Web 表单/列表/详情;用户确认免除 Figma。 Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
709 B
TypeScript
19 lines
709 B
TypeScript
/** 临床科研申请单 · 业务子类型(researchCategory) */
|
||
export const CLINICAL_RESEARCH_CATEGORY_OPTIONS = [
|
||
{ value: 'bio_tech_clinical', label: '生物新技术临床科研' },
|
||
{ value: 'joint_topic_declare', label: '临床课题联合申报' },
|
||
{ value: 'bio_pharma_rd', label: '生物制药研发' }
|
||
] as const
|
||
|
||
export type ClinicalResearchCategory =
|
||
(typeof CLINICAL_RESEARCH_CATEGORY_OPTIONS)[number]['value']
|
||
|
||
const LABEL_MAP = Object.fromEntries(
|
||
CLINICAL_RESEARCH_CATEGORY_OPTIONS.map((o) => [o.value, o.label])
|
||
) as Record<string, string>
|
||
|
||
export function clinicalResearchCategoryLabel(code?: string | null): string {
|
||
if (!code) return ''
|
||
return LABEL_MAP[code] || code
|
||
}
|