This commit is contained in:
@@ -121,7 +121,7 @@
|
|||||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||||
<v-autocomplete
|
<v-autocomplete
|
||||||
v-model="value.items[activeItemIndex].workorderItemStatusId"
|
v-model="value.items[activeItemIndex].workorderItemStatusId"
|
||||||
@input="fieldValueChanged('workorderItemStatusId')"
|
@input="fieldValueChanged('workorderItemStatusId')"
|
||||||
:items="pvm.selectLists.woItemStatus"
|
:items="pvm.selectLists.woItemStatus"
|
||||||
item-text="name"
|
item-text="name"
|
||||||
item-value="id"
|
item-value="id"
|
||||||
@@ -155,6 +155,42 @@
|
|||||||
</v-autocomplete>
|
</v-autocomplete>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
|
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||||
|
<v-autocomplete
|
||||||
|
v-model="value.items[activeItemIndex].workorderItemPriorityId"
|
||||||
|
@input="fieldValueChanged('workorderItemPriorityId')"
|
||||||
|
:items="pvm.selectLists.woItemPriorities"
|
||||||
|
item-text="name"
|
||||||
|
item-value="id"
|
||||||
|
:label="$ay.t('WorkOrderItemPriorityID')"
|
||||||
|
prepend-icon="$ayiEdit"
|
||||||
|
@click:prepend="handleEditItemPriorityClick()"
|
||||||
|
>
|
||||||
|
<template v-slot:selection="{ item }">
|
||||||
|
<v-icon class="mr-3" :color="item.color">$ayiFireAlt</v-icon
|
||||||
|
>{{ item.name }}
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template v-slot:item="{ item }">
|
||||||
|
<v-list-item-avatar>
|
||||||
|
<v-icon :color="item.color">$ayiFireAlt</v-icon>
|
||||||
|
</v-list-item-avatar>
|
||||||
|
<v-list-item-content>
|
||||||
|
<v-list-item-title
|
||||||
|
><span
|
||||||
|
:class="
|
||||||
|
item.active
|
||||||
|
? ''
|
||||||
|
: 'disabled--text text-decoration-line-through'
|
||||||
|
"
|
||||||
|
>{{ item.name }}</span
|
||||||
|
></v-list-item-title
|
||||||
|
>
|
||||||
|
</v-list-item-content>
|
||||||
|
</template>
|
||||||
|
</v-autocomplete>
|
||||||
|
</v-col>
|
||||||
|
|
||||||
//status WorkOrderItemWorkOrderStatusID WorkorderItemStatusId //priority
|
//status WorkOrderItemWorkOrderStatusID WorkorderItemStatusId //priority
|
||||||
WorkOrderItemPriorityID WorkorderItemPriorityId //requestdate
|
WorkOrderItemPriorityID WorkorderItemPriorityId //requestdate
|
||||||
WorkOrderItemRequestDate RequestDate //warrantyservice
|
WorkOrderItemRequestDate RequestDate //warrantyservice
|
||||||
@@ -278,6 +314,12 @@ export default {
|
|||||||
id: this.value.items[this.activeItemIndex].workorderItemStatusId
|
id: this.value.items[this.activeItemIndex].workorderItemStatusId
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
handleEditItemPriorityClick: function() {
|
||||||
|
window.$gz.eventBus.$emit("openobject", {
|
||||||
|
type: window.$gz.type.WorkOrderItemPriority,
|
||||||
|
id: this.value.items[this.activeItemIndex].workorderItemPriorityId
|
||||||
|
});
|
||||||
|
},
|
||||||
form() {
|
form() {
|
||||||
return window.$gz.form;
|
return window.$gz.form;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -124,6 +124,7 @@ import {
|
|||||||
faFileVideo,
|
faFileVideo,
|
||||||
faFileWord,
|
faFileWord,
|
||||||
faFilter,
|
faFilter,
|
||||||
|
faFireAlt,
|
||||||
faFlag,
|
faFlag,
|
||||||
faFolder,
|
faFolder,
|
||||||
faForward,
|
faForward,
|
||||||
@@ -304,6 +305,7 @@ library.add(
|
|||||||
faFileVideo,
|
faFileVideo,
|
||||||
faFileWord,
|
faFileWord,
|
||||||
faFilter,
|
faFilter,
|
||||||
|
faFireAlt,
|
||||||
faFlag,
|
faFlag,
|
||||||
faFolder,
|
faFolder,
|
||||||
faForward,
|
faForward,
|
||||||
@@ -826,6 +828,12 @@ const CUSTOM_ICONS = {
|
|||||||
icon: ["fas", "filter"]
|
icon: ["fas", "filter"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
ayiFireAlt: {
|
||||||
|
component: FontAwesomeIcon,
|
||||||
|
props: {
|
||||||
|
icon: ["fas", "fire-alt"]
|
||||||
|
}
|
||||||
|
},
|
||||||
ayiFlag: {
|
ayiFlag: {
|
||||||
component: FontAwesomeIcon,
|
component: FontAwesomeIcon,
|
||||||
props: {
|
props: {
|
||||||
|
|||||||
Reference in New Issue
Block a user