export default [
  {
    item: { key: "code", title: "编码", width: "auto" },
    attr: {},
  },
  {
    item: { key: "name", title: "名称", width: "auto" },
    attr: {},
  },
  {
    item: { key: "specification", title: "规格", width: "auto" },
    attr: {},
  },
  {
    item: { key: "manufacturerIdName", title: "生产厂家", width: "auto" },
    attr: {},
  },
  {
    item: { key: "unitIdName", title: "单位", width: "auto" },
    attr: {},
  },
  {
    item: { key: "registrationNo", title: "注册证号", width: "auto" },
    attr: {
      formatter: (prop) => {
        return prop.materialMedcine.registrationNo;
      },
    },
  },
  {
    item: { key: "isDrug", title: "物料药品属性", width: "auto" },
    attr: {
      formatter: (prop) => {
        return prop.materialMedcine.isDrug == "0" ? "Y" : "N";
      },
    },
  },
  {
    item: { key: "isDrugNumber", title: "药品", width: "auto" },
    attr: {
      formatter: (prop) => {
        return prop.materialMedcine.isDrugNumber;
      },
    },
  },
  {
    item: {
      key: "oriRegistrationNo",
      title: "注册证号/备案凭证编号",
      width: "auto",
    },
    attr: {
      formatter: (prop) => {
        return prop.materialMedcine.oriRegistrationNo;
      },
    },
  },
  {
    item: { key: "dosageFrom", title: "剂型", width: "auto" },
    attr: {
      formatter: (prop) => {
        return prop.materialMedcine.dosageFrom;
      },
    },
  },
  {
    item: { key: "dosageFromName", title: "剂型名称", width: "auto" },
    attr: {
      formatter: (prop) => {
        return prop.materialMedcine.dosageFromName;
      },
    },
  },
  {
    item: { key: "curingType", title: "养护类型", width: "auto" },
    attr: {
      formatter: (prop) => {
        return prop.materialMedcine.curingType;
      },
    },
  },
  {
    item: { key: "medicalInstruments", title: "医疗器械", width: "auto" },
    attr: {
      formatter: (prop) => {
        return prop.materialMedcine.medicalInstruments;
      },
    },
  },
];
