<template>
  <div class="drug-name">
    <el-tag v-if="info.drugName">
      {{ info.drugName }}
    </el-tag>
    <span v-if="info.dosformName">{{ "【" + info.dosformName + "】" }}</span>
    <el-tag v-if="info.essdrugType">
      {{
        info.essdrugType === "0"
          ? "非基药"
          : info.essdrugType === "1"
          ? "基药"
          : info.essdrugType
      }}
    </el-tag>

    <br />

    <span v-if="info.prodentpName">
      {{ "生产厂家 【" + info.prodentpName + "】" }}
    </span>

    <br />
    <span v-if="info.specName || info.convrat || info.prepunt || info.pacUnt">
      {{
        "药品规格 【" +
        info.specName +
        "*" +
        info.convrat +
        info.prepunt +
        "/" +
        info.pacUnt +
        "】"
      }}
    </span>
    <br />

    <span v-if="info.fasBtch">
      {{ "集采批次 【" + info.fasBtch + "】" }}
    </span>
  </div>
</template>

<script>
export default {
  name: "drugInfo",
  props: {
    info: {
      type: Object,
      default: null
    }
  },
  data() {
    return {};
  },
  mounted() {}
};
</script>

<style>
</style>