This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
1149
ayanova/src/views/svc-schedule-user.vue
Normal file
1149
ayanova/src/views/svc-schedule-user.vue
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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() {
|
||||
|
||||
@@ -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}`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user