export default {
  height:'auto',
  calcHeight: 30,
  tip: false,
  searchShow: true,
  searchMenuSpan: 6,
  border: true,
  index: true,
  viewBtn: true,
  selection: true,
  menuFixed: true,
  menuWidth: 250,
  dialogClickModal: false,
  delBtn: false,
  viewBtn: false,
  column: [
    {
      label: "物料编码",
      prop: "code",
      search: true,
      editDisabled: true,
      type: "input",
    },
    {
      label: "物料名称",
      prop: "name",
      search: true,
      type: "input",
    },
    {
      label: "物料类型",
      prop: "type",
      search: true,
      type: "input",
      dicUrl: '/blade-system/dict/dictionary?code=wl_type',
      search: true,
      dataType: "number",
      type: 'select',
      props: {
        label: 'dictValue',
        value: 'dictKey',
      }
    },
    {
      label: "物料型号",
      prop: "model",
      search: true,
      type: "input",
    },
    {
      label: "功率(KW)",
      prop: "power",
      type: "input",
    },
    {
      label: "零售价",
      prop: "retailPrice",
      type: "input",
    },
    
    {
      label: "品牌",
      prop: "brand",
      dicUrl: '/blade-system/dict/dictionary?code=device_brand',
      search: true,
      dataType: "number",
      type: 'select',
      props: {
        label: 'dictValue',
        value: 'dictKey',
      }
    },
    {
      label: "库存",
      prop: "stock",
      type: "input",
      editDisplay: false,
    },
    // {
    //   label: "库存单位",
    //   prop: "unit",
    //   type: "input",
    //   dicUrl: '/blade-system/dict/dictionary?code=wl_unit',
    //   type: 'select',
    //   props: {
    //     label: 'dictValue',
    //     value: 'dictKey',
    //   }
    // },
    {
      label: "最新修改时间",
      prop: "updateTime",
      type: "input",
      addDisplay: false,
      editDisplay: false
    },
    {
      label: "状态",
      prop: "status",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      dicUrl: '/blade-system/dict/dictionary?code=wl_status',
      search: true,
      dataType: "number",
      type: 'select',
      props: {
        label: 'dictValue',
        value: 'dictKey',
      }
    },
    {
      label: "物料描述",
      span: 24,
      hide: true,
      prop: "description",
      type: "textarea",
    },
  ]
}
