template client page
This commit is contained in:
parent
df1df3f882
commit
f44bbbe7d4
@ -34,20 +34,20 @@ const createButtons = ref([
|
|||||||
{
|
{
|
||||||
label: "Client",
|
label: "Client",
|
||||||
command: () => {
|
command: () => {
|
||||||
modalStore.openModal("createClient");
|
router.push("/clients/new");
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "On-Site Meeting",
|
label: "On-Site Meeting",
|
||||||
command: () => {
|
command: () => {
|
||||||
modalStore.openModal("createOnsiteMeeting");
|
router.push("/onsitemeetings/new");
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Estimate",
|
label: "Estimate",
|
||||||
command: () => {
|
command: () => {
|
||||||
//frappe.new_doc("Estimate");
|
//frappe.new_doc("Estimate");
|
||||||
modalStore.openModal("createEstimate");
|
router.push("/createEstimate/new");
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -2,8 +2,20 @@
|
|||||||
<div>{{ clientId }}</div>
|
<div>{{ clientId }}</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import { onMounted, ref } from "vue";
|
||||||
|
const client = ref({});
|
||||||
defineProps({
|
defineProps({
|
||||||
clientId: String,
|
clientId: String,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
if (clientId === "new") {
|
||||||
|
// Logic for creating a new client
|
||||||
|
console.log("Creating a new client");
|
||||||
|
} else {
|
||||||
|
// Logic for fetching and displaying existing client data
|
||||||
|
console.log("Fetching data for client ID:", clientId);
|
||||||
|
}
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
<style lang="css"></style>
|
<style lang="css"></style>
|
||||||
|
|||||||
@ -18,7 +18,7 @@ const routes = [
|
|||||||
},
|
},
|
||||||
{ path: "/calendar", component: Calendar },
|
{ path: "/calendar", component: Calendar },
|
||||||
{ path: "/clients", component: Clients },
|
{ path: "/clients", component: Clients },
|
||||||
{ path: "/clients/:id", component: Client, props: true },
|
{ path: "/clients/:clientName", component: Client, props: true },
|
||||||
{ path: "/jobs", component: Jobs },
|
{ path: "/jobs", component: Jobs },
|
||||||
{ path: "/routes", component: Routes },
|
{ path: "/routes", component: Routes },
|
||||||
{ path: "/create", component: Create },
|
{ path: "/create", component: Create },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user