This commit is contained in:
@@ -147,6 +147,49 @@
|
||||
{{ $ay.t("CustomerAccessSettings") }}
|
||||
</div>
|
||||
</v-col>
|
||||
|
||||
<v-col cols="12">
|
||||
<div class="text-h6 primary--text">
|
||||
{{ $ay.t("CustomerServiceRequestList") }}
|
||||
</div>
|
||||
</v-col>
|
||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||
<v-checkbox
|
||||
v-model="obj.customerAllowCSR"
|
||||
:readonly="formState.readOnly"
|
||||
:label="$ay.t('Active')"
|
||||
ref="customerAllowCSR"
|
||||
data-cy="customerAllowCSR"
|
||||
:error-messages="form().serverErrors(this, 'customerAllowCSR')"
|
||||
@change="fieldValueChanged('customerAllowCSR')"
|
||||
></v-checkbox>
|
||||
</v-col>
|
||||
<v-col cols="12" sm="6" lg="4">
|
||||
<gz-tag-picker
|
||||
v-model="obj.customerAllowCSRInTags"
|
||||
:readonly="formState.readOnly"
|
||||
:label="$ay.t('TaggedWith')"
|
||||
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="4">
|
||||
<gz-tag-picker
|
||||
v-model="obj.customerAllowCSROutTags"
|
||||
:readonly="formState.readOnly"
|
||||
:label="$ay.t('NotTaggedWith')"
|
||||
ref="customerAllowCSROutTags"
|
||||
data-cy="customerAllowCSROutTags"
|
||||
:error-messages="
|
||||
form().serverErrors(this, 'customerAllowCSROutTags')
|
||||
"
|
||||
@input="fieldValueChanged('customerAllowCSROutTags')"
|
||||
></gz-tag-picker>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-form>
|
||||
</div>
|
||||
@@ -221,6 +264,46 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
// formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY,
|
||||
|
||||
a: {
|
||||
id: 1,
|
||||
concurrency: 9339819,
|
||||
searchCaseSensitiveOnly: false,
|
||||
useInventory: true,
|
||||
taxPartPurchaseId: 2,
|
||||
taxPartSaleId: 2,
|
||||
taxRateSaleId: 1,
|
||||
workLaborScheduleDefaultMinutes: 0,
|
||||
workOrderTravelDefaultMinutes: 0,
|
||||
workOrderCompleteByAge: "00:00:00",
|
||||
customerDefaultWorkOrderReportId: null,
|
||||
customerServiceRequestInfoHTML: null,
|
||||
customerAllowCSR: false,
|
||||
customerAllowCSRInTags: null,
|
||||
customerAllowCSROutTags: null,
|
||||
customerAllowViewWO: false,
|
||||
customerAllowViewWOInTags: null,
|
||||
customerAllowViewWOOutTags: null,
|
||||
customerAllowWOWiki: false,
|
||||
customerAllowWOWikiInTags: null,
|
||||
customerAllowWOWikiOutTags: null,
|
||||
customerAllowUserSettings: false,
|
||||
customerAllowUserSettingsInTags: null,
|
||||
customerAllowUserSettingsOutTags: null,
|
||||
customerAllowNotifyServiceImminent: false,
|
||||
customerAllowNotifyServiceImminentInTags: null,
|
||||
customerAllowNotifyServiceImminentOutTags: null,
|
||||
customerAllowNotifyCSRAccepted: false,
|
||||
customerAllowNotifyCSRAcceptedInTags: null,
|
||||
customerAllowNotifyCSRAcceptedOutTags: null,
|
||||
customerAllowNotifyCSRRejected: false,
|
||||
customerAllowNotifyCSRRejectedInTags: null,
|
||||
customerAllowNotifyCSRRejectedOutTags: null,
|
||||
customerAllowNotifyWorkorderCreated: false,
|
||||
customerAllowNotifyWorkorderCreatedInTags: null,
|
||||
customerAllowNotifyWorkorderCreatedOutTags: null
|
||||
},
|
||||
|
||||
obj:
|
||||
//IMPORTANT NOTE: Fields that are NON NULLABLE in the schema for the table but *are* hideable **MUST** have a default value set here or else there will be no way to save the record
|
||||
//I.E. Serial, usertype fields, ACTIVE
|
||||
@@ -235,7 +318,33 @@ export default {
|
||||
taxRateSaleId: null,
|
||||
workOrderCompleteByAge: "00:00:00",
|
||||
workOrderTravelDefaultMinutes: 0,
|
||||
workLaborScheduleDefaultMinutes: 0
|
||||
workLaborScheduleDefaultMinutes: 0,
|
||||
customerDefaultWorkOrderReportId: null,
|
||||
customerServiceRequestInfoHTML: null,
|
||||
customerAllowCSR: false,
|
||||
customerAllowCSRInTags: [],
|
||||
customerAllowCSROutTags: [],
|
||||
customerAllowViewWO: false,
|
||||
customerAllowViewWOInTags: [],
|
||||
customerAllowViewWOOutTags: [],
|
||||
customerAllowWOWiki: false,
|
||||
customerAllowWOWikiInTags: [],
|
||||
customerAllowWOWikiOutTags: [],
|
||||
customerAllowUserSettings: false,
|
||||
customerAllowUserSettingsInTags: [],
|
||||
customerAllowUserSettingsOutTags: [],
|
||||
customerAllowNotifyServiceImminent: false,
|
||||
customerAllowNotifyServiceImminentInTags: [],
|
||||
customerAllowNotifyServiceImminentOutTags: [],
|
||||
customerAllowNotifyCSRAccepted: false,
|
||||
customerAllowNotifyCSRAcceptedInTags: [],
|
||||
customerAllowNotifyCSRAcceptedOutTags: [],
|
||||
customerAllowNotifyCSRRejected: false,
|
||||
customerAllowNotifyCSRRejectedInTags: [],
|
||||
customerAllowNotifyCSRRejectedOutTags: [],
|
||||
customerAllowNotifyWorkorderCreated: false,
|
||||
customerAllowNotifyWorkorderCreatedInTags: [],
|
||||
customerAllowNotifyWorkorderCreatedOutTags: []
|
||||
},
|
||||
formState: {
|
||||
ready: false,
|
||||
@@ -454,6 +563,9 @@ async function initForm(vm) {
|
||||
//
|
||||
async function fetchTranslatedText(vm) {
|
||||
await window.$gz.translation.cacheTranslations([
|
||||
"TaggedWith",
|
||||
"NotTaggedWith",
|
||||
"CustomerServiceRequestList",
|
||||
"UserInterfaceSettings",
|
||||
"BusinessSettings",
|
||||
"CustomerAccessSettings",
|
||||
|
||||
Reference in New Issue
Block a user