提交
This commit is contained in:
1 parent
731bbf878a
commit
f4bbe3e06e
56 files changed
+13599
-11335
No files matched your search
@@ -179,7 +179,7 @@ const CARD_META_BY_TAB: Record<ProductionWorkOrderTabKey, ProductionWorkOrderCar
|
||||
inbound_cell_storage: {
|
||||
tabKey: 'inbound_cell_storage',
|
||||
showCategoryTag: false,
|
||||
showProtocolFeeSummary: true,
|
||||
showProtocolFeeSummary: false,
|
||||
showOutboundFeeSummary: false,
|
||||
showCellProducts: false,
|
||||
metaFields: buildInboundMetaFields('inbound_cell_storage'),
|
||||
|
||||
@@ -101,3 +101,15 @@ export function shouldShowTaskHeaderLabStorageCode(row: {
|
||||
}): boolean {
|
||||
return INBOUND_LAB_STORAGE_HEADER_CATEGORIES.has(resolveWorkOrderCategoryKey(row))
|
||||
}
|
||||
|
||||
export function isTemporaryProductionWorkOrder(row: { workOrderType?: string }): boolean {
|
||||
return row.workOrderType === 'temporary'
|
||||
}
|
||||
|
||||
/** 临时生产工单:任务执行弹窗标题后缀(与卡片主标题一致) */
|
||||
export function temporaryProductionExecutionDialogTitle(row: {
|
||||
workOrderRemark?: string
|
||||
workOrderNo?: string
|
||||
}): string {
|
||||
return (row.workOrderRemark || '').trim() || row.workOrderNo || '—'
|
||||
}
|
||||
@@ -8,6 +8,7 @@ import {
|
||||
import { resolveInboundSampleGroupCardTitle } from '@/utils/qc-work-order-card-meta'
|
||||
|
||||
export type QcInboundProtocolSiblingLink = {
|
||||
sampleCode: string
|
||||
anchorId: string
|
||||
labStorageCode: string
|
||||
sampleTypeName: string
|
||||
@@ -56,13 +57,12 @@ export function buildProtocolSiblingLinksFromSamples(
|
||||
group: QcWorkOrderSampleGroupModel,
|
||||
samples: QcProtocolSiblingSample[]
|
||||
): QcInboundProtocolSiblingLink[] {
|
||||
const sorted = [...samples].sort((a, b) =>
|
||||
(a.sampleCode || '').localeCompare(b.sampleCode || '')
|
||||
)
|
||||
const sorted = [...samples].sort((a, b) => (a.sampleCode || '').localeCompare(b.sampleCode || ''))
|
||||
return sorted.map((sample) => {
|
||||
const sampleCode = (sample.sampleCode || '').trim() || group.groupKey
|
||||
const labStorageCode = (sample.labStorageCode || '').trim()
|
||||
return {
|
||||
sampleCode,
|
||||
anchorId: buildInboundSampleCardAnchorId(sampleCode),
|
||||
labStorageCode: labStorageCode || '—',
|
||||
sampleTypeName: (sample.sampleTypeName || '').trim()
|
||||
@@ -77,6 +77,7 @@ function buildLinksFromVisibleGroups(
|
||||
(a.sampleCode || '').localeCompare(b.sampleCode || '')
|
||||
)
|
||||
return sorted.map((group) => ({
|
||||
sampleCode: (group.sampleCode || group.groupKey || '').trim(),
|
||||
anchorId: buildInboundSampleCardAnchorId(group.groupKey),
|
||||
labStorageCode: resolveInboundSampleGroupCardTitle(group.workOrders),
|
||||
sampleTypeName: sampleTypeNameForGroup(group)
|
||||
|
||||
@@ -16,14 +16,10 @@ export function buildQcReceptionViewFields(
|
||||
return [
|
||||
{ label: '接收时间', value: formatDisplayOrDash(r.receptionTime || d?.receptionTime) },
|
||||
{ label: '接收经手人', value: String(r.handlerName || d?.handlerName || '—') },
|
||||
...(accept === 'js'
|
||||
? [
|
||||
{
|
||||
label: '实验室入库编码',
|
||||
value: String(r.labStorageCode || d?.labStorageCode || '—')
|
||||
}
|
||||
]
|
||||
: []),
|
||||
{
|
||||
label: '实验室入库编码',
|
||||
value: String(r.labStorageCode || d?.labStorageCode || '—')
|
||||
},
|
||||
{
|
||||
label: '接收温度(℃)',
|
||||
value: r.receiveTemperature ? `${r.receiveTemperature}℃` : '—'
|
||||
|
||||
Reference in new issue
Block a user