From 5c59ae8217b6b20592d98d8321e9ca2a08bd3b60 Mon Sep 17 00:00:00 2001 From: pablone Date: Wed, 13 Nov 2024 09:12:51 +0100 Subject: [PATCH] fix: refs #7404 some filter issues --- src/pages/Entry/EntryStockBought.vue | 3 ++- src/pages/Entry/EntryStockBoughtDetail.vue | 2 +- src/pages/Entry/EntryStockBoughtFilter.vue | 11 +++++++++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/pages/Entry/EntryStockBought.vue b/src/pages/Entry/EntryStockBought.vue index 7ae6901d3..3f0cd2d99 100644 --- a/src/pages/Entry/EntryStockBought.vue +++ b/src/pages/Entry/EntryStockBought.vue @@ -99,7 +99,7 @@ const travelDialogRef = ref(false); const tableRef = ref(); const travel = ref(null); const userParams = ref({ - dated: Date.vnNew(), + dated: Date.vnNew().toJSON(), }); const filter = ref({ @@ -219,6 +219,7 @@ function round(value) { data-key="StockBoughts" url="StockBoughts/getStockBought" save-url="StockBoughts/crud" + search-url="StockBoughts" order="reserve DESC" :right-search="false" :is-editable="true" diff --git a/src/pages/Entry/EntryStockBoughtDetail.vue b/src/pages/Entry/EntryStockBoughtDetail.vue index 0fd775ee6..812171825 100644 --- a/src/pages/Entry/EntryStockBoughtDetail.vue +++ b/src/pages/Entry/EntryStockBoughtDetail.vue @@ -18,7 +18,7 @@ const $props = defineProps({ required: true, }, }); -const customUrl = `StockBoughts/getStockBoughtDetail?workerFk=${$props.workerFk}&date=${$props.dated}`; +const customUrl = `StockBoughts/getStockBoughtDetail?workerFk=${$props.workerFk}&dated=${$props.dated}`; const columns = [ { align: 'left', diff --git a/src/pages/Entry/EntryStockBoughtFilter.vue b/src/pages/Entry/EntryStockBoughtFilter.vue index 7694cfe6c..e59332064 100644 --- a/src/pages/Entry/EntryStockBoughtFilter.vue +++ b/src/pages/Entry/EntryStockBoughtFilter.vue @@ -27,7 +27,7 @@ onMounted(async () => { -