|
|
|
@ -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']); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|