feat(admin): apply shared blue-white self-operated workbench style

This commit is contained in:
2026-10-20 19:16:47 +08:00
parent 9bfce44988
commit 464b72cff9
38 changed files with 1851 additions and 340 deletions
+3
View File
@@ -39,6 +39,9 @@ export function shownQuantity(row: { outboundQuantity: string | number | null; o
return row.dataStatus === 'COMPLETE' ? row.outboundQuantity : row.observedQuantity
}
export function quantityText(value: string | number | null | undefined) { return value === null || value === undefined ? '—' : String(value) }
export function groupedQuantityText(value: string | number | null | undefined) {
return quantityText(value).replace(/^(-?\d+)(\.\d+)?$/, (_match, integer: string, fraction: string | undefined) => `${integer.replace(/\B(?=(\d{3})+(?!\d))/g, ',')}${fraction ?? ''}`)
}
export function beijingTime(value: string | null | undefined) {
if (!value) return '—'
const date = new Date(value)