- {{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/', // 测试环境服务器地址(请求数据地址)