This commit is contained in:
@@ -414,20 +414,24 @@ export default {
|
||||
params: { recordid: tid.id }
|
||||
});
|
||||
break;
|
||||
case ayatype.QuoteStatus:
|
||||
vm.$router.push({
|
||||
name: "svc-quote-status-edit",
|
||||
params: { recordid: tid.id }
|
||||
});
|
||||
break;
|
||||
case ayatype.WorkOrderStatus:
|
||||
vm.$router.push({
|
||||
name: "svc-work-order-status-edit",
|
||||
params: { recordid: tid.id }
|
||||
});
|
||||
break;
|
||||
|
||||
case ayatype.WorkOrderItemStatus:
|
||||
vm.$router.push({
|
||||
name: "svc-work-order-item-status-edit",
|
||||
params: { recordid: tid.id }
|
||||
});
|
||||
break;
|
||||
|
||||
case ayatype.WorkOrderItemPriority:
|
||||
vm.$router.push({
|
||||
name: "svc-work-order-item-priorities-edit",
|
||||
|
||||
@@ -127,7 +127,7 @@
|
||||
//
|
||||
const FORM_KEY = "svc-quote-status-edit";
|
||||
const API_BASE_URL = "quote-status/";
|
||||
const FORM_CUSTOM_TEMPLATE_KEY = "WorkOrderStatus"; //<-- Should always be CoreBizObject AyaType name here where possible
|
||||
const FORM_CUSTOM_TEMPLATE_KEY = "QuoteStatus"; //<-- Should always be CoreBizObject AyaType name here where possible
|
||||
|
||||
export default {
|
||||
async created() {
|
||||
@@ -136,7 +136,7 @@ export default {
|
||||
try {
|
||||
await initForm(vm);
|
||||
|
||||
vm.rights = window.$gz.role.getRights(window.$gz.type.WorkOrderStatus);
|
||||
vm.rights = window.$gz.role.getRights(window.$gz.type.QuoteStatus);
|
||||
vm.formState.readOnly = !vm.rights.change;
|
||||
window.$gz.eventBus.$on("menu-click", clickHandler);
|
||||
|
||||
@@ -212,7 +212,7 @@ export default {
|
||||
serverError: {}
|
||||
},
|
||||
rights: window.$gz.role.defaultRightsObject(),
|
||||
ayaType: window.$gz.type.WorkOrderStatus
|
||||
ayaType: window.$gz.type.QuoteStatus
|
||||
};
|
||||
},
|
||||
//WATCHERS
|
||||
@@ -458,10 +458,10 @@ function generateMenu(vm) {
|
||||
isMain: false,
|
||||
readOnly: vm.formState.readOnly,
|
||||
icon: "$ayiFlag",
|
||||
title: "WorkOrderStatus",
|
||||
title: "QuoteQuoteStatusType",
|
||||
helpUrl: "svc-quote-status",
|
||||
formData: {
|
||||
ayaType: window.$gz.type.WorkOrderStatus,
|
||||
ayaType: window.$gz.type.QuoteStatus,
|
||||
recordId: vm.$route.params.recordid,
|
||||
formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY,
|
||||
recordName: vm.obj.name
|
||||
@@ -495,7 +495,7 @@ function generateMenu(vm) {
|
||||
|
||||
menuOptions.menuItems.push({ divider: true, inset: false });
|
||||
menuOptions.menuItems.push({
|
||||
title: "WorkOrderStatusList",
|
||||
title: "QuoteStatusList",
|
||||
icon: "$ayiFlag",
|
||||
key: FORM_KEY + ":statuslist",
|
||||
vm: vm
|
||||
@@ -520,7 +520,7 @@ async function initForm(vm) {
|
||||
//
|
||||
async function fetchTranslatedText() {
|
||||
await window.$gz.translation.cacheTranslations([
|
||||
"QuoteStatus",
|
||||
"QuoteQuoteStatusType",
|
||||
"StatusName",
|
||||
"StatusCompleted",
|
||||
"StatusLocked",
|
||||
|
||||
Reference in New Issue
Block a user