<template>
  <div id="center">
    <div class="up">
      <div class="bg-color-black item">
        <p class="ml-3 fw-b fs-xl cec"><span style="color:#ffbc25;">(竞价单)</span> 招标单数</p>
        <div class="ml-3 cex">{{datatotalzixunpurchease.zixun_total}}</div>    
      </div>
      <div class="bg-color-black item">
        <p class="ml-3 fw-b fs-xl cec"><span style="color:#ffbc25;">(竞价单)</span> 未竞标单数</p>
        <div class="ml-3 cex">{{datatotalzixunpurchease.not_feedback}}</div>    
      </div>
      <div class="bg-color-black item">
        <p class="ml-3 fw-b fs-xl cec"><span style="color:#ffbc25;">(采购单)</span> 采购单数</p>
        <div class="ml-3 cex">{{datatotalzixunpurchease.purchease_total}}</div>    
      </div>
      <div class="bg-color-black item">
        <p class="ml-3 fw-b fs-xl cec"><span style="color:#ffbc25;">(采购单)</span> 未下单数</p>
        <div class="ml-3 cex">{{datatotalzixunpurchease.purchease_wait_confirm}}</div>    
      </div>
      <!-- <div class="bg-color-black item">
        <p class="ml-3 fw-b fs-xl cec"><span style="color:#ffbc25;">(采购单)</span> 采购下单数</p>
        <div class="ml-3 cex">{{datatotalzixunpurchease.zixun_total}}</div>    
      </div>
      <div class="bg-color-black item">
        <p class="ml-3 fw-b fs-xl cec"><span style="color:#ffbc25;">(采购单)</span> 未生产单数</p>
        <div class="ml-3 cex">{{datatotalzixunpurchease.zixun_total}}</div>    
      </div> -->
      <div class="bg-color-black item" style="margin-bottom:0;">
        <p class="ml-3 fw-b fs-xl cec"><span style="color:#ffbc25;">(未发货)</span> 单数</p>
        <div class="ml-3 cex">{{datawaitsendtotal.order_num}}</div>    
      </div>
      <div class="bg-color-black item" style="margin-bottom:0;">
        <p class="ml-3 fw-b fs-xl cec"><span style="color:#ffbc25;">(未发货)</span> 商品数</p>
        <div class="ml-3 cex">{{datawaitsendtotal.wsend_num}}</div>    
      </div>
    </div>
  </div>
</template>

<script>
// import CenterChart from '@/components/echart/center/centerChartRate'
import asyncRequest from "@/apis/service/bigScreen";
// import resToken from "@/mixins/resToken";
export default {
  data() {
    return {

      datatotalzixunpurchease:{},
     
      datawaitsendtotal:{},
    }
  },
  mounted() {
   this.initHttp()
  },
  methods: {
  async initHttp(){
    
     let res = await asyncRequest.datatotalzixunpurchease();
     if(res.code == 0){
       this.datatotalzixunpurchease = res.data;
      //  console.log(this.datatotalzixunpurchease)
     }else{
       this.$message.error(res.message)
       return;
     }

    
     let res_1 = await asyncRequest.datawaitsendtotal();
     if(res_1.code == 0){
      //  console.log(res_1)
       this.datawaitsendtotal = res_1.data;
      //  console.log(this.datawaitsendtotal)
     }else{
       this.$message.error(res_1.message)
       return;
     }
   },


   
  }
}
</script>

<style lang="scss" scoped>
#center {
  display: flex;
  flex-direction: column;
  .up {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    .item {
      border-radius: 6px;
      padding-top: 8px;
      margin-top: 8px;
      margin-bottom: 82px;
      width: 46%;
      background: rgb(23, 28, 51);
      height: 70px;
      .dv-dig-flop {
        width: 150px;
        height: 30px;
      }
    }
  }
  .down {
    padding: 6px 4px;
    padding-bottom: 0;
    width: 100%;
    display: flex;
    height: 255px;
    justify-content: space-between;
    .bg-color-black {
      border-radius: 5px;
    }
    .ranking {
      padding: 10px;
      width: 59%;
      .dv-scr-rank-board {
        height: 225px;
      }
    }
    .percent {
      width: 40%;
      display: flex;
      flex-wrap: wrap;
      .item {
        width: 50%;
        height: 120px;
        
        span {
          margin-top: 8px;
          font-size: 14px;
          display: flex;
          justify-content: center;
        }
      }
      .water {
        width: 100%;
        .dv-wa-le-po {
          height: 120px;
        }
      }
    }
  }

  .cex{
    color: #28ffcd;
    width: 100%;
    font-size: 22px;
    // text-align: center;
    font-weight: 500;
    display: inline-block;
    margin-top: 10px;
  }
  .cec{
    color: #c3cbde;
    width: 100%;
    font-size: 16px;
    // text-align: center;
    font-weight: 500;
    display: inline-block;
  }
}
</style>
