diff --git a/src/components/ui/VnConfirm.vue b/src/components/ui/VnConfirm.vue
index 668621474..83a2008a1 100644
--- a/src/components/ui/VnConfirm.vue
+++ b/src/components/ui/VnConfirm.vue
@@ -51,7 +51,7 @@ async function confirm() {
}
-
+
{
// Buscador_Ticket (vNewTicketFk)
// Call Form_Requery
+ await split({ simple: true });
break;
case 'code':
// Call ticketChangeState(ticketFk, stateFk)
@@ -323,6 +327,13 @@ function rowsHasSelected({ keys }) {
emit('selection', keys);
}
const split = async (options) => {
+ openConfirmationModal(
+ t('Confirm splitAll'),
+ t('Are you sure you want to split all tickets?'),
+ null,
+ () => console.log('')
+ );
+
let body = [];
// if (options.simple) {
body = selectedRows.value;
@@ -379,7 +390,12 @@ defineExpose({ split });
-
+
{{ t('components.leftMenu.removeFromPinned') }}
@@ -422,6 +438,11 @@ defineExpose({ split });
+
diff --git a/src/pages/Ticket/Negative/TicketLackDialogProxy.vue b/src/pages/Ticket/Negative/TicketLackDialogProxy.vue
index 55cdade21..b9e2c084a 100644
--- a/src/pages/Ticket/Negative/TicketLackDialogProxy.vue
+++ b/src/pages/Ticket/Negative/TicketLackDialogProxy.vue
@@ -2,8 +2,9 @@
import { toRefs, ref } from 'vue';
import TicketLackDialog from './TicketLackDialog.vue';
import { useSession } from 'src/composables/useSession';
-import { useVnConfirm } from 'composables/useVnConfirm';
+// import { useVnConfirm } from 'composables/useVnConfirm';
import { useI18n } from 'vue-i18n';
+// import VnConfirm from 'components/ui/VnConfirm.vue';
const { t } = useI18n();
const $props = defineProps({
@@ -20,10 +21,12 @@ const { ticket } = toRefs($props);
const session = useSession();
const token = session.getTokenMultimedia();
-const { openConfirmationModal } = useVnConfirm();
+// const { openConfirmationModal } = useVnConfirm();
const ticketRef = ref(null);
const hasRowsSelected = ref(false);
+// const confirmationModal = ref(false);
async function splitAll() {
+ // confirmationModal.value = true;
ticketRef.value.split({ all: true });
// openConfirmationModal(
// t('Confirm splitAll'),
@@ -34,7 +37,12 @@ async function splitAll() {
}
-
+ (hasRowsSelected = false)"
+ >
(hasRowsSelected = rows.length > 0)"
/>
+