|
@@ -6,7 +6,7 @@
|
|
|
:value="'title'"
|
|
:value="'title'"
|
|
|
@selectMenu="selectMenu">
|
|
@selectMenu="selectMenu">
|
|
|
<div class="conditionIcon icon iconfont icon-shouqi"
|
|
<div class="conditionIcon icon iconfont icon-shouqi"
|
|
|
- @click="openOrCloseBottom"></div>
|
|
|
|
|
|
|
+ @click="handleShowBottom"></div>
|
|
|
</firstMenu>
|
|
</firstMenu>
|
|
|
<div v-show="isShowBottom">
|
|
<div v-show="isShowBottom">
|
|
|
<component :is="componentId"
|
|
<component :is="componentId"
|
|
@@ -25,15 +25,7 @@ import quoteTable from '@/common/components/quoteTable/index.vue';
|
|
|
import { OperationTabMenu } from '@/services/go/commonService/interface';
|
|
import { OperationTabMenu } from '@/services/go/commonService/interface';
|
|
|
import { handleOrderData } from '@/common/setup/order/orderData';
|
|
import { handleOrderData } from '@/common/setup/order/orderData';
|
|
|
import { enumOrderComponents } from '@/common/constants/enumOrderComponents';
|
|
import { enumOrderComponents } from '@/common/constants/enumOrderComponents';
|
|
|
-
|
|
|
|
|
-// 控制底部打开与关闭
|
|
|
|
|
-function handleBottom() {
|
|
|
|
|
- const isShowBottom = ref<boolean>(true);
|
|
|
|
|
- function openOrCloseBottom() {
|
|
|
|
|
- isShowBottom.value = !isShowBottom.value;
|
|
|
|
|
- }
|
|
|
|
|
- return { isShowBottom, openOrCloseBottom };
|
|
|
|
|
-}
|
|
|
|
|
|
|
+import { handleShowBottom, getShowBottomValue } from '@/common/config/constrolBottom';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'layout-top',
|
|
name: 'layout-top',
|
|
@@ -48,8 +40,6 @@ export default defineComponent({
|
|
|
[enumOrderComponents.pre_sale_warehouse_receipt]: defineAsyncComponent(() => import('@/views/order/pre_sale_warehouse_receipt/index.vue')),
|
|
[enumOrderComponents.pre_sale_warehouse_receipt]: defineAsyncComponent(() => import('@/views/order/pre_sale_warehouse_receipt/index.vue')),
|
|
|
},
|
|
},
|
|
|
setup() {
|
|
setup() {
|
|
|
- // 控制底部展开逻辑
|
|
|
|
|
- const { isShowBottom, openOrCloseBottom } = handleBottom();
|
|
|
|
|
const { orderList, componentId } = handleOrderData();
|
|
const { orderList, componentId } = handleOrderData();
|
|
|
// 切换组件
|
|
// 切换组件
|
|
|
function selectMenu(value: OperationTabMenu) {
|
|
function selectMenu(value: OperationTabMenu) {
|
|
@@ -59,8 +49,9 @@ export default defineComponent({
|
|
|
selectMenu,
|
|
selectMenu,
|
|
|
componentId,
|
|
componentId,
|
|
|
orderList,
|
|
orderList,
|
|
|
- isShowBottom,
|
|
|
|
|
- openOrCloseBottom,
|
|
|
|
|
|
|
+ isShowBottom: getShowBottomValue(),
|
|
|
|
|
+ getShowBottomValue,
|
|
|
|
|
+ handleShowBottom,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|