diff --git a/src/pages/Ticket/Negative/HandleSplited.vue b/src/pages/Ticket/Negative/HandleSplited.vue
index c7c51f477..446136c9e 100644
--- a/src/pages/Ticket/Negative/HandleSplited.vue
+++ b/src/pages/Ticket/Negative/HandleSplited.vue
@@ -1,15 +1,16 @@
- (editableStates = data)"
- auto-load
- />
{
v-if="icon"
/>
{{
- t('negative.detail.modal.changeState.title')
+ t('negative.detail.split.title')
}}
- {{ t('negative.detail.modal.changeState.title') }}
-
+ {{ tickets }}
+
+
+ {{ ticketsSelected }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ t(col.label) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
({
const saveChange = async (field, { rowIndex, row }) => {
try {
switch (field) {
- case 'split':
- await split({ simple: true }, [row]);
+ // case 'split':
+ // showSplitDialog.value =true
+ // // await split({ simple: true }, [row]);
- break;
+ // break;
case 'code':
await axios.post(`Tickets/state`, {
ticketFk: row.ticketFk,
@@ -262,18 +263,22 @@ const itemLackForm = ref();
// );
// };
-const split = async ({ simple }, data = []) => {
- openConfirmationModal(t('Confirm split selected'), t('splitQuestion'), null, () => {
- const body = simple ? data : selectedRows.value;
- axios.post(`Tickets/split`, body).then((data) => {
- resultSplit.value = data;
- });
- });
-};
+// const split = async ({ simple }, data = []) => {
+// openConfirmationModal(
+// t('negative.modalSplit.title'),
+// t('splitQuestion'),
+// () => {
+// const body = simple ? data : selectedRows.value;
+// axios.post(`Tickets/split`, body).then((data) => {
+// resultSplit.value = data;
+// });
+// }
+// );
+// };
const reload = async () => {
itemLackForm.value.fetch();
};
-defineExpose({ split, reload });
+defineExpose({ reload });
function getIcon(key, prop) {
const ticket = resultSplit.value.find((val) => val.ticketFk === key);
@@ -355,7 +360,7 @@ const handleRows = (rows) => {
@@ -496,9 +501,8 @@ const handleRows = (rows) => {
ref="splitDialogRef"
@hide="onDialogHide"
v-model="showSplitDialog"
- :tickets="resultSplit"
+ :tickets="selectedRows"
>
- {{ item }}
-import { toRefs, ref } from 'vue';
-import TicketLackDetail from './TicketLackDetail.vue';
-import { useSession } from 'src/composables/useSession';
-import { useI18n } from 'vue-i18n';
-
-const { t } = useI18n();
-const $props = defineProps({
- ticket: {
- type: Object,
- required: false,
- default: () => {},
- },
- id: {
- type: Number,
- default: 0,
- },
-});
-const { ticket } = toRefs($props);
-const session = useSession();
-
-const token = session.getTokenMultimedia();
-const ticketRef = ref(null);
-const hasRowsSelected = ref(false);
-
-async function splitSelected() {
- ticketRef.value.split({ all: true });
-}
-
-
-
-
-
-
- {{ ticket.longName }}
-
-
-
-
- {{ t('global.split') }}
-
-
-
-
-
- (hasRowsSelected = rows.length > 0)"
- />
-
-
diff --git a/src/pages/Ticket/locale/en.yml b/src/pages/Ticket/locale/en.yml
index 62faafef3..c2ebcb96f 100644
--- a/src/pages/Ticket/locale/en.yml
+++ b/src/pages/Ticket/locale/en.yml
@@ -25,6 +25,9 @@ negative:
modalOrigin:
title: 'Update negatives'
question: 'Select a state to update'
+ modalSplit:
+ title: Confirm split selected
+ question: 'Select a state to update'
detail:
itemFk: 'Article'
ticketFk: 'Id_Ticket'
@@ -50,5 +53,5 @@ negative:
title: Update tickets quantity
placeholder: New quantity
split:
- splitQuestion: Are you sure you want to split all tickets?
+ title: Are you sure you want to split all tickets?
confirmSplitSelected: Confirm split selected