From 47372847bb90812df0a1bbbef23ccaa4dfefa8d2 Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Mon, 19 Aug 2024 16:33:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E8=99=9A=E6=8B=9F=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../comp-order/comp-order.component.html | 40 ++++++++++--------- .../trade/comp-order/comp-order.component.ts | 10 ++++- src/environments/environment.ts | 8 ++-- 3 files changed, 33 insertions(+), 25 deletions(-) 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 e81083f..469d8ba 100644 --- a/src/app/pages/trade/comp-order/comp-order.component.html +++ b/src/app/pages/trade/comp-order/comp-order.component.html @@ -112,7 +112,8 @@ 商品key 商品名称 商品规格 - 商品价格 + 商品原价 + 商品售价 购买数量 交易信息 卡密订单 @@ -135,23 +136,24 @@ - {{data.orderNo}} - {{data.childOrderNo}} - {{data.userPhone}} - {{data.goodsKey}} - {{data.goodsName}} - {{data.goodsSpecsName}} - {{data.goodsPrice}} - {{data.goodsCount}} - {{data.totalPrice}} - {{data.couponDiscountPrice}} - {{data.integralDiscountPrice}} - {{data.payRealPrice}} - {{data.payChannel | dictionary: 'ORDER_PAY_CHANNEL'}} - {{data.payType | dictionary: 'ORDER_PAY_TYPE'}} - {{data.tradeStatus | dictionary: 'ORDER_CHILD_STATUS'}} - {{data.createTime | date: 'yyyy-MM-dd HH:mm:ss'}} - {{data.payTime | date: 'yyyy-MM-dd HH:mm:ss'}} + {{data.orderNo}} + {{data.childOrderNo}} + {{data.userPhone}} + {{data.goodsKey}} + {{data.goodsName}} + {{data.goodsSpecsName}} + {{data.goodsOriginalPrice}} + {{data.goodsSalePrice}} + {{data.goodsCount}} + {{data.totalPrice}} + {{data.couponDiscountPrice}} + {{data.integralDiscountPrice}} + {{data.payRealPrice}} + {{data.payChannel | dictionary: 'ORDER_PAY_CHANNEL'}} + {{data.payType | dictionary: 'ORDER_PAY_TYPE'}} + {{data.tradeStatus | dictionary: 'ORDER_CHILD_STATUS'}} + {{data.createTime | date: 'yyyy-MM-dd HH:mm:ss'}} + {{data.payTime | date: 'yyyy-MM-dd HH:mm:ss'}} {{data.channelOrderNo}} {{data.couNo}} {{data.expireTime | date: 'yyyy-MM-dd HH:mm'}} @@ -225,7 +227,7 @@ {{ data.goodsKey }} {{ data.goodsName }} {{ data.goodsSpecsName }} - {{ data.goodsPrice }} + {{ data.goodsOriginalPrice }} {{ data.channelOrderNo }} {{ data.couNo }} {{ data.couStatus | dictionary: 'ORDER_COUPON_NO_STATUS'}} 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 81fc7e9..0ee4e3f 100644 --- a/src/app/pages/trade/comp-order/comp-order.component.ts +++ b/src/app/pages/trade/comp-order/comp-order.component.ts @@ -33,6 +33,7 @@ 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"; +import {CommunicationService} from "../../../services/common/communication.service"; @Component({ selector: 'app-comp-order', @@ -119,6 +120,7 @@ export class CompOrderComponent { }; constructor(private fb: NonNullableFormBuilder, private orderService : OrderCouponService, + private communicationService: CommunicationService, private message: NzMessageService, private modal: NzModalService) { // 初始化搜索框 @@ -159,7 +161,7 @@ export class CompOrderComponent { if (data['return_code'] == '000000') { this.tableData = data['return_data']; for (let data of this.tableData.list) { - data['rowSpan'] = this.tableData.list.filter((s: { orderNo: any; }) => s.orderNo == data.orderNo).length; + data['rowSpan'] = this.tableData.list.filter((s: { childOrderNo: any; }) => s.childOrderNo == data.childOrderNo).length; } } }); @@ -218,7 +220,11 @@ export class CompOrderComponent { export() { this.orderService.export(this.searchForm.value, (data: any) => { if (data['return_code'] == '000000') { - window.location.href = this.imageUrl + 'temporary/' + data['return_data']; + if (data['return_code'] == '000000') { + this.communicationService.sendMessage(data['return_data']); + } else { + this.message.error(data['return_msg']); + } } }); } diff --git a/src/environments/environment.ts b/src/environments/environment.ts index b8075c0..129ef25 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -4,10 +4,10 @@ export const environment = { production: false, - baseUrl: 'https://phg.dctpay.com/brest/', // 测试环境服务器地址(请求数据地址) - orderUrl: 'https://phg.dctpay.com/order/', // 测试环境服务器地址(请求数据地址) - userUrl: 'https://phg.dctpay.com/user/', // 测试环境服务器地址(请求数据地址) - imageUrl: 'https://phg.obs.cn-southwest-2.myhuaweicloud.com/', + baseUrl: 'https://phgcs.dctpay.com/brest/', // 测试环境服务器地址(请求数据地址) + orderUrl: 'https://phgcs.dctpay.com/order/', // 测试环境服务器地址(请求数据地址) + userUrl: 'https://phgcs.dctpay.com/user/', // 测试环境服务器地址(请求数据地址) + imageUrl: 'https://phg-test.obs.cn-southwest-2.myhuaweicloud.com/', // // baseUrl: 'http://localhost:9702/brest/', // 测试环境服务器地址(请求数据地址) // orderUrl: 'http://localhost:9703/order/', // 测试环境服务器地址(请求数据地址)