From cba6b000fc1cdc439a723d8869f2b7cc3bdc17c1 Mon Sep 17 00:00:00 2001 From: taro Date: Tue, 11 Mar 2025 23:48:48 -0300 Subject: [PATCH 1/6] orders.value = await api.post('applications/myTicket_list/execute-proc', params); --- src/pages/Ecomerce/OrdersView.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/pages/Ecomerce/OrdersView.vue b/src/pages/Ecomerce/OrdersView.vue index 67daeb1c..35370cc8 100644 --- a/src/pages/Ecomerce/OrdersView.vue +++ b/src/pages/Ecomerce/OrdersView.vue @@ -17,6 +17,7 @@ import { storeToRefs } from 'pinia'; const { t } = useI18n(); const route = useRoute(); const jApi = inject('jApi'); +const api = inject('api'); const { notify } = useNotify(); const appStore = useAppStore(); const { isHeaderMounted } = storeToRefs(appStore); @@ -30,7 +31,13 @@ const tpv = tpvStore(); onMounted(async () => { await tpv.check(route); - orders.value = await jApi.query('CALL myTicket_list(NULL, NULL)'); + const myTickets = await api.post('applications/myTicket_list/execute-proc', new URLSearchParams({ + schema: 'hedera', + params: '[null, null]', + })); + + orders.value = myTickets.data; + debt.value = await jApi.getValue('SELECT -myClient_getDebt(NULL)'); }); From 1698a8505524d845853587cee6fe100d7a6bafa7 Mon Sep 17 00:00:00 2001 From: taro Date: Thu, 13 Mar 2025 02:48:54 -0300 Subject: [PATCH 2/6] debt.value = await api.get(`clients/${userId}/getDebt`) --- src/pages/Ecomerce/OrdersView.vue | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/src/pages/Ecomerce/OrdersView.vue b/src/pages/Ecomerce/OrdersView.vue index 35370cc8..a5b85a52 100644 --- a/src/pages/Ecomerce/OrdersView.vue +++ b/src/pages/Ecomerce/OrdersView.vue @@ -1,5 +1,5 @@