<template>
  <div class="box">
    <div class="menuData">
      <span>车牌号:</span>
      <span class="textColor" style="margin-left: 5px">{{
        weighingList.licensePlate
      }}</span>
    </div>
    <div class="menuData" style="margin-left: 3%">
      <span>货名:</span>
      <span class="textColor">{{ weighingList.goodsName }}</span>
    </div>
    <div class="menuData">
      <span>规格:</span>
      <span class="textColor">{{ weighingList.specifications }}</span>
    </div>
    <div class="menuData" style="margin-left: 3%">
      <span>毛重:</span>
      <span class="textColor">{{ weighingList.grossWeight }}</span>
    </div>
    <div class="menuData">
      <span>皮重:</span>
      <span class="textColor">{{ weighingList.tare }}</span>
    </div>
    <div class="menuData" style="margin-left: 3%">
      <span>净重:</span>
      <span class="textColor">{{ weighingList.netWeight }}</span>
    </div>
  </div>
</template>

<script>
import { getNewestWeighInfoApi } from '@/assets/js/api/dataBoard.js'
export default {
  data() {
    return {
      weighingList: {},
    }
  },
  created() {
    this.getList()
  },
  methods: {
    getList() {
      getNewestWeighInfoApi({
        projectSn: this.$store.state.projectSn
      }).then(res => {
        if (res.result) {
          this.weighingList = res.result
          console.log('有数据吗',res);
          this.$EventBus.$emit('weighingImgArry', res.result.weighPicList)
        }

      })
    }
  }
}
</script>

<style lang="less" scoped>
.box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  padding-top: 3%;
  .menuData {
    width: 48%;
    height: 20%;
    line-height: 30px;
    background-color: rgb(9, 33, 35);
    span {
      margin-left: 10%;
    }
    .textColor {
      color: #39b99d;
    }
  }
}
</style>