This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
<v-textarea
|
||||
v-model="obj.name"
|
||||
:readonly="formState.readOnly"
|
||||
:label="$ay.t('ServiceBankNotes')"
|
||||
:label="$ay.t('ServiceBankDescription')"
|
||||
:rules="[form().required(this, 'name')]"
|
||||
:error-messages="form().serverErrors(this, 'name')"
|
||||
ref="name"
|
||||
@@ -22,6 +22,72 @@
|
||||
auto-grow
|
||||
></v-textarea>
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'ServiceBankCurrency')"
|
||||
cols="12"
|
||||
sm="6"
|
||||
lg="4"
|
||||
xl="3"
|
||||
>
|
||||
<gz-decimal
|
||||
v-model="obj.currency"
|
||||
:readonly="formState.readOnly"
|
||||
:label="$ay.t('ServiceBankCurrency')"
|
||||
ref="currency"
|
||||
data-cy="currency"
|
||||
:rules="[
|
||||
form().decimalValid(this, 'currency'),
|
||||
form().required(this, 'currency')
|
||||
]"
|
||||
:error-messages="form().serverErrors(this, 'currency')"
|
||||
@input="fieldValueChanged('currency')"
|
||||
></gz-decimal>
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'ServiceBankHours')"
|
||||
cols="12"
|
||||
sm="6"
|
||||
lg="4"
|
||||
xl="3"
|
||||
>
|
||||
<gz-decimal
|
||||
v-model="obj.hours"
|
||||
:readonly="formState.readOnly"
|
||||
:label="$ay.t('ServiceBankHours')"
|
||||
ref="hours"
|
||||
data-cy="hours"
|
||||
:rules="[
|
||||
form().decimalValid(this, 'hours'),
|
||||
form().required(this, 'hours')
|
||||
]"
|
||||
:error-messages="form().serverErrors(this, 'hours')"
|
||||
@input="fieldValueChanged('hours')"
|
||||
></gz-decimal>
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'ServiceBankIncidents')"
|
||||
cols="12"
|
||||
sm="6"
|
||||
lg="4"
|
||||
xl="3"
|
||||
>
|
||||
<gz-decimal
|
||||
v-model="obj.incidents"
|
||||
:readonly="formState.readOnly"
|
||||
:label="$ay.t('ServiceBankIncidents')"
|
||||
ref="incidents"
|
||||
data-cy="incidents"
|
||||
:rules="[
|
||||
form().decimalValid(this, 'incidents'),
|
||||
form().required(this, 'incidents')
|
||||
]"
|
||||
:error-messages="form().serverErrors(this, 'incidents')"
|
||||
@input="fieldValueChanged('incidents')"
|
||||
></gz-decimal>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-form>
|
||||
</div>
|
||||
@@ -138,6 +204,7 @@ export default {
|
||||
"currency":500.0000,"currencyBalance":500.0000,"lastCurrencyBalance":null,
|
||||
"hours":0.0000,"hoursBalance":0.0000,"lastHoursBalance":null}}
|
||||
*/
|
||||
//THIS FORM IS ONLY USED TO CREATE ENTRIES SO DEFAULTS TO THOSE REQUIREMENTS
|
||||
{
|
||||
id: 0,
|
||||
concurrency: 0,
|
||||
@@ -145,7 +212,7 @@ export default {
|
||||
objectId: null,
|
||||
objectType: null,
|
||||
sourceId: null,
|
||||
sourceType: null,
|
||||
sourceType: window.$gz.type.ServiceBank,
|
||||
incidents: 0,
|
||||
currency: 0,
|
||||
hours: 0
|
||||
@@ -700,29 +767,10 @@ async function initForm(vm) {
|
||||
async function fetchTranslatedText(vm) {
|
||||
await window.$gz.translation.cacheTranslations([
|
||||
"ServiceBank",
|
||||
"ServiceBankName",
|
||||
"ServiceBankNotes",
|
||||
"ServiceBankDueDate",
|
||||
"ServiceBankCompletedDate",
|
||||
"ServiceBankCompletionNotes",
|
||||
"ServiceBankUserId",
|
||||
"ServiceBankAssignedByUserId",
|
||||
"ServiceBankCustom1",
|
||||
"ServiceBankCustom2",
|
||||
"ServiceBankCustom3",
|
||||
"ServiceBankCustom4",
|
||||
"ServiceBankCustom5",
|
||||
"ServiceBankCustom6",
|
||||
"ServiceBankCustom7",
|
||||
"ServiceBankCustom8",
|
||||
"ServiceBankCustom9",
|
||||
"ServiceBankCustom10",
|
||||
"ServiceBankCustom11",
|
||||
"ServiceBankCustom12",
|
||||
"ServiceBankCustom13",
|
||||
"ServiceBankCustom14",
|
||||
"ServiceBankCustom15",
|
||||
"ServiceBankCustom16"
|
||||
"ServiceBankDescription",
|
||||
"ServiceBankCurrency",
|
||||
"ServiceBankHours",
|
||||
"ServiceBankIncidents"
|
||||
]);
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user