2025-11-13 16:58:05 +08:00
|
|
|
import { BasicColumn } from '/@/components/Table';
|
2025-12-19 18:06:39 +08:00
|
|
|
import { render } from '@/utils/common/renderUtils';
|
2026-01-27 10:44:10 +08:00
|
|
|
import { h } from 'vue';
|
2025-11-09 19:36:23 +08:00
|
|
|
//列表数据
|
|
|
|
|
export const columns: BasicColumn[] = [
|
|
|
|
|
{
|
|
|
|
|
title: '物料',
|
2025-11-13 16:58:05 +08:00
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'itemId_dictText',
|
|
|
|
|
width: 120,
|
2025-11-09 19:36:23 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '库位',
|
2025-11-13 16:58:05 +08:00
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'pointId_dictText',
|
|
|
|
|
width: 120,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '容器',
|
|
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'stockId_dictText',
|
|
|
|
|
width: 120,
|
2025-11-09 19:36:23 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '数量',
|
2025-11-13 16:58:05 +08:00
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'quantity',
|
|
|
|
|
width: 100,
|
2025-11-09 19:36:23 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '占用数',
|
2025-11-13 16:58:05 +08:00
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'queuedQty',
|
|
|
|
|
width: 100,
|
2025-11-09 19:36:23 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '库存状态',
|
2025-11-13 16:58:05 +08:00
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'status_dictText',
|
|
|
|
|
width: 100,
|
2025-12-19 18:06:39 +08:00
|
|
|
customRender: ({ text }) => {
|
|
|
|
|
const statusColorMap = {
|
|
|
|
|
禁用: 'red',
|
|
|
|
|
可用: 'green',
|
|
|
|
|
已分配: 'orange',
|
|
|
|
|
出库中: 'cyan',
|
|
|
|
|
移位中: 'blue',
|
|
|
|
|
盘点中: 'purple',
|
|
|
|
|
冻结: 'pink',
|
|
|
|
|
};
|
|
|
|
|
const color = statusColorMap[text] || 'red';
|
|
|
|
|
return render.renderTag(text, color);
|
|
|
|
|
},
|
2025-11-09 19:36:23 +08:00
|
|
|
},
|
|
|
|
|
{
|
2026-01-14 18:40:36 +08:00
|
|
|
title: '仓库代码',
|
2025-11-13 16:58:05 +08:00
|
|
|
align: 'center',
|
2025-12-09 19:31:02 +08:00
|
|
|
dataIndex: 'whCode',
|
2025-11-13 16:58:05 +08:00
|
|
|
width: 100,
|
2025-11-09 19:36:23 +08:00
|
|
|
},
|
|
|
|
|
{
|
2025-12-09 19:31:02 +08:00
|
|
|
title: '项目号',
|
2025-11-13 16:58:05 +08:00
|
|
|
align: 'center',
|
2025-12-09 19:31:02 +08:00
|
|
|
dataIndex: 'project',
|
2026-01-27 10:44:10 +08:00
|
|
|
width: 150,
|
|
|
|
|
customRender: ({ text }) => {
|
|
|
|
|
return h('div', { style: { wordBreak: 'break-all', lineHeight: '1.5' } }, text);
|
|
|
|
|
},
|
2025-11-09 19:36:23 +08:00
|
|
|
},
|
|
|
|
|
{
|
2025-12-09 19:31:02 +08:00
|
|
|
title: '任务号',
|
2025-11-13 16:58:05 +08:00
|
|
|
align: 'center',
|
2025-12-09 19:31:02 +08:00
|
|
|
dataIndex: 'taskNo',
|
|
|
|
|
width: 100,
|
2025-11-09 19:36:23 +08:00
|
|
|
},
|
|
|
|
|
{
|
2025-12-09 19:31:02 +08:00
|
|
|
title: '批次号',
|
2025-11-13 16:58:05 +08:00
|
|
|
align: 'center',
|
2025-12-09 19:31:02 +08:00
|
|
|
dataIndex: 'propC1',
|
2025-11-13 16:58:05 +08:00
|
|
|
width: 100,
|
2025-11-09 19:36:23 +08:00
|
|
|
},
|
|
|
|
|
{
|
2026-01-14 18:40:36 +08:00
|
|
|
title: '赛意库存状态',
|
2025-12-09 19:31:02 +08:00
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'propC3',
|
|
|
|
|
width: 110,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '备注',
|
2025-11-13 16:58:05 +08:00
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'description',
|
|
|
|
|
},
|
2026-01-11 18:36:52 +08:00
|
|
|
{
|
|
|
|
|
title: '创建时间',
|
|
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'createTime',
|
|
|
|
|
sorter: true,
|
|
|
|
|
},
|
2025-11-09 19:36:23 +08:00
|
|
|
];
|