This commit is contained in:
2020-11-24 19:59:20 +00:00
parent 677690a78a
commit 58706f6bc3
2 changed files with 16 additions and 6 deletions

View File

@@ -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

View File

@@ -7,16 +7,15 @@
ref="extensions"
>
</gz-extensions>
{{ customername }}
<gz-data-table
ref="gzdatatable"
formKey="customer-note-list"
formKey="cust-customer-notes"
:dataListKey="dataListKey"
:dataListFilter="dataListFilter"
:dataListSort="dataListSort"
:showSelect="rights.change"
:metaView="metaView"
v-on:selection-change="handleSelected"
data-cy="customerNotesTable"
>
@@ -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\"}]"
/////////////////////////////
//
//