
export const tableiOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  menu:true,
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  searchBtn:false,
  refreshBtn:false,
  columnBtn:false,
  dic: [],
  selection: true,
  selectable:(row,index)=>{
    return index===1;
  },
  column: [
    {
      label: '主键',
      prop: 'id',
      hide: true,
    },
    {
      label: '资产编码',
      prop: 'code'
    },
    {
      label: '部门编码',
      prop: 'belongDeptCode',
      hide: true,
    },
    {
      label: '部门',
      prop: 'belongDeptName',
    },

    {
      label: '资产名称',
      prop: 'goodsName'
    },
    {
      label: '规格|型号',
      prop: 'spec'
    },
    {
      label: '面积',
      prop: 'area'
    },
    {
      label: '单位',
      prop: 'unit'
    },

    {
      label: '单价',
      prop: 'price'
    },{
      label: '预计报废日期',
      prop: 'invalidDate',
      type:'date',
      format:'yyyy-MM-dd',
    },
    {
      label: '实际报废日期',
      type:'date',
      prop: 'invalidActualDate',
      format:'yyyy-MM-dd',

    },
    {
      label: '报废状态',
      prop: 'isInvalid',
    },
    {
      label: '报废审核备注',
      prop: 'procInsRemork',
    }
  ]
}
export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  menu:true,
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  searchBtn:false,
  refreshBtn:false,
  columnBtn:false,
  dic: [],
  column: [
    {
      label: '主键',
      prop: 'id',
      hide: true,
    },
    {
      label: '资产编码',
      prop: 'code'
    },
    {
      label: '调出部门编码',
      prop: 'belongDeptCode',
      hide: true,
    },
    {
      label: '调出部门',
      prop: 'belongDeptName',
    },
    {
      label: '调入部门',
      prop: 'newDeptName',
    },
    {
      label: '资产名称',
      prop: 'goodsName'
    },
    {
      label: '规格|型号',
      prop: 'spec'
    },
    {
      label: '面积',
      prop: 'area'
    },
    {
      label: '单位',
      prop: 'unit'
    },

    {
      label: '单价',
      prop: 'price'
    }
  ]
}

export const tableOption2 = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  menu:true,
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  searchBtn:false,
  refreshBtn:false,
  columnBtn:false,
  dic: [],
  selection: true,
  selectable:(row,index)=>{
    return index===1;
  },
  column: [
    {
      label: '主键',
      prop: 'id',
      hide: true,
    },
    {
      label: '资产编码',
      prop: 'code'
    },
    {
      label: '调出部门编码',
      prop: 'belongDeptCode',
      hide: true,
    },
    {
      label: '调出部门',
      prop: 'belongDeptName',
    },
    {
      label: '资产名称',
      prop: 'goodsName'
    },
    {
      label: '规格|型号',
      prop: 'spec'
    },
    {
      label: '面积',
      prop: 'area'
    },
    {
      label: '单位',
      prop: 'unit'
    },

    {
      label: '单价',
      prop: 'price'
    }
  ]
}
