Merge branch 'beta' into feature/connections-view
gitea/hedera-web/pipeline/pr-beta This commit looks good
Details
gitea/hedera-web/pipeline/pr-beta This commit looks good
Details
This commit is contained in:
commit
aa4e161c1f
|
@ -8,6 +8,7 @@ import VnInput from 'src/components/common/VnInput.vue';
|
||||||
import VnConfirm from 'src/components/ui/VnConfirm.vue';
|
import VnConfirm from 'src/components/ui/VnConfirm.vue';
|
||||||
import VnList from 'src/components/ui/VnList.vue';
|
import VnList from 'src/components/ui/VnList.vue';
|
||||||
|
|
||||||
|
import { onUserId } from 'src/utils/onUserId';
|
||||||
import useNotify from 'src/composables/useNotify.js';
|
import useNotify from 'src/composables/useNotify.js';
|
||||||
import { currency, formatDateTitle } from 'src/lib/filters.js';
|
import { currency, formatDateTitle } from 'src/lib/filters.js';
|
||||||
import { tpvStore } from 'stores/tpv';
|
import { tpvStore } from 'stores/tpv';
|
||||||
|
@ -16,7 +17,7 @@ import { storeToRefs } from 'pinia';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const jApi = inject('jApi');
|
const api = inject('api');
|
||||||
const { notify } = useNotify();
|
const { notify } = useNotify();
|
||||||
const appStore = useAppStore();
|
const appStore = useAppStore();
|
||||||
const { isHeaderMounted } = storeToRefs(appStore);
|
const { isHeaderMounted } = storeToRefs(appStore);
|
||||||
|
@ -30,8 +31,16 @@ const tpv = tpvStore();
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
await tpv.check(route);
|
await tpv.check(route);
|
||||||
|
|
||||||
orders.value = await jApi.query('CALL myTicket_list(NULL, NULL)');
|
const myTickets = await api.post('applications/myTicket_list/execute-proc', {
|
||||||
debt.value = await jApi.getValue('SELECT -myClient_getDebt(NULL)');
|
schema: 'hedera',
|
||||||
|
params: [null, null],
|
||||||
|
});
|
||||||
|
orders.value = myTickets.data;
|
||||||
|
});
|
||||||
|
|
||||||
|
onUserId(async (userId) => {
|
||||||
|
const myClientDebt = await api.get(`clients/${userId}/getDebt`);
|
||||||
|
debt.value = -myClientDebt.data;
|
||||||
});
|
});
|
||||||
|
|
||||||
const onPayClick = async () => {
|
const onPayClick = async () => {
|
||||||
|
|
Loading…
Reference in New Issue