const config = function(that) {
  return {
    items: [
      {
        type: 'input',
        name: 'code',
        label: '容器号/单据编号',
        value: ''
      },
      {
        type: 'input',
        name: 'shipperName',
        label: '客户名称',
        value: ''
      },
      {
        type: 'radio',
        name: 'isRadio',
        label: '选择复核台',
        value: true,
        options: [
          { label: '查看当前复核台', value: true },
          { label: '查看所有复核台', value: false }
        ],
        on: {
          change(e, vnode) {
            //   console.log(arguments)
            let a = e.target.value
            that.type = a
          }
        }
      },
      {
        span: 24,
        type: 'buttonGroup',
        style: { textAlign: 'right' },
        options: [
          {
            name: 'btn-1',
            value: '查询',
            icon: 'search',
            btnType: 'primary',
            style: 'margin-right:10px',
            htmlType: 'submit'
          },
          {
            value: '重置',
            name: 'ccz',
            icon: 'redo',
            on: {
              click(event, form) {
                form.resetFields()
                //form.setItemProps('neto', { visible: false })
                // form.enableItem("time");
              }
            }
          }
        ]
      }
    ],
    columns: [
      {
        dataIndex: 'cargoOwnerName',
        key: 'cargoOwnerName',
        title: '货主名称'
      },
      {
        title: '复核台编号',
        dataIndex: 'stationCode',
        key: 'stationCode'
      },
      {
        dataIndex: 'srcCode',
        key: 'srcCode',
        title: '单据编号'
      },
      {
        title: '拣货单号',
        dataIndex: 'pickOrderId',
        key: 'pickOrderId'
      },
      {
        dataIndex: 'containerCode',
        key: 'containerCode',
        title: '容器号'
      },
      {
        title: '任务状态',
        dataIndex: 'status',
        key: 'status'
        //
      },
      {
        dataIndex: 'pickerName',
        key: 'pickerName',
        title: '拣货员'
      },
      {
        title: '内复核员1',
        dataIndex: 'checkerName',
        key: 'checkerName'
      },
      {
        dataIndex: 'checkerName2',
        key: 'checkerName2',
        title: '内复核员2'
      },

      {
        title: '品规数',
        dataIndex: 'itemSpecs',
        key: 'itemSpecs'
      },
      {
        dataIndex: 'uomQty',
        key: 'uomQty',
        title: '整件数'
      },
      {
        dataIndex: 'oddPieceQty',
        key: 'oddPieceQty',
        title: '零散数'
      },
      {
        title: '提货方式',
        dataIndex: 'receiveWay',
        key: 'receiveWay'
      },
      {
        title: '客户编码',
        dataIndex: 'shipperCode',
        key: 'shipperCode'
      },
      {
        dataIndex: 'shipperName',
        key: 'shipperName',
        title: '客户名称'
      }
    ]
  }
}
export default config
