|
|
|
@ -48,6 +48,7 @@ export class OrderCouponListComponent implements OnInit { |
|
|
|
|
companyArray = []; |
|
|
|
|
|
|
|
|
|
REFUND_COUPON_BTN = false; |
|
|
|
|
REISSUE_COUPON_BTN = false; |
|
|
|
|
GZ_SINOPEC_STATUS = false; |
|
|
|
|
constructor(private modal: NzModalService, |
|
|
|
|
private message: NzMessageService, |
|
|
|
@ -112,6 +113,7 @@ export class OrderCouponListComponent implements OnInit { |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.REFUND_COUPON_BTN = this.commonsService.isBtnCompetence("BTN_REFUND_COUPON_BTN"); |
|
|
|
|
this.REISSUE_COUPON_BTN = this.commonsService.isBtnCompetence("BTN_REISSUE_COUPON_BTN"); |
|
|
|
|
|
|
|
|
|
this.requestData(1); |
|
|
|
|
} |
|
|
|
@ -244,6 +246,43 @@ export class OrderCouponListComponent implements OnInit { |
|
|
|
|
this.refundModal = true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 打开退款模态框 |
|
|
|
|
* @param orderNo |
|
|
|
|
*/ |
|
|
|
|
reissue(orderNo: string) { |
|
|
|
|
this.modal.confirm({ |
|
|
|
|
nzTitle: '提示?', |
|
|
|
|
nzContent: '<b style="color: red;">确定是否补发卡券?</b>', |
|
|
|
|
nzOkText: '是', |
|
|
|
|
nzOkType: 'danger', |
|
|
|
|
nzOnOk: () => this.submitReissue(orderNo), |
|
|
|
|
nzCancelText: '否', |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
submitReissue(orderNo: string) { |
|
|
|
|
this.loadingObject.spinning = true; |
|
|
|
|
this.loadingObject.msg = '处理中...'; |
|
|
|
|
|
|
|
|
|
this.orderCouponService.reissue(orderNo, data => { |
|
|
|
|
this.loadingObject.spinning = false; |
|
|
|
|
|
|
|
|
|
if (data['return_code'] === '000000') { |
|
|
|
|
this.modal.success({ |
|
|
|
|
nzTitle: '提示', |
|
|
|
|
nzContent: '操作成功', |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
this.modal.error({ |
|
|
|
|
nzTitle: '提示', |
|
|
|
|
nzContent: data['return_msg'], |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
this.loadingObject.spinning = false; |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 提交退款确认框 |
|
|
|
|
*/ |
|
|
|
|