<template>
  <!-- 当前订单板块 -->
  <div class="commonTitle">当前订单</div>
  <div class="body">
    <div class="box">
      <div class="boxContent">
        <div class="contentHeader">
          <img class="imgIcon" src="@/assets/icons/jinrijihua.svg" />
          <span class="headerText">产品数量</span>
        </div>
        <div class="contentNum">100</div>
      </div>
    </div>
    <div class="box">
      <div class="boxContent">
        <div class="contentHeader">
          <img class="imgIcon" src="@/assets/icons/jinriwancheng.svg" />
          <span class="headerText">完成数量</span>
        </div>
        <div class="contentNum">100</div>
      </div>
    </div>
    <div class="box" style="position: absolute; left: 0; bottom: 0">
      <div class="boxContent">
        <div class="contentHeader">
          <img class="imgIcon" src="@/assets/icons/zhuliaoqitao.svg" />
          <span class="headerText">主料齐套</span>
        </div>
        <div class="contentNum">100</div>
      </div>
    </div>
    <div class="box" style="position: absolute; right: 0; bottom: 0">
      <div class="boxContent activeBoxContent">
        <div class="contentHeader">
          <img class="imgIcon" src="@/assets/icons/jinribaogu.svg" />
          <span class="headerText">报故历史</span>
        </div>
        <div class="contentNum">100</div>
      </div>
    </div>
    <div class="horizontalLine"></div>
    <div class="verticalLine"></div>
  </div>
</template>

<script lang="ts" setup>
import { reactive, ref } from "vue";
</script>

<style lang="scss" scoped>
.body {
  width: 100%;
  height: calc(100% - 60px);
  position: relative;

  .box {
    display: inline-block;
    box-sizing: border-box;
    width: 50%;
    height: 50%;
    padding: 10px;

    .boxContent {
      border-radius: 16px;

      width: calc(100% - 5px);
      height: calc(100% - 5px);
      position: relative;

      .contentHeader {
        display: flex;
        align-items: center;
        width: 100%;
        height: 30px;
        position: absolute;
        top: 5px;
        left: 5px;

        //控制icon大小
        .imgIcon {
          width: 32px;
          height: 32px;
        }

        .headerText {
          font-size: $f20;
          color: $font-default-60;
          margin-left: 5px;
        }
      }

      .contentNum {
        font-size: $f60;
        line-height: 60px;
        position: absolute;
        bottom: 1px;
      }
    }

    .activeBoxContent {
      background-color: white;
    }
  }

  .horizontalLine {
    width: 100%;
    height: 1px;
    border-bottom: 1px solid #00000020;
    position: absolute;
    top: 50%;
  }

  .verticalLine {
    height: 80%;
    width: 1px;
    border-right: 1px solid #00000020;
    position: absolute;
    top: 10%;
    right: 50%;
  }
}
</style>
