| | |
| | | import ArtButtonTable from '@/components/core/forms/art-button-table/index.vue' |
| | | import { $t } from '@/locales' |
| | | |
| | | export function createLocItemTableColumns({ enabledFields = [], handleView }) { |
| | | return [ |
| | | { |
| | | prop: 'locId', |
| | | label: '库位ID', |
| | | label: $t('pages.manager.locItem.table.locId'), |
| | | width: 110 |
| | | }, |
| | | { |
| | | prop: 'wareArea', |
| | | label: '库区', |
| | | label: $t('pages.manager.locItem.table.wareArea'), |
| | | minWidth: 140, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'locCode', |
| | | label: '库位编码', |
| | | label: $t('pages.manager.locItem.table.locCode'), |
| | | minWidth: 140, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'typeText', |
| | | label: '业务类型', |
| | | label: $t('pages.manager.locItem.table.type'), |
| | | minWidth: 120, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'wkTypeText', |
| | | label: '工位类型', |
| | | label: $t('pages.manager.locItem.table.wkType'), |
| | | minWidth: 120, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'orderId', |
| | | label: '单据ID', |
| | | label: $t('pages.manager.locItem.table.orderId'), |
| | | minWidth: 120 |
| | | }, |
| | | { |
| | | prop: 'orderItemId', |
| | | label: '单据明细ID', |
| | | label: $t('pages.manager.locItem.table.orderItemId'), |
| | | minWidth: 130 |
| | | }, |
| | | { |
| | | prop: 'matnrId', |
| | | label: '物料ID', |
| | | label: $t('pages.manager.locItem.table.matnrId'), |
| | | minWidth: 110 |
| | | }, |
| | | { |
| | | prop: 'matnrCode', |
| | | label: '物料编码', |
| | | label: $t('pages.manager.locItem.table.matnrCode'), |
| | | minWidth: 160, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'maktx', |
| | | label: '物料名称', |
| | | label: $t('pages.manager.locItem.table.maktx'), |
| | | minWidth: 220, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'spec', |
| | | label: '规格', |
| | | label: $t('pages.manager.locItem.table.spec'), |
| | | minWidth: 140, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'model', |
| | | label: '型号', |
| | | label: $t('pages.manager.locItem.table.model'), |
| | | minWidth: 140, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'splrBatch', |
| | | label: '供应商批次', |
| | | label: $t('table.supplierBatch'), |
| | | minWidth: 140, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'batch', |
| | | label: '批次', |
| | | label: $t('pages.manager.locItem.table.batch'), |
| | | minWidth: 140, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'trackCode', |
| | | label: '追踪码', |
| | | label: $t('pages.manager.locItem.table.trackCode'), |
| | | minWidth: 150, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'unit', |
| | | label: '单位', |
| | | label: $t('table.unit'), |
| | | width: 100 |
| | | }, |
| | | { |
| | | prop: 'anfme', |
| | | label: '可用数量', |
| | | label: $t('pages.manager.locItem.table.anfme'), |
| | | width: 110, |
| | | align: 'right' |
| | | }, |
| | | { |
| | | prop: 'qty', |
| | | label: '库存数量', |
| | | label: $t('pages.manager.locItem.table.qty'), |
| | | width: 110, |
| | | align: 'right' |
| | | }, |
| | | { |
| | | prop: 'workQty', |
| | | label: '执行中数量', |
| | | label: $t('pages.manager.locItem.table.workQty'), |
| | | width: 120, |
| | | align: 'right' |
| | | }, |
| | |
| | | })), |
| | | { |
| | | prop: 'statusText', |
| | | label: '状态', |
| | | label: $t('table.status'), |
| | | width: 90 |
| | | }, |
| | | { |
| | | prop: 'updateTimeText', |
| | | label: '更新时间', |
| | | label: $t('table.updateTime'), |
| | | minWidth: 180, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'action', |
| | | label: '详情', |
| | | label: $t('common.actions.detail'), |
| | | width: 96, |
| | | fixed: 'right', |
| | | align: 'center', |