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 formOption = {
  submitBtn: false,
  emptytBtn: false,
  row: true,
  span: 12,
  column: [
    {
      label: "任务编号",
      prop: "taskId",
      disabled: true
    },
    {
      label: "任务名称",
      prop: "taskName",
      disabled: true
    }
  ]
}

export const tableDictItemOption = {
  border: true,
  index: false,
  indexLabel: '序号',
  stripe: true,
  menu:false,
  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: 'price',
      type: 'sum'
    }],
  column: [
    {
      //报废单审核明细列表请排个序，名称、编码、型号、部门、面积、单位、单价、数量、总价、入库日期、报废类型。另外抬头请用学校全称
      label:'江苏省常州技师学院',
      children:[
        {
          label: '入库时间',
          prop: 'time'
        },
        {
          label: '数量',
          prop: 'num'
        },  {
          label: '单价',
          prop: 'price'
        },
        {
          label: '单位',
          prop: 'unit'
        }
       ,
        {
          label: '面积',
          prop: 'area'
        },
        {
          label: '部门名称',
          prop: 'oldDeptName'
        }
        ,
        {
          label: '规格|型号',
          prop: 'spec'
        },
        {
          label: '资产编码',
          prop: 'code',
        } ,
        {
          label: '资产名称',
          prop: 'goodsName'
        },

        {
          label: '报废类型',
          prop: 'type',
          type:'select',
          dicData:[{label:"电子废物",value:"0"},{label:"土地房屋",value:"1"},{label:"汽车类",value:"2"},{label:"其他",value:"3"}],
          props:{
            label:'label',
            value:'value'
          },
        },
        {
          label: '报废原因',
          prop: 'invalidReason'
        },
      ]
    }
  ]
}
