This commit is contained in:
@@ -9,9 +9,7 @@
|
||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||
<v-text-field
|
||||
v-model="obj.serial"
|
||||
:readonly="formState.readOnly"
|
||||
:clearable="!formState.readOnly"
|
||||
@click:clear="fieldValueChanged('serial')"
|
||||
:readonly="formState.readOnly || !canEditSerial"
|
||||
:label="$ay.t('PurchaseOrderPONumber')"
|
||||
ref="serial"
|
||||
data-cy="serial"
|
||||
@@ -21,7 +19,6 @@
|
||||
]"
|
||||
:error-messages="form().serverErrors(this, 'serial')"
|
||||
@input="fieldValueChanged('serial')"
|
||||
type="number"
|
||||
></v-text-field>
|
||||
</v-col>
|
||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||
@@ -932,6 +929,9 @@ export default {
|
||||
serverError: {}
|
||||
},
|
||||
rights: window.$gz.role.defaultRightsObject(),
|
||||
canEditSerial: window.$gz.role.hasRole([
|
||||
window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull
|
||||
]),
|
||||
ayaType: window.$gz.type.PurchaseOrder,
|
||||
currencyName: window.$gz.locale.getCurrencyName(),
|
||||
timeZoneName: window.$gz.locale.getResolvedTimeZoneName(),
|
||||
|
||||
Reference in New Issue
Block a user