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