diff --git a/src/app/pages/trade/order-after-sales/order-after-sales.component.html b/src/app/pages/trade/order-after-sales/order-after-sales.component.html index 2cde752..10328f3 100644 --- a/src/app/pages/trade/order-after-sales/order-after-sales.component.html +++ b/src/app/pages/trade/order-after-sales/order-after-sales.component.html @@ -84,6 +84,7 @@
diff --git a/src/app/pages/trade/order-refund/order-refund.component.ts b/src/app/pages/trade/order-refund/order-refund.component.ts index 3abd2f3..9a4e0ea 100644 --- a/src/app/pages/trade/order-refund/order-refund.component.ts +++ b/src/app/pages/trade/order-refund/order-refund.component.ts @@ -34,6 +34,7 @@ import {NzTabComponent, NzTabSetComponent, NzTabsModule} from "ng-zorro-antd/tab import {NzTimelineModule} from "ng-zorro-antd/timeline"; import {NzImageDirective, NzImageModule} from "ng-zorro-antd/image"; import {NzTypographyComponent} from "ng-zorro-antd/typography"; +import {CommunicationService} from "../../../services/common/communication.service"; @Component({ selector: 'app-order-refund', @@ -118,6 +119,7 @@ export class OrderRefundComponent { }; constructor(private fb: NonNullableFormBuilder, private orderRefundService : OrderRefundService, + private communicationService: CommunicationService, private message: NzMessageService, private modal: NzModalService) { // 初始化搜索框 @@ -210,4 +212,19 @@ export class OrderRefundComponent { this.refundDetailVisible = false; } + /** + * 导出订单 + */ + export() { + this.orderRefundService.export(this.searchForm.value, (data: any) => { + if (data['return_code'] == '000000') { + if (data['return_code'] == '000000') { + this.communicationService.sendMessage(data['return_data']); + } else { + this.message.error(data['return_msg']); + } + } + }); + } + } diff --git a/src/app/services/trade/order-after-sales.service.ts b/src/app/services/trade/order-after-sales.service.ts index 60191aa..ec9355b 100644 --- a/src/app/services/trade/order-after-sales.service.ts +++ b/src/app/services/trade/order-after-sales.service.ts @@ -22,6 +22,19 @@ export class OrderAfterSalesService { }); } + + /** + * 导出 + * @param param + * @param callBack + */ + public export(param: any, callBack:any) { + param.time = new Date().getTime(); + this.http.get(environment.orderUrl + 'afterSales/export?'+ObjectData.objectByString(param)).subscribe(data => { + callBack(data); + }); + } + /** * 查询订单详情 * @param applyNo @@ -61,4 +74,5 @@ export class OrderAfterSalesService { }); } + } diff --git a/src/app/services/trade/order-refund.service.ts b/src/app/services/trade/order-refund.service.ts index dfbff44..82794af 100644 --- a/src/app/services/trade/order-refund.service.ts +++ b/src/app/services/trade/order-refund.service.ts @@ -22,6 +22,18 @@ export class OrderRefundService { }); } + /** + * 查询退款订单列表 + * @param param + * @param callBack + */ + public export(param: any, callBack:any) { + param.time = new Date().getTime(); + this.http.get(environment.orderUrl + 'refund/export?'+ObjectData.objectByString(param)).subscribe(data => { + callBack(data); + }); + } + /** * 查询退款订单 * @param param