|
|
@ -7,6 +7,7 @@ import {CommonsService} from '../../../../services/commons.service'; |
|
|
|
import {animate, state, style, transition, trigger} from '@angular/animations'; |
|
|
|
import {animate, state, style, transition, trigger} from '@angular/animations'; |
|
|
|
import {NzMessageService} from 'ng-zorro-antd'; |
|
|
|
import {NzMessageService} from 'ng-zorro-antd'; |
|
|
|
import {OrderThirdPartyService} from '../../../../services/order/order-third-party.service'; |
|
|
|
import {OrderThirdPartyService} from '../../../../services/order/order-third-party.service'; |
|
|
|
|
|
|
|
import {environment} from "../../../../../environments/environment"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Component({ |
|
|
|
@Component({ |
|
|
@ -65,6 +66,13 @@ export class KfcOrderListComponent implements OnInit { |
|
|
|
orderDetailObject: any = { |
|
|
|
orderDetailObject: any = { |
|
|
|
tradeOrder: {}, |
|
|
|
tradeOrder: {}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
// 数据加载中参数
|
|
|
|
|
|
|
|
loadingObject = { |
|
|
|
|
|
|
|
title: '加载中...', |
|
|
|
|
|
|
|
status: false, |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
// 请求地址参数
|
|
|
|
|
|
|
|
FILE_URL = environment.imageUrl; |
|
|
|
constructor( |
|
|
|
constructor( |
|
|
|
private form: FormBuilder, |
|
|
|
private form: FormBuilder, |
|
|
|
private store: LocalStorageService, |
|
|
|
private store: LocalStorageService, |
|
|
@ -86,6 +94,7 @@ export class KfcOrderListComponent implements OnInit { |
|
|
|
companyId: [null], |
|
|
|
companyId: [null], |
|
|
|
payType: [null], |
|
|
|
payType: [null], |
|
|
|
memCardNo: [null], |
|
|
|
memCardNo: [null], |
|
|
|
|
|
|
|
productType: [2], |
|
|
|
}); |
|
|
|
}); |
|
|
|
// 角色类型初始化
|
|
|
|
// 角色类型初始化
|
|
|
|
this.roleType = Number(this.store.get(ADMIN_INFO_OBJECT)['secRole'].roleType); |
|
|
|
this.roleType = Number(this.store.get(ADMIN_INFO_OBJECT)['secRole'].roleType); |
|
|
@ -110,7 +119,6 @@ export class KfcOrderListComponent implements OnInit { |
|
|
|
} |
|
|
|
} |
|
|
|
whereObject['pageNum'] = this.pageNum; |
|
|
|
whereObject['pageNum'] = this.pageNum; |
|
|
|
whereObject['pageSize'] = this.pageSize; |
|
|
|
whereObject['pageSize'] = this.pageSize; |
|
|
|
whereObject['productType'] = 2; |
|
|
|
|
|
|
|
this.thirdPartyOrder.getOrderList(whereObject, data => { |
|
|
|
this.thirdPartyOrder.getOrderList(whereObject, data => { |
|
|
|
this.loading = false; |
|
|
|
this.loading = false; |
|
|
|
if (data['return_code'] === '000000') { |
|
|
|
if (data['return_code'] === '000000') { |
|
|
@ -138,6 +146,20 @@ export class KfcOrderListComponent implements OnInit { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 导出数据
|
|
|
|
|
|
|
|
public excelOrder(whereObject) { |
|
|
|
|
|
|
|
this.loadingObject.status = true; |
|
|
|
|
|
|
|
this.loadingObject.title = '数据导出中...'; |
|
|
|
|
|
|
|
this.thirdPartyOrder.exportThirdPartyOrderList(whereObject, data => { |
|
|
|
|
|
|
|
if (data['return_code'] === '000000') { |
|
|
|
|
|
|
|
window.location.href = this.FILE_URL + 'temporary/' + data['return_data']; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.message.error(data['return_msg']); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.loadingObject.status = false; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|