+
{{ t(`${module.name}.pageTitles.${module.title}`) }}
diff --git a/src/pages/Ticket/Card/TicketCard.vue b/src/pages/Ticket/Card/TicketCard.vue
index 73a26d406..625cf9689 100644
--- a/src/pages/Ticket/Card/TicketCard.vue
+++ b/src/pages/Ticket/Card/TicketCard.vue
@@ -1,24 +1,185 @@
-
+
+
+
+
+
+
+
+ {{ ticket.nickname }}
+ {{ ticket.nickname }}
+
+
+
+ {{ t('ticket.card.ticketId') }}
+ #{{ ticket.id }}
+
+
+ {{ t('ticket.card.state') }}
+
+ {{ ticket.ticketState.state.name }}
+
+
+
+
+
+ {{ t('ticket.card.customerId') }}
+ {{ ticket.clientFk }}
+
+
+ {{ t('ticket.card.salesPerson') }}
+ {{ ticket.client.salesPersonUser.name }}
+
+
+
+
+ {{ t('ticket.card.agency') }}
+ {{ ticket.agencyMode.name }}
+
+
+ {{ t('ticket.card.shipped') }}
+ {{ toDate(ticket.shipped) }}
+
+
+
+
+ {{ t('ticket.card.warehouse') }}
+ {{ ticket.warehouse.name }}
+
+
+
+
+
+
+ {{ t('ticket.card.customerCard') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -->
+
+
+
+
diff --git a/src/pages/Ticket/Card/TicketSummary.vue b/src/pages/Ticket/Card/TicketSummary.vue
new file mode 100644
index 000000000..e69de29bb
diff --git a/src/pages/Ticket/TicketList.vue b/src/pages/Ticket/TicketList.vue
index ebc291933..2683ed42a 100644
--- a/src/pages/Ticket/TicketList.vue
+++ b/src/pages/Ticket/TicketList.vue
@@ -1,110 +1,140 @@
-
-
-
-
-
- {{ customer.name }}
- @{{ customer.username }}
-
-
-
-
- Email
- {{ customer.email }}
-
-
-
-
- Phone
- {{ customer.phone }}
-
-
-
-
-
-
-
-
-
- Action 1
-
-
- Action 2
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Address
- Avenue 11
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+ {{ t('ticket.list.nickname') }}
+ {{ row.nickname }}
+
+
+ {{ t('ticket.list.state') }}
+
+
+ {{ row.ticketState.state.name }}
+
+
+
+
+
+
+ {{ t('ticket.list.shipped') }}
+ {{ toDate(row.shipped) }}
+
+
+ {{ t('ticket.list.landed') }}
+ {{ toDate(row.landed) }}
+
+
+
+
+ {{ t('ticket.list.salesPerson') }}
+ {{ row.client.salesPersonUser.name }}
+
+
+ {{ t('ticket.list.total') }}
+ {{ toCurrency(row.totalWithVat) }}
+
+
+
+
+
+
+ {{ t('customer.list.moreOptions') }}
+
+
+
+
+
+
+ Add a note
+
+
+
+
+
+ Display customer history
+
+
+
+
-
+
+ {{ t('components.smartCard.openCard') }}
+
+
+ {{ t('components.smartCard.openSummary') }}
+
+
+ {{ t('customer.list.customerOrders') }}
+
+
+
+
+
+
diff --git a/src/router/modules/claim.js b/src/router/modules/claim.js
new file mode 100644
index 000000000..dcdc9efd9
--- /dev/null
+++ b/src/router/modules/claim.js
@@ -0,0 +1,85 @@
+import { RouterView } from 'vue-router';
+
+export default {
+ name: 'Claim',
+ path: '/claim',
+ meta: {
+ title: 'claims',
+ icon: 'vn:claims'
+ },
+ component: RouterView,
+ redirect: { name: 'ClaimMain' },
+ children: [
+ {
+ name: 'ClaimMain',
+ path: '',
+ component: () => import('src/pages/Claim/ClaimMain.vue'),
+ redirect: { name: 'ClaimList' },
+ children: [
+ {
+ name: 'ClaimList',
+ path: 'list',
+ meta: {
+ title: 'list',
+ icon: 'view_list',
+ },
+ 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',
+ meta: {
+ title: 'createClaim',
+ icon: 'vn:addperson',
+ },
+ component: () => import('src/pages/Claim/ClaimCreate.vue'),
+ }
+ ]
+ },
+ {
+ name: 'ClaimCard',
+ path: ':id',
+ component: () => import('src/pages/Claim/Card/ClaimCard.vue'),
+ redirect: { name: 'ClaimSummary' },
+ children: [
+ {
+ name: 'ClaimSummary',
+ path: 'summary',
+ meta: {
+ title: 'summary'
+ },
+ component: () => import('src/pages/Claim/Card/ClaimSummary.vue'),
+ },
+ {
+ name: 'ClaimBasicData',
+ path: 'basic-data',
+ meta: {
+ title: 'basicData',
+ 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 }
+ }
+ ]
+ },
+ ]
+};
\ No newline at end of file
diff --git a/src/router/modules/customer.js b/src/router/modules/customer.js
index e52488146..ff5189417 100644
--- a/src/router/modules/customer.js
+++ b/src/router/modules/customer.js
@@ -4,7 +4,6 @@ export default {
path: '/customer',
name: 'Customer',
meta: {
- roles: ['developer'],
title: 'customers',
icon: 'vn:client'
},
@@ -38,10 +37,19 @@ export default {
]
},
{
+ name: 'CustomerCard',
path: ':id',
component: () => import('src/pages/Customer/Card/CustomerCard.vue'),
- redirect: { name: 'CustomerBasicData' },
+ redirect: { name: 'CustomerSummary' },
children: [
+ {
+ name: 'CustomerSummary',
+ path: 'summary',
+ meta: {
+ title: 'summary'
+ },
+ component: () => import('src/pages/Customer/Card/CustomerSummary.vue'),
+ },
{
path: 'basic-data',
name: 'CustomerBasicData',
diff --git a/src/router/modules/ticket.js b/src/router/modules/ticket.js
index 60d592868..f97b39f8e 100644
--- a/src/router/modules/ticket.js
+++ b/src/router/modules/ticket.js
@@ -1,10 +1,9 @@
import { RouterView } from 'vue-router';
export default {
- path: '/ticket',
name: 'Ticket',
+ path: '/ticket',
meta: {
- roles: ['developer'],
title: 'tickets',
icon: 'vn:ticket'
},
@@ -12,14 +11,14 @@ export default {
redirect: { name: 'TicketMain' },
children: [
{
- path: '',
name: 'TicketMain',
+ path: '',
component: () => import('src/pages/Ticket/TicketMain.vue'),
redirect: { name: 'TicketList' },
children: [
{
- path: 'list',
name: 'TicketList',
+ path: 'list',
meta: {
title: 'list',
icon: 'view_list',
@@ -27,8 +26,8 @@ export default {
component: () => import('src/pages/Ticket/TicketList.vue'),
},
{
- path: 'create',
name: 'TicketCreate',
+ path: 'create',
meta: {
title: 'createTicket',
icon: 'vn:ticketAdd',
@@ -40,13 +39,22 @@ export default {
]
},
{
+ name: 'TicketCard',
path: ':id',
component: () => import('src/pages/Ticket/Card/TicketCard.vue'),
- redirect: { name: 'TicketBasicData' },
+ redirect: { name: 'TicketSummary' },
children: [
{
- path: 'basic-data',
+ name: 'TicketSummary',
+ path: 'summary',
+ meta: {
+ title: 'summary'
+ },
+ component: () => import('src/pages/Ticket/Card/TicketSummary.vue'),
+ },
+ {
name: 'TicketBasicData',
+ path: 'basic-data',
meta: {
title: 'basicData'
},
diff --git a/src/router/routes.js b/src/router/routes.js
index 6905c4116..db21227a5 100644
--- a/src/router/routes.js
+++ b/src/router/routes.js
@@ -1,5 +1,6 @@
import customer from './modules/customer';
import ticket from './modules/ticket';
+import claim from './modules/claim';
const routes = [
{
@@ -23,6 +24,7 @@ const routes = [
// Module routes
customer,
ticket,
+ claim,
],
},
{