This commit is contained in:
2020-02-07 18:47:41 +00:00
parent f326412df7
commit 6ec38ad456
2 changed files with 18 additions and 4 deletions

View File

@@ -6,7 +6,7 @@
locale: languageName
}"
v-model="workingAmount"
:readonly="readOnly"
:readonly="readonly"
v-bind:label="label"
v-bind:rules="rules"
v-bind:required="required"
@@ -29,7 +29,7 @@ export default {
props: {
label: String,
rules: Array,
value: String,
value: Number,
required: { type: Boolean, default: false },
readonly: { type: Boolean, default: false },
error: {

View File

@@ -83,7 +83,7 @@
lg="4"
xl="3"
>
<v-text-field
<!-- <v-text-field
v-currency="{
currency: locale().getCurrencyName(),
locale: locale().getBrowserFirstLanguage()
@@ -96,7 +96,21 @@
:rules="[form().decimalValid(this, 'dollarAmount')]"
:error-messages="form().serverErrors(this, 'dollarAmount')"
@change="onChange('dollarAmount')"
></v-text-field>
></v-text-field> -->
<gz-currency
v-currency="{
currency: locale().getCurrencyName(),
locale: locale().getBrowserFirstLanguage()
}"
v-model="obj.dollarAmount"
:readonly="this.formState.readOnly"
:label="lt('WidgetDollarAmount')"
ref="dollarAmount"
required
:rules="[form().decimalValid(this, 'dollarAmount')]"
:error-messages="form().serverErrors(this, 'dollarAmount')"
@change="onChange('dollarAmount')"
></gz-currency>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">