<!-- start 面包屑 -->
<nz-breadcrumb>
  <nz-breadcrumb-item>
    订单详情
  </nz-breadcrumb-item>
</nz-breadcrumb>
<!-- end 面包屑 -->
<!--条件搜索-->

<div class="inner-content">
  <nz-tabset>
    <nz-tab nzTitle="交易详情">
      <nz-descriptions nzBordered [nzColumn]="{ xxl: 3, xl: 2, lg: 2, md: 2, sm: 2, xs: 1 }">
        <nz-descriptions-item nzTitle="商户号">{{dataObject.order['merNo']}}</nz-descriptions-item>
        <nz-descriptions-item nzTitle="商户名称">{{dataObject.order['merName']}}</nz-descriptions-item>
        <nz-descriptions-item nzTitle="商户简称">{{dataObject.order['merAbbreviate']}}</nz-descriptions-item>
        <nz-descriptions-item nzTitle="门店名称">{{dataObject.order['storeName']}}</nz-descriptions-item>
        <nz-descriptions-item nzTitle="商户交易单号">{{dataObject.order['outTradeNo']}}</nz-descriptions-item>
        <nz-descriptions-item nzTitle="账户端交易单号">{{dataObject.order['accTradeNo']}}</nz-descriptions-item>
        <nz-descriptions-item nzTitle="交易金额">{{dataObject.order['tradeAmount']}}</nz-descriptions-item>
        <nz-descriptions-item nzTitle="商户优惠金额">{{dataObject.order['accMdiscountAmount'] ? dataObject.order['accMdiscountAmount'] : 0}} </nz-descriptions-item>
        <nz-descriptions-item nzTitle="用户优惠金额">{{dataObject.order['accDiscountAmount']  ? dataObject.order['accDiscountAmount'] : 0}} </nz-descriptions-item>
        <nz-descriptions-item nzTitle="实际交易金额">{{dataObject.order['tradeActualAmount']}}</nz-descriptions-item>
        <nz-descriptions-item nzTitle="交易方式">{{dataObject.order['payMode'] | payMode}}</nz-descriptions-item>
        <nz-descriptions-item nzTitle="交易状态">{{dataObject.order['status'] | tradeOrderStatus}}</nz-descriptions-item>
        <nz-descriptions-item nzTitle="入账账户">{{dataObject.order['platformMerNo']}}</nz-descriptions-item>
        <nz-descriptions-item nzTitle="创建方式">{{dataObject.order['createType'] | createType}}</nz-descriptions-item>
        <nz-descriptions-item nzTitle="创建时间">{{dataObject.order['createTime'] | date : 'yyyy-MM-dd HH:mm:ss'}}</nz-descriptions-item>
        <nz-descriptions-item nzTitle="支付时间">{{dataObject.order['payTime'] | date : 'yyyy-MM-dd HH:mm:ss'}}</nz-descriptions-item>
      </nz-descriptions>
    </nz-tab>
    <nz-tab nzTitle="退款详情" *ngIf="dataObject.orderRefund != null && dataObject.orderRefund.length > 0">
      <div *ngFor="let orderRefund of dataObject.orderRefund">
        <nz-descriptions nzBordered nzSize="small">
          <nz-descriptions-item nzTitle="退款单号" nzSpan="3">{{orderRefund['refundNo']}}</nz-descriptions-item>
          <nz-descriptions-item nzTitle="退款金额" nzSpan="1.5">{{orderRefund['refundAmount']}}</nz-descriptions-item>
          <nz-descriptions-item nzTitle="退款状态" nzSpan="1.5">{{orderRefund['status'] | tradeOrderRefundStatus}}</nz-descriptions-item>
          <nz-descriptions-item nzTitle="创建时间" nzSpan="1.5">{{orderRefund['createTime']  | date : 'yyyy-MM-dd HH:mm:ss'}}</nz-descriptions-item>
          <nz-descriptions-item nzTitle="退款时间" nzSpan="1.5">{{orderRefund['refundTime']  | date : 'yyyy-MM-dd HH:mm:ss'}}</nz-descriptions-item>
          <nz-descriptions-item nzTitle="退款原因" nzSpan="3">{{orderRefund['refundReason']}}</nz-descriptions-item>
        </nz-descriptions>
        <nz-divider></nz-divider>
      </div>
    </nz-tab>
  </nz-tabset>
</div>

