From ee283b36dd2f28a6c817bc9256ac4870d5343792 Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Sat, 17 Aug 2024 17:25:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/app.config.ts | 6 ++++-- .../trade/comp-order/comp-order.component.html | 3 ++- .../trade/comp-order/comp-order.component.ts | 13 +++++++++++++ .../order-after-sales.component.html | 18 +++++++++--------- .../order-refund/order-refund.component.html | 6 +++--- src/app/services/trade/order-coupon.service.ts | 12 ++++++++++++ 6 files changed, 43 insertions(+), 15 deletions(-) diff --git a/src/app/app.config.ts b/src/app/app.config.ts index ada3192..a8c9593 100644 --- a/src/app/app.config.ts +++ b/src/app/app.config.ts @@ -1,5 +1,5 @@ import { ApplicationConfig, importProvidersFrom } from '@angular/core'; -import { provideRouter } from '@angular/router'; +import {provideRouter, RouteReuseStrategy} from '@angular/router'; import { routes } from './app.routes'; import { provideClientHydration } from '@angular/platform-browser'; @@ -11,6 +11,7 @@ import {HTTP_INTERCEPTORS, HttpClientModule} from '@angular/common/http'; import {BrowserAnimationsModule, provideAnimations} from '@angular/platform-browser/animations'; import {InitGuardService} from "./utils/initGuard.service"; import {InterceptorService} from "./utils/Interceptor.service"; +import {AiRouteReuseStrategy} from "./utils/routeReuseStrategy"; registerLocaleData(zh); @@ -24,6 +25,7 @@ export const appConfig: ApplicationConfig = { provideAnimations(), BrowserAnimationsModule, InitGuardService, // 校验登录 - { provide: HTTP_INTERCEPTORS, useClass: InterceptorService, multi: true} + { provide: HTTP_INTERCEPTORS, useClass: InterceptorService, multi: true}, + { provide: RouteReuseStrategy, useClass: AiRouteReuseStrategy } ] }; diff --git a/src/app/pages/trade/comp-order/comp-order.component.html b/src/app/pages/trade/comp-order/comp-order.component.html index 8aca036..e81083f 100644 --- a/src/app/pages/trade/comp-order/comp-order.component.html +++ b/src/app/pages/trade/comp-order/comp-order.component.html @@ -85,6 +85,7 @@
+ 更多查询条件 @@ -164,7 +165,7 @@ diff --git a/src/app/pages/trade/comp-order/comp-order.component.ts b/src/app/pages/trade/comp-order/comp-order.component.ts index b761ce7..81fc7e9 100644 --- a/src/app/pages/trade/comp-order/comp-order.component.ts +++ b/src/app/pages/trade/comp-order/comp-order.component.ts @@ -32,6 +32,7 @@ import {DateSelectType, DateUtils} from "../../../utils/dateUtils.service"; import {NzTreeComponent} from "ng-zorro-antd/tree"; import {NzDescriptionsModule} from "ng-zorro-antd/descriptions"; import {NzTabComponent, NzTabSetComponent, NzTabsModule} from "ng-zorro-antd/tabs"; +import {environment} from "../../../../environments/environment"; @Component({ selector: 'app-comp-order', @@ -89,6 +90,7 @@ import {NzTabComponent, NzTabSetComponent, NzTabsModule} from "ng-zorro-antd/tab styleUrl: './comp-order.component.less' }) export class CompOrderComponent { + imageUrl = environment.imageUrl; // 表单页数 tablePageNum = 1; // 表单数据 @@ -209,4 +211,15 @@ export class CompOrderComponent { this.orderDetail = {}; this.orderDetailVisible = false; } + + /** + * 导出订单 + */ + export() { + this.orderService.export(this.searchForm.value, (data: any) => { + if (data['return_code'] == '000000') { + window.location.href = this.imageUrl + 'temporary/' + data['return_data']; + } + }); + } } 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 bb19e48..961bf1f 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 @@ -2,27 +2,27 @@
- 申请单号 + 用户手机号 - +
- 申请类型 + 申请单号 - - - +
- 用户手机号 + 申请类型 - + + +
@@ -76,7 +76,7 @@ 申请单号 申请类型 - 客户电话 + 用户手机号 商品单号 产品类型 产品名称 diff --git a/src/app/pages/trade/order-refund/order-refund.component.html b/src/app/pages/trade/order-refund/order-refund.component.html index c79a954..df74d1e 100644 --- a/src/app/pages/trade/order-refund/order-refund.component.html +++ b/src/app/pages/trade/order-refund/order-refund.component.html @@ -2,7 +2,7 @@
- 用户电话 + 用户手机号 @@ -72,7 +72,7 @@ [nzData]="tableData.list" > - 用户电话 + 用户手机号 退款单号 交易单号 商品单号 @@ -121,7 +121,7 @@ - {{refundDetail.refund.userPhone}} + {{refundDetail.refund.userPhone}} {{refundDetail.refund.refundOrderNo}} {{refundDetail.refund.orderNo}} {{refundDetail.refund.orderChildNo}} diff --git a/src/app/services/trade/order-coupon.service.ts b/src/app/services/trade/order-coupon.service.ts index 4c898cd..93402aa 100644 --- a/src/app/services/trade/order-coupon.service.ts +++ b/src/app/services/trade/order-coupon.service.ts @@ -22,6 +22,18 @@ export class OrderCouponService { }); } + /** + * 导出订单 + * @param param + * @param callBack + */ + public export(param: any, callBack:any) { + param.time = new Date().getTime(); + this.http.get(environment.orderUrl + 'coupon/export?'+ObjectData.objectByString(param)).subscribe(data => { + callBack(data); + }); + } + /** * 查询订单详情 * @param param