From fb180f0198e8b1753d11bd2494591c661173b260 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 25 Sep 2024 11:31:05 +0200 Subject: [PATCH] fix: apply order --- src/pages/Item/ItemFixedPrice.vue | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/pages/Item/ItemFixedPrice.vue b/src/pages/Item/ItemFixedPrice.vue index bd8c4b78c..fddf154a2 100644 --- a/src/pages/Item/ItemFixedPrice.vue +++ b/src/pages/Item/ItemFixedPrice.vue @@ -36,23 +36,23 @@ const user = state.getUser(); const fixedPrices = ref([]); const warehousesOptions = ref([]); const rowsSelected = ref([]); - const itemFixedPriceFilterRef = ref(); - const params = reactive({}); -const defaultColumnAttrs = { - align: 'left', - sortable: true, -}; + onMounted(async () => { stateStore.rightDrawer = true; params.warehouseFk = user.value.warehouseFk; }); onUnmounted(() => (stateStore.rightDrawer = false)); + +const defaultColumnAttrs = { + align: 'left', + sortable: true, +}; const columns = computed(() => [ { - label: t('item.fixedPrice.itemId'), - name: 'itemId', + label: t('item.fixedPrice.itemFk'), + name: 'itemFk', ...defaultColumnAttrs, isId: true, cardVisible: true, @@ -426,7 +426,7 @@ function handleOnDataSave({ CrudModelRef }) { :default-save="false" data-key="ItemFixedPrices" url="FixedPrices/filter" - :order="['itemFk ASC']" + :order="['description DESC']" save-url="FixedPrices/crud" :user-params="{ warehouseFk: user.warehouseFk }" ref="tableRef" @@ -460,7 +460,7 @@ function handleOnDataSave({ CrudModelRef }) { -