|
@@ -22,7 +22,8 @@ export type ProductionReceptionFieldKey =
|
|
|
export type ProductionReceptionFieldDef = {
|
|
export type ProductionReceptionFieldDef = {
|
|
|
key: ProductionReceptionFieldKey
|
|
key: ProductionReceptionFieldKey
|
|
|
label: string
|
|
label: string
|
|
|
- kind: 'number' | 'text' | 'datetime' | 'select' | 'integer'
|
|
|
|
|
|
|
+ kind: 'number' | 'text' | 'datetime' | 'date' | 'select' | 'integer'
|
|
|
|
|
+ maxLength?: number
|
|
|
selectOptions?: Array<{ label: string; value: string }>
|
|
selectOptions?: Array<{ label: string; value: string }>
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -47,8 +48,13 @@ const FIELD_DEFS: Record<ProductionReceptionFieldKey, ProductionReceptionFieldDe
|
|
|
label: '冻存液用量/ml',
|
|
label: '冻存液用量/ml',
|
|
|
kind: 'number'
|
|
kind: 'number'
|
|
|
},
|
|
},
|
|
|
- inoculationAmount: { key: 'inoculationAmount', label: '接种量', kind: 'number' },
|
|
|
|
|
- cryopreservationTime: { key: 'cryopreservationTime', label: '冻存时间', kind: 'datetime' },
|
|
|
|
|
|
|
+ inoculationAmount: {
|
|
|
|
|
+ key: 'inoculationAmount',
|
|
|
|
|
+ label: '接种量',
|
|
|
|
|
+ kind: 'text',
|
|
|
|
|
+ maxLength: 255
|
|
|
|
|
+ },
|
|
|
|
|
+ cryopreservationTime: { key: 'cryopreservationTime', label: '冻存时间', kind: 'date' },
|
|
|
storageTotalTubes: { key: 'storageTotalTubes', label: '储存总量(管)', kind: 'integer' },
|
|
storageTotalTubes: { key: 'storageTotalTubes', label: '储存总量(管)', kind: 'integer' },
|
|
|
availableCellCount1e7: {
|
|
availableCellCount1e7: {
|
|
|
key: 'availableCellCount1e7',
|
|
key: 'availableCellCount1e7',
|
|
@@ -113,7 +119,7 @@ export type ProductionReceptionRecord = {
|
|
|
infectiousFourTestResultLabel?: string
|
|
infectiousFourTestResultLabel?: string
|
|
|
enrichedBloodWeightG?: number
|
|
enrichedBloodWeightG?: number
|
|
|
cryopreservationVolumeMl?: number
|
|
cryopreservationVolumeMl?: number
|
|
|
- inoculationAmount?: number
|
|
|
|
|
|
|
+ inoculationAmount?: string
|
|
|
cryopreservationTime?: string
|
|
cryopreservationTime?: string
|
|
|
storageTotalTubes?: number
|
|
storageTotalTubes?: number
|
|
|
availableCellCount1e7?: number
|
|
availableCellCount1e7?: number
|
|
@@ -147,5 +153,8 @@ export function formatProductionFieldValue(
|
|
|
if (def.kind === 'datetime') {
|
|
if (def.kind === 'datetime') {
|
|
|
return formatDateTimeDisplay(String(raw)) || '—'
|
|
return formatDateTimeDisplay(String(raw)) || '—'
|
|
|
}
|
|
}
|
|
|
|
|
+ if (def.kind === 'date') {
|
|
|
|
|
+ return formatDateOnly(String(raw)) || '—'
|
|
|
|
|
+ }
|
|
|
return String(raw)
|
|
return String(raw)
|
|
|
}
|
|
}
|