From 546df84db1c637e7a99abc89a6c287547723c477 Mon Sep 17 00:00:00 2001 From: pablone Date: Mon, 26 Feb 2024 19:06:21 +0100 Subject: [PATCH] remove(claimRma): refs #6349 remove all references --- src/components/common/VnLog.vue | 2 - src/i18n/en/index.js | 8 -- src/i18n/es/index.js | 8 -- src/pages/Claim/Card/ClaimBasicData.vue | 8 -- src/pages/Claim/Card/ClaimRma.vue | 145 -------------------- src/pages/Claim/Card/ClaimSummary.vue | 1 - src/pages/Claim/ClaimRmaList.vue | 171 ------------------------ src/router/modules/claim.js | 23 +--- 8 files changed, 1 insertion(+), 365 deletions(-) delete mode 100644 src/pages/Claim/Card/ClaimRma.vue delete mode 100644 src/pages/Claim/ClaimRmaList.vue diff --git a/src/components/common/VnLog.vue b/src/components/common/VnLog.vue index 6368a3e52..be5a6583c 100644 --- a/src/components/common/VnLog.vue +++ b/src/components/common/VnLog.vue @@ -1036,7 +1036,6 @@ en: claimStateFk: Claim State workerFk: Worker clientFk: Customer - rma: RMA responsibility: Responsibility packages: Packages es: @@ -1076,7 +1075,6 @@ es: claimStateFk: Estado de la reclamación workerFk: Trabajador clientFk: Cliente - rma: RMA responsibility: Responsabilidad packages: Bultos diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index 9e0ad7c9b..2670369fb 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -483,11 +483,9 @@ export default { claims: 'Claims', list: 'List', createClaim: 'Create claim', - rmaList: 'RMA', summary: 'Summary', basicData: 'Basic Data', lines: 'Lines', - rma: 'RMA', photos: 'Photos', development: 'Development', log: 'Audit logs', @@ -504,10 +502,6 @@ export default { code: 'Code', records: 'records', }, - rma: { - user: 'User', - created: 'Created', - }, card: { claimId: 'Claim ID', assignedTo: 'Assigned', @@ -547,7 +541,6 @@ export default { responsible: 'Responsible', worker: 'Worker', redelivery: 'Redelivery', - returnOfMaterial: 'RMA', }, basicData: { customer: 'Customer', @@ -555,7 +548,6 @@ export default { created: 'Created', state: 'State', picked: 'Picked', - returnOfMaterial: 'Return of material authorization (RMA)', }, photo: { fileDescription: 'Claim id {claimId} from client {clientName} id {clientId}', diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index 6083dfad7..844993522 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -482,11 +482,9 @@ export default { claims: 'Reclamaciones', list: 'Listado', createClaim: 'Crear reclamación', - rmaList: 'RMA', summary: 'Resumen', basicData: 'Datos básicos', lines: 'Líneas', - rma: 'RMA', development: 'Trazabilidad', photos: 'Fotos', log: 'Registros de auditoría', @@ -503,10 +501,6 @@ export default { code: 'Código', records: 'registros', }, - rma: { - user: 'Usuario', - created: 'Creado', - }, card: { claimId: 'ID reclamación', assignedTo: 'Asignada a', @@ -546,7 +540,6 @@ export default { responsible: 'Responsable', worker: 'Trabajador', redelivery: 'Devolución', - returnOfMaterial: 'RMA', }, basicData: { customer: 'Cliente', @@ -554,7 +547,6 @@ export default { created: 'Creada', state: 'Estado', picked: 'Recogida', - returnOfMaterial: 'Autorización de retorno de materiales (RMA)', }, photo: { fileDescription: diff --git a/src/pages/Claim/Card/ClaimBasicData.vue b/src/pages/Claim/Card/ClaimBasicData.vue index 35f93c736..b5bf2bb42 100644 --- a/src/pages/Claim/Card/ClaimBasicData.vue +++ b/src/pages/Claim/Card/ClaimBasicData.vue @@ -24,7 +24,6 @@ const claimFilter = { 'workerFk', 'claimStateFk', 'packages', - 'rma', 'hasToPickUp', ], include: [ @@ -169,13 +168,6 @@ const statesFilter = { type="number" /> -
- -
diff --git a/src/pages/Claim/Card/ClaimRma.vue b/src/pages/Claim/Card/ClaimRma.vue deleted file mode 100644 index bba901d7b..000000000 --- a/src/pages/Claim/Card/ClaimRma.vue +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - -es: - This claim is not associated to any RMA: Esta reclamación no está asociada a ninguna ARM - diff --git a/src/pages/Claim/Card/ClaimSummary.vue b/src/pages/Claim/Card/ClaimSummary.vue index cdc1f15be..97bd79830 100644 --- a/src/pages/Claim/Card/ClaimSummary.vue +++ b/src/pages/Claim/Card/ClaimSummary.vue @@ -211,7 +211,6 @@ function openDialog(dmsId) { /> - -import { ref } from 'vue'; -import { useI18n } from 'vue-i18n'; -import { useQuasar } from 'quasar'; - -import VnPaginate from 'src/components/ui/VnPaginate.vue'; -import VnConfirm from 'src/components/ui/VnConfirm.vue'; -import VnInput from 'src/components/common/VnInput.vue'; - -import { useArrayData } from 'src/composables/useArrayData'; -import axios from 'axios'; - -const quasar = useQuasar(); -const { t } = useI18n(); - -const arrayData = useArrayData('ClaimRmaList'); -const isLoading = ref(false); -const input = ref(); - -const newRma = ref({ - code: '', - crated: Date.vnNew(), -}); - -function onInputUpdate(value) { - newRma.value.code = value.toUpperCase(); -} - -async function submit() { - const formData = newRma.value; - if (formData.code === '') return; - - isLoading.value = true; - await axios.post('ClaimRmas', formData); - await arrayData.refresh(); - isLoading.value = false; - input.value.$el.focus(); - - newRma.value = { - code: '', - created: Date.vnNew(), - }; -} - -function confirm(id) { - quasar - .dialog({ - component: VnConfirm, - componentProps: { - data: { id }, - promise: remove, - }, - }) - .onOk(async () => await arrayData.refresh()); -} - -async function remove({ id }) { - await axios.delete(`ClaimRmas/${id}`); - quasar.notify({ - type: 'positive', - message: t('globals.rowRemoved'), - }); -} - - - - - diff --git a/src/router/modules/claim.js b/src/router/modules/claim.js index 1dfd75cff..30e6fffb3 100644 --- a/src/router/modules/claim.js +++ b/src/router/modules/claim.js @@ -10,11 +10,10 @@ export default { component: RouterView, redirect: { name: 'ClaimMain' }, menus: { - main: ['ClaimList', 'ClaimRmaList'], + main: ['ClaimList'], card: [ 'ClaimBasicData', 'ClaimLines', - 'ClaimRma', 'ClaimPhotos', 'ClaimLog', 'ClaimNotes', @@ -38,16 +37,6 @@ export default { }, component: () => import('src/pages/Claim/ClaimList.vue'), }, - { - name: 'ClaimRmaList', - path: 'rma', - meta: { - title: 'rmaList', - icon: 'vn:barcode', - roles: ['claimManager'], - }, - component: () => import('src/pages/Claim/ClaimRmaList.vue'), - }, ], }, { @@ -84,16 +73,6 @@ export default { }, component: () => import('src/pages/Claim/Card/ClaimLines.vue'), }, - { - name: 'ClaimRma', - path: 'rma', - meta: { - title: 'rma', - icon: 'vn:barcode', - roles: ['claimManager'], - }, - component: () => import('src/pages/Claim/Card/ClaimRma.vue'), - }, { name: 'ClaimPhotos', path: 'photos',