// 列名
export const taskColumns = [
  { title: '序号', dataIndex: 'index', width: 80 },
  { title: '任务类型', dataIndex: 'workCategory', width: 150 },
  // { title: '单据编号', dataIndex: 'documentNo', width: 150 },
  { title: '创建时间', dataIndex: 'created', width: 150 },
  { title: '执行时间', dataIndex: 'excuteDate', width: 150 },
  { title: '起始货位编号', dataIndex: 'positionBeginNo', width: 150 },
  { title: '起始货位编号2', dataIndex: 'positionBeginNo2', width: 150 },
  { title: '终点货位编号', dataIndex: 'positionEndNo', width: 150 },
  { title: '终点货位编号2', dataIndex: 'positionEndNo2', width: 150 },
  { title: '处于异常停泊区', dataIndex: 'abnormalPositionNo', width: 150 },
  { title: 'AGV编号', dataIndex: 'agvNo', width: 150 },
  { title: '备注', dataIndex: 'description', width: 150 },
  // { title: '执行状态', dataIndex: 'executeStatus', width: 150 },
  { title: '执行成功', dataIndex: 'success', width: 150 },
  { title: '成功时间', dataIndex: 'successDate', width: 150 },
  { title: '失败时间', dataIndex: 'errorDate', width: 150 },
  { title: '失败原因', dataIndex: 'errorMessage', width: 150 },
  { title: '上次执行时间', dataIndex: 'lastExcuteDate', width: 150 },
  { title: '执行次数', dataIndex: 'countExcute', width: 150 },
  { title: '操作', dataIndex: 'operation', width: 100, fixed: 'right' },
].map(item => ({ ...item, align: 'center', ellipsis: true, resizable: true }));
// 任务类型
export const workOptions = [
  { label: '地面库入库', value: 'STOCKIN' },
  { label: '地面库出库', value: 'STOCKOUT' },
  { label: '立体库入库', value: 'STOCKINCTU' },
  { label: '立体库出库', value: 'STOCKOUTCTU' },
  { label: '请求空料箱', value: 'RQCTU' },
  { label: '成品下架', value: 'RQPRODUCT' },  
  { label: '料箱上架', value: 'CTU' },
  { label: '全部', value: '' },
];
// 执行状态
export const executeOptions = [
  { label: '执行中', value: 'Executing' },
  { label: '已完成', value: 'Completed' },
  { label: '未开始', value: 'NotStarted' },
  { label: '全部', value: '' },
];
// 成功状态
export const successOptions = [
  { label: '是', value: true },
  { label: '否', value: false },
];