This commit is contained in:
2020-11-24 20:29:14 +00:00
parent 58706f6bc3
commit 9c7b8e1d59
4 changed files with 11 additions and 3 deletions

View File

@@ -6,6 +6,7 @@
*/
export default {
Customer: { Change: 33098, ReadFullRecord: 65669, Select: 131071 },
CustomerNote: { Change: 33098, ReadFullRecord: 65669, Select: 131071 },
Contract: { Change: 33098, ReadFullRecord: 65669, Select: 131071 },
HeadOffice: { Change: 33098, ReadFullRecord: 65669, Select: 131071 },
LoanUnit: { Change: 33098, ReadFullRecord: 65669, Select: 131071 },

View File

@@ -64,7 +64,7 @@ export default {
try {
await initForm(vm);
vm.rights = window.$gz.role.getRights(window.$gz.type.Customer);
vm.rights = window.$gz.role.getRights(window.$gz.type.CustomerNote);
vm.formState.readOnly = !vm.rights.change;
window.$gz.eventBus.$on("menu-click", clickHandler);
this.customername = this.$route.params.customername;

View File

@@ -34,7 +34,7 @@ const FORM_KEY = "cust-customer-notes";
export default {
created() {
this.customername = this.$route.params.customername;
this.customerId = this.$route.params.customerid;
this.customerId = parseInt(this.$route.params.customerid);
this.metaView = JSON.stringify([
{
fld: "metacustomer",
@@ -42,7 +42,7 @@ export default {
}
]);
this.rights = window.$gz.role.getRights(window.$gz.type.Customer);
this.rights = window.$gz.role.getRights(window.$gz.type.CustomerNote);
window.$gz.eventBus.$on("menu-click", clickHandler);
generateMenu(this);
},