| | |
| | | newFrozen: boolean, |
| | | row: MesWmMaterialStockApi.MaterialStock, |
| | | ) => Promise<boolean | undefined>, |
| | | onMove?: (row: MesWmMaterialStockApi.MaterialStock) => void, |
| | | ): VxeTableGridOptions<MesWmMaterialStockApi.MaterialStock>['columns'] { |
| | | const { hasAccessByCodes } = useAccess(); |
| | | return [ |
| | |
| | | field: 'receiptTime', |
| | | title: '入库日期', |
| | | width: 180, |
| | | formatter: 'formatDateTime', |
| | | formatter: 'formatDate', |
| | | }, |
| | | { |
| | | field: 'frozen', |
| | |
| | | }, |
| | | }, |
| | | }, |
| | | ...(onMove |
| | | ? [ |
| | | { |
| | | title: '操作', |
| | | width: 80, |
| | | fixed: 'right' as const, |
| | | slots: { default: 'actions' } as const, |
| | | }, |
| | | ] |
| | | : []), |
| | | ]; |
| | | } |
| | | |
| | |
| | | field: 'receiptTime', |
| | | title: '入库日期', |
| | | width: 180, |
| | | formatter: 'formatDateTime', |
| | | formatter: 'formatDate', |
| | | }, |
| | | { |
| | | field: 'frozen', |