feat(admin): apply shared blue-white self-operated workbench style
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user