This commit is contained in:
2020-02-07 21:53:17 +00:00
parent 6ec38ad456
commit 1e73171abc
4 changed files with 62 additions and 45 deletions

View File

@@ -96,12 +96,11 @@
:rules="[form().decimalValid(this, 'dollarAmount')]"
:error-messages="form().serverErrors(this, 'dollarAmount')"
@change="onChange('dollarAmount')"
></v-text-field> -->
></v-text-field>v-model="obj.dollarAmount" -->
<span class="title">v-currency-field</span>
<v-currency-field v-model="obj.dollarAmount" />
DOLLAR AMOUNT: {{ obj.dollarAmount }}
<gz-currency
v-currency="{
currency: locale().getCurrencyName(),
locale: locale().getBrowserFirstLanguage()
}"
v-model="obj.dollarAmount"
:readonly="this.formState.readOnly"
:label="lt('WidgetDollarAmount')"
@@ -434,7 +433,7 @@ export default {
},
onChange(ref) {
if (!this.formState.loading && !this.formState.readOnly) {
debugger;
console.log("Onchange: " + ref);
window.$gz.form.onChange(this, ref);
}
},
@@ -465,6 +464,7 @@ export default {
window.$gz.form.setErrorBoxErrors(vm);
} else {
vm.obj = res.data;
console.log("GetData dollarAmount:" + res.data.dollarAmount);
//Update the form status
window.$gz.form.setFormState({
vm: vm,