diff --git a/ayanova/src/components/work-order-items.vue b/ayanova/src/components/work-order-items.vue index 1e27ae60..75016879 100644 --- a/ayanova/src/components/work-order-items.vue +++ b/ayanova/src/components/work-order-items.vue @@ -126,7 +126,6 @@ lg="4" xl="3" > - selectablestatuslist: {{ selectableStatusList }} 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;