Files
simrsx-fe/app/components/app/material-package-item/quick-list.cfg.ts
T
Andrian Roshandy 4444e87cb3 feat/procedure-room-order: wip #1
+ material-package
+ material-package-item
2025-12-03 09:42:31 +07:00

24 lines
457 B
TypeScript

import type { Config } from '~/components/pub/my-ui/data-table'
type SmallDetailDto = any
export const config: Config = {
cols: [ { width: 150 }, {}, { width: 150 }],
headers: [
[
{ label: 'No' },
{ label: 'Name' },
{ label: 'Jumlah' },
],
],
keys: ['number', 'material.name', 'count'],
parses: {
number: (rec: unknown): unknown => {
return (rec as SmallDetailDto).medicineGroup?.name || '-'
},
},
}