From 3f76b5496a2c30c278bd1b7c06e1f16b472bd090 Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 9 Aug 2024 07:46:32 +0200 Subject: [PATCH] fix: refs #7717 fix order sections --- src/composables/useArrayData.js | 2 +- src/pages/Order/Card/OrderCatalog.vue | 25 +++++++++++++++---- src/pages/Order/Card/OrderCatalogFilter.vue | 3 ++- .../Order/Card/OrderCatalogItemDialog.vue | 23 ++++++++++------- src/pages/Order/Card/OrderDescriptor.vue | 19 +++++++++----- src/pages/Order/Card/OrderForm.vue | 21 +++++++++++++--- src/pages/Order/Card/OrderLines.vue | 19 +++++++++++++- src/pages/Order/Card/OrderVolume.vue | 8 +++--- 8 files changed, 90 insertions(+), 30 deletions(-) diff --git a/src/composables/useArrayData.js b/src/composables/useArrayData.js index 50d620a34..651bcefb0 100644 --- a/src/composables/useArrayData.js +++ b/src/composables/useArrayData.js @@ -28,7 +28,7 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) { delete params.filter; store.userParams = { ...params, ...store.userParams }; store.userFilter = { ...filter, ...store.userFilter }; - if (filter.order) store.order = filter.order; + if (filter?.order) store.order = filter.order; } }); diff --git a/src/pages/Order/Card/OrderCatalog.vue b/src/pages/Order/Card/OrderCatalog.vue index dc7115422..68bf9511f 100644 --- a/src/pages/Order/Card/OrderCatalog.vue +++ b/src/pages/Order/Card/OrderCatalog.vue @@ -1,7 +1,8 @@