This commit is contained in:
2021-03-01 18:06:05 +00:00
parent 787d27ff1f
commit 60cef908cb
2 changed files with 4 additions and 9 deletions

View File

@@ -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(),