|
|
@ -11,60 +11,19 @@ |
|
|
|
<nz-form-label [nzSpan]="6">产品类型</nz-form-label> |
|
|
|
<nz-form-label [nzSpan]="6">产品类型</nz-form-label> |
|
|
|
<nz-form-control [nzSpan]="16"> |
|
|
|
<nz-form-control [nzSpan]="16"> |
|
|
|
<nz-select nzShowSearch nzAllowClear formControlName="type" nzPlaceHolder="请选择产品类型"> |
|
|
|
<nz-select nzShowSearch nzAllowClear formControlName="type" nzPlaceHolder="请选择产品类型"> |
|
|
|
<nz-option nzLabel="卡券" [nzValue]="1"></nz-option> |
|
|
|
<nz-option nzLabel="星巴克" [nzValue]="1"></nz-option> |
|
|
|
<nz-option nzLabel="在线加油" [nzValue]="2"></nz-option> |
|
|
|
<nz-option nzLabel="肯德基" [nzValue]="2"></nz-option> |
|
|
|
<nz-option nzLabel="话费" [nzValue]="3"></nz-option> |
|
|
|
<nz-option nzLabel="第三方会员充值" [nzValue]="3"></nz-option> |
|
|
|
<nz-option nzLabel="第三方" [nzValue]="4"></nz-option> |
|
|
|
<nz-option nzLabel="积分充值" [nzValue]="4"></nz-option> |
|
|
|
|
|
|
|
<nz-option nzLabel="购买卡券" [nzValue]="5"></nz-option> |
|
|
|
|
|
|
|
<nz-option nzLabel="加油服务" [nzValue]="6"></nz-option> |
|
|
|
|
|
|
|
<nz-option nzLabel="优惠券包" [nzValue]="7"></nz-option> |
|
|
|
|
|
|
|
<nz-option nzLabel="汇联通充值" [nzValue]="8"></nz-option> |
|
|
|
|
|
|
|
<nz-option nzLabel="话费充值" [nzValue]="9"></nz-option> |
|
|
|
</nz-select> |
|
|
|
</nz-select> |
|
|
|
</nz-form-control> |
|
|
|
</nz-form-control> |
|
|
|
</nz-form-item> |
|
|
|
</nz-form-item> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div nz-col nzSpan="8" *ngIf="searchForm.value.type == 1"> |
|
|
|
|
|
|
|
<nz-form-item> |
|
|
|
|
|
|
|
<nz-form-label [nzSpan]="6">产品</nz-form-label> |
|
|
|
|
|
|
|
<nz-form-control [nzSpan]="16"> |
|
|
|
|
|
|
|
<nz-select nzShowSearch nzAllowClear formControlName="productId" nzPlaceHolder="请选择产品"> |
|
|
|
|
|
|
|
<nz-option nzValue="1" nzLabel="卡券产品"></nz-option> |
|
|
|
|
|
|
|
</nz-select> |
|
|
|
|
|
|
|
</nz-form-control> |
|
|
|
|
|
|
|
</nz-form-item> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div nz-col nzSpan="8" *ngIf="searchForm.value.type == 2"> |
|
|
|
|
|
|
|
<nz-form-item> |
|
|
|
|
|
|
|
<nz-form-label [nzSpan]="6">产品</nz-form-label> |
|
|
|
|
|
|
|
<nz-form-control [nzSpan]="16"> |
|
|
|
|
|
|
|
<nz-select nzShowSearch nzAllowClear formControlName="productId" nzPlaceHolder="请选择产品"> |
|
|
|
|
|
|
|
<nz-option nzValue="1" nzLabel="在线加油"></nz-option> |
|
|
|
|
|
|
|
</nz-select> |
|
|
|
|
|
|
|
</nz-form-control> |
|
|
|
|
|
|
|
</nz-form-item> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div nz-col nzSpan="8" *ngIf="searchForm.value.type == 3"> |
|
|
|
|
|
|
|
<nz-form-item> |
|
|
|
|
|
|
|
<nz-form-label [nzSpan]="6">产品</nz-form-label> |
|
|
|
|
|
|
|
<nz-form-control [nzSpan]="16"> |
|
|
|
|
|
|
|
<nz-select nzShowSearch nzAllowClear formControlName="productId" nzPlaceHolder="请选择产品"> |
|
|
|
|
|
|
|
<nz-option nzValue="1" nzLabel="电信"></nz-option> |
|
|
|
|
|
|
|
<nz-option nzValue="2" nzLabel="移动"></nz-option> |
|
|
|
|
|
|
|
<nz-option nzValue="3" nzLabel="联通"></nz-option> |
|
|
|
|
|
|
|
</nz-select> |
|
|
|
|
|
|
|
</nz-form-control> |
|
|
|
|
|
|
|
</nz-form-item> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div nz-col nzSpan="8" *ngIf="searchForm.value.type == 4"> |
|
|
|
|
|
|
|
<nz-form-item> |
|
|
|
|
|
|
|
<nz-form-label [nzSpan]="6">产品</nz-form-label> |
|
|
|
|
|
|
|
<nz-form-control [nzSpan]="16"> |
|
|
|
|
|
|
|
<nz-select nzShowSearch nzAllowClear formControlName="productId" nzPlaceHolder="请选择产品"> |
|
|
|
|
|
|
|
<nz-option nzValue="1" nzLabel="星巴克"></nz-option> |
|
|
|
|
|
|
|
<nz-option nzValue="2" nzLabel="肯德基"></nz-option> |
|
|
|
|
|
|
|
<nz-option nzValue="3" nzLabel="会员充值"></nz-option> |
|
|
|
|
|
|
|
</nz-select> |
|
|
|
|
|
|
|
</nz-form-control> |
|
|
|
|
|
|
|
</nz-form-item> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -88,6 +47,7 @@ |
|
|
|
<nz-table |
|
|
|
<nz-table |
|
|
|
class="table" |
|
|
|
class="table" |
|
|
|
#ajaxTable |
|
|
|
#ajaxTable |
|
|
|
|
|
|
|
nzBordered |
|
|
|
nzShowSizeChanger |
|
|
|
nzShowSizeChanger |
|
|
|
[nzFrontPagination]="false" |
|
|
|
[nzFrontPagination]="false" |
|
|
|
[nzData]="requestData" |
|
|
|
[nzData]="requestData" |
|
|
@ -103,7 +63,7 @@ |
|
|
|
<th nzWidth="60px">编号</th> |
|
|
|
<th nzWidth="60px">编号</th> |
|
|
|
<th nzWidth="120px">积分返利比例</th> |
|
|
|
<th nzWidth="120px">积分返利比例</th> |
|
|
|
<th nzWidth="100px">类型</th> |
|
|
|
<th nzWidth="100px">类型</th> |
|
|
|
<th nzWidth="100px">产品</th> |
|
|
|
<!-- <th nzWidth="100px">产品</th>--> |
|
|
|
<th nzWidth="200px">返利时间范围</th> |
|
|
|
<th nzWidth="200px">返利时间范围</th> |
|
|
|
<th nzWidth="120px">创建时间</th> |
|
|
|
<th nzWidth="120px">创建时间</th> |
|
|
|
<th nzRight nzWidth="80px">操作</th> |
|
|
|
<th nzRight nzWidth="80px">操作</th> |
|
|
@ -114,7 +74,7 @@ |
|
|
|
<td>{{i + 1}}</td> |
|
|
|
<td>{{i + 1}}</td> |
|
|
|
<td>{{data.percentage + "%"}}</td> |
|
|
|
<td>{{data.percentage + "%"}}</td> |
|
|
|
<td>{{data.type | integralType}}</td> |
|
|
|
<td>{{data.type | integralType}}</td> |
|
|
|
<td>{{data.type | integralProduct : data.productId}}</td> |
|
|
|
<!-- <td>{{data.type | integralProduct : data.productId}}</td>--> |
|
|
|
<td>{{data.startTime | date: 'yyyy-MM-dd HH:mm'}} - {{data.endTime | date: 'yyyy-MM-dd HH:mm'}}</td> |
|
|
|
<td>{{data.startTime | date: 'yyyy-MM-dd HH:mm'}} - {{data.endTime | date: 'yyyy-MM-dd HH:mm'}}</td> |
|
|
|
<td>{{data.createTime | date: 'yyyy-MM-dd HH:mm'}}</td> |
|
|
|
<td>{{data.createTime | date: 'yyyy-MM-dd HH:mm'}}</td> |
|
|
|
<td nzRight class="table-td-operation"> |
|
|
|
<td nzRight class="table-td-operation"> |
|
|
@ -136,46 +96,15 @@ |
|
|
|
<nz-form-label [nzSpan]="6" nzRequired>产品类型</nz-form-label> |
|
|
|
<nz-form-label [nzSpan]="6" nzRequired>产品类型</nz-form-label> |
|
|
|
<nz-form-control [nzSpan]="16" nzErrorTip="请选择产品类型!"> |
|
|
|
<nz-form-control [nzSpan]="16" nzErrorTip="请选择产品类型!"> |
|
|
|
<nz-select nzShowSearch nzAllowClear formControlName="type" nzPlaceHolder="请选择产品类型"> |
|
|
|
<nz-select nzShowSearch nzAllowClear formControlName="type" nzPlaceHolder="请选择产品类型"> |
|
|
|
<nz-option nzLabel="卡券" [nzValue]="1"></nz-option> |
|
|
|
<nz-option nzLabel="星巴克" [nzValue]="1"></nz-option> |
|
|
|
<nz-option nzLabel="在线加油" [nzValue]="2"></nz-option> |
|
|
|
<nz-option nzLabel="肯德基" [nzValue]="2"></nz-option> |
|
|
|
<nz-option nzLabel="话费" [nzValue]="3"></nz-option> |
|
|
|
<nz-option nzLabel="第三方会员充值" [nzValue]="3"></nz-option> |
|
|
|
<nz-option nzLabel="第三方" [nzValue]="4"></nz-option> |
|
|
|
<nz-option nzLabel="积分充值" [nzValue]="4"></nz-option> |
|
|
|
</nz-select> |
|
|
|
<nz-option nzLabel="购买卡券" [nzValue]="5"></nz-option> |
|
|
|
</nz-form-control> |
|
|
|
<nz-option nzLabel="加油服务" [nzValue]="6"></nz-option> |
|
|
|
</nz-form-item> |
|
|
|
<nz-option nzLabel="优惠券包" [nzValue]="7"></nz-option> |
|
|
|
<nz-form-item *ngIf="validateForm.value.type == 1"> |
|
|
|
<nz-option nzLabel="汇联通充值" [nzValue]="8"></nz-option> |
|
|
|
<nz-form-label [nzSpan]="6" nzRequired>卡券产品</nz-form-label> |
|
|
|
<nz-option nzLabel="话费充值" [nzValue]="9"></nz-option> |
|
|
|
<nz-form-control [nzSpan]="16" nzErrorTip="请选择卡券产品!"> |
|
|
|
|
|
|
|
<nz-select nzShowSearch nzAllowClear formControlName="productId" nzPlaceHolder="请选择卡券产品"> |
|
|
|
|
|
|
|
<nz-option [nzValue]="1" nzLabel="卡券产品"></nz-option> |
|
|
|
|
|
|
|
</nz-select> |
|
|
|
|
|
|
|
</nz-form-control> |
|
|
|
|
|
|
|
</nz-form-item> |
|
|
|
|
|
|
|
<nz-form-item *ngIf="validateForm.value.type == 2"> |
|
|
|
|
|
|
|
<nz-form-label [nzSpan]="6" nzRequired>在线加油产品</nz-form-label> |
|
|
|
|
|
|
|
<nz-form-control [nzSpan]="16" nzErrorTip="请选择在线加油产品!"> |
|
|
|
|
|
|
|
<nz-select nzShowSearch nzAllowClear formControlName="productId" nzPlaceHolder="请选择在线加油产品"> |
|
|
|
|
|
|
|
<nz-option [nzValue]="1" nzLabel="在线加油"></nz-option> |
|
|
|
|
|
|
|
</nz-select> |
|
|
|
|
|
|
|
</nz-form-control> |
|
|
|
|
|
|
|
</nz-form-item> |
|
|
|
|
|
|
|
<nz-form-item *ngIf="validateForm.value.type == 3"> |
|
|
|
|
|
|
|
<nz-form-label [nzSpan]="6" nzRequired>话费产品</nz-form-label> |
|
|
|
|
|
|
|
<nz-form-control [nzSpan]="16" nzErrorTip="请选择话费产品!"> |
|
|
|
|
|
|
|
<nz-select nzShowSearch nzAllowClear formControlName="productId" nzPlaceHolder="请选择话费产品"> |
|
|
|
|
|
|
|
<nz-option [nzValue]="1" nzLabel="电信"></nz-option> |
|
|
|
|
|
|
|
<nz-option [nzValue]="2" nzLabel="移动"></nz-option> |
|
|
|
|
|
|
|
<nz-option [nzValue]="3" nzLabel="联通"></nz-option> |
|
|
|
|
|
|
|
</nz-select> |
|
|
|
|
|
|
|
</nz-form-control> |
|
|
|
|
|
|
|
</nz-form-item> |
|
|
|
|
|
|
|
<nz-form-item *ngIf="validateForm.value.type == 4"> |
|
|
|
|
|
|
|
<nz-form-label [nzSpan]="6" nzRequired>第三方产品</nz-form-label> |
|
|
|
|
|
|
|
<nz-form-control [nzSpan]="16" nzErrorTip="请选择第三方产品!"> |
|
|
|
|
|
|
|
<nz-select nzShowSearch nzAllowClear formControlName="productId" nzPlaceHolder="请选择第三方产品"> |
|
|
|
|
|
|
|
<nz-option [nzValue]="1" nzLabel="星巴克"></nz-option> |
|
|
|
|
|
|
|
<nz-option [nzValue]="2" nzLabel="肯德基"></nz-option> |
|
|
|
|
|
|
|
<nz-option [nzValue]="3" nzLabel="会员充值"></nz-option> |
|
|
|
|
|
|
|
</nz-select> |
|
|
|
</nz-select> |
|
|
|
</nz-form-control> |
|
|
|
</nz-form-control> |
|
|
|
</nz-form-item> |
|
|
|
</nz-form-item> |
|
|
@ -185,7 +114,6 @@ |
|
|
|
<nz-range-picker [nzShowTime]="{ nzFormat: 'HH:mm:ss' }" formControlName="time"></nz-range-picker> |
|
|
|
<nz-range-picker [nzShowTime]="{ nzFormat: 'HH:mm:ss' }" formControlName="time"></nz-range-picker> |
|
|
|
</nz-form-control> |
|
|
|
</nz-form-control> |
|
|
|
</nz-form-item> |
|
|
|
</nz-form-item> |
|
|
|
|
|
|
|
|
|
|
|
<nz-form-item> |
|
|
|
<nz-form-item> |
|
|
|
<nz-form-label [nzSpan]="6" nzRequired>积分返利比例</nz-form-label> |
|
|
|
<nz-form-label [nzSpan]="6" nzRequired>积分返利比例</nz-form-label> |
|
|
|
<nz-form-control [nzSpan]="16" nzErrorTip="请输入积分返利比例!"> |
|
|
|
<nz-form-control [nzSpan]="16" nzErrorTip="请输入积分返利比例!"> |
|
|
|