diff --git a/src/app/admin/order-manage/order-coupon/order-coupon-list/order-coupon-list.component.html b/src/app/admin/order-manage/order-coupon/order-coupon-list/order-coupon-list.component.html index ecbfa65..785e80f 100644 --- a/src/app/admin/order-manage/order-coupon/order-coupon-list/order-coupon-list.component.html +++ b/src/app/admin/order-manage/order-coupon/order-coupon-list/order-coupon-list.component.html @@ -165,6 +165,10 @@
共计 {{dataObject.total?dataObject.total:0}} 条数据
+
diff --git a/src/app/admin/order-manage/order-coupon/order-coupon-list/order-coupon-list.component.ts b/src/app/admin/order-manage/order-coupon/order-coupon-list/order-coupon-list.component.ts index 75f08f9..a673c0c 100644 --- a/src/app/admin/order-manage/order-coupon/order-coupon-list/order-coupon-list.component.ts +++ b/src/app/admin/order-manage/order-coupon/order-coupon-list/order-coupon-list.component.ts @@ -48,7 +48,7 @@ export class OrderCouponListComponent implements OnInit { companyArray = []; REFUND_COUPON_BTN = false; - + GZ_SINOPEC_STATUS = false; constructor(private modal: NzModalService, private message: NzMessageService, private store: LocalStorageService, @@ -103,6 +103,14 @@ export class OrderCouponListComponent implements OnInit { this.couponSourceArray = data['return_data']; }); + this.commonsService.mappingSysNameOl("GZ_SINOPEC_STATUS", data => { + if (data['return_data']['codeValue'] === 'true') { + this.GZ_SINOPEC_STATUS = false; + } else { + this.GZ_SINOPEC_STATUS = true; + } + }); + this.REFUND_COUPON_BTN = this.commonsService.isBtnCompetence("BTN_REFUND_COUPON_BTN"); this.requestData(1); @@ -292,4 +300,17 @@ export class OrderCouponListComponent implements OnInit { this.refundModal = false; } + updateGzSinopecStatus() { + this.commonsService.updateDictionary('GZ_SINOPEC_STATUS', this.GZ_SINOPEC_STATUS === false?'true':'false', data => { + if (data['return_code'] === '000000') { + this.GZ_SINOPEC_STATUS === false?'true':'false'; + } else { + this.modal.error({ + nzTitle: '提示', + nzContent: data['return_msg'], + }); + this.GZ_SINOPEC_STATUS === false?'false':'true'; + } + }); + } } diff --git a/src/styles.scss b/src/styles.scss index 90784fb..6ac7198 100644 --- a/src/styles.scss +++ b/src/styles.scss @@ -50,7 +50,7 @@ float: right; } .operating-button button { - margin-bottom: 15px; + margin-bottom: 6px; margin-left: 10px; } .table {