From 4eaf804d7c3e630e1f22423fbebc26145dc8c44a Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 26 Feb 2019 01:15:08 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 13 +++++++++++++ ayanova/src/views/inventory-widget-edit.vue | 10 ++++++++++ 2 files changed, 23 insertions(+) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 2eed6684..356bd3e6 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -14,6 +14,13 @@ TODO CLIENT STUFF TODO NEXT +Test separator allowing other weird characters in the template not as a function + +OK, I can make it display and take entry the way I want, but + - separator allows anything, not just what I specify (try it without a function directly in the template) + - Value comes back as text, I need to parse it whatever the case + +Maybe I can just allow free form entry and handle parsing, display in my own code?? Find out how to do a currency and other types of numeric input Make the currency and numeric fields work, then do the next stuff below: @@ -25,6 +32,12 @@ v-validate="{ required: true, decimal: [2, ','] }" https://github.com/baianat/vee-validate/commit/d9a3e97846aa47074e11bda4499ad539807ef0aa#commitcomment-25381793 +Do I get back the proper currency value they entered that I can use even if it's comma separator?? +(Looks like I will need to parse it) + + + + diff --git a/ayanova/src/views/inventory-widget-edit.vue b/ayanova/src/views/inventory-widget-edit.vue index 4f1fc9b5..16fbb55b 100644 --- a/ayanova/src/views/inventory-widget-edit.vue +++ b/ayanova/src/views/inventory-widget-edit.vue @@ -82,6 +82,9 @@ + + TEST + clear @@ -169,20 +172,27 @@ export default { }, submit() { //alert("VALIDATING>>>"); + debugger; console.log(obj.dollarAmount2); alert(obj.dollarAmount2); this.$validator.validateAll(); }, localeDecimalSeparator(){ + debugger; return ','; }, localeCurrencySymbol(){ return 'Eur'; }, clear(){ + debugger; console.log(this.data().obj.dollarAmount2); alert(data().obj.dollarAmount2); + }, + test(){ + console.log(this.obj.dollarAmount2); + debugger; } } };