This commit is contained in:
2021-11-13 01:40:52 +00:00
parent 2144a7a011
commit 9174172d14

View File

@@ -201,25 +201,33 @@
{{ $ay.t("CustomerAccessSettings") }} {{ $ay.t("CustomerAccessSettings") }}
</div> </div>
</v-col> </v-col>
<!-- ######################################################## --> <!-- ######################################################## -->
<v-col cols="12"> <v-col cols="12">
<div class="text-subtitle-1"> <v-expansion-panels>
<v-expansion-panel key="1">
<v-expansion-panel-header>
<span class="text-h6">
{{ $ay.t("CustomerServiceRequestList") }} {{ $ay.t("CustomerServiceRequestList") }}
</div> </span>
</v-col> </v-expansion-panel-header>
<v-col cols="12" sm="6" lg="4" xl="3"> <v-expansion-panel-content>
<v-row>
<v-col cols="12" sm="6" lg="2">
<v-checkbox <v-checkbox
v-model="obj.customerAllowCSR" v-model="obj.customerAllowCSR"
:readonly="formState.readOnly" :readonly="formState.readOnly"
:label="$ay.t('Active')" :label="$ay.t('Active')"
ref="customerAllowCSR" ref="customerAllowCSR"
data-cy="customerAllowCSR" data-cy="customerAllowCSR"
:error-messages="form().serverErrors(this, 'customerAllowCSR')" :error-messages="
form().serverErrors(this, 'customerAllowCSR')
"
@change="fieldValueChanged('customerAllowCSR')" @change="fieldValueChanged('customerAllowCSR')"
></v-checkbox> ></v-checkbox>
</v-col> </v-col>
<v-col cols="12" sm="6" lg="4"> <v-col cols="12" sm="6" lg="10">
<gz-tag-picker <gz-tag-picker
v-model="obj.customerAllowCSRInTags" v-model="obj.customerAllowCSRInTags"
:readonly="formState.readOnly" :readonly="formState.readOnly"
@@ -239,32 +247,44 @@
:readonly="formState.readOnly" :readonly="formState.readOnly"
:label="$ay.t('CSRInfoText')" :label="$ay.t('CSRInfoText')"
:error-messages=" :error-messages="
form().serverErrors(this, 'customerServiceRequestInfoText') form().serverErrors(
this,
'customerServiceRequestInfoText'
)
" "
ref="customerServiceRequestInfoText" ref="customerServiceRequestInfoText"
data-cy="customerServiceRequestInfoText" data-cy="customerServiceRequestInfoText"
@input="fieldValueChanged('customerServiceRequestInfoText')" @input="
fieldValueChanged('customerServiceRequestInfoText')
"
auto-grow auto-grow
></v-textarea> ></v-textarea>
</v-col> </v-col>
<!-- ######################################################## --> </v-row>
<v-col cols="12"> </v-expansion-panel-content>
<div class="text-subtitle-1"> </v-expansion-panel>
<v-expansion-panel key="2">
<v-expansion-panel-header>
<span class="text-h6">
{{ $ay.t("WorkOrderList") }} {{ $ay.t("WorkOrderList") }}
</div> </span>
</v-col> </v-expansion-panel-header>
<v-col cols="12" sm="6" lg="4" xl="3"> <v-expansion-panel-content>
<v-row>
<v-col cols="12" sm="6" lg="2">
<v-checkbox <v-checkbox
v-model="obj.customerAllowViewWO" v-model="obj.customerAllowViewWO"
:readonly="formState.readOnly" :readonly="formState.readOnly"
:label="$ay.t('Active')" :label="$ay.t('Active')"
ref="customerAllowViewWO" ref="customerAllowViewWO"
data-cy="customerAllowViewWO" data-cy="customerAllowViewWO"
:error-messages="form().serverErrors(this, 'customerAllowViewWO')" :error-messages="
form().serverErrors(this, 'customerAllowViewWO')
"
@change="fieldValueChanged('customerAllowViewWO')" @change="fieldValueChanged('customerAllowViewWO')"
></v-checkbox> ></v-checkbox>
</v-col> </v-col>
<v-col cols="12" sm="6" lg="4"> <v-col cols="12" sm="6" lg="5">
<gz-tag-picker <gz-tag-picker
v-model="obj.customerAllowViewWOInTags" v-model="obj.customerAllowViewWOInTags"
:readonly="formState.readOnly" :readonly="formState.readOnly"
@@ -278,41 +298,52 @@
></gz-tag-picker> ></gz-tag-picker>
</v-col> </v-col>
<v-col cols="12"> <v-col cols="12" sm="6" lg="5">
<gz-pick-list <gz-pick-list
:aya-type="ayaTypes().Report" :aya-type="ayaTypes().Report"
:variant="ayaTypes().WorkOrder.toString()" :variant="ayaTypes().WorkOrder.toString()"
show-edit-icon show-edit-icon
v-model="obj.customerDefaultWorkOrderReportId" v-model="obj.customerDefaultWorkOrderReportId"
:readonly="formState.readOnly" :readonly="formState.readOnly"
:label="$ay.t('CustomerAccessWorkOrderReport')" :label="$ay.t('DefaultCustomerAccessWorkOrderReport')"
ref="customerDefaultWorkOrderReportId" ref="customerDefaultWorkOrderReportId"
data-cy="customerDefaultWorkOrderReportId" data-cy="customerDefaultWorkOrderReportId"
:error-messages=" :error-messages="
form().serverErrors(this, 'customerDefaultWorkOrderReportId') form().serverErrors(
this,
'customerDefaultWorkOrderReportId'
)
"
@input="
fieldValueChanged('customerDefaultWorkOrderReportId')
" "
@input="fieldValueChanged('customerDefaultWorkOrderReportId')"
></gz-pick-list> ></gz-pick-list>
</v-col> </v-col>
</v-row>
<!-- ######################################################## --> </v-expansion-panel-content>
<v-col cols="12"> </v-expansion-panel>
<div class="text-subtitle-1"> <v-expansion-panel key="3">
<v-expansion-panel-header>
<span class="text-h6">
{{ $ay.t("CustomerAccessWorkOrderWiki") }} {{ $ay.t("CustomerAccessWorkOrderWiki") }}
</div> </span>
</v-col> </v-expansion-panel-header>
<v-col cols="12" sm="6" lg="4" xl="3"> <v-expansion-panel-content>
<v-row>
<v-col cols="12" sm="6" lg="2">
<v-checkbox <v-checkbox
v-model="obj.customerAllowWOWiki" v-model="obj.customerAllowWOWiki"
:readonly="formState.readOnly" :readonly="formState.readOnly"
:label="$ay.t('Active')" :label="$ay.t('Active')"
ref="customerAllowWOWiki" ref="customerAllowWOWiki"
data-cy="customerAllowWOWiki" data-cy="customerAllowWOWiki"
:error-messages="form().serverErrors(this, 'customerAllowWOWiki')" :error-messages="
form().serverErrors(this, 'customerAllowWOWiki')
"
@change="fieldValueChanged('customerAllowWOWiki')" @change="fieldValueChanged('customerAllowWOWiki')"
></v-checkbox> ></v-checkbox>
</v-col> </v-col>
<v-col cols="12" sm="6" lg="4"> <v-col cols="12" sm="6" lg="10">
<gz-tag-picker <gz-tag-picker
v-model="obj.customerAllowWOWikiInTags" v-model="obj.customerAllowWOWikiInTags"
:readonly="formState.readOnly" :readonly="formState.readOnly"
@@ -325,14 +356,18 @@
@input="fieldValueChanged('customerAllowWOWikiInTags')" @input="fieldValueChanged('customerAllowWOWikiInTags')"
></gz-tag-picker> ></gz-tag-picker>
</v-col> </v-col>
</v-row>
<!-- ######################################################## --> </v-expansion-panel-content>
<v-col cols="12"> </v-expansion-panel>
<div class="text-subtitle-1"> <v-expansion-panel key="4">
<v-expansion-panel-header>
<span class="text-h6">
{{ $ay.t("UserSettings") }} {{ $ay.t("UserSettings") }}
</div> </span>
</v-col> </v-expansion-panel-header>
<v-col cols="12" sm="6" lg="4" xl="3"> <v-expansion-panel-content>
<v-row>
<v-col cols="12" sm="6" lg="2">
<v-checkbox <v-checkbox
v-model="obj.customerAllowUserSettings" v-model="obj.customerAllowUserSettings"
:readonly="formState.readOnly" :readonly="formState.readOnly"
@@ -345,7 +380,7 @@
@change="fieldValueChanged('customerAllowUserSettings')" @change="fieldValueChanged('customerAllowUserSettings')"
></v-checkbox> ></v-checkbox>
</v-col> </v-col>
<v-col cols="12" sm="6" lg="4"> <v-col cols="12" sm="6" lg="10">
<gz-tag-picker <gz-tag-picker
v-model="obj.customerAllowUserSettingsInTags" v-model="obj.customerAllowUserSettingsInTags"
:readonly="formState.readOnly" :readonly="formState.readOnly"
@@ -353,17 +388,27 @@
ref="customerAllowUserSettingsInTags" ref="customerAllowUserSettingsInTags"
data-cy="customerAllowUserSettingsInTags" data-cy="customerAllowUserSettingsInTags"
:error-messages=" :error-messages="
form().serverErrors(this, 'customerAllowUserSettingsInTags') form().serverErrors(
this,
'customerAllowUserSettingsInTags'
)
"
@input="
fieldValueChanged('customerAllowUserSettingsInTags')
" "
@input="fieldValueChanged('customerAllowUserSettingsInTags')"
></gz-tag-picker> ></gz-tag-picker>
</v-col> </v-col>
</v-row>
<!-- ######################################################## --> </v-expansion-panel-content>
<v-col cols="12"> </v-expansion-panel>
<div class="text-h6 mb-8"> <v-expansion-panel key="5">
<v-expansion-panel-header>
<span class="text-h6">
{{ $ay.t("NotifySubscriptionList") }} {{ $ay.t("NotifySubscriptionList") }}
</div> </span>
</v-expansion-panel-header>
<v-expansion-panel-content>
<v-col cols="12">
<div class="text-subtitle-1"> <div class="text-subtitle-1">
{{ $ay.t("NotifyEventCustomerServiceImminent") }} {{ $ay.t("NotifyEventCustomerServiceImminent") }}
</div> </div>
@@ -376,9 +421,14 @@
ref="customerAllowNotifyServiceImminent" ref="customerAllowNotifyServiceImminent"
data-cy="customerAllowNotifyServiceImminent" data-cy="customerAllowNotifyServiceImminent"
:error-messages=" :error-messages="
form().serverErrors(this, 'customerAllowNotifyServiceImminent') form().serverErrors(
this,
'customerAllowNotifyServiceImminent'
)
"
@change="
fieldValueChanged('customerAllowNotifyServiceImminent')
" "
@change="fieldValueChanged('customerAllowNotifyServiceImminent')"
></v-checkbox> ></v-checkbox>
</v-col> </v-col>
<v-col cols="12" sm="6" lg="4"> <v-col cols="12" sm="6" lg="4">
@@ -395,7 +445,9 @@
) )
" "
@input=" @input="
fieldValueChanged('customerAllowNotifyServiceImminentInTags') fieldValueChanged(
'customerAllowNotifyServiceImminentInTags'
)
" "
></gz-tag-picker> ></gz-tag-picker>
</v-col> </v-col>
@@ -414,9 +466,14 @@
ref="customerAllowNotifyCSRAccepted" ref="customerAllowNotifyCSRAccepted"
data-cy="customerAllowNotifyCSRAccepted" data-cy="customerAllowNotifyCSRAccepted"
:error-messages=" :error-messages="
form().serverErrors(this, 'customerAllowNotifyCSRAccepted') form().serverErrors(
this,
'customerAllowNotifyCSRAccepted'
)
"
@change="
fieldValueChanged('customerAllowNotifyCSRAccepted')
" "
@change="fieldValueChanged('customerAllowNotifyCSRAccepted')"
></v-checkbox> ></v-checkbox>
</v-col> </v-col>
<v-col cols="12" sm="6" lg="4"> <v-col cols="12" sm="6" lg="4">
@@ -432,7 +489,11 @@
'customerAllowNotifyCSRAcceptedInTags' 'customerAllowNotifyCSRAcceptedInTags'
) )
" "
@input="fieldValueChanged('customerAllowNotifyCSRAcceptedInTags')" @input="
fieldValueChanged(
'customerAllowNotifyCSRAcceptedInTags'
)
"
></gz-tag-picker> ></gz-tag-picker>
</v-col> </v-col>
@@ -450,9 +511,14 @@
ref="customerAllowNotifyCSRRejected" ref="customerAllowNotifyCSRRejected"
data-cy="customerAllowNotifyCSRRejected" data-cy="customerAllowNotifyCSRRejected"
:error-messages=" :error-messages="
form().serverErrors(this, 'customerAllowNotifyCSRRejected') form().serverErrors(
this,
'customerAllowNotifyCSRRejected'
)
"
@change="
fieldValueChanged('customerAllowNotifyCSRRejected')
" "
@change="fieldValueChanged('customerAllowNotifyCSRRejected')"
></v-checkbox> ></v-checkbox>
</v-col> </v-col>
<v-col cols="12" sm="6" lg="4"> <v-col cols="12" sm="6" lg="4">
@@ -468,7 +534,11 @@
'customerAllowNotifyCSRRejectedInTags' 'customerAllowNotifyCSRRejectedInTags'
) )
" "
@input="fieldValueChanged('customerAllowNotifyCSRRejectedInTags')" @input="
fieldValueChanged(
'customerAllowNotifyCSRRejectedInTags'
)
"
></gz-tag-picker> ></gz-tag-picker>
</v-col> </v-col>
@@ -486,9 +556,14 @@
ref="customerAllowNotifyWOCreated" ref="customerAllowNotifyWOCreated"
data-cy="customerAllowNotifyWOCreated" data-cy="customerAllowNotifyWOCreated"
:error-messages=" :error-messages="
form().serverErrors(this, 'customerAllowNotifyWOCreated') form().serverErrors(
this,
'customerAllowNotifyWOCreated'
)
"
@change="
fieldValueChanged('customerAllowNotifyWOCreated')
" "
@change="fieldValueChanged('customerAllowNotifyWOCreated')"
></v-checkbox> ></v-checkbox>
</v-col> </v-col>
<v-col cols="12" sm="6" lg="4"> <v-col cols="12" sm="6" lg="4">
@@ -499,9 +574,14 @@
ref="customerAllowNotifyWOCreatedInTags" ref="customerAllowNotifyWOCreatedInTags"
data-cy="customerAllowNotifyWOCreatedInTags" data-cy="customerAllowNotifyWOCreatedInTags"
:error-messages=" :error-messages="
form().serverErrors(this, 'customerAllowNotifyWOCreatedInTags') form().serverErrors(
this,
'customerAllowNotifyWOCreatedInTags'
)
"
@input="
fieldValueChanged('customerAllowNotifyWOCreatedInTags')
" "
@input="fieldValueChanged('customerAllowNotifyWOCreatedInTags')"
></gz-tag-picker> ></gz-tag-picker>
</v-col> </v-col>
@@ -519,9 +599,14 @@
ref="customerAllowNotifyWOCompleted" ref="customerAllowNotifyWOCompleted"
data-cy="customerAllowNotifyWOCompleted" data-cy="customerAllowNotifyWOCompleted"
:error-messages=" :error-messages="
form().serverErrors(this, 'customerAllowNotifyWOCompleted') form().serverErrors(
this,
'customerAllowNotifyWOCompleted'
)
"
@change="
fieldValueChanged('customerAllowNotifyWOCompleted')
" "
@change="fieldValueChanged('customerAllowNotifyWOCompleted')"
></v-checkbox> ></v-checkbox>
</v-col> </v-col>
<v-col cols="12" sm="6" lg="4"> <v-col cols="12" sm="6" lg="4">
@@ -537,10 +622,17 @@
'customerAllowNotifyWOCompletedInTags' 'customerAllowNotifyWOCompletedInTags'
) )
" "
@input="fieldValueChanged('customerAllowNotifyWOCompletedInTags')" @input="
fieldValueChanged(
'customerAllowNotifyWOCompletedInTags'
)
"
></gz-tag-picker> ></gz-tag-picker>
</v-col> </v-col>
</v-expansion-panel-content>
</v-expansion-panel>
</v-expansion-panels>
</v-col>
<!-- **************************************************** --> <!-- **************************************************** -->
</v-row> </v-row>
</v-form> </v-form>
@@ -648,7 +740,8 @@ export default {
serverError: {} serverError: {}
}, },
rights: window.$gz.role.defaultRightsObject(), rights: window.$gz.role.defaultRightsObject(),
ayaType: window.$gz.type.Project ayaType: window.$gz.type.Project,
listgroupitems: []
}; };
}, },
watch: { watch: {