<template>
  <div>
    <el-descriptions class="normal-margin" :column="2"  border labelClassName="my-label" contentClassName="my-content">
      <div slot="title" class="my-label__title">账户信息</div>
      <el-descriptions-item label="账户名称">{{ mainData.accountclass?mainData.accountclass.accountname:"--" }}</el-descriptions-item>
      <el-descriptions-item label="使用金额">{{ mainData.accountclass?mainData.accountclass.amount:"--" }}</el-descriptions-item>
      <el-descriptions-item label="是否使用返利金">{{ mainData.accountclass?mainData.accountclass.rebate_used ? '是' : '否' : '--' }}</el-descriptions-item>
      <el-descriptions-item label="返利金使用金额">{{ mainData.accountclass?mainData.accountclass.rebateamount:"--" }}</el-descriptions-item>
    </el-descriptions>
    <el-descriptions  class="normal-margin" border :column="2" labelClassName="my-label" contentClassName="my-content">
      <div slot="title" class="my-label__title">开票信息</div>
      <el-descriptions-item label="抬头">{{ mainData.finance?mainData.finance.enterprisename:"--" }}</el-descriptions-item>
      <el-descriptions-item label="税号">{{ mainData.finance?mainData.finance.taxno:"--" }}</el-descriptions-item>
      <el-descriptions-item label="开户行">{{ mainData.finance?mainData.finance.bank:"--" }}</el-descriptions-item>
      <el-descriptions-item label="开户账号">{{ mainData.finance?mainData.finance.bankcardno:"--" }}</el-descriptions-item>
      <el-descriptions-item label="开户地址">{{ mainData.finance?mainData.finance.address:"--" }}</el-descriptions-item>
    </el-descriptions>
    <el-descriptions class="normal-margin"  border :column="2" labelClassName="my-label" contentClassName="my-content">
      <div slot="title" class="my-label__title">收货信息</div>
      <el-descriptions-item label="联系人">{{ mainData.contacts?mainData.contacts.name:"--" }}</el-descriptions-item>
      <el-descriptions-item label="联系电话">{{ mainData.contacts?mainData.contacts.phonenumber:"--" }}</el-descriptions-item>
      <el-descriptions-item label="地址">{{ mainData.contacts?`${mainData.contacts.province}${mainData.contacts.city}${mainData.contacts.county}${mainData.contacts.address}`:'--'}}</el-descriptions-item>
    </el-descriptions>
<!--    <el-descriptions  border :column="2" labelClassName="my-label" contentClassName="my-content">
      <div slot="title" class="my-label__title">物流信息</div>
      
      <el-descriptions-item label="物流公司">{{ mainData.logiscomp?mainData.logiscomp.enterprisename:"&#45;&#45;" }}</el-descriptions-item>
      <el-descriptions-item label="快递100ID">{{ mainData.logiscomp?mainData.logiscomp.kd100id:"&#45;&#45;" }}</el-descriptions-item>
    </el-descriptions>-->
  </div>
</template>

<script>
export default {
  props:["mainData"],
  data(){
    return {
    }
  },
  mounted() {
  },
  methods:{
  }
}
</script>

<style scoped>

</style>