|
|
|
@ -101,22 +101,25 @@ |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<nz-modal [(nzVisible)]="isVisible" nzTitle="分配优惠券" (nzOnCancel)="handleCancel()" (nzOnOk)="handleOk()"> |
|
|
|
|
<form nz-form [formGroup]="validateForm" class="login-form"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzSpan]="6" nzRequired>优惠券</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="16" nzErrorTip="请选择优惠券!"> |
|
|
|
|
<nz-select nzShowSearch nzAllowClear formControlName="discountId" nzPlaceHolder="请选择优惠券"> |
|
|
|
|
<nz-option *ngFor="let item of discountList" nzLabel="{{item.discountName}}" nzValue="{{item.id}}"></nz-option> |
|
|
|
|
</nz-select> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzSpan]="6" nzRequired>分配优惠券数量</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="16" nzErrorTip="分配优惠券数量!"> |
|
|
|
|
<input [type]="'number'" nz-input formControlName="stockCount"/> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</form> |
|
|
|
|
<nz-spin [nzSpinning]="isSpinning"> |
|
|
|
|
<form nz-form [formGroup]="validateForm" class="login-form"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzSpan]="6" nzRequired>优惠券</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="16" nzErrorTip="请选择优惠券!"> |
|
|
|
|
<nz-select nzShowSearch nzAllowClear formControlName="discountId" nzPlaceHolder="请选择优惠券"> |
|
|
|
|
<nz-option *ngFor="let item of discountList" nzLabel="{{item.discountName}}" nzValue="{{item.id}}"></nz-option> |
|
|
|
|
</nz-select> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzSpan]="6" nzRequired>分配优惠券数量</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="16" nzErrorTip="分配优惠券数量!"> |
|
|
|
|
<input [type]="'number'" nz-input formControlName="stockCount"/> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</form> |
|
|
|
|
</nz-spin> |
|
|
|
|
|
|
|
|
|
</nz-modal> |
|
|
|
|
|
|
|
|
|
<nz-modal [(nzVisible)]="isVisibleDiscount" nzWidth="1000" nzTitle="分配优惠券列表" (nzOnCancel)="handleCancelDiscount()" (nzOnOk)="handleCancelDiscount()"> |
|
|
|
@ -142,7 +145,6 @@ |
|
|
|
|
<th nzWidth="70px">有效天数</th> |
|
|
|
|
<th nzWidth="100px">截止日期</th> |
|
|
|
|
<th nzWidth="100px">库存数量</th> |
|
|
|
|
<th nzRight nzWidth="100px">二维码</th> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tbody> |
|
|
|
@ -164,9 +166,6 @@ |
|
|
|
|
<td>{{data['highDiscount'].effectiveDay}}</td> |
|
|
|
|
<td>{{data['highDiscount'].salesEndTime | date: 'yyyy-MM-dd HH:mm'}}</td> |
|
|
|
|
<td>{{data.stockCount}}</td> |
|
|
|
|
<td nzRight> |
|
|
|
|
<img class="head_img" src="{{WEB_SERVE_URL + 'agentQrCode/' + data.qrCode}}" onerror="this.src='../../../../assets/admin/navigation/icon.png'" alt=""> |
|
|
|
|
</td> |
|
|
|
|
</tbody> |
|
|
|
|
</nz-table> |
|
|
|
|
</nz-modal> |
|
|
|
|