This commit is contained in:
@@ -126,12 +126,13 @@
|
|||||||
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"
|
||||||
:disabled="isDeleted"
|
:disabled="isDeleted"
|
||||||
@input="fieldValueChanged('workorderItemStatusId')"
|
@input="fieldValueChanged('workorderItemStatusId')"
|
||||||
:items="pvm.selectLists.woItemStatus"
|
:items="selectableStatusList"
|
||||||
item-text="name"
|
item-text="name"
|
||||||
item-value="id"
|
item-value="id"
|
||||||
:label="$ay.t('WorkOrderItemWorkOrderStatusID')"
|
:label="$ay.t('WorkOrderItemWorkOrderStatusID')"
|
||||||
@@ -480,7 +481,7 @@ and it's probably not a big list to fill anyway
|
|||||||
x.quantityReceived,
|
x.quantityReceived,
|
||||||
this.pvm.languageName
|
this.pvm.languageName
|
||||||
),
|
),
|
||||||
status: x.workorderItemStatusId, //todo: get real status name etc here use
|
status: x.workorderItemStatusId, //todo: get real status name etc here use
|
||||||
requestDate: window.$gz.locale.utcDateToShortDateAndTimeLocalized(
|
requestDate: window.$gz.locale.utcDateToShortDateAndTimeLocalized(
|
||||||
x.requestDate,
|
x.requestDate,
|
||||||
this.pvm.timeZoneName,
|
this.pvm.timeZoneName,
|
||||||
@@ -494,6 +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() {
|
||||||
|
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() {
|
formState: function() {
|
||||||
return this.pvm.formState;
|
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
|
//TODO: Function status name from woitemstatusid
|
||||||
//and priority same
|
//and priority same
|
||||||
//this.pvm.pickLists.woItemStatus.find(x=>x.id==x.workorderItemStatusId)
|
//this.pvm.pickLists.woItemStatus.find(x=>x.id==x.workorderItemStatusId)
|
||||||
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user