mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
53 lines
2.0 KiB
Vue
53 lines
2.0 KiB
Vue
<template>
|
|
<div class="row">
|
|
<div class="col">
|
|
<loading-component style="height: 300px; top: 0;" key="1" color="success" v-show="isLoading" ></loading-component>
|
|
<div class="row justify-content-center" v-show="!isLoading">
|
|
<div class="col">
|
|
<div class="row m-b-20">
|
|
<div class="col">
|
|
<h3 class="all-caps">Are you Sure?</h3>
|
|
<div class="fs-11">Are you sure you want to reject this transaction?</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col p-r-5">
|
|
<div class="btn btn-sm btn-success btn-block b-rad-none" data-dismiss="modal">Cancel</div>
|
|
</div>
|
|
<div class="col p-l-5">
|
|
<div class="btn btn-sm btn-danger btn-block b-rad-none" @click="submit(route('api.transaction.bill.status', item.id, 'pending'), 'put', section, true, true, null, { successHandler })">Confirm</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { computed } from 'vue';
|
|
import { useUiStore } from '@/stores/ui';
|
|
import { useFormHandler } from '@/composables/useFormHandler';
|
|
import { useQueueStore } from '@/stores/queue';
|
|
import { useComponentHandler } from '@/composables/useComponentHandler';
|
|
import route from '@/general/functions/router';
|
|
|
|
|
|
const queueStore = useQueueStore();
|
|
const props = defineProps<{
|
|
data: any;
|
|
section: string;
|
|
}>();
|
|
|
|
const uiStore = useUiStore();
|
|
const isLoading = computed(() => uiStore.isLoading(props.section));
|
|
const { submit, closeModal } = useFormHandler(props);
|
|
const { item } = useComponentHandler(props);
|
|
|
|
const successHandler = (response: any) => {
|
|
closeModal();
|
|
queueStore.reloadList({ name: "bookingDetailSection" });
|
|
};
|
|
|
|
</script>
|