diff --git a/ayanova/src/api/ayatype.js b/ayanova/src/api/ayatype.js index 893147d3..6ba36165 100644 --- a/ayanova/src/api/ayatype.js +++ b/ayanova/src/api/ayatype.js @@ -91,7 +91,9 @@ export default { CustomerServiceRequest: 54, ServiceBank: 55, OpsNotificationSettings: 56, - Report: 57 + Report: 57, + DashboardView: 58, + CustomerNote: 59 }; /** * diff --git a/ayanova/src/plugins/vuetify.js b/ayanova/src/plugins/vuetify.js index 785b1019..51cdab77 100644 --- a/ayanova/src/plugins/vuetify.js +++ b/ayanova/src/plugins/vuetify.js @@ -45,6 +45,7 @@ import { faChevronLeft, faChevronRight, faChild, + faClipboard, faClock, faClone, faCode, @@ -194,6 +195,7 @@ library.add( faChevronLeft, faChevronRight, faChild, + faClipboard, farCircle, faClock, faClone, @@ -434,6 +436,12 @@ const CUSTOM_ICONS = { icon: ["fas", "child"] } }, + ayiClipboard: { + component: FontAwesomeIcon, + props: { + icon: ["fas", "clipboard"] + } + }, ayiClock: { component: FontAwesomeIcon, props: { diff --git a/ayanova/src/router.js b/ayanova/src/router.js index bdfdced4..219a23ea 100644 --- a/ayanova/src/router.js +++ b/ayanova/src/router.js @@ -168,11 +168,17 @@ export default new Router({ import(/* webpackChunkName: "cust" */ "./views/cust-customer.vue") }, { - path: "/cust-customer-notes/:customerid/:noteid?", + path: "/cust-customer-notes/:customerid", name: "customer-notes", component: () => import(/* webpackChunkName: "cust" */ "./views/cust-customer-notes.vue") }, + { + path: "/cust-customer-notes/:customerid/:recordid", + name: "customer-note-edit", + component: () => + import(/* webpackChunkName: "cust" */ "./views/cust-customer-note.vue") + }, { path: "/cust-headoffices", name: "cust-headoffices", diff --git a/ayanova/src/views/cust-customer-note.vue b/ayanova/src/views/cust-customer-note.vue new file mode 100644 index 00000000..553405f0 --- /dev/null +++ b/ayanova/src/views/cust-customer-note.vue @@ -0,0 +1,493 @@ + + + + + diff --git a/ayanova/src/views/cust-customer-notes.vue b/ayanova/src/views/cust-customer-notes.vue index fecebb5e..09b3b2de 100644 --- a/ayanova/src/views/cust-customer-notes.vue +++ b/ayanova/src/views/cust-customer-notes.vue @@ -1,763 +1,24 @@ diff --git a/ayanova/src/views/cust-customer.vue b/ayanova/src/views/cust-customer.vue index fecebb5e..241553d4 100644 --- a/ayanova/src/views/cust-customer.vue +++ b/ayanova/src/views/cust-customer.vue @@ -1402,6 +1402,12 @@ async function clickHandler(menuItem) { postCode: m.vm.obj.postCode }); break; + case "CustomerNoteList": + m.vm.$router.push({ + name: "customer-notes", + params: { customerId: m.vm.Id } + }); + break; default: window.$gz.eventBus.$emit( "notify-warning", @@ -1488,6 +1494,13 @@ function generateMenu(vm) { menuOptions.menuItems.push({ divider: true, inset: false }); + menuOptions.menuItems.push({ + title: "CustomerNoteList", + icon: "$ayiClipboard", + key: FORM_KEY + ":CustomerNoteList", + vm: vm + }); + //---- SHOW ALL --- //MIGRATE_OUTSTANDING show all: workorderlist, unitlist, quotelist, pmlist menuOptions.menuItems.push({ @@ -1606,7 +1619,9 @@ async function fetchTranslatedText(vm) { "UserPhone2", "UserPageAddress", "Contact", - "LastLogin" + "LastLogin", + "CustomerNoteList", + "CustomerNoteNotes" ]); }