This commit is contained in:
2021-11-15 18:33:11 +00:00
parent 2d5d072b6e
commit 4940d075ca

View File

@@ -226,40 +226,41 @@
@change="fieldValueChanged('customerAllowCSR')"
></v-checkbox>
</v-col>
<template v-if="obj.customerAllowCSR">
<v-col cols="12" sm="6" lg="10">
<gz-tag-picker
v-model="obj.customerAllowCSRInTags"
:readonly="formState.readOnly"
:label="$ay.t('ContactCustomerHeadOfficeTaggedWith')"
ref="customerAllowCSRInTags"
data-cy="customerAllowCSRInTags"
:error-messages="
form().serverErrors(this, 'customerAllowCSRInTags')
"
@input="fieldValueChanged('customerAllowCSRInTags')"
></gz-tag-picker>
</v-col>
<v-col cols="12" sm="6" lg="10">
<gz-tag-picker
v-model="obj.customerAllowCSRInTags"
:readonly="formState.readOnly"
:label="$ay.t('ContactCustomerHeadOfficeTaggedWith')"
ref="customerAllowCSRInTags"
data-cy="customerAllowCSRInTags"
:error-messages="
form().serverErrors(this, 'customerAllowCSRInTags')
"
@input="fieldValueChanged('customerAllowCSRInTags')"
></gz-tag-picker>
</v-col>
<v-col cols="12">
<v-textarea
v-model="obj.customerServiceRequestInfoText"
:readonly="formState.readOnly"
:label="$ay.t('CSRInfoText')"
:error-messages="
form().serverErrors(
this,
'customerServiceRequestInfoText'
)
"
ref="customerServiceRequestInfoText"
data-cy="customerServiceRequestInfoText"
@input="
fieldValueChanged('customerServiceRequestInfoText')
"
auto-grow
></v-textarea>
</v-col>
<v-col cols="12">
<v-textarea
v-model="obj.customerServiceRequestInfoText"
:readonly="formState.readOnly"
:label="$ay.t('CSRInfoText')"
:error-messages="
form().serverErrors(
this,
'customerServiceRequestInfoText'
)
"
ref="customerServiceRequestInfoText"
data-cy="customerServiceRequestInfoText"
@input="
fieldValueChanged('customerServiceRequestInfoText')
"
auto-grow
></v-textarea>
</v-col>
</template>
</v-row>
</v-expansion-panel-content>
</v-expansion-panel>
@@ -284,238 +285,241 @@
@change="fieldValueChanged('customerAllowViewWO')"
></v-checkbox>
</v-col>
<template v-if="obj.customerAllowViewWO">
<v-col cols="12" sm="6" lg="10">
<gz-pick-list
:aya-type="ayaTypes().Report"
:variant="ayaTypes().WorkOrder.toString()"
show-edit-icon
v-model="obj.customerDefaultWorkOrderReportId"
:readonly="formState.readOnly"
:label="$ay.t('DefaultReport')"
ref="customerDefaultWorkOrderReportId"
data-cy="customerDefaultWorkOrderReportId"
:error-messages="
form().serverErrors(
this,
'customerDefaultWorkOrderReportId'
)
"
@input="
fieldValueChanged(
'customerDefaultWorkOrderReportId'
)
"
></gz-pick-list>
</v-col>
<v-col cols="12" sm="6" lg="10">
<gz-pick-list
:aya-type="ayaTypes().Report"
:variant="ayaTypes().WorkOrder.toString()"
show-edit-icon
v-model="obj.customerDefaultWorkOrderReportId"
:readonly="formState.readOnly"
:label="$ay.t('DefaultReport')"
ref="customerDefaultWorkOrderReportId"
data-cy="customerDefaultWorkOrderReportId"
:error-messages="
form().serverErrors(
this,
'customerDefaultWorkOrderReportId'
)
"
@input="
fieldValueChanged('customerDefaultWorkOrderReportId')
"
></gz-pick-list>
</v-col>
<!-- ------------ -->
<v-col cols="12" sm="6">
<gz-tag-picker
v-model="obj.customerWorkOrderReport1Tags"
:readonly="formState.readOnly"
:label="$ay.t('CustomerTaggedWith')"
ref="customerWorkOrderReport1Tags"
data-cy="customerWorkOrderReport1Tags"
:error-messages="
form().serverErrors(
this,
'customerWorkOrderReport1Tags'
)
"
@input="
fieldValueChanged('customerWorkOrderReport1Tags')
"
></gz-tag-picker>
</v-col>
<!-- ------------ -->
<v-col cols="12" sm="6">
<gz-tag-picker
v-model="obj.customerWorkOrderReport1Tags"
:readonly="formState.readOnly"
:label="$ay.t('CustomerTaggedWith')"
ref="customerWorkOrderReport1Tags"
data-cy="customerWorkOrderReport1Tags"
:error-messages="
form().serverErrors(
this,
'customerWorkOrderReport1Tags'
)
"
@input="
fieldValueChanged('customerWorkOrderReport1Tags')
"
></gz-tag-picker>
</v-col>
<v-col cols="12" sm="6">
<gz-pick-list
:aya-type="ayaTypes().Report"
:variant="ayaTypes().WorkOrder.toString()"
show-edit-icon
v-model="obj.customerTagWorkOrderReport1Id"
:readonly="formState.readOnly"
:label="$ay.t('DefaultReport')"
ref="customerTagWorkOrderReport1Id"
data-cy="customerTagWorkOrderReport1Id"
:error-messages="
form().serverErrors(
this,
'customerTagWorkOrderReport1Id'
)
"
@input="
fieldValueChanged('customerTagWorkOrderReport1Id')
"
></gz-pick-list>
</v-col>
<v-col cols="12" sm="6">
<gz-pick-list
:aya-type="ayaTypes().Report"
:variant="ayaTypes().WorkOrder.toString()"
show-edit-icon
v-model="obj.customerTagWorkOrderReport1Id"
:readonly="formState.readOnly"
:label="$ay.t('DefaultReport')"
ref="customerTagWorkOrderReport1Id"
data-cy="customerTagWorkOrderReport1Id"
:error-messages="
form().serverErrors(
this,
'customerTagWorkOrderReport1Id'
)
"
@input="
fieldValueChanged('customerTagWorkOrderReport1Id')
"
></gz-pick-list>
</v-col>
<!-- ------------ -->
<v-col cols="12" sm="6">
<gz-tag-picker
v-model="obj.customerWorkOrderReport2Tags"
:readonly="formState.readOnly"
:label="$ay.t('CustomerTaggedWith')"
ref="customerWorkOrderReport2Tags"
data-cy="customerWorkOrderReport2Tags"
:error-messages="
form().serverErrors(
this,
'customerWorkOrderReport2Tags'
)
"
@input="
fieldValueChanged('customerWorkOrderReport2Tags')
"
></gz-tag-picker>
</v-col>
<!-- ------------ -->
<v-col cols="12" sm="6">
<gz-tag-picker
v-model="obj.customerWorkOrderReport2Tags"
:readonly="formState.readOnly"
:label="$ay.t('CustomerTaggedWith')"
ref="customerWorkOrderReport2Tags"
data-cy="customerWorkOrderReport2Tags"
:error-messages="
form().serverErrors(
this,
'customerWorkOrderReport2Tags'
)
"
@input="
fieldValueChanged('customerWorkOrderReport2Tags')
"
></gz-tag-picker>
</v-col>
<v-col cols="12" sm="6">
<gz-pick-list
:aya-type="ayaTypes().Report"
:variant="ayaTypes().WorkOrder.toString()"
show-edit-icon
v-model="obj.customerTagWorkOrderReport2Id"
:readonly="formState.readOnly"
:label="$ay.t('DefaultReport')"
ref="customerTagWorkOrderReport2Id"
data-cy="customerTagWorkOrderReport2Id"
:error-messages="
form().serverErrors(
this,
'customerTagWorkOrderReport2Id'
)
"
@input="
fieldValueChanged('customerTagWorkOrderReport2Id')
"
></gz-pick-list>
</v-col>
<v-col cols="12" sm="6">
<gz-pick-list
:aya-type="ayaTypes().Report"
:variant="ayaTypes().WorkOrder.toString()"
show-edit-icon
v-model="obj.customerTagWorkOrderReport2Id"
:readonly="formState.readOnly"
:label="$ay.t('DefaultReport')"
ref="customerTagWorkOrderReport2Id"
data-cy="customerTagWorkOrderReport2Id"
:error-messages="
form().serverErrors(
this,
'customerTagWorkOrderReport2Id'
)
"
@input="
fieldValueChanged('customerTagWorkOrderReport2Id')
"
></gz-pick-list>
</v-col>
<!-- ------------ -->
<v-col cols="12" sm="6">
<gz-tag-picker
v-model="obj.customerWorkOrderReport3Tags"
:readonly="formState.readOnly"
:label="$ay.t('CustomerTaggedWith')"
ref="customerWorkOrderReport3Tags"
data-cy="customerWorkOrderReport3Tags"
:error-messages="
form().serverErrors(
this,
'customerWorkOrderReport3Tags'
)
"
@input="
fieldValueChanged('customerWorkOrderReport3Tags')
"
></gz-tag-picker>
</v-col>
<!-- ------------ -->
<v-col cols="12" sm="6">
<gz-tag-picker
v-model="obj.customerWorkOrderReport3Tags"
:readonly="formState.readOnly"
:label="$ay.t('CustomerTaggedWith')"
ref="customerWorkOrderReport3Tags"
data-cy="customerWorkOrderReport3Tags"
:error-messages="
form().serverErrors(
this,
'customerWorkOrderReport3Tags'
)
"
@input="
fieldValueChanged('customerWorkOrderReport3Tags')
"
></gz-tag-picker>
</v-col>
<v-col cols="12" sm="6">
<gz-pick-list
:aya-type="ayaTypes().Report"
:variant="ayaTypes().WorkOrder.toString()"
show-edit-icon
v-model="obj.customerTagWorkOrderReport3Id"
:readonly="formState.readOnly"
:label="$ay.t('DefaultReport')"
ref="customerTagWorkOrderReport3Id"
data-cy="customerTagWorkOrderReport3Id"
:error-messages="
form().serverErrors(
this,
'customerTagWorkOrderReport3Id'
)
"
@input="
fieldValueChanged('customerTagWorkOrderReport3Id')
"
></gz-pick-list>
</v-col>
<v-col cols="12" sm="6">
<gz-pick-list
:aya-type="ayaTypes().Report"
:variant="ayaTypes().WorkOrder.toString()"
show-edit-icon
v-model="obj.customerTagWorkOrderReport3Id"
:readonly="formState.readOnly"
:label="$ay.t('DefaultReport')"
ref="customerTagWorkOrderReport3Id"
data-cy="customerTagWorkOrderReport3Id"
:error-messages="
form().serverErrors(
this,
'customerTagWorkOrderReport3Id'
)
"
@input="
fieldValueChanged('customerTagWorkOrderReport3Id')
"
></gz-pick-list>
</v-col>
<!-- ------------ -->
<v-col cols="12" sm="6">
<gz-tag-picker
v-model="obj.customerWorkOrderReport4Tags"
:readonly="formState.readOnly"
:label="$ay.t('CustomerTaggedWith')"
ref="customerWorkOrderReport4Tags"
data-cy="customerWorkOrderReport4Tags"
:error-messages="
form().serverErrors(
this,
'customerWorkOrderReport4Tags'
)
"
@input="
fieldValueChanged('customerWorkOrderReport4Tags')
"
></gz-tag-picker>
</v-col>
<!-- ------------ -->
<v-col cols="12" sm="6">
<gz-tag-picker
v-model="obj.customerWorkOrderReport4Tags"
:readonly="formState.readOnly"
:label="$ay.t('CustomerTaggedWith')"
ref="customerWorkOrderReport4Tags"
data-cy="customerWorkOrderReport4Tags"
:error-messages="
form().serverErrors(
this,
'customerWorkOrderReport4Tags'
)
"
@input="
fieldValueChanged('customerWorkOrderReport4Tags')
"
></gz-tag-picker>
</v-col>
<v-col cols="12" sm="6">
<gz-pick-list
:aya-type="ayaTypes().Report"
:variant="ayaTypes().WorkOrder.toString()"
show-edit-icon
v-model="obj.customerTagWorkOrderReport4Id"
:readonly="formState.readOnly"
:label="$ay.t('DefaultReport')"
ref="customerTagWorkOrderReport4Id"
data-cy="customerTagWorkOrderReport4Id"
:error-messages="
form().serverErrors(
this,
'customerTagWorkOrderReport4Id'
)
"
@input="
fieldValueChanged('customerTagWorkOrderReport4Id')
"
></gz-pick-list>
</v-col>
<v-col cols="12" sm="6">
<gz-pick-list
:aya-type="ayaTypes().Report"
:variant="ayaTypes().WorkOrder.toString()"
show-edit-icon
v-model="obj.customerTagWorkOrderReport4Id"
:readonly="formState.readOnly"
:label="$ay.t('DefaultReport')"
ref="customerTagWorkOrderReport4Id"
data-cy="customerTagWorkOrderReport4Id"
:error-messages="
form().serverErrors(
this,
'customerTagWorkOrderReport4Id'
)
"
@input="
fieldValueChanged('customerTagWorkOrderReport4Id')
"
></gz-pick-list>
</v-col>
<!-- ------------ -->
<v-col cols="12" sm="6">
<gz-tag-picker
v-model="obj.customerWorkOrderReport5Tags"
:readonly="formState.readOnly"
:label="$ay.t('CustomerTaggedWith')"
ref="customerWorkOrderReport5Tags"
data-cy="customerWorkOrderReport5Tags"
:error-messages="
form().serverErrors(
this,
'customerWorkOrderReport5Tags'
)
"
@input="
fieldValueChanged('customerWorkOrderReport5Tags')
"
></gz-tag-picker>
</v-col>
<!-- ------------ -->
<v-col cols="12" sm="6">
<gz-tag-picker
v-model="obj.customerWorkOrderReport5Tags"
:readonly="formState.readOnly"
:label="$ay.t('CustomerTaggedWith')"
ref="customerWorkOrderReport5Tags"
data-cy="customerWorkOrderReport5Tags"
:error-messages="
form().serverErrors(
this,
'customerWorkOrderReport5Tags'
)
"
@input="
fieldValueChanged('customerWorkOrderReport5Tags')
"
></gz-tag-picker>
</v-col>
<v-col cols="12" sm="6">
<gz-pick-list
:aya-type="ayaTypes().Report"
:variant="ayaTypes().WorkOrder.toString()"
show-edit-icon
v-model="obj.customerTagWorkOrderReport5Id"
:readonly="formState.readOnly"
:label="$ay.t('DefaultReport')"
ref="customerTagWorkOrderReport5Id"
data-cy="customerTagWorkOrderReport5Id"
:error-messages="
form().serverErrors(
this,
'customerTagWorkOrderReport5Id'
)
"
@input="
fieldValueChanged('customerTagWorkOrderReport5Id')
"
></gz-pick-list>
</v-col>
<v-col cols="12" sm="6">
<gz-pick-list
:aya-type="ayaTypes().Report"
:variant="ayaTypes().WorkOrder.toString()"
show-edit-icon
v-model="obj.customerTagWorkOrderReport5Id"
:readonly="formState.readOnly"
:label="$ay.t('DefaultReport')"
ref="customerTagWorkOrderReport5Id"
data-cy="customerTagWorkOrderReport5Id"
:error-messages="
form().serverErrors(
this,
'customerTagWorkOrderReport5Id'
)
"
@input="
fieldValueChanged('customerTagWorkOrderReport5Id')
"
></gz-pick-list>
</v-col>
</template>
</v-row>
</v-expansion-panel-content>
</v-expansion-panel>
@@ -540,19 +544,26 @@
@change="fieldValueChanged('customerAllowWOWiki')"
></v-checkbox>
</v-col>
<v-col cols="12" sm="6" lg="10">
<gz-tag-picker
v-model="obj.customerAllowWOWikiInTags"
:readonly="formState.readOnly"
:label="$ay.t('ContactCustomerHeadOfficeTaggedWith')"
ref="customerAllowWOWikiInTags"
data-cy="customerAllowWOWikiInTags"
:error-messages="
form().serverErrors(this, 'customerAllowWOWikiInTags')
"
@input="fieldValueChanged('customerAllowWOWikiInTags')"
></gz-tag-picker>
</v-col>
<template v-if="obj.customerAllowWOWiki">
<v-col cols="12" sm="6" lg="10">
<gz-tag-picker
v-model="obj.customerAllowWOWikiInTags"
:readonly="formState.readOnly"
:label="$ay.t('ContactCustomerHeadOfficeTaggedWith')"
ref="customerAllowWOWikiInTags"
data-cy="customerAllowWOWikiInTags"
:error-messages="
form().serverErrors(
this,
'customerAllowWOWikiInTags'
)
"
@input="
fieldValueChanged('customerAllowWOWikiInTags')
"
></gz-tag-picker>
</v-col>
</template>
</v-row>
</v-expansion-panel-content>
</v-expansion-panel>
@@ -577,24 +588,26 @@
@change="fieldValueChanged('customerAllowUserSettings')"
></v-checkbox>
</v-col>
<v-col cols="12" sm="6" lg="10">
<gz-tag-picker
v-model="obj.customerAllowUserSettingsInTags"
:readonly="formState.readOnly"
:label="$ay.t('ContactCustomerHeadOfficeTaggedWith')"
ref="customerAllowUserSettingsInTags"
data-cy="customerAllowUserSettingsInTags"
:error-messages="
form().serverErrors(
this,
'customerAllowUserSettingsInTags'
)
"
@input="
fieldValueChanged('customerAllowUserSettingsInTags')
"
></gz-tag-picker>
</v-col>
<template v-if="obj.customerAllowUserSettings">
<v-col cols="12" sm="6" lg="10">
<gz-tag-picker
v-model="obj.customerAllowUserSettingsInTags"
:readonly="formState.readOnly"
:label="$ay.t('ContactCustomerHeadOfficeTaggedWith')"
ref="customerAllowUserSettingsInTags"
data-cy="customerAllowUserSettingsInTags"
:error-messages="
form().serverErrors(
this,
'customerAllowUserSettingsInTags'
)
"
@input="
fieldValueChanged('customerAllowUserSettingsInTags')
"
></gz-tag-picker>
</v-col>
</template>
</v-row>
</v-expansion-panel-content>
</v-expansion-panel>
@@ -626,7 +639,13 @@
"
></v-checkbox>
</v-col>
<v-col cols="12" sm="6" lg="9">
<v-col
cols="12"
sm="6"
lg="9"
v-if="obj.customerAllowNotifyServiceImminent"
>
<gz-tag-picker
v-model="obj.customerAllowNotifyServiceImminentInTags"
:readonly="formState.readOnly"
@@ -667,7 +686,12 @@
"
></v-checkbox>
</v-col>
<v-col cols="12" sm="6" lg="9">
<v-col
cols="12"
sm="6"
lg="9"
v-if="obj.customerAllowNotifyCSRAccepted"
>
<gz-tag-picker
v-model="obj.customerAllowNotifyCSRAcceptedInTags"
:readonly="formState.readOnly"
@@ -708,7 +732,12 @@
"
></v-checkbox>
</v-col>
<v-col cols="12" sm="6" lg="9">
<v-col
cols="12"
sm="6"
lg="9"
v-if="obj.customerAllowNotifyCSRRejected"
>
<gz-tag-picker
v-model="obj.customerAllowNotifyCSRRejectedInTags"
:readonly="formState.readOnly"
@@ -749,7 +778,12 @@
"
></v-checkbox>
</v-col>
<v-col cols="12" sm="6" lg="9">
<v-col
cols="12"
sm="6"
lg="9"
v-if="obj.customerAllowNotifyWOCreated"
>
<gz-tag-picker
v-model="obj.customerAllowNotifyWOCreatedInTags"
:readonly="formState.readOnly"
@@ -790,7 +824,12 @@
"
></v-checkbox>
</v-col>
<v-col cols="12" sm="6" lg="9">
<v-col
cols="12"
sm="6"
lg="9"
v-if="obj.customerAllowNotifyWOCompleted"
>
<gz-tag-picker
v-model="obj.customerAllowNotifyWOCompletedInTags"
:readonly="formState.readOnly"