From 5e5d2f3c42dcc04fb0375353ba70344348e10f6d Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Sun, 17 Nov 2024 13:44:44 +0000 Subject: [PATCH] fix: #7671 apply sort-by itemFk and name --- src/pages/Item/ItemFixedPrice.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/pages/Item/ItemFixedPrice.vue b/src/pages/Item/ItemFixedPrice.vue index 7d4d6b896..815c7d519 100644 --- a/src/pages/Item/ItemFixedPrice.vue +++ b/src/pages/Item/ItemFixedPrice.vue @@ -64,8 +64,7 @@ const columns = computed(() => [ }, { label: t('globals.name'), - field: 'name', - name: 'description', + name: 'name', ...defaultColumnAttrs, create: true, cardVisible: true, @@ -426,7 +425,7 @@ function handleOnDataSave({ CrudModelRef }) { :default-save="false" data-key="ItemFixedPrices" url="FixedPrices/filter" - :order="['description DESC']" + :order="['itemFk DESC', 'name DESC']" save-url="FixedPrices/crud" :user-params="{ warehouseFk: user.warehouseFk }" ref="tableRef" @@ -480,7 +479,7 @@ function handleOnDataSave({ CrudModelRef }) { -