import { BasicColumn } from '/@/components/Table'; import { render } from '@/utils/common/renderUtils'; //列表数据 export const columns: BasicColumn[] = [ { title: '库区', align: 'center', dataIndex: 'areaId_dictText', }, { title: '库位编码', align: 'center', dataIndex: 'pointCode', }, { title: '状态', align: 'center', dataIndex: 'status_dictText', customRender: ({ text }) => { const color = text == '占用' ? 'red' : text == '空闲' ? 'green' : 'gray'; return render.renderTag(text, color); }, }, { title: '排', align: 'center', dataIndex: 'rows', }, { title: '列', align: 'center', dataIndex: 'cols', }, { title: '层', align: 'center', dataIndex: 'layers', }, { title: '是否启用', align: 'center', dataIndex: 'izActive', }, { title: '描述', align: 'center', dataIndex: 'description', }, { title: '创建日期', align: 'center', dataIndex: 'createTime', sorter: true }, ];