base-info.vue 1.98 KB
<!--
 * @Description: 
 * @Date: 2021-06-16 16:52:35
-->
<template>
  <div class="bi-mobile-base-info">
    <BiMobileTitle index="1" title="基础信息"></BiMobileTitle>
    <div class="bi-mobile-base-info_content">
      <div
        class="bi-mobile-base-info_content_item"
        v-for="(item, index) in info"
        :key="index"
      >
        <div class="bi-mobile-base-info_content_item_label">
          {{ item.label }}
        </div>
        <div class="bi-mobile-base-info_content_item_value">
          {{ item.value }}
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import BiMobileTitle from './title.vue';
export default {
  name: 'bi-mobile-base-info',
  components: { BiMobileTitle },
  data() {
    return {
      info: [
        {
          label: '项目参与人:',
          value: '张三'
        },
        {
          label: '发起方:',
          value: '葵花医疗集团'
        },
        {
          label: '服务商:',
          value: '杭州大江工作室'
        },
        {
          label: '提交日期:',
          value: '2021-05-30'
        },
        {
          label: '可供采购量:',
          value: '100'
        },
        {
          label: '本期采购量:',
          value: '20'
        },
        {
          label: '数据收集:',
          value: '20'
        },
        {
          label: '报表成时间:',
          value: '2021-05-21 22:21:12'
        }
      ]
    };
  }
};
</script>
<style lang="scss" scoped>
.bi-mobile-base-info {
  page-break-before: always;
  &_content {
    width: 9.15rem;
    border: 0.03rem solid #e8e8e8;
    border-radius: 0.2rem;
    margin: 0.34rem auto 0.6rem auto;
    padding: 0.57rem 0.32rem;
    &_item {
      font-size: 0.35rem;
      color: #9d9d9d;
      & > div {
        display: inline-block;
      }
      &_value {
        float: right;
        color: #2d2d2d;
      }
      & + .bi-mobile-base-info_content_item {
        margin-top: 0.5rem;
      }
    }
  }
}
</style>