This commit is contained in:
2022-12-27 22:42:42 +00:00
parent 7d0a00cb19
commit f69078cf75
2 changed files with 36 additions and 3 deletions

View File

@@ -24,6 +24,24 @@
@input="fieldValueChanged('name')" @input="fieldValueChanged('name')"
></v-text-field> ></v-text-field>
</v-col> </v-col>
<v-col
v-if="form().showMe(this, 'DatabaseID')"
cols="12"
sm="6"
lg="4"
xl="3"
>
<v-text-field
ref="dbId"
v-model="obj.dbId"
dense
:readonly="formState.readOnly"
:label="$sock.t('DatabaseID')"
data-cy="dbId"
:error-messages="form().serverErrors(this, 'dbId')"
@input="fieldValueChanged('dbId')"
></v-text-field>
</v-col>
<v-col <v-col
v-if="form().showMe(this, 'AccountNumber')" v-if="form().showMe(this, 'AccountNumber')"
cols="12" cols="12"
@@ -209,7 +227,18 @@
@input="fieldValueChanged('headOfficeId')" @input="fieldValueChanged('headOfficeId')"
></gz-pick-list> ></gz-pick-list>
</v-col> </v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-checkbox
ref="doNotContact"
v-model="obj.doNotContact"
dense
:readonly="formState.readOnly"
:label="$sock.t('DoNotContact')"
data-cy="doNotContact"
:error-messages="form().serverErrors(this, 'doNotContact')"
@change="fieldValueChanged('doNotContact')"
></v-checkbox>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3"> <v-col cols="12" sm="6" lg="4" xl="3">
<v-checkbox <v-checkbox
ref="active" ref="active"
@@ -680,7 +709,9 @@ export default {
id: 0, id: 0,
concurrency: 0, concurrency: 0,
name: undefined, name: undefined,
dbId: null,
active: true, active: true,
doNotContact: false,
notes: null, notes: null,
wiki: null, wiki: null,
customFields: "{}", customFields: "{}",
@@ -1399,7 +1430,9 @@ async function fetchTranslatedText() {
"LastLogin", "LastLogin",
"CustomerNoteList", "CustomerNoteList",
"CustomerNoteNotes", "CustomerNoteNotes",
"CustomerNoteNoteDate" "CustomerNoteNoteDate",
"DoNotContact",
"DatabaseID"
]); ]);
} }