pull/1/head
袁野 4 years ago
parent 352d7839f2
commit 12c5692c75
  1. 5
      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,13 +37,14 @@
<nz-form-control nzErrorTip="请选择卡券来源!"> <nz-form-control nzErrorTip="请选择卡券来源!">
<nz-select nzPlaceHolder="请选择卡券来源" [formControlName]="'couponSource'"> <nz-select nzPlaceHolder="请选择卡券来源" [formControlName]="'couponSource'">
<nz-option nzValue="1" nzLabel="中石化"></nz-option> <nz-option nzValue="1" nzLabel="中石化"></nz-option>
<nz-option nzValue="2" nzLabel="消费券"></nz-option>
</nz-select> </nz-select>
</nz-form-control> </nz-form-control>
</nz-form-item> </nz-form-item>
</div> </div>
<div nz-col [nzSpan]="8"> <div nz-col [nzSpan]="8" *ngIf="validateForm.value.couponSource !== '2'">
<nz-form-item> <nz-form-item>
<nz-form-label [nzFor]="'displayArea'" nzRequired>展示区域</nz-form-label> <nz-form-label [nzFor]="'displayArea'" nzRequired>展示区域</nz-form-label>
<nz-form-control nzErrorTip="请选择展示区域!"> <nz-form-control nzErrorTip="请选择展示区域!">
<nz-select nzPlaceHolder="请选择展示区域" [formControlName]="'displayArea'"> <nz-select nzPlaceHolder="请选择展示区域" [formControlName]="'displayArea'">
<nz-option nzValue="1" nzLabel="赠券专区"></nz-option> <nz-option nzValue="1" nzLabel="赠券专区"></nz-option>

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

@ -157,6 +157,17 @@
</nz-form-control> </nz-form-control>
</nz-form-item> </nz-form-item>
</div> </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> </div>

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

Loading…
Cancel
Save