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