This commit is contained in:
2020-12-14 19:39:55 +00:00
parent f7e301d586
commit 98e83a54e1
4 changed files with 19 additions and 32 deletions

View File

@@ -15,6 +15,12 @@ export default {
if (tid.type && tid.id != null) {
switch (tid.type) {
case ayatype.Memo:
vm.$router.push({
name: "memo-edit",
params: { recordid: tid.id }
});
break;
case ayatype.Customer:
vm.$router.push({
name: "customer-edit",

View File

@@ -97,6 +97,12 @@ export default new Router({
component: () =>
import(/* webpackChunkName: "ay-common" */ "./views/home-memos.vue")
},
{
path: "/home-memos/:recordid",
name: "memo-edit",
component: () =>
import(/* webpackChunkName: "vend" */ "./views/home-memo.vue")
},
{
path: "/home-notifications",
name: "home-notifications",

View File

@@ -559,38 +559,9 @@ async function initForm(vm) {
async function fetchTranslatedText(vm) {
await window.$gz.translation.cacheTranslations([
"Memo",
"MemoName",
"MemoNotes",
"WebAddress",
"MemoPopUpNotes",
"MemoBillHeadOffice",
"HeadOffice",
"MemoTechNotes",
"MemoAccountNumber",
"MemoContact",
"MemoContactNotes",
"MemoPhone1",
"MemoPhone2",
"MemoPhone3",
"MemoPhone4",
"MemoPhone5",
"MemoEmail",
"AddressTypePhysical",
"AddressTypePostal",
"AddressCopyToPostal",
"AddressCopyToPhysical",
"Address",
"AddressPostalDeliveryAddress",
"AddressPostalCity",
"AddressPostalStateProv",
"AddressPostalCountry",
"AddressPostalPostal",
"AddressDeliveryAddress",
"AddressCity",
"AddressStateProv",
"AddressCountry",
"AddressLatitude",
"AddressLongitude",
"MemoSubject",
"MemoMessage",
"MemoToID",
"MemoCustom1",
"MemoCustom2",
"MemoCustom3",