diff --git a/ayanova/src/api/initialize.js b/ayanova/src/api/initialize.js index f70ddff9..ad9c75dd 100644 --- a/ayanova/src/api/initialize.js +++ b/ayanova/src/api/initialize.js @@ -271,7 +271,7 @@ function initNavPanel() { sub.push({ title: "HeadOfficeList", icon: "$ayiSitemap", - route: "/cust-headoffices", + route: "/cust-head-offices", key: key++ }); diff --git a/ayanova/src/api/open-object-handler.js b/ayanova/src/api/open-object-handler.js index a5de4bd5..68e3e35f 100644 --- a/ayanova/src/api/open-object-handler.js +++ b/ayanova/src/api/open-object-handler.js @@ -27,6 +27,12 @@ export default { params: { recordid: tid.id } }); break; + case ayatype.HeadOffice: + vm.$router.push({ + name: "head-office-edit", + params: { recordid: tid.id } + }); + break; case ayatype.Widget: vm.$router.push({ name: "widget-edit", diff --git a/ayanova/src/router.js b/ayanova/src/router.js index 4cb210d6..07ce7f3b 100644 --- a/ayanova/src/router.js +++ b/ayanova/src/router.js @@ -179,12 +179,6 @@ export default new Router({ component: () => import(/* webpackChunkName: "cust" */ "./views/cust-customer-note.vue") }, - { - path: "/cust-headoffices", - name: "cust-headoffices", - component: () => - import(/* webpackChunkName: "cust" */ "./views/cust-headoffices.vue") - }, { path: "/cust-users", name: "cust-users", @@ -197,6 +191,18 @@ export default new Router({ component: () => import(/* webpackChunkName: "cust" */ "./views/cust-user.vue") }, + { + path: "/cust-head-offices", + name: "cust-head-offices", + component: () => + import(/* webpackChunkName: "cust" */ "./views/cust-head-offices.vue") + }, + { + path: "/cust-head-offices/:recordid", + name: "head-office-edit", + component: () => + import(/* webpackChunkName: "cust" */ "./views/cust-head-office.vue") + }, { path: "/svc-schedule", name: "svc-schedule", diff --git a/ayanova/src/views/cust-head-office.vue b/ayanova/src/views/cust-head-office.vue new file mode 100644 index 00000000..e35a5515 --- /dev/null +++ b/ayanova/src/views/cust-head-office.vue @@ -0,0 +1,1521 @@ + + + + + + + + + + + {{ $ay.t("HeadOffice") }} + {{ $ay.t("Address") }} + {{ $ay.t("Contacts") }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ $ay.t("AddressTypePhysical") }} + $ayiEllipsisV + + + + + + $ayiCopy + + {{ + $ay.t("CopyToClipboard") + }} + + + + $ayiClone + + {{ + $ay.t("AddressCopyToPostal") + }} + + + + $ayiMapMarker + + {{ + $ay.t("GeoCapture") + }} + + + + + {{ $ay.t("AddressTypePhysical") }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ $ay.t("AddressTypePostal") }} + $ayiEllipsisV + + + + + + $ayiCopy + + {{ + $ay.t("CopyToClipboard") + }} + + + + $ayiClone + + {{ + $ay.t("AddressCopyToPostal") + }} + + + + + {{ $ay.t("AddressTypePhysical") }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + $ayiSync + + + $ayiPlus + + + + + + + + + + + + + + + + + + diff --git a/ayanova/src/views/cust-head-offices.vue b/ayanova/src/views/cust-head-offices.vue new file mode 100644 index 00000000..798c3311 --- /dev/null +++ b/ayanova/src/views/cust-head-offices.vue @@ -0,0 +1,170 @@ + + + + + + + + + + + diff --git a/ayanova/src/views/cust-headoffices.vue b/ayanova/src/views/cust-headoffices.vue deleted file mode 100644 index bd211693..00000000 --- a/ayanova/src/views/cust-headoffices.vue +++ /dev/null @@ -1,21 +0,0 @@ - - - - - diff --git a/ayanova/tests/e2e/specs/smoke.js b/ayanova/tests/e2e/specs/smoke.js index 96528fc3..be1139f0 100644 --- a/ayanova/tests/e2e/specs/smoke.js +++ b/ayanova/tests/e2e/specs/smoke.js @@ -67,9 +67,9 @@ describe("SMOKE", () => { cy.url().should("include", "/cust-customers/1"); cy.get("[data-cy=name]"); - cy.visit("/cust-headoffices"); - cy.url().should("include", "/cust-headoffices"); - cy.get("[data-cy=underconstruction]"); + cy.visit("/cust-head-offices"); + cy.url().should("include", "/cust-head-offices"); + cy.get("[data-cy=headofficesTable]"); cy.visit("/cust-users"); cy.url().should("include", "/cust-users");