|
|
@ -48,7 +48,7 @@ export class OrderCouponListComponent implements OnInit { |
|
|
|
companyArray = []; |
|
|
|
companyArray = []; |
|
|
|
|
|
|
|
|
|
|
|
REFUND_COUPON_BTN = false; |
|
|
|
REFUND_COUPON_BTN = false; |
|
|
|
|
|
|
|
GZ_SINOPEC_STATUS = false; |
|
|
|
constructor(private modal: NzModalService, |
|
|
|
constructor(private modal: NzModalService, |
|
|
|
private message: NzMessageService, |
|
|
|
private message: NzMessageService, |
|
|
|
private store: LocalStorageService, |
|
|
|
private store: LocalStorageService, |
|
|
@ -103,6 +103,14 @@ export class OrderCouponListComponent implements OnInit { |
|
|
|
this.couponSourceArray = data['return_data']; |
|
|
|
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.REFUND_COUPON_BTN = this.commonsService.isBtnCompetence("BTN_REFUND_COUPON_BTN"); |
|
|
|
|
|
|
|
|
|
|
|
this.requestData(1); |
|
|
|
this.requestData(1); |
|
|
@ -292,4 +300,17 @@ export class OrderCouponListComponent implements OnInit { |
|
|
|
this.refundModal = false; |
|
|
|
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'; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|