From bdc9f18fea9bcbd10d7654d203be00ddb6656c7d Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 5 May 2021 19:39:35 +0000 Subject: [PATCH] --- ayanova/src/components/work-order-items.vue | 24 +++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/ayanova/src/components/work-order-items.vue b/ayanova/src/components/work-order-items.vue index 3c22276d..1e27ae60 100644 --- a/ayanova/src/components/work-order-items.vue +++ b/ayanova/src/components/work-order-items.vue @@ -126,12 +126,13 @@ lg="4" xl="3" > + selectablestatuslist: {{ selectableStatusList }} a.sequence - b.sequence); }, + selectableStatusList: function() { + const selectedStatusId = 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; + }); + //words.filter(word => word.length > 6); + }, formState: function() { return this.pvm.formState; }, @@ -520,9 +533,8 @@ and it's probably not a big list to fill anyway } } -//TODO: Function status name from woitemstatusid -//and priority same -//this.pvm.pickLists.woItemStatus.find(x=>x.id==x.workorderItemStatusId) - + //TODO: Function status name from woitemstatusid + //and priority same + //this.pvm.pickLists.woItemStatus.find(x=>x.id==x.workorderItemStatusId) };