This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
xl="3"
|
||||
>
|
||||
<GzWoState
|
||||
v-if="pvm.subRights.states.visible"
|
||||
v-model="value"
|
||||
:form-key="formCustomTemplateKey"
|
||||
:readonly="formState.readOnly"
|
||||
|
||||
@@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user