This commit is contained in:
2021-04-05 18:47:47 +00:00
parent 1ffcc6f99a
commit c5cbc0631c
3 changed files with 23 additions and 64 deletions

View File

@@ -36,6 +36,7 @@
xl="3"
>
<GzWoState
v-if="pvm.subRights.states.visible"
v-model="value"
:form-key="formCustomTemplateKey"
:readonly="formState.readOnly"

View File

@@ -1,5 +1,6 @@
<template>
<div>
viz: {{ pvm.subRights.states.visible }}
<span class="text-caption">{{ $ay.t("WorkOrderStatus") }}</span>
<div>
{{ lastState }}
@@ -55,6 +56,13 @@ export default {
} else {
return this.value.states[this.value.states.length - 1];
}
},
canAdd: function() {
return (
!this.value.isLocked &&
this.pvm.rights.change &&
this.pvm.subRights.states.create
);
}
}
};