This commit is contained in:
2020-02-07 18:43:12 +00:00
parent 1a624323b1
commit f326412df7
4 changed files with 95 additions and 5 deletions

View File

@@ -84,16 +84,18 @@
xl="3"
>
<v-text-field
v-currency="{
currency: locale().getCurrencyName(),
locale: locale().getBrowserFirstLanguage()
}"
v-model="obj.dollarAmount"
:readonly="this.formState.readOnly"
:prefix="ltFormat().currencySymbol"
:label="lt('WidgetDollarAmount')"
ref="dollarAmount"
required
:rules="[form().decimalValid(this, 'dollarAmount')]"
:error-messages="form().serverErrors(this, 'dollarAmount')"
@change="onChange('dollarAmount')"
type="number"
></v-text-field>
</v-col>
@@ -410,14 +412,15 @@ export default {
lt(ltKey) {
return window.$gz.locale.get(ltKey);
},
ltFormat() {
return window.$gz.locale.format();
locale() {
return window.$gz.locale;
},
form() {
return window.$gz.form;
},
onChange(ref) {
if (!this.formState.loading && !this.formState.readOnly) {
debugger;
window.$gz.form.onChange(this, ref);
}
},