From ea9ba291ae5abe254b05eb14d1251cd5f1a69d40 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 7 May 2021 17:55:15 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 2 +- ayanova/src/api/gzform.js | 13 +++++++++++-- ayanova/src/components/work-order-items.vue | 11 ++++++++--- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 947241c6..38d61e70 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -56,7 +56,7 @@ todo: workorders - need to set billing and service address from customers on mig ## CLIENT MISC ITEMS todo: Translation: "Physical" address seems wierd, rename to Street address or Delivery address or Service Address or whatever - +todo: broken rules can't save should color save button red in addition to disabled some forms can't see what's what todo: Any "Priority" type value in UI that has colors should use ayaFireAlt icon instead of round circle which is for minor status only Flag is for major status like all of workorder diff --git a/ayanova/src/api/gzform.js b/ayanova/src/api/gzform.js index 7856a0bf..74b1743c 100644 --- a/ayanova/src/api/gzform.js +++ b/ayanova/src/api/gzform.js @@ -47,7 +47,7 @@ function isNumber(n) { // function getControl(vm, ref) { let ctrl = vm.$refs[ref]; - + console.log("getcontrol refs are", vm.$refs); //I don't think this is required anymore // if (ctrl === undefined) { // //it's either a sub field in custom fields component or it's a coding error @@ -146,9 +146,16 @@ export default { if (vm.formState.loading) { return true; } - + console.log("form-Required ref is:", ref); //Items[0].Notes + // if (ref.includes(".")) { + // let xxx = ref.split("."); + // console.log("split ref=", xxx); + // ref = `${xxx[xxx.length - 2]}.${xxx[xxx.length - 1]}`; + // } + // console.log("actual ref is ", ref); let ctrl = getControl(vm, ref); if (typeof ctrl == "undefined") { + console.log("not found"); return true; } @@ -157,6 +164,8 @@ export default { return true; } + console.log("HERE"); + // "ErrorRequiredFieldEmpty": "{0} is a required field. Please enter a value for {0}", let err = vm.$ay.t("ErrorRequiredFieldEmpty"); let fieldName = getControlLabel(ctrl); diff --git a/ayanova/src/components/work-order-items.vue b/ayanova/src/components/work-order-items.vue index 265028f1..44a2b4f0 100644 --- a/ayanova/src/components/work-order-items.vue +++ b/ayanova/src/components/work-order-items.vue @@ -88,6 +88,8 @@ v-if="form().showMe(this, 'Items.WorkOrderItemSummary')" cols="12" > + servererrors: + {{ form().serverErrors(this, `items[${activeItemIndex}].notes`) }}