This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<v-container>
|
||||
<v-row v-if="this.formState.ready">
|
||||
<v-row v-if="formState.ready">
|
||||
<v-col>
|
||||
<v-form ref="form">
|
||||
<v-row>
|
||||
@@ -19,7 +19,7 @@
|
||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||
<v-text-field
|
||||
v-model="obj.name"
|
||||
:readonly="this.formState.readOnly"
|
||||
:readonly="formState.readOnly"
|
||||
clearable
|
||||
@click:clear="onChange('name')"
|
||||
:counter="255"
|
||||
@@ -42,7 +42,7 @@
|
||||
>
|
||||
<v-text-field
|
||||
v-model="obj.serial"
|
||||
:readonly="this.formState.readOnly"
|
||||
:readonly="formState.readOnly"
|
||||
clearable
|
||||
@click:clear="onChange('serial')"
|
||||
:counter="10"
|
||||
@@ -62,7 +62,7 @@
|
||||
>
|
||||
<v-text-field
|
||||
v-model="obj.count"
|
||||
:readonly="this.formState.readOnly"
|
||||
:readonly="formState.readOnly"
|
||||
clearable
|
||||
@click:clear="onChange('count')"
|
||||
:counter="10"
|
||||
@@ -84,7 +84,7 @@
|
||||
>
|
||||
<gz-currency
|
||||
v-model="obj.dollarAmount"
|
||||
:readonly="this.formState.readOnly"
|
||||
:readonly="formState.readOnly"
|
||||
:label="lt('WidgetDollarAmount')"
|
||||
ref="dollarAmount"
|
||||
:rules="[
|
||||
@@ -100,7 +100,7 @@
|
||||
<gz-date-time-picker
|
||||
:label="lt('WidgetStartDate')"
|
||||
v-model="obj.startDate"
|
||||
:readonly="this.formState.readOnly"
|
||||
:readonly="formState.readOnly"
|
||||
ref="startDate"
|
||||
:error-messages="form().serverErrors(this, 'startDate')"
|
||||
@change="onChange('startDate')"
|
||||
@@ -113,7 +113,7 @@
|
||||
:rules="[form().datePrecedence(this, 'startDate', 'endDate')]"
|
||||
:error-messages="form().serverErrors(this, 'endDate')"
|
||||
v-model="obj.endDate"
|
||||
:readonly="this.formState.readOnly"
|
||||
:readonly="formState.readOnly"
|
||||
ref="endDate"
|
||||
@change="onChange('endDate')"
|
||||
></gz-date-time-picker>
|
||||
@@ -127,7 +127,7 @@
|
||||
>
|
||||
<v-checkbox
|
||||
v-model="obj.active"
|
||||
:readonly="this.formState.readOnly"
|
||||
:readonly="formState.readOnly"
|
||||
:label="lt('Active')"
|
||||
ref="active"
|
||||
:error-messages="form().serverErrors(this, 'active')"
|
||||
@@ -146,7 +146,7 @@
|
||||
:items="pickLists.usertypes"
|
||||
item-text="name"
|
||||
item-value="id"
|
||||
:readonly="this.formState.readOnly"
|
||||
:readonly="formState.readOnly"
|
||||
:label="lt('WidgetUserType')"
|
||||
ref="usertype"
|
||||
:rules="[form().integerValid(this, 'usertype')]"
|
||||
@@ -158,7 +158,7 @@
|
||||
<v-col v-if="form().showMe(this, 'Notes')" cols="12">
|
||||
<v-textarea
|
||||
v-model="obj.notes"
|
||||
:readonly="this.formState.readOnly"
|
||||
:readonly="formState.readOnly"
|
||||
:label="lt('WidgetNotes')"
|
||||
:error-messages="form().serverErrors(this, 'notes')"
|
||||
ref="notes"
|
||||
@@ -171,7 +171,7 @@
|
||||
<v-col v-if="form().showMe(this, 'Tags')" cols="12">
|
||||
<gz-tag-picker
|
||||
v-model="obj.tags"
|
||||
:readonly="this.formState.readOnly"
|
||||
:readonly="formState.readOnly"
|
||||
ref="tags"
|
||||
:error-messages="form().serverErrors(this, 'tags')"
|
||||
@change="onChange('tags')"
|
||||
@@ -182,7 +182,7 @@
|
||||
<gz-custom-fields
|
||||
:formKey="formCustomTemplateKey"
|
||||
v-bind:value.sync="obj.customFields"
|
||||
:readOnly="this.formState.readOnly"
|
||||
:readOnly="formState.readOnly"
|
||||
:parentVM="this"
|
||||
ref="customFields"
|
||||
:error-messages="form().serverErrors(this, 'customFields')"
|
||||
|
||||
Reference in New Issue
Block a user