|
|
@ -23,7 +23,7 @@ |
|
|
|
<nz-form-item> |
|
|
|
<nz-form-item> |
|
|
|
<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="showType" nzPlaceHolder="请选择充值平台"> |
|
|
|
<nz-select nzShowSearch nzAllowClear formControlName="rechargePlatform" 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-select> |
|
|
|
</nz-select> |
|
|
@ -41,6 +41,18 @@ |
|
|
|
</nz-form-control> |
|
|
|
</nz-form-control> |
|
|
|
</nz-form-item> |
|
|
|
</nz-form-item> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- <div nz-col nzSpan="8">--> |
|
|
|
|
|
|
|
<!-- <nz-form-item>--> |
|
|
|
|
|
|
|
<!-- <nz-form-label [nzSpan]="6">展示平台</nz-form-label>--> |
|
|
|
|
|
|
|
<!-- <nz-form-control [nzSpan]="16">--> |
|
|
|
|
|
|
|
<!-- <nz-select nzShowSearch nzAllowClear formControlName="rechargeType" nzPlaceHolder="请选择充值类型">--> |
|
|
|
|
|
|
|
<!-- <nz-option nzLabel="小程序" [nzValue]="1"></nz-option>--> |
|
|
|
|
|
|
|
<!-- <nz-option nzLabel="H5" [nzValue]="2"></nz-option>--> |
|
|
|
|
|
|
|
<!-- <nz-option nzLabel="银联" [nzValue]="3"></nz-option>--> |
|
|
|
|
|
|
|
<!-- </nz-select>--> |
|
|
|
|
|
|
|
<!-- </nz-form-control>--> |
|
|
|
|
|
|
|
<!-- </nz-form-item>--> |
|
|
|
|
|
|
|
<!-- </div>--> |
|
|
|
<div nz-col nzSpan="8"> |
|
|
|
<div nz-col nzSpan="8"> |
|
|
|
<nz-form-item> |
|
|
|
<nz-form-item> |
|
|
|
<nz-form-label [nzSpan]="6">充值方式</nz-form-label> |
|
|
|
<nz-form-label [nzSpan]="6">充值方式</nz-form-label> |
|
|
@ -96,20 +108,25 @@ |
|
|
|
[nzTotal]="total" |
|
|
|
[nzTotal]="total" |
|
|
|
[(nzPageIndex)]="pageNum" |
|
|
|
[(nzPageIndex)]="pageNum" |
|
|
|
[(nzPageSize)]="pageSize" |
|
|
|
[(nzPageSize)]="pageSize" |
|
|
|
|
|
|
|
[nzScroll]="{ x: '1200px' }" |
|
|
|
(nzPageIndexChange)="getRequest(false , searchForm.value)" |
|
|
|
(nzPageIndexChange)="getRequest(false , searchForm.value)" |
|
|
|
(nzPageSizeChange)="getRequest(false , searchForm.value)"> |
|
|
|
(nzPageSizeChange)="getRequest(false , searchForm.value)"> |
|
|
|
<thead nzSingleSort> |
|
|
|
<thead nzSingleSort> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<th>编号</th> |
|
|
|
<th nzWidth="60px">编号</th> |
|
|
|
<th>充值金额</th> |
|
|
|
<th nzWidth="90px">充值金额</th> |
|
|
|
<th>折扣比例</th> |
|
|
|
<th nzWidth="90px">折扣比例</th> |
|
|
|
<th>支付金额</th> |
|
|
|
<th nzWidth="90px">支付金额</th> |
|
|
|
<th>展示区域</th> |
|
|
|
<th nzWidth="120px">积分抵扣比例</th> |
|
|
|
<th>商品ID</th> |
|
|
|
<th nzWidth="120px">运营商</th> |
|
|
|
<th>充值金额</th> |
|
|
|
<th nzWidth="90px">充值类型</th> |
|
|
|
<th>支付金额</th> |
|
|
|
<th nzWidth="100px">充值平台</th> |
|
|
|
<th>创建时间</th> |
|
|
|
<th nzWidth="100px">支付方式</th> |
|
|
|
<th>操作</th> |
|
|
|
<th nzWidth="100px">展示平台</th> |
|
|
|
|
|
|
|
<th nzWidth="80px">商品ID</th> |
|
|
|
|
|
|
|
<th nzWidth="120px">创建时间</th> |
|
|
|
|
|
|
|
<th nzRight nzWidth="80px">状态</th> |
|
|
|
|
|
|
|
<th nzRight nzWidth="160px">操作</th> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
<tbody> |
|
|
@ -118,16 +135,19 @@ |
|
|
|
<td>{{data.rechargePrice}}</td> |
|
|
|
<td>{{data.rechargePrice}}</td> |
|
|
|
<td>{{data.discount + "%"}}</td> |
|
|
|
<td>{{data.discount + "%"}}</td> |
|
|
|
<td>{{data.payPrice}}</td> |
|
|
|
<td>{{data.payPrice}}</td> |
|
|
|
|
|
|
|
<td>{{data.integralDiscount + "%"}}</td> |
|
|
|
<td>{{data.operatorType | rechargePrice}}</td> |
|
|
|
<td>{{data.operatorType | rechargePrice}}</td> |
|
|
|
<td>{{data.rechargeType== 1? '快充':'慢充'}}</td> |
|
|
|
<td>{{data.rechargeType== 1? '快充':'慢充'}}</td> |
|
|
|
<td>{{data.showType | showType}}</td> |
|
|
|
<td>{{data.rechargePlatform | rechargePlatform}}</td> |
|
|
|
<td>{{data.price}}</td> |
|
|
|
<td>{{data.productPayTypeString.substring(0 , data.productPayTypeString.length - 1)}}</td> |
|
|
|
<td>{{data.realPrice}}</td> |
|
|
|
<td>{{data.productPlatformString.substring(0 , data.productPlatformString.length - 1)}}</td> |
|
|
|
|
|
|
|
<td>{{data.goodsId == null ? '暂未配置' : data.goodsId}}</td> |
|
|
|
<td>{{data.createTime | date: 'yyyy-MM-dd HH:mm'}}</td> |
|
|
|
<td>{{data.createTime | date: 'yyyy-MM-dd HH:mm'}}</td> |
|
|
|
<td class="table-td-operation"> |
|
|
|
<td nzRight="">{{data.status | priceStatus}}</td> |
|
|
|
<a (click)="getEdit(data.id)">编辑</a> |
|
|
|
<td nzRight class="table-td-operation"> |
|
|
|
<a style="margin-left: 20px;" (click)='getForbiddenUser(data.id , data.status)'>{{data.status === 1 ? '售空': '禁用'}}</a> |
|
|
|
<a *ngIf="data.status != 1" (click)="getEdit(data.id)">编辑</a> |
|
|
|
<a style="margin-left: 20px;" (click)="getForbiddenUserD(data.id)">删除</a> |
|
|
|
<a style="margin-left: 20px;" (click)='getForbiddenUser(data.id , data.status)'>{{data.status === 1 ? '售空': '上线'}}</a> |
|
|
|
|
|
|
|
<a *ngIf="data.status != 1" style="margin-left: 20px;" (click)="getForbiddenUserD(data.id)">删除</a> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
</tbody> |
|
|
|
</tbody> |
|
|
|
</nz-table> |
|
|
|
</nz-table> |
|
|
@ -135,7 +155,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<nz-modal [(nzVisible)]="isVisible" nzTitle="金额编辑" (nzOnCancel)="handleCancel()" (nzOnOk)="handleOk()"> |
|
|
|
<nz-modal [(nzVisible)]="isVisible" nzTitle="金额编辑" (nzOnCancel)="handleCancel()" (nzOnOk)="handleOk()"> |
|
|
|
<form nz-form [formGroup]="validateForm" class="login-form"> |
|
|
|
<form nz-form [formGroup]="validateForm" class="login-form"> |
|
|
|
<nz-form-item> |
|
|
|
<nz-form-item *ngIf="!edit"> |
|
|
|
<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 |
|
|
|
<nz-select |
|
|
@ -145,15 +165,28 @@ |
|
|
|
> |
|
|
|
> |
|
|
|
<nz-option *ngFor="let item of priceArray" nzValue="{{item.codeValue}}" nzLabel="{{item.codeName}}"></nz-option> |
|
|
|
<nz-option *ngFor="let item of priceArray" nzValue="{{item.codeValue}}" nzLabel="{{item.codeName}}"></nz-option> |
|
|
|
</nz-select> |
|
|
|
</nz-select> |
|
|
|
|
|
|
|
<input *ngIf="edit" readonly nz-input formControlName="rechargePrice" /> |
|
|
|
</nz-form-control> |
|
|
|
</nz-form-control> |
|
|
|
</nz-form-item> |
|
|
|
</nz-form-item> |
|
|
|
<nz-form-item *ngIf="!edit"> |
|
|
|
<nz-form-item *ngIf="edit"> |
|
|
|
|
|
|
|
<nz-form-label [nzSpan]="6" nzRequired>充值金额</nz-form-label> |
|
|
|
|
|
|
|
<nz-form-control [nzSpan]="16" nzErrorTip="请输入充值金额!"> |
|
|
|
|
|
|
|
<input readonly nz-input formControlName="rechargePrice" /> |
|
|
|
|
|
|
|
</nz-form-control> |
|
|
|
|
|
|
|
</nz-form-item> |
|
|
|
|
|
|
|
<nz-form-item *ngIf="edit"> |
|
|
|
|
|
|
|
<nz-form-label [nzSpan]="6" nzRequired>支付金额</nz-form-label> |
|
|
|
|
|
|
|
<nz-form-control [nzSpan]="16" nzErrorTip="请输入支付金额!"> |
|
|
|
|
|
|
|
<input readonly nz-input formControlName="payPrice" [(ngModel)]="payPrice" /> |
|
|
|
|
|
|
|
</nz-form-control> |
|
|
|
|
|
|
|
</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="请选择运营商!"> |
|
|
|
<nz-select nzShowSearch nzAllowClear formControlName="operatorType" nzPlaceHolder="请选择运营商!"> |
|
|
|
<nz-select nzShowSearch nzAllowClear formControlName="operatorType" 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-select> |
|
|
|
</nz-select> |
|
|
|
</nz-form-control> |
|
|
|
</nz-form-control> |
|
|
|
</nz-form-item> |
|
|
|
</nz-form-item> |
|
|
@ -173,7 +206,7 @@ |
|
|
|
<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 nzMode="multiple" formControlName="rechargePlatform" nzPlaceHolder="请选择充值平台"> |
|
|
|
<nz-select nzShowSearch nzAllowClear nzMode="multiple" formControlName="rechargePlatform" nzPlaceHolder="请选择充值平台"> |
|
|
|
<nz-option *ngFor="let item of platformArray" nzValue="{{item.codeValue}}" nzLabel="{{item.codeName}}"></nz-option> |
|
|
|
<nz-option *ngFor="let item of platformArray" [nzValue]="item.codeValue" [nzLabel]="item.codeName"></nz-option> |
|
|
|
</nz-select> |
|
|
|
</nz-select> |
|
|
|
</nz-form-control> |
|
|
|
</nz-form-control> |
|
|
|
</nz-form-item> |
|
|
|
</nz-form-item> |
|
|
@ -218,6 +251,7 @@ |
|
|
|
[nzStep]="1" |
|
|
|
[nzStep]="1" |
|
|
|
[nzPrecision]="2" |
|
|
|
[nzPrecision]="2" |
|
|
|
nzPrecisionMode="cut" |
|
|
|
nzPrecisionMode="cut" |
|
|
|
|
|
|
|
(ngModelChange)="changePayType($event)" |
|
|
|
nzPlaceHolder="请输入折扣比例!" |
|
|
|
nzPlaceHolder="请输入折扣比例!" |
|
|
|
[nzFormatter]="formatterPercent" |
|
|
|
[nzFormatter]="formatterPercent" |
|
|
|
[nzParser]="parserPercent" |
|
|
|
[nzParser]="parserPercent" |
|
|
@ -230,7 +264,7 @@ |
|
|
|
<nz-input-number |
|
|
|
<nz-input-number |
|
|
|
style="width: 200px" |
|
|
|
style="width: 200px" |
|
|
|
formControlName="integralDiscount" |
|
|
|
formControlName="integralDiscount" |
|
|
|
[nzMin]="1" |
|
|
|
[nzMin]="0" |
|
|
|
[nzMax]="100" |
|
|
|
[nzMax]="100" |
|
|
|
[nzStep]="1" |
|
|
|
[nzStep]="1" |
|
|
|
[nzPrecision]="2" |
|
|
|
[nzPrecision]="2" |
|
|
@ -241,6 +275,32 @@ |
|
|
|
></nz-input-number> |
|
|
|
></nz-input-number> |
|
|
|
</nz-form-control> |
|
|
|
</nz-form-control> |
|
|
|
</nz-form-item> |
|
|
|
</nz-form-item> |
|
|
|
|
|
|
|
<nz-form-item *ngIf="edit"> |
|
|
|
|
|
|
|
<nz-form-label [nzSpan]="6" >商品编号</nz-form-label> |
|
|
|
|
|
|
|
<nz-form-control [nzSpan]="16" nzErrorTip="请输入商品编号!"> |
|
|
|
|
|
|
|
<nz-input-number |
|
|
|
|
|
|
|
style="width: 200px" |
|
|
|
|
|
|
|
formControlName="goodsId" |
|
|
|
|
|
|
|
[nzMin]="1" |
|
|
|
|
|
|
|
[nzMax]="10000" |
|
|
|
|
|
|
|
[nzStep]="1" |
|
|
|
|
|
|
|
nzPlaceHolder="请输入商品编号!" |
|
|
|
|
|
|
|
></nz-input-number> |
|
|
|
|
|
|
|
</nz-form-control> |
|
|
|
|
|
|
|
</nz-form-item> |
|
|
|
|
|
|
|
<nz-form-item *ngIf="edit"> |
|
|
|
|
|
|
|
<nz-form-label [nzSpan]="6" >排序</nz-form-label> |
|
|
|
|
|
|
|
<nz-form-control [nzSpan]="16" nzErrorTip="请输入排序!"> |
|
|
|
|
|
|
|
<nz-input-number |
|
|
|
|
|
|
|
style="width: 200px" |
|
|
|
|
|
|
|
formControlName="sort" |
|
|
|
|
|
|
|
[nzMin]="1" |
|
|
|
|
|
|
|
[nzMax]="100" |
|
|
|
|
|
|
|
[nzStep]="1" |
|
|
|
|
|
|
|
nzPlaceHolder="请输入排序!" |
|
|
|
|
|
|
|
></nz-input-number> |
|
|
|
|
|
|
|
</nz-form-control> |
|
|
|
|
|
|
|
</nz-form-item> |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
</nz-modal> |
|
|
|
</nz-modal> |
|
|
|
|
|
|
|
|
|
|
|