|
|
|
@ -2,136 +2,147 @@ |
|
|
|
|
<app-breadcrumb></app-breadcrumb> |
|
|
|
|
<!-- end 面包屑 --> |
|
|
|
|
<!--条件搜索--> |
|
|
|
|
<nz-spin [nzSpinning]="loadingObject.status" [nzTip]="loadingObject.title"> |
|
|
|
|
<div class="inner-content"> |
|
|
|
|
<form nz-form [formGroup]="searchForm" (ngSubmit)="search(searchForm.value)"> |
|
|
|
|
<div nz-row> |
|
|
|
|
<div nz-col nzSpan="8"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzSpan]="8">优惠券</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="14"> |
|
|
|
|
<nz-select nzAllowClear formControlName="discountId"> |
|
|
|
|
<nz-option *ngFor="let item of discountArray" nzLabel="{{item['highDiscount'].discountName}}" nzValue="{{item['highDiscount'].id}}"></nz-option> |
|
|
|
|
</nz-select> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col nzSpan="8"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzSpan]="8">状态</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="14"> |
|
|
|
|
<nz-select nzAllowClear formControlName="status"> |
|
|
|
|
<nz-option nzLabel="待领取" nzValue="待领取"></nz-option> |
|
|
|
|
<nz-option nzLabel="待使用" nzValue="待使用"></nz-option> |
|
|
|
|
<nz-option nzLabel="已使用" nzValue="已使用"></nz-option> |
|
|
|
|
<nz-option nzLabel="已过期" nzValue="已过期"></nz-option> |
|
|
|
|
<nz-option nzLabel="已分配" nzValue="已分配"></nz-option> |
|
|
|
|
</nz-select> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col nzSpan="8"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzSpan]="8">客户电话</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="14"> |
|
|
|
|
<input nz-input formControlName="userPhone" /> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col nzSpan="8"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzSpan]="8">领取时间</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="14"> |
|
|
|
|
<nz-range-picker |
|
|
|
|
formControlName="receiveTime" |
|
|
|
|
[nzShowTime]="{ nzHideDisabledOptions: true}" |
|
|
|
|
nzFormat="yyyy-MM-dd HH:mm:ss" |
|
|
|
|
></nz-range-picker> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col nzSpan="8"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzSpan]="8">使用时间</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="14"> |
|
|
|
|
<nz-range-picker |
|
|
|
|
formControlName="useTime" |
|
|
|
|
[nzShowTime]="{ nzHideDisabledOptions: true}" |
|
|
|
|
nzFormat="yyyy-MM-dd HH:mm:ss" |
|
|
|
|
></nz-range-picker> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="inner-content"> |
|
|
|
|
<form nz-form [formGroup]="searchForm" (ngSubmit)="search(searchForm.value)"> |
|
|
|
|
<div nz-row> |
|
|
|
|
<div nz-col nzSpan="8"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzSpan]="8">优惠券</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="14"> |
|
|
|
|
<nz-select nzAllowClear formControlName="discountId"> |
|
|
|
|
<nz-option *ngFor="let item of discountArray" nzLabel="{{item['highDiscount'].discountName}}" nzValue="{{item['highDiscount'].id}}"></nz-option> |
|
|
|
|
</nz-select> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col nzSpan="8"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzSpan]="8">状态</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="14"> |
|
|
|
|
<nz-select nzAllowClear formControlName="status"> |
|
|
|
|
<nz-option nzLabel="待领取" nzValue="1"></nz-option> |
|
|
|
|
<nz-option nzLabel="待使用" nzValue="2"></nz-option> |
|
|
|
|
<nz-option nzLabel="已使用" nzValue="3"></nz-option> |
|
|
|
|
<nz-option nzLabel="已过期" nzValue="4"></nz-option> |
|
|
|
|
<nz-option nzLabel="已分配" nzValue="5"></nz-option> |
|
|
|
|
</nz-select> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col nzSpan="8"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzSpan]="8">使用门店</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="14"> |
|
|
|
|
<input nz-input formControlName="storeName" /> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col nzSpan="8"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzSpan]="8">领取时间</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="14"> |
|
|
|
|
<nz-range-picker |
|
|
|
|
formControlName="receiveTime" |
|
|
|
|
[nzShowTime]="{ nzHideDisabledOptions: true}" |
|
|
|
|
nzFormat="yyyy-MM-dd HH:mm:ss" |
|
|
|
|
></nz-range-picker> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col nzSpan="8"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzSpan]="8">使用时间</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="14"> |
|
|
|
|
<nz-range-picker |
|
|
|
|
formControlName="useTime" |
|
|
|
|
[nzShowTime]="{ nzHideDisabledOptions: true}" |
|
|
|
|
nzFormat="yyyy-MM-dd HH:mm:ss" |
|
|
|
|
></nz-range-picker> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
<div nz-col nzSpan="8"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzSpan]="8">优惠券编码</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="14"> |
|
|
|
|
<nz-space> |
|
|
|
|
<nz-space-item> |
|
|
|
|
<nz-input-number formControlName="idS" [nzPlaceHolder]="'开始'" [nzMin]="1" [nzStep]="1"></nz-input-number> |
|
|
|
|
</nz-space-item> |
|
|
|
|
<nz-space-item> |
|
|
|
|
<nz-input-number formControlName="idE" [nzPlaceHolder]="'结束'" [nzMin]="1" [nzStep]="1"></nz-input-number> |
|
|
|
|
</nz-space-item> |
|
|
|
|
</nz-space> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div nz-col nzSpan="8"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzSpan]="8">编码范围</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="14"> |
|
|
|
|
<nz-space> |
|
|
|
|
<nz-space-item> |
|
|
|
|
<nz-input-number formControlName="idS" [nzPlaceHolder]="'开始'" [nzMin]="1" [nzStep]="1"></nz-input-number> |
|
|
|
|
</nz-space-item> |
|
|
|
|
<nz-space-item> |
|
|
|
|
<nz-input-number formControlName="idE" [nzPlaceHolder]="'结束'" [nzMin]="1" [nzStep]="1"></nz-input-number> |
|
|
|
|
</nz-space-item> |
|
|
|
|
</nz-space> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
<div nz-row> |
|
|
|
|
<div nz-col nzSpan="24" class="search-button"> |
|
|
|
|
<button nz-button nzType="primary"><i nz-icon nzType="search" nzTheme="outline"></i>搜索</button> |
|
|
|
|
<button nz-button nzType="default" (click)="resetForm()"><i nz-icon nzType="reload" nzTheme="outline"></i>重置</button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</form> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div nz-row> |
|
|
|
|
<div nz-col nzSpan="24" class="search-button"> |
|
|
|
|
<button nz-button nzType="primary"><i nz-icon nzType="search" nzTheme="outline"></i>搜索</button> |
|
|
|
|
<button nz-button nzType="default" (click)="resetForm()"><i nz-icon nzType="reload" nzTheme="outline"></i>重置</button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</form> |
|
|
|
|
</div> |
|
|
|
|
<div class="inner-content"> |
|
|
|
|
<span>共计 {{dataObject.total?dataObject.total:0}} 条数据</span> |
|
|
|
|
|
|
|
|
|
<div class="inner-content"> |
|
|
|
|
<span>共计 {{dataObject.total?dataObject.total:0}} 条数据</span> |
|
|
|
|
<div class="operating-button"> |
|
|
|
|
<button nz-button nzType="primary" class="right-btn" (click)="exportDiscountUseCondition()"><i nz-icon nzType="plus" nzTheme="outline"></i>导出数据</button> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="operating-button"> |
|
|
|
|
<!-- <button nz-button nzType="primary" class="right-btn"><i nz-icon nzType="plus" nzTheme="outline"></i></button>--> |
|
|
|
|
<!--数组表格 --> |
|
|
|
|
<nz-table #basicTable |
|
|
|
|
[nzData]="dataObject.list" |
|
|
|
|
[nzTotal]="dataObject.total" |
|
|
|
|
[nzFrontPagination]="false" |
|
|
|
|
[nzLoading]="tableLoading" |
|
|
|
|
[nzPageIndex]="whereObject.pageNum" |
|
|
|
|
(nzPageIndexChange)="requestData($event)" |
|
|
|
|
[nzScroll]="{ x: '1150px'}"> |
|
|
|
|
<thead> |
|
|
|
|
<tr> |
|
|
|
|
<th nzWidth="120px">优惠券编码</th> |
|
|
|
|
<th nzWidth="200px">优惠券名称</th> |
|
|
|
|
<th nzWidth="120px">优惠券类型</th> |
|
|
|
|
<th nzWidth="120px">优惠券金额</th> |
|
|
|
|
<th nzWidth="120px">优惠券</th> |
|
|
|
|
<th nzWidth="160px">客户电话</th> |
|
|
|
|
<th nzWidth="160px">领取时间</th> |
|
|
|
|
<th nzWidth="160px">过期时间</th> |
|
|
|
|
<th nzWidth="160px">使用时间</th> |
|
|
|
|
<th nzWidth="200px">交易订单号</th> |
|
|
|
|
<th nzWidth="100px">交易金额</th> |
|
|
|
|
<th nzWidth="100px">交易优惠</th> |
|
|
|
|
<th nzWidth="100px">交易实付</th> |
|
|
|
|
<!--<th nzWidth="10 0px" nzRight="0px">操作</th>--> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tbody> |
|
|
|
|
<tr *ngFor="let data of basicTable.data;let i = index"> |
|
|
|
|
<td>{{data.discountAgentCodeId}}</td> |
|
|
|
|
<td>{{data.discountName}}</td> |
|
|
|
|
<td>{{data.discountType}}</td> |
|
|
|
|
<td>{{data.discountPrice}}</td> |
|
|
|
|
<td>{{data.discountUseStatus}}</td> |
|
|
|
|
<td>{{data.userPhone}}</td> |
|
|
|
|
<td>{{data.receiveTime | date:'yyyy-MM-dd HH:mm:ss'}}</td> |
|
|
|
|
<td>{{data.useEndTime | date:'yyyy-MM-dd HH:mm:ss'}}</td> |
|
|
|
|
<td>{{data.useTime | date:'yyyy-MM-dd HH:mm:ss'}}</td> |
|
|
|
|
<td>{{data.orderNo}}</td> |
|
|
|
|
<td>{{data.orderTotalPrice}}</td> |
|
|
|
|
<td>{{data.orderDiscountPrice}}</td> |
|
|
|
|
<td>{{data.orderPayPrice}}</td> |
|
|
|
|
<!--<td nzRight="0px" class="table-td-operation"> |
|
|
|
|
<a [routerLink]="['/admin/testManager/details']" [queryParams]="{examId: data.id}">详情</a> |
|
|
|
|
</td>--> |
|
|
|
|
</tr> |
|
|
|
|
</tbody> |
|
|
|
|
</nz-table> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<!--数组表格 --> |
|
|
|
|
<nz-table #basicTable |
|
|
|
|
[nzData]="dataObject.list" |
|
|
|
|
[nzTotal]="dataObject.total" |
|
|
|
|
[nzFrontPagination]="false" |
|
|
|
|
[nzLoading]="tableLoading" |
|
|
|
|
[nzPageIndex]="whereObject.pageNum" |
|
|
|
|
(nzPageIndexChange)="requestData($event)" |
|
|
|
|
[nzScroll]="{ x: '1150px'}"> |
|
|
|
|
<thead> |
|
|
|
|
<tr> |
|
|
|
|
<th nzWidth="100px">优惠券编码</th> |
|
|
|
|
<th nzWidth="200px">优惠券名称</th> |
|
|
|
|
<th nzWidth="120px">优惠券状态</th> |
|
|
|
|
<th nzWidth="160px">领取时间</th> |
|
|
|
|
<th nzWidth="120px">领取人</th> |
|
|
|
|
<th nzWidth="120px">领取手机号</th> |
|
|
|
|
<th nzWidth="160px">使用时间</th> |
|
|
|
|
<th nzWidth="160px">使用门店</th> |
|
|
|
|
<!--<th nzWidth="10 0px" nzRight="0px">操作</th>--> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tbody> |
|
|
|
|
<tr *ngFor="let data of basicTable.data;let i = index"> |
|
|
|
|
<td>{{data.id}}</td> |
|
|
|
|
<td>{{data.discountName}}</td> |
|
|
|
|
<td>{{data.status | discountCodeStatus}}</td> |
|
|
|
|
<td>{{data.receiveTime | date : 'yyyy-MM-dd HH:mm:ss'}}</td> |
|
|
|
|
<td>{{data.userName}}</td> |
|
|
|
|
<td>{{data.userPhone}}</td> |
|
|
|
|
<td>{{data.useTime | date : 'yyyy-MM-dd HH:mm:ss'}}</td> |
|
|
|
|
<td>{{data.storeName}}</td> |
|
|
|
|
<!--<td nzRight="0px" class="table-td-operation"> |
|
|
|
|
<a [routerLink]="['/admin/testManager/details']" [queryParams]="{examId: data.id}">详情</a> |
|
|
|
|
</td>--> |
|
|
|
|
</tr> |
|
|
|
|
</tbody> |
|
|
|
|
</nz-table> |
|
|
|
|
</div> |
|
|
|
|
</nz-spin> |
|
|
|
|