<!--
  @description: 订单详情-收货信息-发票信息
  @Modifier：杨胜国
  @routerPath: receiv-detail
  @date：  2021/06/01-10:00
-->
<template>
  <div>
    <div class="title-con">
      <div class="order_title rivinfo">
        收货信息
      </div>
      <div class="order_title loginfo">
        发票信息
      </div>
    </div>
    <div class="m track-cont">
      <div class="order-track-content">
        <div>
          <div class="item">
            <img src="@/assets/img/shopmall/name.png" width="16px" height="16px">
            <div>
              姓名：
            </div>
            <span>{{ orderDetailObj.receiverName ? orderDetailObj.receiverName : '暂无' }}</span>
          </div>
          <div class="item">
            <img src="@/assets/img/shopmall/phoneno.png" width="16px" height="16px">
            <div>
              手机号：
            </div>
            <span>
              {{ orderDetailObj.phoneNumber ? orderDetailObj.phoneNumber : '暂无' }}
            </span>
          </div>
          <div class="item">
            <img src="@/assets/img/shopmall/addr.png" class="align-self mt3" width="16px" height="16px">
            <div class="align-self">
              收货地址：
            </div>
            <span class="align-self cursor" :title="orderDetailObj.addressDetail">
              {{ orderDetailObj.addressDetail ? orderDetailObj.addressDetail : '暂无' }}
            </span>
          </div>
        </div>
      </div>
      <!-- 发票信息 -->
      <div class="logistics-content">
        <div class="item">
          <span class="label">
            发票类型：
          </span>
          <div class="info-rcol" :title="orderDetailObj.invoiceType === '00' ? '普通类型发票' : '增值税专用票'">
            {{ orderDetailObj.invoiceType === '00' ? '普通类型发票' : '增值税专用票' }}
          </div>
        </div>
        <div class="item">
          <span class="label">
            发票抬头：
          </span>
          <div class="info-rcol" :title="orderDetailObj.invoiceTitle">
            {{ orderDetailObj.invoiceTitle ? orderDetailObj.invoiceTitle : '暂无' }}
          </div>
        </div>
        <div class="item">
          <span class="label">
            纳税识别号：
          </span>
          <div class="info-rcol" :title="orderDetailObj.taxpayerIdentificationNumber">
            {{ orderDetailObj.taxpayerIdentificationNumber ? orderDetailObj.taxpayerIdentificationNumber : '暂无' }}
          </div>
        </div>
        <div v-if="orderDetailObj.invoiceType === '01'" class="item">
          <span class="label">
            注册地址：
          </span>
          <div class="info-rcol" :title="orderDetailObj.taxpayeraddr">
            {{ orderDetailObj.taxpayeraddr ? orderDetailObj.taxpayeraddr : '暂无' }}
          </div>
        </div>
        <div v-if="orderDetailObj.invoiceType === '01'" class="item">
          <span class="label">
            开户银行：
          </span>
          <div class="info-rcol" :title="orderDetailObj.bankname">
            {{ orderDetailObj.bankname ? orderDetailObj.bankname : '暂无' }}
          </div>
        </div>
        <div v-if="orderDetailObj.invoiceType === '01'" class="item">
          <span class="label">
            注册电话：
          </span>
          <div class="info-rcol" :title="orderDetailObj.taxpayertel">
            {{ orderDetailObj.taxpayertel ? orderDetailObj.taxpayertel : '暂无' }}
          </div>
        </div>
        <div v-if="orderDetailObj.invoiceType === '01'" class="item">
          <span class="label">
            银行账号：
          </span>
          <div class="info-rcol" :title="orderDetailObj.bankaccount">
            {{ orderDetailObj.bankaccount ? orderDetailObj.bankaccount : '暂无' }}
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'TrackDetail',
  components: {
  },
  props: {
    orderDetailObj: {
      type: Object,
      default: function() {
        return
      }
    }
  },
  data() {
    return {

    }
  }
}
</script>

<style scoped lang="less">
.title-con{
  width: 100%;
  display: flex;
  justify-content: space-between;
  .rivinfo{
    width: 30%;
  }
  .loginfo{
    width: 60%;
  }
}
.order_title{
    font-family: 'PingFangSC-Regular', 'PingFang SC';
    font-style: normal;
    padding-top: 15px;
    margin-bottom: 15px;
    // font-weight: bold;
    font-size: 16px;
  }
.track-cont{
    // box-shadow: 2px 2px 5px #ccc;
    display: flex;
    justify-content: space-between;
    font-family: 'PingFangSC-Regular', 'PingFang SC';
    font-style: normal;
    font-size: 12px;
    margin-bottom: 20px;
    .order-track-content{
      width: 35%;
      padding: 30px 20px 40px 30px;
      box-shadow: 2px 2px 5px #dcd8d8;
      .item {
        display: flex;
        margin-top: 25px;
        padding-right: 10px;
        align-items: center;
        >div {
          width: 70px;
          margin-left: 10px;
        }
        >span {
          flex: 1;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 3;
          overflow: hidden;
        }
        >i {
          color: #007CCC;
          font-size: 16px;
        }
        .align-self {
          align-self: flex-start;
        }
        .mt3 {
          margin-top: 0px;
        }
      }
    }
    .logistics-content{
      width: 60%;
      box-shadow: 2px 2px 5px #dcd8d8;
      padding: 30px 30px 40px 30px;
      display: flex;
      flex-wrap: wrap;
      .item {
        width: 50%;
        display: flex;
        margin-top: 25px;
        align-items: center;
        padding-right: 5px;
        .label {
          width: 75px;
        }
        .info-rcol {
          flex: 1;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
      }
    }
  }
</style>
