|
|
|
@ -145,9 +145,15 @@ |
|
|
|
|
<td>{{data.createTime | date: 'yyyy-MM-dd HH:mm'}}</td> |
|
|
|
|
<td nzRight="">{{data.status | priceStatus}}</td> |
|
|
|
|
<td nzRight class="table-td-operation"> |
|
|
|
|
<a *ngIf="data.status != 1" (click)="getEdit(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> |
|
|
|
|
<a nz-dropdown [nzDropdownMenu]="menu">更多操作<i nz-icon nzType="down"></i></a> |
|
|
|
|
<nz-dropdown-menu #menu="nzDropdownMenu"> |
|
|
|
|
<ul nz-menu nzSelectable> |
|
|
|
|
<li *ngIf="data.status != 1" nz-menu-item><a (click)="getEdit(data.id)">产品编辑</a></li> |
|
|
|
|
<li nz-menu-item><a (click)='getForbiddenUser(data.id , data.status)'>{{data.status === 1 ? '产品售空': '产品上线'}}</a></li> |
|
|
|
|
<li *ngIf="data.status != 1" nz-menu-item><a (click)="getForbiddenUserD(data.id)">产品删除</a></li> |
|
|
|
|
<li *ngIf="data.status != 1" nz-menu-item><a (click)="getProductCode(data.id)">配置编码</a></li> |
|
|
|
|
</ul> |
|
|
|
|
</nz-dropdown-menu> |
|
|
|
|
</td> |
|
|
|
|
</tbody> |
|
|
|
|
</nz-table> |
|
|
|
@ -275,19 +281,19 @@ |
|
|
|
|
></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="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="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="请输入排序!"> |
|
|
|
@ -304,3 +310,10 @@ |
|
|
|
|
</form> |
|
|
|
|
</nz-modal> |
|
|
|
|
|
|
|
|
|
<nz-modal [(nzVisible)]="isVisibleProductCode" nzTitle="产品编码编辑" (nzOnCancel)="isVisibleProductCode = false" (nzOnOk)="handleOkCode()"> |
|
|
|
|
<div style="margin-bottom: 30px;" *ngFor="let item of rechargeCodeList"> |
|
|
|
|
<nz-input-group nzAddOnBefore="{{item.rechargePlatformName}}" > |
|
|
|
|
<input type="text" nz-input [(ngModel)]="item.goodsId" placeholder="请输入产品编码" /> |
|
|
|
|
</nz-input-group> |
|
|
|
|
</div> |
|
|
|
|
</nz-modal> |
|
|
|
|