From 58706f6bc31bed99de9bb1488a274ebd534288bb Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 24 Nov 2020 19:59:20 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 5 ++++- ayanova/src/views/cust-customer-notes.vue | 17 ++++++++++++----- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 5aa93ea7..d2a98cfa 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -49,7 +49,9 @@ todo: gz-data-table make sure unbounded notes column is bounded by some length r todo: picklist empty null vs zero test with customer and headofficeid should have the empty selection pre-selected or maybe I need to do away with that since the clear button does the same thing? - +todo: missing feature, can't filter widgetlist by User due to no UserList being available + Is this meant to be text only filter and we have no id filter system? + fucking grids are always fucking fucked due to the filter and sort fucking shit todo: picklist clear doesn't trigger dirty change maybe doesn't emit? @@ -66,6 +68,7 @@ todo: input type email url phone number etc supported on device to activate? CURRENTLY WORKING ON: Customer OUTSTANDING + metalistview - replicate to report / id's list route customer notes Review existing v7... What can be done with it? Edit existing? Remove existing? Search? print? etc diff --git a/ayanova/src/views/cust-customer-notes.vue b/ayanova/src/views/cust-customer-notes.vue index 37dc1eaf..f978401b 100644 --- a/ayanova/src/views/cust-customer-notes.vue +++ b/ayanova/src/views/cust-customer-notes.vue @@ -7,16 +7,15 @@ ref="extensions" > - {{ customername }} - @@ -31,11 +30,18 @@ //////////////////////////////////////////////////////////////////////////////////////////////////////////// const FORM_KEY = "cust-customer-notes"; - +//"[{\"fld\":\"widgetname\",\"filter\":{\"items\":[{\"op\":\"%-\",\"value\":\"Awesome\"}]}},{\"fld\":\"widgetserial\"},{\"fld\":\"widgetdollaramount\"},{\"fld\":\"widgetusertype\",\"filter\":{\"items\":[{\"op\":\"=\",\"value\":1}]}},{\"fld\":\"widgetstartdate\"},{\"fld\":\"widgetactive\"},{\"fld\":\"username\",\"filter\":{\"items\":[{\"op\":\"=\",\"value\":\"aya\"}]}},{\"fld\":\"widgettags\"},{\"fld\":\"widgetcustom1\"},{\"fld\":\"widgetcustom2\"}]" export default { created() { this.customername = this.$route.params.customername; this.customerId = this.$route.params.customerid; + this.metaView = JSON.stringify([ + { + fld: "metacustomer", + filter: { items: [{ op: "=", value: this.customerId }] } + } + ]); + this.rights = window.$gz.role.getRights(window.$gz.type.Customer); window.$gz.eventBus.$on("menu-click", clickHandler); generateMenu(this); @@ -51,6 +57,7 @@ export default { dataListKey: "CustomerNoteDataList", dataListFilter: "", dataListSort: "", + metaView: undefined, rights: window.$gz.role.defaultRightsObject(), ayType: window.$gz.type.CustomerNote, selectedItems: [] @@ -62,7 +69,7 @@ export default { } } }; - +//"[{\"fld\": \"widgetname\",\"filter\": {\"any\":false,\"items\": [{\"op\": \"%-\",\"value\": \"Awesome\"}]}},{\"fld\":\"widgetserial\"},{\"fld\":\"widgetdollaramount\"},{\"fld\":\"widgetusertype\"},{\"fld\":\"widgetstartdate\"},{\"fld\":\"widgetactive\"},{\"fld\":\"username\"},{\"fld\":\"widgettags\"},{\"fld\":\"widgetcustom1\"},{\"fld\":\"widgetcustom2\"}]" ///////////////////////////// // //