This commit is contained in:
@@ -126,7 +126,6 @@
|
|||||||
lg="4"
|
lg="4"
|
||||||
xl="3"
|
xl="3"
|
||||||
>
|
>
|
||||||
selectablestatuslist: {{ selectableStatusList }}
|
|
||||||
<v-autocomplete
|
<v-autocomplete
|
||||||
v-model="value.items[activeItemIndex].workorderItemStatusId"
|
v-model="value.items[activeItemIndex].workorderItemStatusId"
|
||||||
:readonly="formState.readOnly"
|
:readonly="formState.readOnly"
|
||||||
@@ -180,7 +179,7 @@
|
|||||||
:readonly="formState.readOnly"
|
:readonly="formState.readOnly"
|
||||||
:disabled="isDeleted"
|
:disabled="isDeleted"
|
||||||
@input="fieldValueChanged('workorderItemPriorityId')"
|
@input="fieldValueChanged('workorderItemPriorityId')"
|
||||||
:items="pvm.selectLists.woItemPriorities"
|
:items="selectablePriorityList"
|
||||||
item-text="name"
|
item-text="name"
|
||||||
item-value="id"
|
item-value="id"
|
||||||
:label="$ay.t('WorkOrderItemPriorityID')"
|
:label="$ay.t('WorkOrderItemPriorityID')"
|
||||||
@@ -496,16 +495,18 @@ and it's probably not a big list to fill anyway
|
|||||||
.sort((a, b) => a.sequence - b.sequence);
|
.sort((a, b) => a.sequence - b.sequence);
|
||||||
},
|
},
|
||||||
selectableStatusList: function() {
|
selectableStatusList: function() {
|
||||||
const selectedStatusId = this.value.items[this.activeItemIndex]
|
const selectedId = this.value.items[this.activeItemIndex]
|
||||||
.workorderItemStatusId;
|
.workorderItemStatusId;
|
||||||
console.log("selectableStatusList:", {
|
|
||||||
selectedStatusId: selectedStatusId,
|
|
||||||
raw: this.pvm.selectLists.woItemStatus
|
|
||||||
});
|
|
||||||
return this.pvm.selectLists.woItemStatus.filter(s => {
|
return this.pvm.selectLists.woItemStatus.filter(s => {
|
||||||
s.active == true || s.id == selectedStatusId;
|
return s.active == true || s.id == selectedId;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
selectablePriorityList: function() {
|
||||||
|
const selectedId = this.value.items[this.activeItemIndex]
|
||||||
|
.workorderItemPriorityId;
|
||||||
|
return this.pvm.selectLists.woItemPriorities.filter(s => {
|
||||||
|
return s.active == true || s.id == selectedId;
|
||||||
});
|
});
|
||||||
//words.filter(word => word.length > 6);
|
|
||||||
},
|
},
|
||||||
formState: function() {
|
formState: function() {
|
||||||
return this.pvm.formState;
|
return this.pvm.formState;
|
||||||
|
|||||||
Reference in New Issue
Block a user