This commit is contained in:
@@ -125,6 +125,48 @@
|
||||
></gz-pick-list>
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'ContractId')"
|
||||
cols="12"
|
||||
sm="6"
|
||||
lg="4"
|
||||
xl="3"
|
||||
>
|
||||
<gz-pick-list
|
||||
:aya-type="ayaTypes().Contract"
|
||||
:show-edit-icon="true"
|
||||
v-model="obj.contractId"
|
||||
:readonly="formState.readOnly"
|
||||
:label="$ay.t('Contract')"
|
||||
ref="contractId"
|
||||
data-cy="contractId"
|
||||
:error-messages="form().serverErrors(this, 'contractId')"
|
||||
@input="fieldValueChanged('contractId')"
|
||||
></gz-pick-list>
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
v-if="
|
||||
form().showMe(this, 'ContractExpires') && obj.contractId
|
||||
"
|
||||
cols="12"
|
||||
sm="6"
|
||||
lg="4"
|
||||
xl="3"
|
||||
>
|
||||
<gz-date-time-picker
|
||||
:label="$ay.t('ContractExpires')"
|
||||
v-model="obj.contractExpires"
|
||||
:readonly="formState.readOnly"
|
||||
ref="contractExpires"
|
||||
test-id="contractExpires"
|
||||
:error-messages="
|
||||
form().serverErrors(this, 'contractExpires')
|
||||
"
|
||||
@input="fieldValueChanged('contractExpires')"
|
||||
></gz-date-time-picker>
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'UsesBanking')"
|
||||
cols="12"
|
||||
@@ -812,6 +854,8 @@ export default {
|
||||
warrantyLength: null,
|
||||
warrantyTerms: null,
|
||||
usesBanking: false,
|
||||
contractId: null,
|
||||
contractExpires: null,
|
||||
metered: false,
|
||||
lifeTimeWarranty: false,
|
||||
text1: null,
|
||||
@@ -1418,6 +1462,8 @@ async function fetchTranslatedText(vm) {
|
||||
"UnitOverrideLength",
|
||||
"UnitOverrideWarrantyTerms",
|
||||
"UsesBanking",
|
||||
"Contract",
|
||||
"ContractExpires",
|
||||
"UnitMetered",
|
||||
"UnitOverrideLifeTime",
|
||||
"UnitText1",
|
||||
|
||||
Reference in New Issue
Block a user