install calendar
This commit is contained in:
parent
410671c397
commit
9de586cf3c
4 changed files with 1275 additions and 3 deletions
|
|
@ -16,6 +16,7 @@ const FRAPPE_ESTIMATE_UPDATE_RESPONSE_METHOD = "custom_ui.api.db.estimates.manua
|
|||
const FRAPPE_GET_JOBS_METHOD = "custom_ui.api.db.jobs.get_jobs_table_data";
|
||||
const FRAPPE_UPSERT_JOB_METHOD = "custom_ui.api.db.jobs.upsert_job";
|
||||
const FRAPPE_GET_JOB_TASK_LIST_METHOD = "custom_ui.api.db.get_job_task_list";
|
||||
const FRAPPE_GET_INSTALL_PROJECTS_METHOD = "custom_ui.api.db.jobs.get_install_projects";
|
||||
// Invoice methods
|
||||
const FRAPPE_GET_INVOICES_METHOD = "custom_ui.api.db.invoices.get_invoice_table_data";
|
||||
const FRAPPE_UPSERT_INVOICE_METHOD = "custom_ui.api.db.invoices.upsert_invoice";
|
||||
|
|
@ -98,6 +99,17 @@ class Api {
|
|||
return await this.request(FRAPPE_GET_CLIENT_NAMES_METHOD, { type });
|
||||
}
|
||||
|
||||
static async getInstallProjects(startDate, endDate) {
|
||||
return await this.request(FRAPPE_GET_INSTALL_PROJECTS_METHOD, {
|
||||
start_date: startDate,
|
||||
end_date: endDate,
|
||||
});
|
||||
}
|
||||
|
||||
static async upsertJob(data) {
|
||||
return await this.request(FRAPPE_UPSERT_JOB_METHOD, { data });
|
||||
}
|
||||
|
||||
static async getClientNames(clientName) {
|
||||
return await this.request(FRAPPE_GET_CLIENT_NAMES_METHOD, { searchTerm: clientName });
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
<ScheduleBid />
|
||||
</TabPanel>
|
||||
<TabPanel header="Install" value="1">
|
||||
<JobsCalendar />
|
||||
<InstallsCalendar />
|
||||
</TabPanel>
|
||||
<TabPanel header="Service" value="2">
|
||||
<div class="coming-soon">
|
||||
|
|
@ -56,6 +56,7 @@ import TabPanel from 'primevue/tabpanel';
|
|||
import TabPanels from 'primevue/tabpanels';
|
||||
import ScheduleBid from '../calendar/bids/ScheduleBid.vue';
|
||||
import JobsCalendar from '../calendar/jobs/JobsCalendar.vue';
|
||||
import InstallsCalendar from '../calendar/jobs/InstallsCalendar.vue';
|
||||
import { useNotificationStore } from '../../stores/notifications-primevue';
|
||||
|
||||
const notifications = useNotificationStore();
|
||||
|
|
|
|||
1200
frontend/src/components/calendar/jobs/InstallsCalendar.vue
Normal file
1200
frontend/src/components/calendar/jobs/InstallsCalendar.vue
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue