pull/1/head
袁野 4 years ago
parent 352d7839f2
commit 12c5692c75
  1. 3
      src/app/admin/coupon/coupon-edit/coupon-edit.component.html
  2. 4
      src/app/admin/coupon/coupon-edit/coupon-edit.component.ts
  3. 11
      src/app/admin/discount/discount-list/discount-list.component.html
  4. 1
      src/app/admin/discount/discount-list/discount-list.component.ts

@ -37,11 +37,12 @@
<nz-form-control nzErrorTip="请选择卡券来源!">
<nz-select nzPlaceHolder="请选择卡券来源" [formControlName]="'couponSource'">
<nz-option nzValue="1" nzLabel="中石化"></nz-option>
<nz-option nzValue="2" nzLabel="消费券"></nz-option>
</nz-select>
</nz-form-control>
</nz-form-item>
</div>
<div nz-col [nzSpan]="8">
<div nz-col [nzSpan]="8" *ngIf="validateForm.value.couponSource !== '2'">
<nz-form-item>
<nz-form-label [nzFor]="'displayArea'" nzRequired>展示区域</nz-form-label>
<nz-form-control nzErrorTip="请选择展示区域!">

@ -79,8 +79,8 @@ export class CouponEditComponent implements OnInit {
discountPrice: [null, [Validators.required]],
merchantId: [null, [Validators.required]],
isPresent: [false, [Validators.required]],
payType: [false, [Validators.required]],
displayArea: [false, [Validators.required]],
payType: [null, [Validators.required]],
displayArea: [null],
couponSource: [null],
handselCouponId: [null],
status: [null],

@ -157,6 +157,17 @@
</nz-form-control>
</nz-form-item>
</div>
<div nz-col nzSpan="6">
<nz-form-item>
<nz-form-label [nzSpan]="6">卡券来源</nz-form-label>
<nz-form-control [nzSpan]="16">
<nz-select [formControlName]="'couponSource'">
<nz-option nzValue="1" nzLabel="中石化"></nz-option>
<nz-option nzValue="2" nzLabel="消费券"></nz-option>
</nz-select>
</nz-form-control>
</nz-form-item>
</div>
</div>

@ -100,6 +100,7 @@ export class DiscountListComponent implements OnInit {
merchantId: [null],
couponName: [null],
couponType: [null],
couponSource: [null],
status: [2],
});
this.getRequest(true, this.searchForm.value);

Loading…
Cancel
Save