This commit is contained in:
@@ -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
|
todo: picklist empty null vs zero
|
||||||
test with customer and headofficeid
|
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?
|
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
|
todo: picklist clear doesn't trigger dirty change
|
||||||
maybe doesn't emit?
|
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
|
CURRENTLY WORKING ON: Customer
|
||||||
|
|
||||||
OUTSTANDING
|
OUTSTANDING
|
||||||
|
metalistview - replicate to report / id's list route
|
||||||
customer notes
|
customer notes
|
||||||
Review existing v7...
|
Review existing v7...
|
||||||
What can be done with it? Edit existing? Remove existing? Search? print? etc
|
What can be done with it? Edit existing? Remove existing? Search? print? etc
|
||||||
|
|||||||
@@ -7,16 +7,15 @@
|
|||||||
ref="extensions"
|
ref="extensions"
|
||||||
>
|
>
|
||||||
</gz-extensions>
|
</gz-extensions>
|
||||||
|
|
||||||
{{ customername }}
|
{{ customername }}
|
||||||
|
|
||||||
<gz-data-table
|
<gz-data-table
|
||||||
ref="gzdatatable"
|
ref="gzdatatable"
|
||||||
formKey="customer-note-list"
|
formKey="cust-customer-notes"
|
||||||
:dataListKey="dataListKey"
|
:dataListKey="dataListKey"
|
||||||
:dataListFilter="dataListFilter"
|
:dataListFilter="dataListFilter"
|
||||||
:dataListSort="dataListSort"
|
:dataListSort="dataListSort"
|
||||||
:showSelect="rights.change"
|
:showSelect="rights.change"
|
||||||
|
:metaView="metaView"
|
||||||
v-on:selection-change="handleSelected"
|
v-on:selection-change="handleSelected"
|
||||||
data-cy="customerNotesTable"
|
data-cy="customerNotesTable"
|
||||||
>
|
>
|
||||||
@@ -31,11 +30,18 @@
|
|||||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
const FORM_KEY = "cust-customer-notes";
|
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 {
|
export default {
|
||||||
created() {
|
created() {
|
||||||
this.customername = this.$route.params.customername;
|
this.customername = this.$route.params.customername;
|
||||||
this.customerId = this.$route.params.customerid;
|
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);
|
this.rights = window.$gz.role.getRights(window.$gz.type.Customer);
|
||||||
window.$gz.eventBus.$on("menu-click", clickHandler);
|
window.$gz.eventBus.$on("menu-click", clickHandler);
|
||||||
generateMenu(this);
|
generateMenu(this);
|
||||||
@@ -51,6 +57,7 @@ export default {
|
|||||||
dataListKey: "CustomerNoteDataList",
|
dataListKey: "CustomerNoteDataList",
|
||||||
dataListFilter: "",
|
dataListFilter: "",
|
||||||
dataListSort: "",
|
dataListSort: "",
|
||||||
|
metaView: undefined,
|
||||||
rights: window.$gz.role.defaultRightsObject(),
|
rights: window.$gz.role.defaultRightsObject(),
|
||||||
ayType: window.$gz.type.CustomerNote,
|
ayType: window.$gz.type.CustomerNote,
|
||||||
selectedItems: []
|
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\"}]"
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user