<template>
  <div id="bottomLeft">
    <div class="bg-color-black">
      <div class="d-flex pt-2 pl-2">
        <div class="d-flex border_bottom">
          <div class="fs-xl text mx-2">{{ info.wareCn }}</div>
          <div class="fs-xl text1">品名：</div>
          <div class="fs-xl text2">{{ info.securities }}</div>
        </div>
      </div>
      <div class="text3">当前库存</div>
      <div class="d-flex pt-2 pl-2">
        <div class="d-flex border_bottom">
          <div class="fs-xl text4 mx-2">{{ info.qty }}</div>
          <div class="fs-xl text5">箱</div>
        </div>
      </div>
      <div class="d-flex pl-2 pl-2">
        <div class="d-flex border_bottom">
          <div class="icon-in"></div>
          <div class="fs-xl text6 mx-2">今日入库</div>
          <div class="fs-xl text7 mx-2">{{ info.dayInQty }}</div>
          <div class="fs-xl text8">箱</div>
        </div>
      </div>
      <div class="d-flex pt-2 pl-2">
        <div class="d-flex bottom">
          <div class="icon-out"></div>
          <div class="fs-xl text6 mx-2">今日出库</div>
          <div class="fs-xl text7 mx-2">{{ info.dayOutQty }}</div>
          <div class="fs-xl text8">箱</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import BottomLeftChart from '@/components/echart/bottom/bottomLeftChart'
export default {
  props: ['info'],
  components: {
    BottomLeftChart
  }
}
</script>

<style lang="scss" scoped>
$box-height: 420px;
$box-width: 100%;
#bottomLeft {
  // border: #f00 0.1333vw solid;
  padding: 20px 16px;
  height: $box-height;
  width: $box-width;
  border-radius: 5px;
  .bg-color-black {
    height: $box-height - 35px;
    border-radius: 10px;
    // border: #f00 0.1333vw solid;
    padding-right: 10px;
  }
  .border_bottom {
    padding: 20px 0 20px 5px;
    border-bottom: #e7c322 1px solid;
    width: 100%;
    // border: #ff0 0.1333vw solid;
  }
  .bottom {
    padding: 20px 0 20px 5px;
    width: 100%;
    // border: #ff0 0.1333vw solid;
  }
  .text {
    color: #c3cbde;
    font-size: 2rem;
    width: 54%;
    // border: #ff0 0.1333vw solid;
  }
  .text1 {
    color: #c3cbde;
    font-size: 1rem;
    width: 20%;
    text-align: right;
    // margin-left: 7rem;
    line-height: 2rem;
  }
  .text2 {
    // border: #ff0 0.1333vw solid;
    color: #c3cbde;
    width: 20%;
    font-size: 1.5rem;
    line-height: 1.7rem;
    text-align: right;
    overflow: hidden;
  }
  .text3 {
    color: #c3cbde;
    font-size: 1.5rem;
    transform: skewX(-10deg);
    width: 100%;
    padding: 20px;
  }
  .text4 {
    color: #f8b655;
    font-family: fantasy;
    font-size: 4rem;
    width: 80%;
    height: 3rem /* 100/16 */;
  }
  .text5 {
    color: #f8b655;
    font-size: 2rem;
    margin-left: 0.1rem;
  }
  .text6 {
    font-size: 1.2rem;
    width: 35%;
    height: 32px;
    line-height: 40px;
  }
  .text7 {
    font-size: 2rem;
    width: 25%;
    height: 32px;
    line-height: 32px;
  }
  .text8 {
    font-size: 2rem;
    width: 20%;
    text-align: right;
    height: 32px;
    line-height: 32px;
  }
  .chart-box {
    margin-top: 16px;
    width: 170px;
    height: 170px;
    .active-ring-name {
      padding-top: 10px;
    }
  }
}
.icon-in {
  /* 设置元素的宽度和高度 */
  width: 32px;
  height: 32px;
  /* 将背景图片设置为所需的图标 */
  background-image: url('../assets/in.png');
  /* 背景图片不平铺 */
  background-repeat: no-repeat;
  /* 背景图片居中 */
  background-position: center;
  /* 背景图片尺寸 */
  background-size: contain;
}
.icon-out {
  /* 设置元素的宽度和高度 */
  width: 32px;
  height: 32px;
  /* 将背景图片设置为所需的图标 */
  background-image: url('../assets/out.png');
  /* 背景图片不平铺 */
  background-repeat: no-repeat;
  /* 背景图片居中 */
  background-position: center;
  /* 背景图片尺寸 */
  background-size: contain;
}
</style>
