This commit is contained in:
@@ -36,6 +36,28 @@
|
|||||||
></v-text-field>
|
></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
|
<v-col
|
||||||
|
v-if="form().showMe(this, 'LoanUnitRateHourCost')"
|
||||||
|
cols="12"
|
||||||
|
sm="6"
|
||||||
|
lg="4"
|
||||||
|
xl="3"
|
||||||
|
>
|
||||||
|
<gz-currency
|
||||||
|
v-model="obj.rateHourCost"
|
||||||
|
:readonly="formState.readOnly"
|
||||||
|
:label="$ay.t('LoanUnitRateHourCost')"
|
||||||
|
ref="rateHourCost"
|
||||||
|
data-cy="rateHourCost"
|
||||||
|
:rules="[
|
||||||
|
form().decimalValid(this, 'rateHourCost'),
|
||||||
|
form().required(this, 'rateHourCost')
|
||||||
|
]"
|
||||||
|
:error-messages="form().serverErrors(this, 'rateHourCost')"
|
||||||
|
@input="fieldValueChanged('rateHourCost')"
|
||||||
|
></gz-currency>
|
||||||
|
</v-col>
|
||||||
|
|
||||||
<v-col
|
<v-col
|
||||||
v-if="form().showMe(this, 'LoanUnitRateHour')"
|
v-if="form().showMe(this, 'LoanUnitRateHour')"
|
||||||
cols="12"
|
cols="12"
|
||||||
@@ -58,6 +80,28 @@
|
|||||||
></gz-currency>
|
></gz-currency>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
|
<v-col
|
||||||
|
v-if="form().showMe(this, 'LoanUnitRateHalfDayCost')"
|
||||||
|
cols="12"
|
||||||
|
sm="6"
|
||||||
|
lg="4"
|
||||||
|
xl="3"
|
||||||
|
>
|
||||||
|
<gz-currency
|
||||||
|
v-model="obj.rateHalfDayCost"
|
||||||
|
:readonly="formState.readOnly"
|
||||||
|
:label="$ay.t('LoanUnitRateHalfDayCost')"
|
||||||
|
ref="rateHalfDayCost"
|
||||||
|
data-cy="rateHalfDayCost"
|
||||||
|
:rules="[
|
||||||
|
form().decimalValid(this, 'rateHalfDayCost'),
|
||||||
|
form().required(this, 'rateHalfDayCost')
|
||||||
|
]"
|
||||||
|
:error-messages="form().serverErrors(this, 'rateHalfDayCost')"
|
||||||
|
@input="fieldValueChanged('rateHalfDayCost')"
|
||||||
|
></gz-currency>
|
||||||
|
</v-col>
|
||||||
|
|
||||||
<v-col
|
<v-col
|
||||||
v-if="form().showMe(this, 'LoanUnitRateHalfDay')"
|
v-if="form().showMe(this, 'LoanUnitRateHalfDay')"
|
||||||
cols="12"
|
cols="12"
|
||||||
@@ -80,6 +124,28 @@
|
|||||||
></gz-currency>
|
></gz-currency>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
|
<v-col
|
||||||
|
v-if="form().showMe(this, 'LoanUnitRateDayCost')"
|
||||||
|
cols="12"
|
||||||
|
sm="6"
|
||||||
|
lg="4"
|
||||||
|
xl="3"
|
||||||
|
>
|
||||||
|
<gz-currency
|
||||||
|
v-model="obj.rateDayCost"
|
||||||
|
:readonly="formState.readOnly"
|
||||||
|
:label="$ay.t('LoanUnitRateDayCost')"
|
||||||
|
ref="rateDayCost"
|
||||||
|
data-cy="rateDayCost"
|
||||||
|
:rules="[
|
||||||
|
form().decimalValid(this, 'rateDayCost'),
|
||||||
|
form().required(this, 'rateDayCost')
|
||||||
|
]"
|
||||||
|
:error-messages="form().serverErrors(this, 'rateDayCost')"
|
||||||
|
@input="fieldValueChanged('rateDayCost')"
|
||||||
|
></gz-currency>
|
||||||
|
</v-col>
|
||||||
|
|
||||||
<v-col
|
<v-col
|
||||||
v-if="form().showMe(this, 'LoanUnitRateDay')"
|
v-if="form().showMe(this, 'LoanUnitRateDay')"
|
||||||
cols="12"
|
cols="12"
|
||||||
@@ -102,6 +168,28 @@
|
|||||||
></gz-currency>
|
></gz-currency>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
|
<v-col
|
||||||
|
v-if="form().showMe(this, 'LoanUnitRateWeekCost')"
|
||||||
|
cols="12"
|
||||||
|
sm="6"
|
||||||
|
lg="4"
|
||||||
|
xl="3"
|
||||||
|
>
|
||||||
|
<gz-currency
|
||||||
|
v-model="obj.rateWeekCost"
|
||||||
|
:readonly="formState.readOnly"
|
||||||
|
:label="$ay.t('LoanUnitRateWeekCost')"
|
||||||
|
ref="rateWeekCost"
|
||||||
|
data-cy="rateWeekCost"
|
||||||
|
:rules="[
|
||||||
|
form().decimalValid(this, 'rateWeekCost'),
|
||||||
|
form().required(this, 'rateWeekCost')
|
||||||
|
]"
|
||||||
|
:error-messages="form().serverErrors(this, 'rateWeekCost')"
|
||||||
|
@input="fieldValueChanged('rateWeekCost')"
|
||||||
|
></gz-currency>
|
||||||
|
</v-col>
|
||||||
|
|
||||||
<v-col
|
<v-col
|
||||||
v-if="form().showMe(this, 'LoanUnitRateWeek')"
|
v-if="form().showMe(this, 'LoanUnitRateWeek')"
|
||||||
cols="12"
|
cols="12"
|
||||||
@@ -124,6 +212,28 @@
|
|||||||
></gz-currency>
|
></gz-currency>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
|
<v-col
|
||||||
|
v-if="form().showMe(this, 'LoanUnitRateMonthCost')"
|
||||||
|
cols="12"
|
||||||
|
sm="6"
|
||||||
|
lg="4"
|
||||||
|
xl="3"
|
||||||
|
>
|
||||||
|
<gz-currency
|
||||||
|
v-model="obj.rateMonthCost"
|
||||||
|
:readonly="formState.readOnly"
|
||||||
|
:label="$ay.t('LoanUnitRateMonthCost')"
|
||||||
|
ref="rateMonthCost"
|
||||||
|
data-cy="rateMonthCost"
|
||||||
|
:rules="[
|
||||||
|
form().decimalValid(this, 'rateMonthCost'),
|
||||||
|
form().required(this, 'rateMonthCost')
|
||||||
|
]"
|
||||||
|
:error-messages="form().serverErrors(this, 'rateMonthCost')"
|
||||||
|
@input="fieldValueChanged('rateMonthCost')"
|
||||||
|
></gz-currency>
|
||||||
|
</v-col>
|
||||||
|
|
||||||
<v-col
|
<v-col
|
||||||
v-if="form().showMe(this, 'LoanUnitRateMonth')"
|
v-if="form().showMe(this, 'LoanUnitRateMonth')"
|
||||||
cols="12"
|
cols="12"
|
||||||
@@ -146,6 +256,28 @@
|
|||||||
></gz-currency>
|
></gz-currency>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
|
<v-col
|
||||||
|
v-if="form().showMe(this, 'LoanUnitRateYearCost')"
|
||||||
|
cols="12"
|
||||||
|
sm="6"
|
||||||
|
lg="4"
|
||||||
|
xl="3"
|
||||||
|
>
|
||||||
|
<gz-currency
|
||||||
|
v-model="obj.rateYearCost"
|
||||||
|
:readonly="formState.readOnly"
|
||||||
|
:label="$ay.t('LoanUnitRateYearCost')"
|
||||||
|
ref="rateYearCost"
|
||||||
|
data-cy="rateYearCost"
|
||||||
|
:rules="[
|
||||||
|
form().decimalValid(this, 'rateYearCost'),
|
||||||
|
form().required(this, 'rateYearCost')
|
||||||
|
]"
|
||||||
|
:error-messages="form().serverErrors(this, 'rateYearCost')"
|
||||||
|
@input="fieldValueChanged('rateYearCost')"
|
||||||
|
></gz-currency>
|
||||||
|
</v-col>
|
||||||
|
|
||||||
<v-col
|
<v-col
|
||||||
v-if="form().showMe(this, 'LoanUnitRateYear')"
|
v-if="form().showMe(this, 'LoanUnitRateYear')"
|
||||||
cols="12"
|
cols="12"
|
||||||
@@ -367,32 +499,7 @@ export default {
|
|||||||
//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
|
//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
|
//I.E. Serial, usertype fields, ACTIVE
|
||||||
//Also, if it's a non-nullable Enum backed field then it should have a valid selection i.e. not zero if there is no zero
|
//Also, if it's a non-nullable Enum backed field then it should have a valid selection i.e. not zero if there is no zero
|
||||||
/*
|
|
||||||
{
|
|
||||||
"data": {
|
|
||||||
"id": 4,
|
|
||||||
"concurrency": 3041599,
|
|
||||||
"name": "Fantastic Concrete Chicken",
|
|
||||||
"active": true,
|
|
||||||
"notes": "Velit iste aspernatur quia numquam consectetur nemo maiores.",
|
|
||||||
"wiki": null,
|
|
||||||
"customFields": null,
|
|
||||||
"tags": [
|
|
||||||
"quince"
|
|
||||||
],
|
|
||||||
"serial": "44420135",
|
|
||||||
"workOrderItemLoanId": null,
|
|
||||||
"rateHour": 6.6008,
|
|
||||||
"rateHalfDay": 26.403,
|
|
||||||
"rateDay": 52.8061,
|
|
||||||
"rateWeek": 242.908,
|
|
||||||
"rateMonth": 1108.9278,
|
|
||||||
"rateYear": 12631.2152,
|
|
||||||
"defaultRate": 3,
|
|
||||||
"unitId": null
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
{
|
{
|
||||||
id: 0,
|
id: 0,
|
||||||
concurrency: 0,
|
concurrency: 0,
|
||||||
@@ -410,6 +517,12 @@ export default {
|
|||||||
rateWeek: 0,
|
rateWeek: 0,
|
||||||
rateMonth: 0,
|
rateMonth: 0,
|
||||||
rateYear: 0,
|
rateYear: 0,
|
||||||
|
rateHourCost: 0,
|
||||||
|
rateHalfDayCost: 0,
|
||||||
|
rateDayCost: 0,
|
||||||
|
rateWeekCost: 0,
|
||||||
|
rateMonthCost: 0,
|
||||||
|
rateYearCost: 0,
|
||||||
defaultRate: 1,
|
defaultRate: 1,
|
||||||
unitId: null
|
unitId: null
|
||||||
},
|
},
|
||||||
@@ -867,6 +980,12 @@ async function fetchTranslatedText(vm) {
|
|||||||
"LoanUnitRateMonth",
|
"LoanUnitRateMonth",
|
||||||
"LoanUnitRateWeek",
|
"LoanUnitRateWeek",
|
||||||
"LoanUnitRateYear",
|
"LoanUnitRateYear",
|
||||||
|
"LoanUnitRateDayCost",
|
||||||
|
"LoanUnitRateHalfDayCost",
|
||||||
|
"LoanUnitRateHourCost",
|
||||||
|
"LoanUnitRateMonthCost",
|
||||||
|
"LoanUnitRateWeekCost",
|
||||||
|
"LoanUnitRateYearCost",
|
||||||
"LoanUnitDefaultRate",
|
"LoanUnitDefaultRate",
|
||||||
"LoanUnitShadowUnit",
|
"LoanUnitShadowUnit",
|
||||||
"LoanUnitCustom1",
|
"LoanUnitCustom1",
|
||||||
|
|||||||
Reference in New Issue
Block a user