<!--质检信息-->
<template>
  <div class="center">
    <div class="number">{{ printData.qualityNo }}</div>
    <table class="table">
      <tr class="row">
        <td class="col col-bgc">客户姓名</td>
        <td class="col" colspan="2">{{ printData.customerName }}</td>
        <td class="col col-bgc">客户电话</td>
        <td class="col" colspan="2">{{ printData.customerPhone }}</td>
        <td class="col col-bgc">车牌号</td>
        <td class="col">{{ printData.carNumber }}</td>
      </tr>
      <tr class="row">
        <td class="col col-bgc">收货单位</td>
        <td class="col" colspan="2">{{ printData.compName }}</td>
        <td class="col col-bgc">联系人</td>
        <td class="col" colspan="2">{{ printData.person }}</td>
        <td class="col col-bgc">联系电话</td>
        <td class="col">{{printData.personPhone}}</td>
      </tr>
      <tr class="row">
        <td class="col col-bgc">货名</td>
        <td class="col">{{ printData.goodsName }}</td>
        <td class="col col-bgc">类型</td>
        <td class="col">{{ printData.type }}</td>
        <td class="col col-bgc">容量（克/升）</td>
        <td class="col">{{ printData.bulkDensity }}</td>
        <td class="col col-bgc">不完善粒（%）</td>
        <td class="col">{{ printData.imperfectGrain }}</td>
      </tr>
      <tr class="row">
        <td class="col col-bgc">等级</td>
        <td class="col">{{ printData.grade }}</td>
        <td class="col col-bgc">水分（%）</td>
        <td class="col">{{ printData.waterContent }}</td>
        <td class="col col-bgc">热损伤（%）</td>
        <td class="col">{{ printData.jiaorenli }}</td>
        <td v-if="printData.confirm == '1'" class="col col-bgc">单价（元/公斤）</td>
        <td v-else class="col col-bgc">待定单价（元/公斤）</td>
        <td v-if="printData.type == '潮粮'" class="col">{{ printData.tidalGrainPrice }}</td>
        <td v-else class="col">{{ printData.dryGrainPrice }}</td>
      </tr>
      <tr class="row">
        <td class="col col-bgc">杂质（%）</td>
        <td class="col">{{ printData.impurity }}</td>
        <td class="col col-bgc">霉变粒（%）</td>
        <td class="col">{{ printData.mildewGrain }}</td>
        <td v-if="printData.paramType == '1'"  class="col col-bgc">扣杂</td>
        <td v-if="printData.paramType == '1'"  class="col">{{printData.buckleMiscellaneous}}</td>
        <td v-if="printData.paramType == '1'" class="col col-bgc" colspan="1">购粮性质</td>
        <td v-else class="col col-bgc" colspan="2">购粮性质</td>
        <td v-if="printData.paramType == '1'" class="col" colspan="1">{{ printData.natureOfGrainPurchase }}</td>
        <td v-else class="col" colspan="2">{{ printData.natureOfGrainPurchase }}</td>
      </tr>
    </table>
    <div class="bottom">
      <div class="bottom-row1">
        <div>质检：{{ printData.qualityInspector }}</div>
        <div>{{ printData.qualityDate }}</div>
      </div>
      <div class="bottom-row2">
        <!-- <div class="left">
          <img src="../../../../public/img/add.png" alt="" />
        </div> -->
        <div class="config">收货单位签名或盖章：</div>
        <div class="">客户签名：</div>
      </div>
      <!-- <div class="bottom-row3">扫一扫</div> -->
    </div>
  </div>
</template>
<script>
  export default {
    components: {},
    props: {
      printData: {
        type: Object
      }
    },
    data() {
      return {

      }
    },
    activated() {

    },
    methods: {

    },
  }
</script>
<style lang="scss" scoped>
  .number {
    text-align: right;
    margin: 0 0 10px 0;
  }

  table,
  table tr th,
  table tr td {
    border: 2px solid #333333;
    padding: 5px 0;
  }

  table {
    width: 100%;
    min-height: 25px;
    line-height: 25px;
    text-align: center;
    border-collapse: collapse;
    border: 3px solid #333333;
  }

  .col-bgc {
    background: #f6f7fb;
  }

  .bottom-row1 {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
  }

  .bottom-row2 {
    display: flex;
    margin: 10px 0;

    .left {
      img {
        width: 41px;
        height: 41px;
        margin-right: 118px;
      }
    }

    .config {
      margin-right: 240px;
    }
  }

  .bottom-row3 {
    margin: 10px 0;
  }

  .bottom-row4 {
    margin-top: 50px;
    text-align: center;
  }
</style>
