This commit is contained in:
@@ -2,20 +2,30 @@
|
||||
<div>
|
||||
<gz-report-selector ref="reportSelector"></gz-report-selector>
|
||||
<gz-extensions
|
||||
:ayaType="ayType"
|
||||
:selectedItems="selectedItems"
|
||||
:aya-type="ayType"
|
||||
:selected-items="selectedItems"
|
||||
ref="extensions"
|
||||
>
|
||||
</gz-extensions>
|
||||
{{ customername }}
|
||||
<v-row>
|
||||
<v-col cols="12">
|
||||
<gz-pick-list
|
||||
readonly
|
||||
v-model="customerId"
|
||||
:aya-type="ayaTypes().Customer"
|
||||
:show-edit-icon="true"
|
||||
:label="$ay.t('Customer')"
|
||||
></gz-pick-list>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<gz-data-table
|
||||
ref="gzdatatable"
|
||||
formKey="cust-customer-notes"
|
||||
dataListKey="CustomerNoteDataList"
|
||||
:showSelect="rights.read"
|
||||
form-key="cust-customer-notes"
|
||||
data-list-key="CustomerNoteDataList"
|
||||
:show-select="rights.read"
|
||||
:reload="reload"
|
||||
:clientCriteria="clientCriteria"
|
||||
v-on:selection-change="handleSelected"
|
||||
:client-criteria="clientCriteria"
|
||||
@selection-change="handleSelected"
|
||||
data-cy="customerNotesTable"
|
||||
>
|
||||
</gz-data-table>
|
||||
@@ -31,7 +41,7 @@
|
||||
const FORM_KEY = "cust-customer-notes";
|
||||
export default {
|
||||
created() {
|
||||
this.customername = this.$route.params.customername;
|
||||
|
||||
this.customerId = parseInt(this.$route.params.customerid);
|
||||
//MIXED STATIC But with provided criteria FILTER
|
||||
this.clientCriteria = this.customerId.toString();
|
||||
@@ -45,7 +55,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
customerId: undefined,
|
||||
customername: undefined,
|
||||
// customername: undefined,
|
||||
clientCriteria: undefined,
|
||||
rights: window.$gz.role.defaultRightsObject(),
|
||||
ayType: window.$gz.type.CustomerNote,
|
||||
@@ -56,6 +66,9 @@ export default {
|
||||
methods: {
|
||||
handleSelected(selected) {
|
||||
this.selectedItems = selected;
|
||||
},
|
||||
ayaTypes: function() {
|
||||
return window.$gz.type;
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -75,8 +88,7 @@ async function clickHandler(menuItem) {
|
||||
name: "customer-note-edit",
|
||||
params: {
|
||||
recordid: 0,
|
||||
customerid: m.vm.customerId,
|
||||
customername: m.vm.customername
|
||||
customerid: m.vm.customerId
|
||||
}
|
||||
});
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user