This commit is contained in:
@@ -76,7 +76,7 @@
|
||||
item-text="name"
|
||||
item-value="id"
|
||||
dense
|
||||
:label="$ay.t('NewStatus')"
|
||||
:label="$ay.t('NewStatus')"
|
||||
>
|
||||
<template v-slot:item="data">
|
||||
<v-list-item-avatar>
|
||||
@@ -112,7 +112,6 @@
|
||||
</v-autocomplete>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
@@ -130,17 +129,6 @@
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
</v-row>
|
||||
|
||||
|
||||
<!--
|
||||
fixup status control
|
||||
status control should require click to open dialog which shows list of all status prior and allows to add then close to view
|
||||
this way it's clear how to change, less confusing than now and easy to get at the list
|
||||
|
||||
todo: reduce vertical, end confusion, hide combo and instead make it a popup dialog to select so it's clear something funky is happening
|
||||
maybe, it's the same dialog as the view history dialog, just put an edit symbol button after the current state and that opens the whole shitteree
|
||||
todo: view state historya button to show more info which pops up a dialog showing the entire state history in a data table
|
||||
-->
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
@@ -152,10 +140,11 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
selectedStatus: null,
|
||||
openDialog: false,
|
||||
timeZoneName: window.$gz.locale.getResolvedTimeZoneName(),
|
||||
languageName: window.$gz.locale.getResolvedLanguage(),
|
||||
hour12: window.$gz.locale.getHour12()
|
||||
openDialog: false
|
||||
// ,
|
||||
// timeZoneName: window.$gz.locale.getResolvedTimeZoneName(),
|
||||
// languageName: window.$gz.locale.getResolvedLanguage(),
|
||||
// hour12: window.$gz.locale.getHour12()
|
||||
};
|
||||
},
|
||||
|
||||
@@ -231,9 +220,9 @@ export default {
|
||||
ret.user = state.userViz;
|
||||
ret.timeStamp = window.$gz.locale.utcDateToShortDateAndTimeLocalized(
|
||||
state.created,
|
||||
this.timeZoneName,
|
||||
this.languageName,
|
||||
this.hour12
|
||||
this.pvm.timeZoneName,
|
||||
this.pvm.languageName,
|
||||
this.pvm.hour12
|
||||
);
|
||||
return ret;
|
||||
},
|
||||
@@ -302,231 +291,4 @@ export default {
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
{
|
||||
"data": {
|
||||
"all": [
|
||||
{
|
||||
"id": 9,
|
||||
"concurrency": 7790330,
|
||||
"name": "Closed",
|
||||
"active": true,
|
||||
"notes": null,
|
||||
"color": "#f2f2f2",
|
||||
"selectRoles": 10,
|
||||
"removeRoles": 10,
|
||||
"completed": true,
|
||||
"locked": true
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"concurrency": 7790306,
|
||||
"name": "Manager approval required",
|
||||
"active": true,
|
||||
"notes": "Use to lock workorder and wait for approval from manager",
|
||||
"color": "#c00000",
|
||||
"selectRoles": 124927,
|
||||
"removeRoles": 10,
|
||||
"completed": false,
|
||||
"locked": true
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"concurrency": 7790309,
|
||||
"name": "Needs to be assigned",
|
||||
"active": true,
|
||||
"notes": "Waiting for technicians to be assigned to this work",
|
||||
"color": "#80ffff",
|
||||
"selectRoles": 124927,
|
||||
"removeRoles": 124927,
|
||||
"completed": false,
|
||||
"locked": false
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"concurrency": 7790312,
|
||||
"name": "Scheduled",
|
||||
"active": true,
|
||||
"notes": "Scheduled / ready for service",
|
||||
"color": "#00ff00",
|
||||
"selectRoles": 124927,
|
||||
"removeRoles": 124927,
|
||||
"completed": false,
|
||||
"locked": false
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"concurrency": 7790315,
|
||||
"name": "Service completed",
|
||||
"active": true,
|
||||
"notes": null,
|
||||
"color": "#ff0000",
|
||||
"selectRoles": 124927,
|
||||
"removeRoles": 10,
|
||||
"completed": true,
|
||||
"locked": true
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"concurrency": 7790318,
|
||||
"name": "Waiting on customer approval",
|
||||
"active": true,
|
||||
"notes": null,
|
||||
"color": "#8080ff",
|
||||
"selectRoles": 124927,
|
||||
"removeRoles": 124927,
|
||||
"completed": false,
|
||||
"locked": true
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"concurrency": 7790321,
|
||||
"name": "Waiting on parts",
|
||||
"active": true,
|
||||
"notes": null,
|
||||
"color": "#c0c000",
|
||||
"selectRoles": 124927,
|
||||
"removeRoles": 124927,
|
||||
"completed": false,
|
||||
"locked": false
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"concurrency": 7790324,
|
||||
"name": "Waiting on warranty return",
|
||||
"active": true,
|
||||
"notes": null,
|
||||
"color": "#ff00ff",
|
||||
"selectRoles": 124927,
|
||||
"removeRoles": 124927,
|
||||
"completed": false,
|
||||
"locked": false
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"concurrency": 7790327,
|
||||
"name": "Waiting to be invoiced",
|
||||
"active": true,
|
||||
"notes": null,
|
||||
"color": "#ffc0c0",
|
||||
"selectRoles": 124927,
|
||||
"removeRoles": 32842,
|
||||
"completed": false,
|
||||
"locked": true
|
||||
}
|
||||
],
|
||||
"allowed": [
|
||||
{
|
||||
"id": 9,
|
||||
"concurrency": 7790330,
|
||||
"name": "Closed",
|
||||
"active": true,
|
||||
"notes": null,
|
||||
"color": "#f2f2f2",
|
||||
"selectRoles": 10,
|
||||
"removeRoles": 10,
|
||||
"completed": true,
|
||||
"locked": true
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"concurrency": 7790306,
|
||||
"name": "Manager approval required",
|
||||
"active": true,
|
||||
"notes": "Use to lock workorder and wait for approval from manager",
|
||||
"color": "#c00000",
|
||||
"selectRoles": 124927,
|
||||
"removeRoles": 10,
|
||||
"completed": false,
|
||||
"locked": true
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"concurrency": 7790309,
|
||||
"name": "Needs to be assigned",
|
||||
"active": true,
|
||||
"notes": "Waiting for technicians to be assigned to this work",
|
||||
"color": "#80ffff",
|
||||
"selectRoles": 124927,
|
||||
"removeRoles": 124927,
|
||||
"completed": false,
|
||||
"locked": false
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"concurrency": 7790312,
|
||||
"name": "Scheduled",
|
||||
"active": true,
|
||||
"notes": "Scheduled / ready for service",
|
||||
"color": "#00ff00",
|
||||
"selectRoles": 124927,
|
||||
"removeRoles": 124927,
|
||||
"completed": false,
|
||||
"locked": false
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"concurrency": 7790315,
|
||||
"name": "Service completed",
|
||||
"active": true,
|
||||
"notes": null,
|
||||
"color": "#ff0000",
|
||||
"selectRoles": 124927,
|
||||
"removeRoles": 10,
|
||||
"completed": true,
|
||||
"locked": true
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"concurrency": 7790318,
|
||||
"name": "Waiting on customer approval",
|
||||
"active": true,
|
||||
"notes": null,
|
||||
"color": "#8080ff",
|
||||
"selectRoles": 124927,
|
||||
"removeRoles": 124927,
|
||||
"completed": false,
|
||||
"locked": true
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"concurrency": 7790321,
|
||||
"name": "Waiting on parts",
|
||||
"active": true,
|
||||
"notes": null,
|
||||
"color": "#c0c000",
|
||||
"selectRoles": 124927,
|
||||
"removeRoles": 124927,
|
||||
"completed": false,
|
||||
"locked": false
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"concurrency": 7790324,
|
||||
"name": "Waiting on warranty return",
|
||||
"active": true,
|
||||
"notes": null,
|
||||
"color": "#ff00ff",
|
||||
"selectRoles": 124927,
|
||||
"removeRoles": 124927,
|
||||
"completed": false,
|
||||
"locked": false
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"concurrency": 7790327,
|
||||
"name": "Waiting to be invoiced",
|
||||
"active": true,
|
||||
"notes": null,
|
||||
"color": "#ffc0c0",
|
||||
"selectRoles": 124927,
|
||||
"removeRoles": 32842,
|
||||
"completed": false,
|
||||
"locked": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
*/
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user