diff --git a/src/components/SmartCard.vue b/src/components/SmartCard.vue index 0ffa266f2..a8652e6e8 100644 --- a/src/components/SmartCard.vue +++ b/src/components/SmartCard.vue @@ -33,6 +33,7 @@ const $props = defineProps({ }); defineEmits(['onNavigate']); +defineExpose({ fetch }); const isLoading = ref(false); const hasMoreData = ref(false); diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index b7d89bb17..703f2ce48 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -166,8 +166,10 @@ export default { claims: 'Claims', list: 'List', createClaim: 'Create claim', + rmaList: 'RMA', summary: 'Summary', - basicData: 'Basic Data' + basicData: 'Basic Data', + rma: 'RMA' }, list: { customer: 'Customer', @@ -206,6 +208,7 @@ export default { state: 'State', packages: 'Packages', picked: 'Picked', + returnOfMaterial: 'Return of material authorization (RMA)' }, }, components: { diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index 7fdf40a4d..e33469c9f 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -190,6 +190,7 @@ export default { state: 'Estado', packages: 'Bultos', picked: 'Recogida', + returnOfMaterial: 'AutorizaciĆ³n de retorno de materiales (RMA)' }, summary: { customer: 'Cliente', diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index 9ba7063a4..0418c8f3b 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -3,7 +3,7 @@ import Navbar from 'src/components/Navbar.vue'; diff --git a/src/pages/Claim/Card/ClaimRma.vue b/src/pages/Claim/Card/ClaimRma.vue new file mode 100644 index 000000000..dd48c7597 --- /dev/null +++ b/src/pages/Claim/Card/ClaimRma.vue @@ -0,0 +1,80 @@ + + + + diff --git a/src/pages/Claim/ClaimRmaList.vue b/src/pages/Claim/ClaimRmaList.vue new file mode 100644 index 000000000..56aefe748 --- /dev/null +++ b/src/pages/Claim/ClaimRmaList.vue @@ -0,0 +1,106 @@ + + + + + diff --git a/src/router/modules/claim.js b/src/router/modules/claim.js index 98102d5f0..dcdc9efd9 100644 --- a/src/router/modules/claim.js +++ b/src/router/modules/claim.js @@ -25,6 +25,16 @@ 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'), + }, { name: 'ClaimCreate', path: 'create', @@ -33,7 +43,7 @@ export default { icon: 'vn:addperson', }, component: () => import('src/pages/Claim/ClaimCreate.vue'), - }, + } ] }, { @@ -58,6 +68,16 @@ export default { roles: ['salesPerson'] }, component: () => import('src/pages/Claim/Card/ClaimBasicData.vue'), + }, + { + name: 'ClaimRma', + path: 'rma', + meta: { + title: 'rma', + roles: ['claimManager'] + }, + component: () => import('src/pages/Claim/Card/ClaimRma.vue'), + props: { claim: true } } ] },