
export default function () {
  const activeRowMethod=({ row, rowIndex })=>{
    console.log(row)
    return true
  }
  const options={
    height:780,
    align:'center',
    border: true,
    resizable: true,
    keepSource:true,
    size:'mini',
    showOverflow: true,
    scrollY:{enable:true},
    editConfig:{trigger: 'click', mode: 'row', showStatus: true,activeMethod: activeRowMethod},
    data:[]
  }
  const columns = [
    { type: 'checkbox', width: 40 },
    { type: 'seq',title:'序号', width: 60 },
    {field: 'dcCh', title: '船号', width: 120},
    {field: 'dcPl', title: '批量', width: 120},
    {field: 'dcFd', title: '分段', width: 120},
    {field: 'zl', title: '组立', width: 120},
    {field: 'kw', title: '跨位', width: 120},
    {field: 'tzbh', title: '套料图号', width: 120},
    {field: '', title: '材质', width: 120},
    {field: '', title: '规格', width: 120},
    {field: '', title: '炉批号', width: 120},
    {field: '', title: '小组需求期', width: 120},
    {field: '', title: '大组需求期', width: 120},

    {field: '', title: '上料计划日期', width: 120},
    {field: '', title: '库存垛位', width: 120},
    {field: '', title: '层数', width: 120},
    {field: '', title: '预处理垛位', width: 120},
    {field: '', title: '层数', width: 120},
    {field: '', title: '派工人', width: 120},
    {field: '', title: '施工人', width: 120},
    {field: '', title: '派工时间', width: 120},
    {field: '', title: '反馈人', width: 120},
    {field: '', title: '反馈时间', width: 120},
    {field: '', title: '备注', width: 120},

    {field: '', title: '抛丸计划日期', width: 120},
    {field: '', title: '取自预处理垛位', width: 120},
    {field: '', title: '取自层数', width: 120},
    {field: '', title: '派工人', width: 120},
    {field: '', title: '施工人', width: 120},
    {field: '', title: '派工时间', width: 120},
    {field: '', title: '反馈人', width: 120},
    {field: '', title: '反馈时间', width: 120},
    {field: '', title: '备注', width: 120},

    {field: '', title: '划线计划日期', width: 120},
    {field: '', title: '取自理料垛位', width: 120},
    {field: '', title: '取自层数', width: 120},
    {field: '', title: '派工人', width: 120},
    {field: '', title: '施工人', width: 120},
    {field: '', title: '派工时间', width: 120},
    {field: '', title: '划线长度', width: 120},
    {field: '', title: '反馈人', width: 120},
    {field: '', title: '反馈时间', width: 120},
    {field: '', title: '备注', width: 120},
    {field: '', title: '是否借用', width: 120},
    {field: '', title: '借用船号', width: 120},
    {field: '', title: '借用批量', width: 120},
    {field: '', title: '借用分段', width: 120},
    {field: '', title: '借用组立', width: 120},
    {field: '', title: '借用跨位', width: 120},
    {field: '', title: '借用套料图号', width: 120},

    {field: 'qgjhrq', title: '切割计划日期', width: 120,editRender:{name:'$input',props:{type:'date',labelFormat:'yyyy/MM/dd',valueFormat:'yyyy/MM/dd'}}},
    {field: '', title: '取自理料垛位', width: 120},
    {field: '', title: '取自层数', width: 120},
    {field: '', title: '派工人', width: 120},
    {field: '', title: '施工人', width: 120},
    {field: '', title: '派工时间', width: 120},
    {field: '', title: '切割长度', width: 120},
    {field: '', title: '反馈人', width: 120},
    {field: '', title: '反馈时间', width: 120},
    {field: '', title: '备注', width: 120},
    {field: '', title: '是否借用', width: 120},
    {field: '', title: '借用船号', width: 120},
    {field: '', title: '借用批量', width: 120},
    {field: '', title: '借用分段', width: 120},
    {field: '', title: '借用组立', width: 120},
    {field: '', title: '借用跨位', width: 120},
    {field: '', title: '借用套料图号', width: 120},

    {field: '', title: '再处理计划日期', width: 120},
    {field: '', title: '曲加工标识', width: 120},
    {field: '', title: '坡口标识', width: 120},
    {field: '', title: '型材标识', width: 120},
    {field: '', title: '备注', width: 120},

    {field: '', title: '配盘计划日期', width: 120},
    {field: '', title: '托盘表号', width: 120},
    {field: '', title: '预摆放位置', width: 120},
    {field: '', title: '预摆放层数', width: 120},
    {field: '', title: '备注', width: 120},
  ]

  return {
    options,
    columns,
  }
}
