This commit is contained in:
2021-06-22 22:34:18 +00:00
parent 1d2f5fa3f0
commit d32639438a
2 changed files with 76 additions and 13 deletions

View File

@@ -142,6 +142,49 @@
$ay.t("PickListTemplates")
}}</v-btn></v-col
>
<v-col cols="12" class="mt-4">
<div class="text-subtitle-1">
{{ $ay.t("CustomerSignature") }}
</div>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-text-field
v-model="obj.signatureTitle"
:readonly="formState.readOnly"
:label="$ay.t('GlobalSignatureTitle')"
ref="signatureTitle"
data-cy="signatureTitle"
:error-messages="form().serverErrors(this, 'signatureTitle')"
@input="fieldValueChanged('signatureTitle')"
></v-text-field>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-text-field
v-model="obj.signatureHeader"
:readonly="formState.readOnly"
:label="$ay.t('GlobalSignatureHeader')"
ref="signatureHeader"
data-cy="signatureHeader"
:error-messages="form().serverErrors(this, 'signatureHeader')"
@input="fieldValueChanged('signatureHeader')"
></v-text-field>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-text-field
v-model="obj.signatureFooter"
:readonly="formState.readOnly"
:label="$ay.t('GlobalSignatureFooter')"
ref="signatureFooter"
data-cy="signatureFooter"
:error-messages="form().serverErrors(this, 'signatureFooter')"
@input="fieldValueChanged('signatureFooter')"
></v-text-field>
</v-col>
<v-col cols="12" class="mt-8">
<div class="text-h4 primary--text">
{{ $ay.t("CustomerAccessSettings") }}
@@ -714,6 +757,9 @@ export default {
workLaborScheduleDefaultMinutes: 0,
customerDefaultWorkOrderReportId: null,
customerServiceRequestInfoHTML: null,
signatureTitle: null,
signatureHeader: null,
signatureFooter: null,
customerAllowCSR: false,
customerAllowCSRInTags: [],
customerAllowCSROutTags: [],
@@ -986,7 +1032,11 @@ async function fetchTranslatedText(vm) {
"NotifyEventWorkorderCreatedForCustomer",
"NotifyEventWorkorderCompleted",
"CustomerAccessWorkOrderReport",
"CSRInfoHTML"
"CSRInfoHTML",
"CustomerSignature",
"GlobalSignatureFooter",
"GlobalSignatureHeader",
"GlobalSignatureTitle"
]);
}
</script>