This commit is contained in:
2021-07-14 23:32:46 +00:00
parent 0c4aa5a92d
commit 9e8b9ad128
13 changed files with 105 additions and 61 deletions

View File

@@ -1,14 +1,5 @@
<template>
<div>
{{
{
isRestrictedType: value.userIsRestrictedType,
isTechRestricted: value.userIsTechRestricted,
subfull: value.userIsSubContractorFull,
subRestricted: value.userIsSubContractorRestricted
}
}}
<v-row>
<v-col
cols="12"
@@ -68,16 +59,21 @@
data-cy="customerSignature"
/>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-col
v-if="
pvm.subRights.states.visible &&
form().showMe(this, 'WorkOrderStatus') &&
!(
value.userIsSubContractorFull ||
value.userIsSubContractorRestricted
)
"
cols="12"
sm="6"
lg="4"
xl="3"
>
<GzWoState
v-if="
pvm.subRights.states.visible &&
form().showMe(this, 'WorkOrderStatus') &&
!(
value.userIsSubContractorFull ||
value.userIsSubContractorRestricted
)
"
v-model="value"
:form-key="formCustomTemplateKey"
:readonly="formState.readOnly"
@@ -88,12 +84,16 @@
/>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-col
v-if="
form().showMe(this, 'Address') && !value.userIsSubContractorRestricted
"
cols="12"
sm="6"
lg="4"
xl="3"
>
<GzWoAddress
v-if="
form().showMe(this, 'Address') &&
!value.userIsSubContractorRestricted
"
v-model="value"
:form-key="formCustomTemplateKey"
:readonly="formState.readOnly || value.userIsRestrictedType"