This commit is contained in:
2020-07-31 22:01:13 +00:00
parent 5a8af6bc90
commit 871b8534de
2 changed files with 45 additions and 1 deletions

View File

@@ -31,6 +31,28 @@
@input="fieldValueChanged('name')" @input="fieldValueChanged('name')"
></v-text-field> ></v-text-field>
</v-col> </v-col>
<v-col
v-if="form().showMe(this, 'subVendorId') && obj.userType == 5"
cols="12"
sm="6"
lg="4"
xl="3"
>
<gz-pick-list
:ayaType="ayaTypes().Vendor"
:showEditIcon="true"
v-model="obj.subVendorId"
:readonly="formState.readOnly"
:disabled="formState.readOnly"
:label="$ay.t('Vendor')"
ref="subVendorId"
:data-cy="!!$ay.dev ? 'subVendorId' : false"
:error-messages="form().serverErrors(this, 'subVendorId')"
@input="fieldValueChanged('subVendorId')"
></gz-pick-list>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3"> <v-col cols="12" sm="6" lg="4" xl="3">
<v-text-field <v-text-field
v-model="obj.employeeNumber" v-model="obj.employeeNumber"

View File

@@ -13,7 +13,7 @@
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error> <gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
<v-col <v-col
v-if="form().showMe(this, 'UserId')" v-if="form().showMe(this, 'customerId') && obj.userType == 3"
cols="12" cols="12"
sm="6" sm="6"
lg="4" lg="4"
@@ -33,6 +33,27 @@
></gz-pick-list> ></gz-pick-list>
</v-col> </v-col>
<v-col
v-if="form().showMe(this, 'headOfficeId') && obj.userType == 4"
cols="12"
sm="6"
lg="4"
xl="3"
>
<gz-pick-list
:ayaType="ayaTypes().HeadOffice"
:showEditIcon="true"
v-model="obj.headOfficeId"
:readonly="formState.readOnly"
:disabled="formState.readOnly"
:label="$ay.t('HeadOffice')"
ref="headOfficeId"
:data-cy="!!$ay.dev ? 'headOfficeId' : false"
:error-messages="form().serverErrors(this, 'headOfficeId')"
@input="fieldValueChanged('headOfficeId')"
></gz-pick-list>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3"> <v-col cols="12" sm="6" lg="4" xl="3">
<v-text-field <v-text-field
v-model="obj.name" v-model="obj.name"
@@ -742,6 +763,7 @@ async function fetchTranslatedText(vm) {
"User", "User",
"Name", "Name",
"Customer", "Customer",
"HeadOffice",
"NewLogin", "NewLogin",
"NewPassword", "NewPassword",
"AuthorizationRoles", "AuthorizationRoles",