|
|
|
@ -29,7 +29,11 @@ |
|
|
|
|
<nz-form-label [nzSpan]="8">交易状态</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="14"> |
|
|
|
|
<nz-select formControlName="status" nzAllowClear> |
|
|
|
|
<nz-option *ngFor="let item of orderStatusArray" nzValue="{{item.codeValue}}" nzLabel="{{item.codeName}}"></nz-option> |
|
|
|
|
<nz-option nzValue="1" nzLabel="待支付"></nz-option> |
|
|
|
|
<nz-option nzValue="2" nzLabel="已支付"></nz-option> |
|
|
|
|
<nz-option nzValue="3" nzLabel="已完成"></nz-option> |
|
|
|
|
<nz-option nzValue="4" nzLabel="已退款"></nz-option> |
|
|
|
|
<nz-option nzValue="5" nzLabel="已取消"></nz-option> |
|
|
|
|
</nz-select> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
@ -62,7 +66,7 @@ |
|
|
|
|
<div class="inner-content"> |
|
|
|
|
<span>共计 {{total?total:0}} 条数据</span> |
|
|
|
|
<div class="operating-button"> |
|
|
|
|
<button nz-button nzType="primary" class="right-btn" (click)="excelOrder(searchForm.value)" ><i nz-icon nzType="export" nzTheme="outline"></i>导出Excel</button> |
|
|
|
|
<!-- <button nz-button nzType="primary" class="right-btn" (click)="excelOrder(searchForm.value)" ><i nz-icon nzType="export" nzTheme="outline"></i>导出Excel</button>--> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<!--数组表格 --> |
|
|
|
@ -83,34 +87,44 @@ |
|
|
|
|
<thead> |
|
|
|
|
<tr> |
|
|
|
|
<th nzWidth="200px">交易单号</th> |
|
|
|
|
<th nzWidth="200px">子订单号</th> |
|
|
|
|
<th nzWidth="200px">物流单号</th> |
|
|
|
|
<th nzWidth="130px">客户电话</th> |
|
|
|
|
<th nzWidth="200px">订单名称</th> |
|
|
|
|
<th nzWidth="100px">订单金额</th> |
|
|
|
|
<th nzWidth="100px">支付金额</th> |
|
|
|
|
<th nzWidth="100px">支付方式</th> |
|
|
|
|
<th nzWidth="100px">订单状态</th> |
|
|
|
|
<th nzWidth="200px">商品名称</th> |
|
|
|
|
<th nzWidth="100px">商品规格</th> |
|
|
|
|
<th nzWidth="100px">商品金额</th> |
|
|
|
|
<th nzWidth="100px">售卖金额</th> |
|
|
|
|
<th nzWidth="100px">商品数量</th> |
|
|
|
|
<th nzWidth="120px">支付总金额</th> |
|
|
|
|
<th nzWidth="180px">创建时间</th> |
|
|
|
|
<th nzWidth="180px" nzRight="0px">物流状态</th> |
|
|
|
|
<th nzWidth="110px" nzRight="0px">操作</th> |
|
|
|
|
<th nzWidth="180px" nzRight>收货信息</th> |
|
|
|
|
<th nzWidth="100px" nzRight>订单状态</th> |
|
|
|
|
<th nzWidth="100px" nzRight>物流状态</th> |
|
|
|
|
<th nzWidth="140px" nzRight>操作</th> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tbody> |
|
|
|
|
<tr *ngFor="let data of basicTable.data;let i = index" [ngClass]="{'fontColor': data.logisticsStatus === '1' }"> |
|
|
|
|
<tr *ngFor="let data of basicTable.data;let i = index" [ngClass]="{'fontColor': data.logisticsStatus === null && data.childOrderStatus === 2 }"> |
|
|
|
|
<td>{{data.orderNo}}</td> |
|
|
|
|
<td>{{data.childOrderNo}}</td> |
|
|
|
|
<td>{{data.logisticsNo === null ? '暂无物流信息' : data.logisticsNo}}</td> |
|
|
|
|
<td>{{data.memPhone}}</td> |
|
|
|
|
<td>{{data.title}}</td> |
|
|
|
|
<td>¥{{data.totalPrice}}</td> |
|
|
|
|
<td>¥{{data.payPrice}}</td> |
|
|
|
|
<td>{{data.orderStatus == 1 || data.orderStatus == 5 ? '未支付' : data.payType | orderPayType}}</td> |
|
|
|
|
<td>{{data.orderStatus | orderStatus}}</td> |
|
|
|
|
<td>{{data.goodsName}}</td> |
|
|
|
|
<td>{{data.goodsSpecName}}</td> |
|
|
|
|
<td>¥{{data.goodsPrice}}</td> |
|
|
|
|
<td>¥{{data.goodsActualPrice}}</td> |
|
|
|
|
<td>{{data.saleCount}}</td> |
|
|
|
|
<td>¥{{data.totalActualPrice}}</td> |
|
|
|
|
<td>{{data.createTime | date : 'yyyy-MM-dd HH:mm:ss'}}</td> |
|
|
|
|
<td nzRight="0px" >{{data.logisticsStatus | logisticsStatus}}</td> |
|
|
|
|
<td nzRight="0px" class="table-td-operation"> |
|
|
|
|
<td nzRight>{{data.deliveryAddressMsg }}</td> |
|
|
|
|
<td nzRight>{{data.childOrderStatus | orderChildStatus}}</td> |
|
|
|
|
<td nzRight >{{data.logisticsStatus == null ? '未发货' : data.logisticsStatus}}</td> |
|
|
|
|
<td nzRight class="table-td-operation"> |
|
|
|
|
<a nz-dropdown [nzDropdownMenu]="menu"> 操作列表 <i nz-icon nzType="down"></i> </a> |
|
|
|
|
<nz-dropdown-menu #menu="nzDropdownMenu"> |
|
|
|
|
<ul nz-menu nzSelectable> |
|
|
|
|
<li nz-menu-item (click)="showOrderDetail(data.orderNo)"><a>详情</a></li> |
|
|
|
|
<li nz-menu-item (click)="updateLogisticsNo(data.orderNo)"><a>录入物流编码</a></li> |
|
|
|
|
<li *ngIf="data.logisticsNo != null" nz-menu-item (click)="showOrderDetail(data.id)"><a>查看物流</a></li> |
|
|
|
|
<li nz-menu-item *ngIf="data.logisticsStatus === null && data.childOrderStatus === 2" (click)="updateLogisticsNo(data.id)"><a>录入物流编码</a></li> |
|
|
|
|
</ul> |
|
|
|
|
</nz-dropdown-menu> |
|
|
|
|
</td> |
|
|
|
@ -120,96 +134,18 @@ |
|
|
|
|
</div> |
|
|
|
|
</nz-spin> |
|
|
|
|
|
|
|
|
|
<nz-modal [(nzVisible)]="orderDetailModal" nzTitle="交易详情" (nzOnCancel)="orderDetailModal = false" [nzFooter]="null" |
|
|
|
|
<nz-modal [(nzVisible)]="orderDetailModal" nzTitle="物流详情" (nzOnCancel)="orderDetailModal = false" [nzFooter]="null" |
|
|
|
|
nzWidth="1000px" [nzBodyStyle]=" { padding: '20px 20px 30px 20px'}"> |
|
|
|
|
<nz-spin [nzSpinning]="orderDetailModalLoading"> |
|
|
|
|
<nz-tabset [nzType]="'card'"> |
|
|
|
|
<nz-tab nzTitle="订单信息"> |
|
|
|
|
<nz-descriptions nzBordered [nzColumn]="2" [nzSize]="'middle'"> |
|
|
|
|
<nz-descriptions-item nzTitle="交易订单号">{{orderDetailObject.tradeOrder.orderNo}}</nz-descriptions-item> |
|
|
|
|
<nz-descriptions-item nzTitle="第三方交易号">{{orderDetailObject.tradeOrder.paySerialNo!=null?orderDetailObject.tradeOrder.paySerialNo:'无'}}</nz-descriptions-item> |
|
|
|
|
<nz-descriptions-item nzTitle="客户手机号">{{orderDetailObject.tradeOrder.memPhone}}</nz-descriptions-item> |
|
|
|
|
<nz-descriptions-item nzTitle="交易状态">{{orderDetailObject.tradeOrder.orderStatus | orderStatus}}</nz-descriptions-item> |
|
|
|
|
<nz-descriptions-item nzTitle="支付方式">{{orderDetailObject.tradeOrder.payType | orderPayType}}</nz-descriptions-item> |
|
|
|
|
<nz-descriptions-item nzTitle="支付卡号" *ngIf="orderDetailObject.tradeOrder.payType == 4 || orderDetailObject.tradeOrder.payType == 7"> |
|
|
|
|
{{orderDetailObject.tradeOrder.memCardNo}} |
|
|
|
|
</nz-descriptions-item> |
|
|
|
|
<nz-descriptions-item nzTitle="优惠券">{{orderDetailObject.tradeOrder.memDiscountName?orderDetailObject.tradeOrder.memDiscountName:'无'}}</nz-descriptions-item> |
|
|
|
|
<nz-descriptions-item nzTitle="返利">{{orderDetailObject.tradeOrder.whetherRebate?'是':'否'}}</nz-descriptions-item> |
|
|
|
|
<nz-descriptions-item nzTitle="备注">{{orderDetailObject.tradeOrder.remarks}}</nz-descriptions-item> |
|
|
|
|
</nz-descriptions> |
|
|
|
|
</nz-tab> |
|
|
|
|
<nz-tab nzTitle="支付信息"> |
|
|
|
|
<nz-descriptions nzBordered [nzColumn]="3" [nzSize]="'middle'"> |
|
|
|
|
<nz-descriptions-item nzTitle="交易总额" >{{orderDetailObject.tradeOrder.totalPrice}} 元</nz-descriptions-item> |
|
|
|
|
<nz-descriptions-item nzTitle="总优惠" >{{orderDetailObject.tradeOrder.totalDeductionPrice}} 元</nz-descriptions-item> |
|
|
|
|
<nz-descriptions-item nzTitle="产品优惠金额" >{{orderDetailObject.tradeOrder.deductionProductPrice}} 元</nz-descriptions-item> |
|
|
|
|
<nz-descriptions-item nzTitle="优惠券优惠" >{{orderDetailObject.tradeOrder.deductionCouponPrice}} 元</nz-descriptions-item> |
|
|
|
|
<nz-descriptions-item nzTitle="应付金额" >{{orderDetailObject.tradeOrder.payablePrice}} 元</nz-descriptions-item> |
|
|
|
|
<nz-descriptions-item nzTitle="积分抵扣" >{{orderDetailObject.tradeOrder.payGold / 100}} 元 </nz-descriptions-item> |
|
|
|
|
<nz-descriptions-item nzTitle="实付金额" > |
|
|
|
|
{{orderDetailObject.tradeOrder.payRealPrice!=null?orderDetailObject.tradeOrder.payRealPrice+' 元':'未支付'}} |
|
|
|
|
</nz-descriptions-item> |
|
|
|
|
</nz-descriptions> |
|
|
|
|
</nz-tab> |
|
|
|
|
<nz-tab nzTitle="订单时间"> |
|
|
|
|
<nz-card> |
|
|
|
|
<nz-timeline> |
|
|
|
|
<nz-timeline-item *ngIf="orderDetailObject.tradeOrder.createTime != null"> |
|
|
|
|
<p>创建时间:{{orderDetailObject.tradeOrder.createTime | date : 'yyyy-MM-dd HH:mm:ss'}}</p> |
|
|
|
|
<p>备注:{{orderDetailObject.tradeOrder.remarks?orderDetailObject.tradeOrder.remarks:'无'}}</p> |
|
|
|
|
</nz-timeline-item> |
|
|
|
|
<nz-timeline-item *ngIf="orderDetailObject.tradeOrder.cancelTime != null"> |
|
|
|
|
<p>取消时间:{{orderDetailObject.tradeOrder.cancelTime | date : 'yyyy-MM-dd HH:mm:ss'}}</p> |
|
|
|
|
<p>备注:{{orderDetailObject.tradeOrder.cancelRemarks?orderDetailObject.tradeOrder.cancelRemarks:'无'}}</p> |
|
|
|
|
</nz-timeline-item> |
|
|
|
|
<nz-timeline-item *ngIf="orderDetailObject.tradeOrder.payTime != null">支付时间:{{orderDetailObject.tradeOrder.payTime | date : 'yyyy-MM-dd HH:mm:ss'}}</nz-timeline-item> |
|
|
|
|
<nz-timeline-item *ngIf="orderDetailObject.tradeOrder.finishTime != null">完成时间:{{orderDetailObject.tradeOrder.finishTime | date : 'yyyy-MM-dd HH:mm:ss'}}</nz-timeline-item> |
|
|
|
|
<nz-timeline-item *ngIf="orderDetailObject.tradeOrder.refundTime != null">退款时间:{{orderDetailObject.tradeOrder.refundTime | date : 'yyyy-MM-dd HH:mm:ss'}}</nz-timeline-item> |
|
|
|
|
</nz-timeline> |
|
|
|
|
</nz-card> |
|
|
|
|
</nz-tab> |
|
|
|
|
<nz-tab nzTitle="商品信息"> |
|
|
|
|
<nz-table nzBordered #childOrder [nzData]="orderDetailObject.tradeOrder.highChildOrderList" [nzHideOnSinglePage]="true"> |
|
|
|
|
<thead> |
|
|
|
|
<tr> |
|
|
|
|
<th nzWidth="80px">产品类型</th> |
|
|
|
|
<th nzWidth="100px">产品图片</th> |
|
|
|
|
<th nzWidth="120px">产品名称</th> |
|
|
|
|
<th nzWidth="30px">商品原价</th> |
|
|
|
|
<th nzWidth="30px">支付价格</th> |
|
|
|
|
<th nzWidth="20px">数量</th> |
|
|
|
|
<th nzWidth="20px">支付总价</th> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tbody> |
|
|
|
|
<tr *ngFor="let data of childOrder.data"> |
|
|
|
|
<td>{{ data.goodsType | orderChildGoodsType}}</td> |
|
|
|
|
<td> |
|
|
|
|
<app-preview-image [previewImage] = data.goodsImg ></app-preview-image> |
|
|
|
|
</td> |
|
|
|
|
<td> |
|
|
|
|
{{ data.goodsName }} |
|
|
|
|
<nz-tag *ngIf="data.giveawayType == 1" [nzColor]="'magenta'">赠品</nz-tag> |
|
|
|
|
</td> |
|
|
|
|
<td>{{ data.goodsPrice }} 元</td> |
|
|
|
|
<td>{{ data.goodsActualPrice }} 元</td> |
|
|
|
|
<td>{{ data.saleCount }}</td> |
|
|
|
|
<td>{{ data.totalActualPrice }} 元</td> |
|
|
|
|
</tr> |
|
|
|
|
</tbody> |
|
|
|
|
</nz-table> |
|
|
|
|
</nz-tab> |
|
|
|
|
<nz-tab nzTitle="物流信息" *ngIf="orderDetailObject.goodsOrder.logisticsNo != null"> |
|
|
|
|
<nz-timeline [nzReverse]="true"> |
|
|
|
|
<nz-timeline-item *ngFor="let item of logisticsTraceDetails;let i = index" [nzColor]="i===logisticsTraceDetails.length -1?'green':'gray'"> |
|
|
|
|
<p [ngClass]="{'fontColorBlue': i===logisticsTraceDetails.length -1 }">{{item['desc']}}</p> |
|
|
|
|
<p [ngClass]="{'fontColorBlue': i===logisticsTraceDetails.length -1 }">{{item.time | date : 'yyyy-MM-dd HH:mm:ss'}}</p> |
|
|
|
|
</nz-timeline-item> |
|
|
|
|
</nz-timeline> |
|
|
|
|
<nz-timeline [nzReverse]="true" *ngIf="logisticsTraceDetails !== null"> |
|
|
|
|
<nz-timeline-item *ngFor="let item of logisticsTraceDetails;let i = index" [nzColor]="i===logisticsTraceDetails.length -1?'green':'gray'"> |
|
|
|
|
<p [ngClass]="{'fontColorBlue': i===logisticsTraceDetails.length -1 }">{{item['desc']}}</p> |
|
|
|
|
<p [ngClass]="{'fontColorBlue': i===logisticsTraceDetails.length -1 }">{{item.time | date : 'yyyy-MM-dd HH:mm:ss'}}</p> |
|
|
|
|
</nz-timeline-item> |
|
|
|
|
</nz-timeline> |
|
|
|
|
<nz-result *ngIf="logisticsTraceDetails === null" nzStatus="404" nzTitle="404" nzSubTitle="很抱歉暂无物流信息."> |
|
|
|
|
|
|
|
|
|
</nz-tab> |
|
|
|
|
</nz-tabset> |
|
|
|
|
</nz-result> |
|
|
|
|
</nz-spin> |
|
|
|
|
</nz-modal> |
|
|
|
|
|
|
|
|
|