diff --git a/src/pages/Customer/Card/CustomerNotes.vue b/src/pages/Customer/Card/CustomerNotes.vue index 65ade2903..303ea0980 100644 --- a/src/pages/Customer/Card/CustomerNotes.vue +++ b/src/pages/Customer/Card/CustomerNotes.vue @@ -1,3 +1,94 @@ + + - Notes + + + + + + + {{ item.worker.user.nickname }} + + {{ + date.formatDate(item?.created, 'DD-MM-YYYY HH:mm:ss') + }} + + + {{ item.text }} + + + + + + {{ t('globals.noResults') }} + + + + + + + {{ t('New consignee') }} + + + + + + + + + + {{ t('New consignee') }} + + + + diff --git a/src/pages/Customer/components/CustomerNoteCreate.vue b/src/pages/Customer/components/CustomerNoteCreate.vue new file mode 100644 index 000000000..7dde8f11e --- /dev/null +++ b/src/pages/Customer/components/CustomerNoteCreate.vue @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + +es: + Note: Nota + diff --git a/src/router/modules/customer.js b/src/router/modules/customer.js index 5f8589355..bd404f7ee 100644 --- a/src/router/modules/customer.js +++ b/src/router/modules/customer.js @@ -198,12 +198,31 @@ export default { }, { path: 'notes', - name: 'CustomerNotes', - meta: { - title: 'notes', - icon: 'vn:notes', - }, - component: () => import('src/pages/Customer/Card/CustomerNotes.vue'), + name: 'NotesCard', + redirect: { name: 'CustomerNotes' }, + children: [ + { + path: '', + name: 'CustomerNotes', + meta: { + title: 'notes', + icon: 'vn:notes', + }, + component: () => + import('src/pages/Customer/Card/CustomerNotes.vue'), + }, + { + path: 'create', + name: 'CustomerNoteCreate', + meta: { + title: 'note-create', + }, + component: () => + import( + 'src/pages/Customer/components/CustomerNoteCreate.vue' + ), + }, + ], }, { path: 'credits',
{{ item.worker.user.nickname }}
+ {{ + date.formatDate(item?.created, 'DD-MM-YYYY HH:mm:ss') + }} +