update 订单 DialogWithMenu 逻辑

This commit is contained in:
lb 2023-07-31 15:20:09 +08:00
parent 3956a0c159
commit 456c9d8950
2 changed files with 2 additions and 10 deletions

View File

@ -20,7 +20,7 @@
<SubOrderDetail v-if="activeTab === 1 && order !== null" :order="order" /> <SubOrderDetail v-if="activeTab === 1 && order !== null" :order="order" />
<CarDetail v-if="activeTab === 2 && order !== null" :order-id="order.id" :table-layout="carLayoutKey" /> <CarDetail v-if="activeTab === 2 && order !== null" :order-id="order.id" :table-layout="carLayoutKey" />
<TrayDetail v-if="activeTab === 3" /> <TrayDetail v-if="activeTab === 3" />
<OrderDetailWrapper v-if="activeTab === 4" :order="order" :order-detail-configs="configs" /> <OrderDetailWrapper v-if="activeTab === 4" :order="order" />
</transition> </transition>
<!-- footer --> <!-- footer -->
@ -40,10 +40,6 @@ export default {
name: "DialogWithMenu--OrderVersion", name: "DialogWithMenu--OrderVersion",
components: { CarDetail, OrderDetailWrapper, SubOrderDetail, TrayDetail }, components: { CarDetail, OrderDetailWrapper, SubOrderDetail, TrayDetail },
props: { props: {
configs: {
type: Object,
default: () => null,
},
fullscreen: { fullscreen: {
type: Boolean, type: Boolean,
default: true, default: true,

View File

@ -1,7 +1,7 @@
<template> <template>
<div style="height: 100%;"> <div style="height: 100%;">
<el-skeleton v-show="orderNotReady" /> <el-skeleton v-show="orderNotReady" />
<OrderDetail v-show="!orderNotReady" ref="order-detail-tag" :configs="orderDetailConfigs" @detail-loaded="orderNotReady = false" /> <OrderDetail v-show="!orderNotReady" ref="order-detail-tag" @detail-loaded="orderNotReady = false" />
</div> </div>
</template> </template>
@ -12,10 +12,6 @@ export default {
name: "OrderDetailWrapper", name: "OrderDetailWrapper",
components: { OrderDetail }, components: { OrderDetail },
props: { props: {
orderDetailConfigs: {
type: Object,
default: () => null,
},
order: { order: {
type: Object, type: Object,
default: () => null default: () => null