export const tableOption = {
  border: true,
  index: true,
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  menuBtn: true,
  editBtn: false,
  delBtn: false,
  addBtn: false,
  filterBtn:false,
  column: [
    // {
    //   label: '任务ID',
    //   prop: 'taskId',
    //   editDisabled: true,
    //   addDisplay: false
    // },
    {
      label: '任务名称',
      prop: 'taskName',
      editDisabled: true,
      addDisplay: false
    },
    {
      label: '任务描述',
      prop: 'description',
      editDisabled: true,
      addDisplay: false,
      width:450,
    },

    {
      label: '提交时间',
      prop: 'time',
      type: 'datetime',
      format: 'yyyy-MM-dd HH:mm'
    }
  ]
}

export const tableDictItemOption = {
  border: true,
  index: false,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  showSummary:true,
  addBtn: false,
  refreshBtn: false,
  showColumnBtn: false,
  searchSize: 'mini',
  height:500,
  dic: [],
  sumColumnList: [
    {
      label:'合计:',
      name: 'sum',
      type: 'sum',
      decimals:1
    },
    {
      name: 'num',
      type: 'sum'
    },
    {
      name: 'price',
      type: 'sum'
    }],
  column: [
    {
      label:'江苏省常州技师学院固定资产调拨单',
      children:[
        {
          label: '规格|型号',
          prop: 'spec'
        },
        {
          label: '面积',
          prop: 'area'
        },
        {
          label: '单位',
          prop: 'unit'
        },
        {
          label: '数量',
          prop: 'num'
        },
        {
          label: '调拨时间',
          prop: 'createTime'
        }, {
          label: '流程实例状态',
          prop: 'procInsStatus'
        },
        {
          label: '原资产编码',
          prop: 'oldCode',
        },
        {
          label: '原部门名称',
          prop: 'oldDeptName'
        },
        {
          label: '新资产编码',
          prop: 'newCode',
        },
        {
          label: '新部门名称',
          prop: 'newDeptName'
        },
        {
          label: '资产名称',
          prop: 'goodsName'
        }, {
          width:150,
          label: '单价',
          prop: 'price'
        }
      ]
    }
  ]
}

export const taskOption = {
  menu: false,
  page: false,
  addBtn: false,
  align: 'center',
  menuAlign: 'center',
  column: [
    {
      label: 'id',
      prop: 'id',
      hide: true
    },
    {
      label: '用户',
      prop: 'userId'
    },
    {
      label: '批注',
      prop: 'fullMessage'
    }, {
      label: "操作时间",
      prop: "time",
      type: "datetime",
      format: "yyyy-MM-dd hh:mm:ss",
      valueFormat: "yyyy-MM-dd hh:mm:ss",
    }
  ]
}

