增加退款记录导出、售后导出

master
胡锐 2 months ago
parent 1bca473545
commit 2f4b216e88
  1. 1
      src/app/pages/trade/order-after-sales/order-after-sales.component.html
  2. 17
      src/app/pages/trade/order-after-sales/order-after-sales.component.ts
  3. 1
      src/app/pages/trade/order-refund/order-refund.component.html
  4. 17
      src/app/pages/trade/order-refund/order-refund.component.ts
  5. 14
      src/app/services/trade/order-after-sales.service.ts
  6. 12
      src/app/services/trade/order-refund.service.ts

@ -84,6 +84,7 @@
<div nz-col [nzSpan]="24" class="search-area">
<button nz-button [nzType]="'primary'" (click)="searchFormSubmit()">查询</button>
<button nz-button (click)="searchFormReset()">重置</button>
<button nz-button [nzType]="'primary'" (click)="export()">导出明细</button>
<a class="collapse" (click)="isCollapse = !isCollapse">
更多查询条件
<i nz-icon [nzType]="!isCollapse ? 'down' : 'up'"></i>

@ -36,6 +36,7 @@ import {NzTypographyComponent} from "ng-zorro-antd/typography";
import {environment} from "../../../../environments/environment";
import {NzSpinComponent} from "ng-zorro-antd/spin";
import {NzAlertComponent} from "ng-zorro-antd/alert";
import {CommunicationService} from "../../../services/common/communication.service";
@Component({
selector: 'app-order-after-sales',
@ -132,6 +133,7 @@ export class OrderAfterSalesComponent {
isCollapse = false;
constructor(private fb: NonNullableFormBuilder,
private orderAfterSalesService : OrderAfterSalesService,
private communicationService: CommunicationService,
private message: NzMessageService,
private modal: NzModalService) {
// 初始化搜索框
@ -313,4 +315,19 @@ export class OrderAfterSalesComponent {
});
}
/**
*
*/
export() {
this.orderAfterSalesService.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']);
}
}
});
}
}

@ -56,6 +56,7 @@
<div nz-col [nzSpan]="24" class="search-area">
<button nz-button [nzType]="'primary'" (click)="searchFormSubmit()">查询</button>
<button nz-button (click)="searchFormReset()">重置</button>
<button nz-button [nzType]="'primary'" (click)="export()">导出明细</button>
</div>
</div>
</form>

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

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

@ -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

Loading…
Cancel
Save