- {{ item.name }}
-
+ {{ card.name }}
+
-
{{ item.subName }}
+
{{ card.subName }}
-
+
- {{ item.minQuantity }}
+ {{ card.minQuantity }}
diff --git a/src/pages/Order/Card/OrderCatalog.vue b/src/pages/Order/Card/OrderCatalog.vue
index 453037f15..b7af615bb 100644
--- a/src/pages/Order/Card/OrderCatalog.vue
+++ b/src/pages/Order/Card/OrderCatalog.vue
@@ -75,19 +75,6 @@ watch(
},
{ immediate: true }
);
-const onItemSaved = (updatedItem) => {
- requestAnimationFrame(() => {
- scrollToItem(updatedItem.items[0].itemFk);
- });
-};
-
-const scrollToItem = async (id) => {
- const element = itemRefs.value[id]?.$el;
- if (element) {
- element.scrollIntoView({ behavior: 'smooth', block: 'center' });
- }
-};
-provide('onItemSaved', onItemSaved);
diff --git a/src/pages/Order/Card/OrderCatalogFilter.vue b/src/pages/Order/Card/OrderCatalogFilter.vue
index 1dd569fb5..39627595d 100644
--- a/src/pages/Order/Card/OrderCatalogFilter.vue
+++ b/src/pages/Order/Card/OrderCatalogFilter.vue
@@ -65,7 +65,6 @@ const selectCategory = async (params, category, search) => {
params.typeFk = null;
params.categoryFk = category.id;
await loadTypes(category?.id);
- await search();
};
const loadTypes = async (id) => {
diff --git a/src/pages/Order/Card/OrderCatalogItemDialog.vue b/src/pages/Order/Card/OrderCatalogItemDialog.vue
index b1cd8ed6b..39b0b0120 100644
--- a/src/pages/Order/Card/OrderCatalogItemDialog.vue
+++ b/src/pages/Order/Card/OrderCatalogItemDialog.vue
@@ -1,12 +1,12 @@
(total = response)"
+ @on-fetch="
+ (response) => {
+ total = response;
+ }
+ "
/>
-
+