|
|
@ -8,6 +8,7 @@ import {OrderMobileRechargeService} from '../../../services/order/order-mobile-r |
|
|
|
import {FormBuilder, FormGroup} from '@angular/forms'; |
|
|
|
import {FormBuilder, FormGroup} from '@angular/forms'; |
|
|
|
import {NzMessageService} from 'ng-zorro-antd'; |
|
|
|
import {NzMessageService} from 'ng-zorro-antd'; |
|
|
|
import {animate, state, style, transition, trigger} from '@angular/animations'; |
|
|
|
import {animate, state, style, transition, trigger} from '@angular/animations'; |
|
|
|
|
|
|
|
import {NzNotificationService} from "_ng-zorro-antd@9.3.0@ng-zorro-antd"; |
|
|
|
|
|
|
|
|
|
|
|
@Component({ |
|
|
|
@Component({ |
|
|
|
selector: 'app-mobile-recharge-order-list', |
|
|
|
selector: 'app-mobile-recharge-order-list', |
|
|
@ -80,6 +81,7 @@ export class MobileRechargeOrderListComponent implements OnInit { |
|
|
|
private orderMobileRechargeService: OrderMobileRechargeService, |
|
|
|
private orderMobileRechargeService: OrderMobileRechargeService, |
|
|
|
private companyService: CompanyService, |
|
|
|
private companyService: CompanyService, |
|
|
|
private commonsService: CommonsService, |
|
|
|
private commonsService: CommonsService, |
|
|
|
|
|
|
|
private notification: NzNotificationService, |
|
|
|
) { } |
|
|
|
) { } |
|
|
|
|
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
ngOnInit(): void { |
|
|
@ -92,6 +94,7 @@ export class MobileRechargeOrderListComponent implements OnInit { |
|
|
|
createTimeArray: [null], |
|
|
|
createTimeArray: [null], |
|
|
|
refundTimeArray: [null], |
|
|
|
refundTimeArray: [null], |
|
|
|
title: [null], |
|
|
|
title: [null], |
|
|
|
|
|
|
|
exceptionStatus: [null], |
|
|
|
companyId: [null], |
|
|
|
companyId: [null], |
|
|
|
payType: [null], |
|
|
|
payType: [null], |
|
|
|
memCardNo: [null], |
|
|
|
memCardNo: [null], |
|
|
@ -136,7 +139,6 @@ export class MobileRechargeOrderListComponent implements OnInit { |
|
|
|
this.orderMobileRechargeService.getOrderList(whereObject, data => { |
|
|
|
this.orderMobileRechargeService.getOrderList(whereObject, data => { |
|
|
|
this.loading = false; |
|
|
|
this.loading = false; |
|
|
|
if (data['return_code'] === '000000') { |
|
|
|
if (data['return_code'] === '000000') { |
|
|
|
console.log(data); |
|
|
|
|
|
|
|
this.requestData = data['return_data'].list; |
|
|
|
this.requestData = data['return_data'].list; |
|
|
|
this.total = data['return_data'].total; |
|
|
|
this.total = data['return_data'].total; |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -175,5 +177,42 @@ export class MobileRechargeOrderListComponent implements OnInit { |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public refundOrder(orderNo: string): void { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.commonsService.showConfirm('请确定当前订单无充值中记录!!!', item => { |
|
|
|
|
|
|
|
if (item) { |
|
|
|
|
|
|
|
this.loadingObject.status = true; |
|
|
|
|
|
|
|
this.loadingObject.title = '订单退款中...'; |
|
|
|
|
|
|
|
this.orderMobileRechargeService.refundOrder(orderNo , data => { |
|
|
|
|
|
|
|
if (data['return_code'] === '000000') { |
|
|
|
|
|
|
|
this.getRequest(false, this.searchForm.value); |
|
|
|
|
|
|
|
this.notification.success('成功' , '退款成功'); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.message.error(data['return_msg']); |
|
|
|
|
|
|
|
this.notification.error( '失败' , data['return_msg']); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.loadingObject.status = false; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public orderNormal(orderNo: string): void { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.loadingObject.status = true; |
|
|
|
|
|
|
|
this.loadingObject.title = '修改中...'; |
|
|
|
|
|
|
|
this.orderMobileRechargeService.orderNormal(orderNo , data => { |
|
|
|
|
|
|
|
if (data['return_code'] === '000000') { |
|
|
|
|
|
|
|
this.getRequest(false, this.searchForm.value); |
|
|
|
|
|
|
|
this.notification.success('成功' , '修改成功'); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.message.error(data['return_msg']); |
|
|
|
|
|
|
|
this.notification.error( '失败' , data['return_msg']); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.loadingObject.status = false; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|