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