This commit is contained in:
@@ -372,10 +372,14 @@ CURRENTLY DOING: workorder round two electric boogaloo
|
||||
basics first then increasingly esoteric features
|
||||
|
||||
Testing:
|
||||
Be sure to test with multiple subscribers and also inactive subscribers to ensure it does what it says on the box
|
||||
status changed to specific status immediate notification
|
||||
complete by overdue - make sure that contract sets complete by date properly and that it works with notification when it's changed
|
||||
status age, stuck in status
|
||||
|
||||
|
||||
todo: notify event list table needs to show status of workorder (all fields) ideally
|
||||
otherwise if you have multiple wostatusage notifications they all appear the same
|
||||
|
||||
todo 3: notification
|
||||
Go through all notification types and pick out relevant ones, paste here in a list then implement one by one and test each
|
||||
|
||||
@@ -22,7 +22,43 @@
|
||||
></v-select>
|
||||
</v-col>
|
||||
<v-col v-if="showWoStatus" cols="12" sm="6" lg="4" xl="3">
|
||||
todo: idValue here for wostatus
|
||||
<v-autocomplete
|
||||
v-model="obj.idValue"
|
||||
:items="selectLists.wostatus"
|
||||
item-text="name"
|
||||
item-value="id"
|
||||
:label="$ay.t('WorkOrderStatus')"
|
||||
>
|
||||
<template v-slot:item="data">
|
||||
<v-list-item-avatar>
|
||||
<v-icon :color="data.item.color">$ayiFlag</v-icon>
|
||||
</v-list-item-avatar>
|
||||
<v-list-item-content>
|
||||
<v-list-item-title
|
||||
><span class="text-subtitle-2">{{ data.item.name }}</span
|
||||
><v-icon
|
||||
small
|
||||
color="disabled"
|
||||
class="ml-2"
|
||||
v-if="data.item.locked"
|
||||
>$ayiLock</v-icon
|
||||
>
|
||||
<v-icon
|
||||
color="disabled"
|
||||
class="ml-1"
|
||||
small
|
||||
v-if="data.item.completed"
|
||||
>$ayiCheckCircle</v-icon
|
||||
></v-list-item-title
|
||||
>
|
||||
|
||||
<v-list-item-subtitle>
|
||||
{{ data.item.notes }}</v-list-item-subtitle
|
||||
>
|
||||
</v-list-item-content>
|
||||
<v-list-item-action> </v-list-item-action>
|
||||
</template>
|
||||
</v-autocomplete>
|
||||
</v-col>
|
||||
<v-col v-if="showQuoteStatus" cols="12" sm="6" lg="4" xl="3">
|
||||
todo: idValue here for quotestatus
|
||||
@@ -201,6 +237,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
selectLists: {
|
||||
wostatus: [],
|
||||
eventTypes: [],
|
||||
deliveryMethods: [],
|
||||
coreAyaTypes: []
|
||||
@@ -703,7 +740,8 @@ async function fetchTranslatedText(vm) {
|
||||
"NotifyDeliveryAddress",
|
||||
"tags",
|
||||
"Duration",
|
||||
"TaggedWith"
|
||||
"TaggedWith",
|
||||
"WorkOrderStatus"
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -713,7 +751,7 @@ async function fetchTranslatedText(vm) {
|
||||
async function populateSelectionLists(vm) {
|
||||
//ensure the pick lists required are pre-fetched
|
||||
await window.$gz.enums.fetchEnumList("NotifyEventType");
|
||||
let tempEventTypes = window.$gz.enums.getSelectionList("NotifyEventType");
|
||||
const tempEventTypes = window.$gz.enums.getSelectionList("NotifyEventType");
|
||||
if (window.$gz.store.getters.isOutsideUser) {
|
||||
vm.selectLists.eventTypes = tempEventTypes.filter(
|
||||
z => z.id == 6 || z.id == 7 || z.id == 21 || z.id == 30 || z.id == 31
|
||||
@@ -731,5 +769,13 @@ async function populateSelectionLists(vm) {
|
||||
|
||||
await window.$gz.enums.fetchEnumList("coreview");
|
||||
vm.selectLists.coreAyaTypes = window.$gz.enums.getSelectionList("coreview");
|
||||
|
||||
const res = await window.$gz.api.get("work-order-status/list");
|
||||
if (res.error) {
|
||||
vm.formState.serverError = res.error;
|
||||
window.$gz.form.setErrorBoxErrors(vm);
|
||||
} else {
|
||||
vm.selectLists.wostatus = res.data.all;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user