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

@@ -19,21 +19,9 @@
SVC-SCHEDULE OUTSTANDING ITEMS 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) 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)
this will solve issue when people say "Why can't I view month but for one user instead?" this will solve issue when people say "Why can't I view month but for one user instead?"
probably easiest from both the User edit form for admin and from the svc-schedule form (maybe a link on their names at top?? Opens same view currently selected but for that *one* user) probably easiest from both the User edit form for admin and from the svc-schedule form (maybe a link on their names at top?? Opens same view currently selected but for that *one* user)
@@ -46,6 +34,15 @@
CUST-SCHEDULE 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 work order form / view / open???
Customer CSR form has a bunch of todo in the template, WTF? Customer CSR form has a bunch of todo in the template, WTF?
Dashboard / widgets Dashboard / widgets

View File

@@ -283,6 +283,12 @@ export default new Router({
component: () => component: () =>
import(/* webpackChunkName: "svc" */ "./views/svc-schedule.vue") 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", path: "/svc-workorders",
name: "svc-workorders", name: "svc-workorders",

File diff suppressed because it is too large Load Diff

View File

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

View File

@@ -35,7 +35,7 @@ export default {
); );
this.aForType = window.$gz.util.stringToIntOrNull(this.$route.params.aType); 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 //OBJECTID,AYATYPE
this.clientCriteria = `${this.objectId},${this.aForType}`; this.clientCriteria = `${this.objectId},${this.aForType}`;