|
|
|
@ -7,7 +7,7 @@ |
|
|
|
|
<form nz-form [formGroup]="searchForm" (ngSubmit)="getRequest(true , searchForm.value)"> |
|
|
|
|
<div nz-row> |
|
|
|
|
|
|
|
|
|
<div nz-col nzSpan="6"> |
|
|
|
|
<div nz-col nzSpan="8"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzSpan]="6">卡券名称</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="16"> |
|
|
|
@ -15,7 +15,21 @@ |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col nzSpan="6"> |
|
|
|
|
<div nz-col nzSpan="8"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzSpan]="6">展示区域</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="16"> |
|
|
|
|
<nz-select nzPlaceHolder="请选择展示区域" [formControlName]="'displayArea'"> |
|
|
|
|
<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-select> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div nz-col nzSpan="8"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzSpan]="6">商品分类</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="16"> |
|
|
|
@ -25,17 +39,17 @@ |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col nzSpan="6"> |
|
|
|
|
<div nz-col nzSpan="8"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label >品牌</nz-form-label> |
|
|
|
|
<nz-form-control> |
|
|
|
|
<nz-form-label [nzSpan]="6">品牌</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="16"> |
|
|
|
|
<nz-select nzPlaceHolder="请选择品牌" [formControlName]="'brandId'"> |
|
|
|
|
<nz-option *ngFor="let item of brandData" nzValue="{{item.id}}" nzLabel="{{item.title}}"></nz-option> |
|
|
|
|
</nz-select> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col nzSpan="6"> |
|
|
|
|
<div nz-col nzSpan="8"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzSpan]="6">商户</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="16"> |
|
|
|
@ -57,7 +71,7 @@ |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col nzSpan="6"> |
|
|
|
|
<div nz-col nzSpan="8"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzSpan]="6">卡券类型</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="16"> |
|
|
|
@ -68,7 +82,7 @@ |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col nzSpan="6"> |
|
|
|
|
<div nz-col nzSpan="8"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzSpan]="6">卡券状态</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="16"> |
|
|
|
@ -125,13 +139,13 @@ |
|
|
|
|
<th nzWidth="100px">销售价格</th> |
|
|
|
|
<th nzWidth="100px">折扣价格</th> |
|
|
|
|
<th nzWidth="100px">有效库存</th> |
|
|
|
|
<th nzWidth="100px">展示区域</th> |
|
|
|
|
<th nzWidth="100px">卡券类型</th> |
|
|
|
|
<th nzWidth="100px">是否赠券</th> |
|
|
|
|
<th nzWidth="120px">卡券状态</th> |
|
|
|
|
<th nzWidth="150px">销售截止时间</th> |
|
|
|
|
<th nzWidth="150px">创建时间</th> |
|
|
|
|
<th nzWidth="150px" nzRight="0px">操作</th> |
|
|
|
|
<th nzWidth="100px" nzRight>展示区域</th> |
|
|
|
|
<th nzWidth="120px" nzRight>卡券状态</th> |
|
|
|
|
<th nzWidth="150px" nzRight>操作</th> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tbody> |
|
|
|
@ -142,22 +156,28 @@ |
|
|
|
|
<td>¥{{data.salesPrice}}</td> |
|
|
|
|
<td>¥{{data.discountPrice}}</td> |
|
|
|
|
<td>{{data.stockCount}}</td> |
|
|
|
|
<td>{{data.displayArea | displayArea}}</td> |
|
|
|
|
<td>{{data.couponType === 1 ? '内部卷' : '外部卷'}}</td> |
|
|
|
|
<td>{{data.isPresent === true ? '赠券' : '无赠券'}}</td> |
|
|
|
|
<td>{{data.status | couponStatus}}</td> |
|
|
|
|
<td>{{data.salesEndTime | date: 'yyyy-MM-dd HH:mm'}}</td> |
|
|
|
|
<td>{{data.createTime | date: 'yyyy-MM-dd HH:mm'}}</td> |
|
|
|
|
<td nzRight="0px" class="table-td-operation"> |
|
|
|
|
<a *ngIf="data.status !== 101" (click)="getEdit(data.id)"><i nz-icon nzType="form" nzTheme="outline" nz-tooltip="编辑"></i></a> |
|
|
|
|
<nz-divider nzType="vertical" *ngIf="data.status === 1 || data.status === 3 || data.status === 102"></nz-divider> |
|
|
|
|
<a *ngIf="data.status === 1 || data.status === 3 || data.status === 102" (click)="enableMerchant(data.id)"> <i nz-icon [nzIconfont]="'icon-shangjia'" nz-tooltip="上架"></i></a> |
|
|
|
|
<nz-divider *ngIf="data.status === 2" nzType="vertical"></nz-divider> |
|
|
|
|
<a *ngIf="data.status === 2" (click)="disableMerchant(data.id)"> <i nz-icon [nzIconfont]="'icon-xiajia'" nz-tooltip="下架"></i></a> |
|
|
|
|
<nz-divider *ngIf="data.status !== 101" nzType="vertical"></nz-divider> |
|
|
|
|
<a (click)="getList(data.id , data.couponName , data.couponType)"><i nz-icon nzType="unordered-list" nzTheme="outline" nz-tooltip="销售码列表"></i></a> |
|
|
|
|
<!-- <nz-divider *ngIf="data.status !== 101" nzType="vertical"></nz-divider>--> |
|
|
|
|
<!-- <a *ngIf="data.status !== 101" (click)="getDelete(data.id)"><i nz-icon nzType="delete" nzTheme="outline" nz-tooltip="删除"></i></a>--> |
|
|
|
|
<td nzRight>{{data.displayArea | displayArea}}</td> |
|
|
|
|
<td nzRight> |
|
|
|
|
<span *ngIf="data.status === 2" style="color: limegreen">{{data.status | couponStatus}}</span> |
|
|
|
|
<span *ngIf="data.status === 3" style="color: red">{{data.status | couponStatus}}</span> |
|
|
|
|
<span *ngIf="data.status === 1 || data.status === 102">{{data.status | couponStatus}}</span> |
|
|
|
|
|
|
|
|
|
</td> |
|
|
|
|
<td nzRight class="table-td-operation"> |
|
|
|
|
<a *ngIf="data.status === 2" (click)="disableMerchant(data.id)">下架</a> |
|
|
|
|
<a *ngIf="data.status === 1 || data.status === 3 || data.status === 102" (click)="enableMerchant(data.id)">上架</a> |
|
|
|
|
<nz-divider nzType="vertical" ></nz-divider> |
|
|
|
|
<a nz-dropdown [nzDropdownMenu]="menu">更多</a> |
|
|
|
|
<nz-dropdown-menu #menu="nzDropdownMenu"> |
|
|
|
|
<ul nz-menu nzSelectable> |
|
|
|
|
<li class="li-a" *ngIf="data.status === 1 || data.status === 3 || data.status === 102" nz-menu-item> <a (click)="getEdit(data.id)">编辑</a></li> |
|
|
|
|
<li class="li-a" nz-menu-item><a (click)="getList(data.id , data.couponName , data.couponType)">销售码列表</a></li> |
|
|
|
|
</ul> |
|
|
|
|
</nz-dropdown-menu> |
|
|
|
|
</td> |
|
|
|
|
</tbody> |
|
|
|
|
</nz-table> |
|
|
|
|