import { applyTypeList } from '../data'
export const columns = [
  {
    label: '编号',
    prop: 'instanceNo',
    scopedSlots: { customRender: 'instanceNo' }
  },
  {
    label: '类型',
    prop: 'applyCategory',
    scopedSlots: { customRender: 'applyCategory' }
  },
  {
    label: '标题',
    prop: 'name'
  },
  {
    label: '发起时间',
    prop: 'gmtCreate'
  },
  {
    label: '完成时间',
    prop: 'gmtFinish'
  },
  {
    label: '当前审批人',
    prop: 'currentAuditors'
  },
  {
    label: '状态',
    prop: 'instanceState',
    scopedSlots: { customRender: 'instanceState' }
  },
  {
    label: '操作',
    prop: 'id',
    width: '160px',
    disabled: true,
    scopedSlots: { customRender: 'operate' }
  }
]
export const searchConfigs = [
  { type: 'Input', label: '标题', value: 'name' },
  {
    type: 'Select',
    label: '状态',
    value: 'instanceState',
    data: [
      { name: '审批中', id: 'ACTIVE' },
      { name: '审批通过', id: 'FINISH' },
      { name: '审核驳回', id: 'TERMINATION' },
      { name: '已撤销', id: 'CANCEL' }
    ]
  }
  // {
  //   type: 'Select',
  //   label: '类型',
  //   value: 'applyCategory',
  //   data: applyTypeList
  // }
]
