add warranties page
This commit is contained in:
parent
44d47db0ad
commit
2828c0f9c8
6 changed files with 347 additions and 66 deletions
|
|
@ -28,29 +28,35 @@ const categories = [
|
|||
},
|
||||
];
|
||||
|
||||
const items = ref([
|
||||
const createButtons = ref([
|
||||
{
|
||||
label: "Client",
|
||||
command: () => {
|
||||
frappe.new_doc("Customer");
|
||||
},
|
||||
},
|
||||
{
|
||||
label: "Estimate",
|
||||
command: () => {
|
||||
frappe.new_doc("Estimate");
|
||||
},
|
||||
},
|
||||
{
|
||||
label: "Job",
|
||||
command: () => {
|
||||
frappe.new_doc("Job");
|
||||
},
|
||||
},
|
||||
{
|
||||
label: "Estimate",
|
||||
command: () => {
|
||||
frappe.new_doc("Estimate");
|
||||
},
|
||||
},
|
||||
{
|
||||
label: "Invoice",
|
||||
command: () => {
|
||||
frappe.new_doc("Sales Invoice");
|
||||
alert("Create Invoice clicked");
|
||||
},
|
||||
},
|
||||
{
|
||||
label: "Warranty Claim",
|
||||
command: () => {
|
||||
alert("Create Warranty Claim clicked");
|
||||
},
|
||||
},
|
||||
]);
|
||||
|
|
@ -78,7 +84,7 @@ const handleCategoryClick = (category) => {
|
|||
</button>
|
||||
</template>
|
||||
<template v-else>
|
||||
<SpeedDial :model="items" direction="down" type="linear" radius="50">
|
||||
<SpeedDial :model="createButtons" direction="down" type="linear" radius="50">
|
||||
<template #button="{ toggleCallback }">
|
||||
<button
|
||||
class="sidebar-button"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue