2025-11-02 22:39:59 +08:00
|
|
|
import { BasicColumn } from '/@/components/Table';
|
|
|
|
|
import { render } from '@/utils/common/renderUtils';
|
|
|
|
|
|
2025-10-28 18:13:55 +08:00
|
|
|
//列表数据
|
|
|
|
|
export const columns: BasicColumn[] = [
|
2025-11-02 22:39:59 +08:00
|
|
|
{
|
|
|
|
|
title: '库区',
|
|
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'areaId_dictText',
|
|
|
|
|
},
|
2025-10-28 18:13:55 +08:00
|
|
|
{
|
|
|
|
|
title: '库位编码',
|
2025-11-02 22:39:59 +08:00
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'pointCode',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '状态',
|
|
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'status_dictText',
|
|
|
|
|
customRender: ({ text }) => {
|
|
|
|
|
const color = text == '占用' ? 'red' : text == '空闲' ? 'green' : 'gray';
|
|
|
|
|
return render.renderTag(text, color);
|
|
|
|
|
},
|
2025-10-28 18:13:55 +08:00
|
|
|
},
|
|
|
|
|
{
|
2025-12-05 18:02:05 +08:00
|
|
|
title: '巷道编码',
|
2025-11-02 22:39:59 +08:00
|
|
|
align: 'center',
|
2025-11-21 18:14:15 +08:00
|
|
|
dataIndex: 'colNum',
|
2025-10-28 18:13:55 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '层',
|
2025-11-02 22:39:59 +08:00
|
|
|
align: 'center',
|
2025-11-21 18:14:15 +08:00
|
|
|
dataIndex: 'layerNum',
|
2025-10-28 18:13:55 +08:00
|
|
|
},
|
2025-12-05 18:02:05 +08:00
|
|
|
{
|
|
|
|
|
title: '深位',
|
|
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'rowNum',
|
|
|
|
|
},
|
2025-10-28 18:13:55 +08:00
|
|
|
{
|
2025-11-02 22:39:59 +08:00
|
|
|
title: '是否启用',
|
|
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'izActive',
|
2025-10-28 18:13:55 +08:00
|
|
|
},
|
|
|
|
|
{
|
2025-11-02 22:39:59 +08:00
|
|
|
title: '描述',
|
|
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'description',
|
2025-10-28 18:13:55 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '创建日期',
|
2025-11-02 22:39:59 +08:00
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'createTime',
|
|
|
|
|
sorter: true
|
2025-10-28 18:13:55 +08:00
|
|
|
},
|
|
|
|
|
];
|