diff --git a/src/app/pages/system/menu/menu.component.ts b/src/app/pages/system/menu/menu.component.ts index c21b44e..0018b57 100644 --- a/src/app/pages/system/menu/menu.component.ts +++ b/src/app/pages/system/menu/menu.component.ts @@ -147,7 +147,7 @@ export class MenuComponent { this.editMenuTitle = '添加菜单'; this.editMenuForm.reset(); let menu = { - menuPSid: "", + menuPSid: '', menuType: '1' }; @@ -184,7 +184,11 @@ export class MenuComponent { submitEditMenuForm() { if (this.editMenuForm.valid) { this.treeView = false; - this.editMenuForm.value['menuPSid']!=null?this.editMenuForm.value['menuPSid']:null; + console.log(this.editMenuForm.controls['menuPSid'].value); + if (this.editMenuForm.controls['menuPSid'].value == 'undefined') { + this.editMenuForm.controls['menuPSid'].setValue(null); + } + console.log(this.editMenuForm.value); this.menuService.editMenu(this.editMenuForm.value, (data: any) => { if (data['return_code'] == '000000') { // 刷新数据 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 ff4d955..f1df950 100644 --- a/src/app/pages/trade/comp-order/comp-order.component.html +++ b/src/app/pages/trade/comp-order/comp-order.component.html @@ -179,25 +179,28 @@ - Zhou Maomao - 18100000000 - - - - - - - Empty - Empty - Empty - Empty - Empty + {{orderDetail.order.userPhone}} + {{orderDetail.order.orderNo}} + {{orderDetail.order.childOrderNo}} + {{orderDetail.order.totalPrice}} + {{orderDetail.order.totalDeductionPrice}} + {{orderDetail.order.couponDiscountPrice}} + {{orderDetail.order.integralDiscountPrice}} + {{orderDetail.order.payRealPrice}} + {{orderDetail.order.payChannel | dictionary: 'ORDER_PAY_CHANNEL'}} + {{orderDetail.order.payType | dictionary: 'ORDER_PAY_TYPE'}} + {{orderDetail.order.paySerialNo}} + {{orderDetail.order.createTime | date: 'yyyy-MM-dd HH:mm:ss'}} + {{orderDetail.order.payTime | date: 'yyyy-MM-dd HH:mm:ss'}} + {{orderDetail.order.finishTime | date: 'yyyy-MM-dd HH:mm:ss'}} + {{orderDetail.order.cancelTime | date: 'yyyy-MM-dd HH:mm:ss'}} + {{orderDetail.order.refundTime | date: 'yyyy-MM-dd HH:mm:ss'}} 状态 过期时间 派发时间 - 过期时间 完成时间 @@ -227,7 +229,6 @@ {{ data.couNo }} {{ data.couStatus | dictionary: 'ORDER_COUPON_NO_STATUS'}} {{ data.expireTime | date: 'yyyy-MM-dd HH:mm'}} - {{ data.createTime | date: 'yyyy-MM-dd HH:mm:ss'}} {{ data.deliverTime | date: 'yyyy-MM-dd HH:mm:ss' }} {{ data.finishTime | date: 'yyyy-MM-dd HH:mm:ss' }} 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 a912478..769735e 100644 --- a/src/app/pages/trade/comp-order/comp-order.component.ts +++ b/src/app/pages/trade/comp-order/comp-order.component.ts @@ -24,7 +24,7 @@ import {NzOptionComponent, NzSelectComponent} from "ng-zorro-antd/select"; import {SysAccountService} from "../../../services/account/sys-account.service"; import {RoleService} from "../../../services/role/role.service"; import {NzMessageService} from "ng-zorro-antd/message"; -import {OrderService} from "../../../services/trade/order.service"; +import {OrderCouponService} from "../../../services/trade/order-coupon.service"; import {NzDatePickerComponent, NzDatePickerModule, NzRangePickerComponent} from "ng-zorro-antd/date-picker"; import {NzRadioButtonDirective, NzRadioComponent, NzRadioGroupComponent} from "ng-zorro-antd/radio"; import {NzTooltipDirective} from "ng-zorro-antd/tooltip"; @@ -111,9 +111,12 @@ export class CompOrderComponent { // 订单详情模态框 orderDetailVisible = false; // 订单详情数据 - orderDetail: any = {}; + orderDetail: any = { + order: {}, + goods: [], + }; constructor(private fb: NonNullableFormBuilder, - private orderService : OrderService, + private orderService : OrderCouponService, private message: NzMessageService, private modal: NzModalService) { // 初始化搜索框 @@ -186,9 +189,15 @@ export class CompOrderComponent { /** * 展示详情 - * @param orderNo + * @param childOrderNo */ showDetail(childOrderNo: string) { + this.orderService.queryDetail(childOrderNo,(data: any) => { + if (data['return_code'] == '000000') { + this.orderDetail = data['return_data']; + console.log(this.orderDetail); + } + }); this.orderDetailVisible = true; } diff --git a/src/app/services/trade/order.service.ts b/src/app/services/trade/order-coupon.service.ts similarity index 77% rename from src/app/services/trade/order.service.ts rename to src/app/services/trade/order-coupon.service.ts index 4a44771..7b8dadf 100644 --- a/src/app/services/trade/order.service.ts +++ b/src/app/services/trade/order-coupon.service.ts @@ -6,7 +6,7 @@ import {ObjectData} from "../../utils/objectData.service"; @Injectable({ providedIn: 'root' }) -export class OrderService { +export class OrderCouponService { constructor(private http: HttpClient) { } @@ -26,8 +26,8 @@ export class OrderService { * @param param * @param callBack */ - public queryOrder(orderNo: string, callBack:any) { - this.http.get(environment.orderUrl + 'queryOrder?orderNo='+orderNo).subscribe(data => { + public queryDetail(orderChildNo: string, callBack:any) { + this.http.get(environment.orderUrl + 'coupon/queryDetail?orderChildNo='+orderChildNo).subscribe(data => { callBack(data); }); }