This commit is contained in:
2021-08-20 23:12:37 +00:00
parent f2a0f12bcc
commit 1c6b6716dc
7 changed files with 128 additions and 63 deletions

View File

@@ -470,7 +470,7 @@ export default {
case window.$gz.type.PMTemplateItem:
return "$ayiStamp";
case window.$gz.type.Project:
return "$ayiLayerGroup";
return "$ayiProjectDiagram";
case window.$gz.type.PurchaseOrder:
return "$ayiTruckLoading";
case window.$gz.type.Quote:

View File

@@ -1405,6 +1405,26 @@ async function clickHandler(menuItem) {
}
});
break;
case "QuoteList":
m.vm.$router.push({
name: "svc-quotes",
params: {
aType: m.vm.ayaType,
objectId: m.vm.obj.id,
name: m.vm.obj.name
}
});
break;
case "PMList":
m.vm.$router.push({
name: "svc-pms",
params: {
aType: m.vm.ayaType,
objectId: m.vm.obj.id,
name: m.vm.obj.name
}
});
break;
case "UnitList":
m.vm.$router.push({
name: "svc-units",

View File

@@ -738,6 +738,26 @@ async function clickHandler(menuItem) {
}
});
break;
case "QuoteList":
m.vm.$router.push({
name: "svc-quote-item-parts",
params: {
aType: m.vm.ayaType,
objectId: m.vm.obj.id,
name: m.vm.obj.partNumber
}
});
break;
case "PMList":
m.vm.$router.push({
name: "svc-pm-item-parts",
params: {
aType: m.vm.ayaType,
objectId: m.vm.obj.id,
name: m.vm.obj.partNumber
}
});
break;
default:
window.$gz.eventBus.$emit(
"notify-warning",

View File

@@ -822,6 +822,26 @@ async function clickHandler(menuItem) {
}
});
break;
case "QuoteList":
m.vm.$router.push({
name: "svc-quote-item-units",
params: {
aType: m.vm.ayaType,
objectId: m.vm.obj.id,
name: m.vm.obj.name
}
});
break;
case "PMList":
m.vm.$router.push({
name: "svc-pm-item-units",
params: {
aType: m.vm.ayaType,
objectId: m.vm.obj.id,
name: m.vm.obj.name
}
});
break;
default:
window.$gz.eventBus.$emit(
"notify-warning",
@@ -920,19 +940,19 @@ function generateMenu(vm) {
vm: vm
});
// menuOptions.menuItems.push({
// title: "QuoteList",
// icon: "$ayiPencilAlt",
// key: FORM_KEY + ":QuoteList",
// vm: vm
// });
menuOptions.menuItems.push({
title: "QuoteList",
icon: "$ayiPencilAlt",
key: FORM_KEY + ":QuoteList",
vm: vm
});
// menuOptions.menuItems.push({
// title: "PMList",
// icon: "$ayiBusinessTime",
// key: FORM_KEY + ":PMList",
// vm: vm
// });
menuOptions.menuItems.push({
title: "PMList",
icon: "$ayiBusinessTime",
key: FORM_KEY + ":PMList",
vm: vm
});
//--- /show all ---
menuOptions.menuItems.push({ divider: true, inset: false });

View File

@@ -557,6 +557,26 @@ async function clickHandler(menuItem) {
}
});
break;
case "QuoteList":
m.vm.$router.push({
name: "svc-quotes",
params: {
aType: m.vm.ayaType,
objectId: m.vm.obj.id,
name: m.vm.obj.name
}
});
break;
case "PMList":
m.vm.$router.push({
name: "svc-pms",
params: {
aType: m.vm.ayaType,
objectId: m.vm.obj.id,
name: m.vm.obj.name
}
});
break;
default:
window.$gz.eventBus.$emit(
"notify-warning",

View File

@@ -1281,6 +1281,26 @@ async function clickHandler(menuItem) {
}
});
break;
case "QuoteList":
m.vm.$router.push({
name: "svc-quote-item-units",
params: {
aType: m.vm.ayaType,
objectId: m.vm.obj.id,
name: m.vm.obj.serial
}
});
break;
case "PMList":
m.vm.$router.push({
name: "svc-pm-item-units",
params: {
aType: m.vm.ayaType,
objectId: m.vm.obj.id,
name: m.vm.obj.serial
}
});
break;
default:
window.$gz.eventBus.$emit(
"notify-warning",