diff --git a/src/components/FormPopup.vue b/src/components/FormPopup.vue index b6eff5d80..84b984262 100644 --- a/src/components/FormPopup.vue +++ b/src/components/FormPopup.vue @@ -4,29 +4,6 @@ import { useI18n } from 'vue-i18n'; const emit = defineEmits(['onSubmit']); -const $props = defineProps({ - title: { - type: String, - default: '', - }, - subtitle: { - type: String, - default: '', - }, - defaultSubmitButton: { - type: Boolean, - default: true, - }, - defaultCancelButton: { - type: Boolean, - default: true, - }, - customSubmitButtonLabel: { - type: String, - default: '', - }, -}); - const { t } = useI18n(); const closeButton = ref(null); diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index 8a562d6db..f9e366acc 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -462,6 +462,8 @@ export default { inkFk: 'Color', timed: 'timed', minTimed: 'Hora', + negativeAction: 'Negativo', + totalNegative: 'Total negativos', modalOrigin:{ title: 'Actualizar negativos', question: 'Seleccione un estado para guardar' diff --git a/src/pages/Ticket/Negative/TicketLackList.vue b/src/pages/Ticket/Negative/TicketLackList.vue index 200b75c43..ed45bd8ab 100644 --- a/src/pages/Ticket/Negative/TicketLackList.vue +++ b/src/pages/Ticket/Negative/TicketLackList.vue @@ -9,11 +9,6 @@ import TicketDescriptorDialog from 'pages/Ticket/Negative/TicketLackDescriptorDi import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue'; import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue'; import axios from 'axios'; -import VnConfirm from 'components/ui/VnConfirm.vue'; -import VnInput from 'components/common/VnInput.vue'; -import VnSelectFilter from 'components/common/VnSelectFilter.vue'; -import VnSelectDialog from 'components/common/VnSelectDialog.vue'; -import VnLv from 'src/components/ui/VnLv.vue'; import { useDialogPluginComponent } from 'quasar'; const session = useSession(); @@ -25,6 +20,7 @@ const { t } = useI18n(); const selectedRows = ref([]); const showTicketDialog = ref(false); const showNegativeOriginDialog = ref(false); +const showTotalNegativeOriginDialog = ref(false); const reasonegativeOriginDialog = ref(null); const currentRow = ref(null); const { dialogRef, onDialogHide } = useDialogPluginComponent(); @@ -40,7 +36,39 @@ const viewSummary = (value) => { // }); }; const originDialogRef = ref(); - +const totalNegativeDialogRef = ref(); +const columnsTotalNegativeDialog = computed(() => [ + { + name: 'id', + label: t('ticket.negative.id'), + field: ({ id }) => id, + sortable: true, + }, + { + name: 'itemFk', + label: t('ticket.negative.itemFk'), + field: ({ itemFk }) => itemFk, + sortable: true, + }, + { + name: 'type', + label: t('ticket.negative.type'), + field: ({ type }) => type, + sortable: true, + }, + { + name: 'dated', + label: t('ticket.negative.dated'), + field: ({ dated }) => dated, + sortable: true, + }, + { + name: 'quantity', + label: t('ticket.negative.quantity'), + field: ({ quantity }) => quantity, + sortable: true, + }, +]); const columns = computed(() => [ { name: 'minTimed', @@ -149,11 +177,18 @@ const updateNegativeOrigin = async () => {
- {{ t('globals.save') }} + {{ t('ticket.negative.negativeAction') }} + + + {{ t('ticket.negative.totalNegative') }}
@@ -255,6 +290,64 @@ const updateNegativeOrigin = async () => { + + + + {{ + t('ticket.negative.totalNegative') + }} + + + + + + + + + + +