| | |
| | | |
| | | return [ |
| | | { |
| | | prop: 'id', |
| | | label: 'ID', |
| | | width: 96, |
| | | align: 'center', |
| | | visible: false |
| | | }, |
| | | { |
| | | prop: 'locId', |
| | | label: '库位ID', |
| | | width: 100, |
| | | align: 'center', |
| | | visible: false |
| | | }, |
| | | { |
| | | prop: 'locCode', |
| | | label: '库位编码', |
| | | minWidth: 140, |
| | | showOverflowTooltip: true, |
| | | formatter: (row) => row.locCode || '-', |
| | | visible: false |
| | | }, |
| | | { |
| | | prop: 'orderId', |
| | | label: '单据ID', |
| | | width: 100, |
| | | align: 'center', |
| | | visible: false |
| | | }, |
| | | { |
| | | prop: 'orderItemId', |
| | | label: '单据明细ID', |
| | | width: 120, |
| | | align: 'center', |
| | | visible: false |
| | | }, |
| | | { |
| | | prop: 'matnrId', |
| | | label: '物料ID', |
| | | width: 100, |
| | | align: 'center', |
| | | visible: false |
| | | }, |
| | | { |
| | | prop: 'matnrCode', |
| | | label: '物料编码', |
| | | minWidth: 160, |
| | |
| | | formatter: (row) => row.unit || '-' |
| | | }, |
| | | { |
| | | prop: 'spec', |
| | | label: '规格', |
| | | minWidth: 140, |
| | | showOverflowTooltip: true, |
| | | formatter: (row) => row.spec || '-', |
| | | visible: false |
| | | }, |
| | | { |
| | | prop: 'model', |
| | | label: '型号', |
| | | minWidth: 140, |
| | | showOverflowTooltip: true, |
| | | formatter: (row) => row.model || '-', |
| | | visible: false |
| | | }, |
| | | { |
| | | prop: 'fieldsIndex', |
| | | label: '扩展索引', |
| | | minWidth: 160, |
| | | showOverflowTooltip: true, |
| | | formatter: (row) => row.fieldsIndex || '-', |
| | | visible: false |
| | | }, |
| | | { |
| | | prop: 'anfme', |
| | | label: '可用库存', |
| | | width: 120, |
| | |
| | | }, |
| | | ...dynamicColumns, |
| | | { |
| | | prop: 'updateByText', |
| | | label: '更新人', |
| | | minWidth: 110, |
| | | formatter: (row) => row.updateByText || '-', |
| | | visible: false |
| | | }, |
| | | { |
| | | prop: 'updateTimeText', |
| | | label: '更新时间', |
| | | minWidth: 180, |
| | |
| | | { |
| | | prop: 'operation', |
| | | label: '历史记录', |
| | | width: 130, |
| | | width: 140, |
| | | fixed: 'right', |
| | | formatter: (row) => |
| | | h('div', { class: 'flex justify-end gap-2' }, [ |
| | | h(ArtButtonTable, { |
| | | type: 'view', |
| | | text: '库存详情', |
| | | onClick: () => handleViewDetail(row) |
| | | }), |
| | | h(ArtButtonTable, { |
| | | type: 'view', |
| | | text: '历史记录', |
| | | icon: 'ri:history-line', |
| | | iconClass: 'bg-warning/12 text-warning', |
| | | onClick: () => handleViewHistories(row) |
| | | }) |
| | | ]) |