diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 63ec420c..9f3a0a8d 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -4,7 +4,7 @@ MISC ITEMS THAT CAME UP - +todo: rename translation for unitmodel upc to "bar code" todo: Smoke test for servicebank todo: v8migrate could be dangerous with a non-empty Database diff --git a/ayanova/src/api/open-object-handler.js b/ayanova/src/api/open-object-handler.js index ec4b1033..d2ae7c45 100644 --- a/ayanova/src/api/open-object-handler.js +++ b/ayanova/src/api/open-object-handler.js @@ -213,12 +213,12 @@ export default { params: { recordid: tid.id } }); break; - // case ayatype.ServiceBank: - // vm.$router.push({ - // name: "service-bank-edit", - // params: { recordid: tid.id } - // }); - // break; + case ayatype.UnitModel: + vm.$router.push({ + name: "unit-model-edit", + params: { recordid: tid.id } + }); + break; default: window.$gz.eventBus.$emit( diff --git a/ayanova/src/router.js b/ayanova/src/router.js index 9a85fcd3..d6f83bc2 100644 --- a/ayanova/src/router.js +++ b/ayanova/src/router.js @@ -328,6 +328,12 @@ export default new Router({ component: () => import(/* webpackChunkName: "svc" */ "./views/svc-unit-models.vue") }, + { + path: "/svc-unit-models/:recordid", + name: "unit-model-edit", + component: () => + import(/* webpackChunkName: "svc" */ "./views/svc-unit-model.vue") + }, { path: "/svc-loaners", name: "svc-loaners", diff --git a/ayanova/src/views/acc-service-banks.vue b/ayanova/src/views/acc-service-banks.vue index 6546ddd9..e8cd939b 100644 --- a/ayanova/src/views/acc-service-banks.vue +++ b/ayanova/src/views/acc-service-banks.vue @@ -224,7 +224,6 @@ function generateMenu(vm) { }); } - window.$gz.eventBus.$emit("menu-change", menuOptions); } diff --git a/ayanova/src/views/svc-unit-model.vue b/ayanova/src/views/svc-unit-model.vue new file mode 100644 index 00000000..805e8564 --- /dev/null +++ b/ayanova/src/views/svc-unit-model.vue @@ -0,0 +1,851 @@ + + + diff --git a/ayanova/src/views/svc-unit-models.vue b/ayanova/src/views/svc-unit-models.vue index 7e66251d..8d8dbb39 100644 --- a/ayanova/src/views/svc-unit-models.vue +++ b/ayanova/src/views/svc-unit-models.vue @@ -1,21 +1,173 @@