This commit is contained in:
@@ -126,7 +126,6 @@
|
||||
lg="4"
|
||||
xl="3"
|
||||
>
|
||||
selectablestatuslist: {{ selectableStatusList }}
|
||||
<v-autocomplete
|
||||
v-model="value.items[activeItemIndex].workorderItemStatusId"
|
||||
:readonly="formState.readOnly"
|
||||
@@ -180,7 +179,7 @@
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="isDeleted"
|
||||
@input="fieldValueChanged('workorderItemPriorityId')"
|
||||
:items="pvm.selectLists.woItemPriorities"
|
||||
:items="selectablePriorityList"
|
||||
item-text="name"
|
||||
item-value="id"
|
||||
: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);
|
||||
},
|
||||
selectableStatusList: function() {
|
||||
const selectedStatusId = this.value.items[this.activeItemIndex]
|
||||
const selectedId = this.value.items[this.activeItemIndex]
|
||||
.workorderItemStatusId;
|
||||
console.log("selectableStatusList:", {
|
||||
selectedStatusId: selectedStatusId,
|
||||
raw: this.pvm.selectLists.woItemStatus
|
||||
});
|
||||
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() {
|
||||
return this.pvm.formState;
|
||||
|
||||
Reference in New Issue
Block a user