From 42e1593dd997b7623881ffa53d70a614bce69310 Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Fri, 10 Mar 2023 11:34:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../order-coupon-list.component.html | 4 ++++ .../order-coupon-list.component.ts | 23 ++++++++++++++++++- src/styles.scss | 2 +- 3 files changed, 27 insertions(+), 2 deletions(-) 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 {