This commit is contained in:
2021-10-07 18:04:14 +00:00
parent 4a07afde50
commit 5da888626e
5 changed files with 1176 additions and 30 deletions

View File

@@ -18,20 +18,8 @@
# Schedule form
SVC-SCHEDULE OUTSTANDING ITEMS
need ability to drag to another tech in category view
bug issue: https://github.com/vuetifyjs/vuetify/issues/11616
works in chrome but not ff
docs notes
unassigned slot and how it works
visible if there are any that day in team view otherwise doesn't show
team view vs day view
how to use the controls etc
small screen view vs larger
Drill down to schedule by user so can click through user to schedule for *that* user alone, (brings up home-schedule maybe or I guess a copy would be easiest)
@@ -46,6 +34,15 @@
CUST-SCHEDULE
schedule docs notes
unassigned slot and how it works
visible if there are any that day in team view otherwise doesn't show
team view vs day view
how to use the controls etc
small screen view vs larger
Customer work order form / view / open???
Customer CSR form has a bunch of todo in the template, WTF?
Dashboard / widgets

View File

@@ -283,6 +283,12 @@ export default new Router({
component: () =>
import(/* webpackChunkName: "svc" */ "./views/svc-schedule.vue")
},
{
path: "/svc-schedule-user/:recordid/:name",
name: "svc-schedule-user",
component: () =>
import(/* webpackChunkName: "svc" */ "./views/svc-schedule-user.vue")
},
{
path: "/svc-workorders",
name: "svc-workorders",

File diff suppressed because it is too large Load Diff

View File

@@ -1,9 +1,6 @@
<template>
<div v-if="formState.ready" v-resize="onResize" class="my-n8">
<gz-error :error-box-message="formState.errorBoxMessage"></gz-error>
<!-- {{ categories }}<br />
{{ events }} -->
<v-sheet height="64">
<v-toolbar flat dense class="ml-n3">
<v-btn text :small="isXS" :large="issmAndUp" @click="setToday">
@@ -118,16 +115,14 @@
category-show-all
:categories="categories"
category-text="name"
category-for-invalid="????"
category-for-invalid="NOT VALID"
>
<template v-slot:category="{ category }">
<div @click="openUserSchedule(category.id)" class="text-center">
<div @click="openUserSchedule(category)" class="text-center">
<v-btn text class="text-none">{{ category.name }}</v-btn>
{{ category.id }}
</div>
</template>
<!-- <div class="v-calendar-category__category">Clarabelle Turcotte - SubContractor</div> -->
<template v-slot:event="{ event, eventSummary }">
<div class="v-event-draggable">
<span
@@ -165,12 +160,6 @@
>{{ $ay.t("WorkOrder") }}</v-btn
>
</v-col>
<!-- <v-col cols="12">
<v-btn x-large block @click="newItem($ay.ayt().Reminder)"
><v-icon large left>$ayiStickyNote</v-icon
>{{ $ay.t("Reminder") }}</v-btn
>
</v-col> -->
</v-card-text>
<v-card-actions>
<v-btn text @click="cancelAddNew" color="primary">{{
@@ -448,8 +437,14 @@ export default {
async refresh() {
await this.fetchEvents({ start: null, end: null });
},
openUserSchedule: function(id) {
console.log("STUB OPEN USER SCHEDULE FOR " + id);
openUserSchedule: function(category) {
this.$router.push({
name: "svc-schedule-user",
params: {
recordid: category.id,
name: category.name
}
});
},
openObject: function(type, id) {
window.$gz.eventBus.$emit("openobject", {
@@ -913,7 +908,6 @@ export default {
);
},
isXS() {
//console.log(this.$vuetify.breakpoint);
return this.$vuetify.breakpoint.xs;
},
issmAndUp() {

View File

@@ -35,7 +35,7 @@ export default {
);
this.aForType = window.$gz.util.stringToIntOrNull(this.$route.params.aType);
if (this.objectId && this.objectId != 0 && this.aForType) {
if (this.objectId != null && this.aForType) {
//OBJECTID,AYATYPE
this.clientCriteria = `${this.objectId},${this.aForType}`;