This commit is contained in:
@@ -6,9 +6,17 @@
|
||||
<v-form ref="form" v-if="formState.ready">
|
||||
<v-row>
|
||||
<gz-error :error-box-message="formState.errorBoxMessage"></gz-error>
|
||||
<v-col cols="12" v-if="customername">
|
||||
<v-btn @click="goToCustomer"> {{ customername }}</v-btn>
|
||||
|
||||
<v-col cols="12">
|
||||
<gz-pick-list
|
||||
readonly
|
||||
v-model="obj.customerId"
|
||||
:aya-type="ayaTypes().Customer"
|
||||
:show-edit-icon="true"
|
||||
:label="$ay.t('Customer')"
|
||||
></gz-pick-list>
|
||||
</v-col>
|
||||
|
||||
<v-col cols="12">
|
||||
<v-textarea
|
||||
v-model="obj.notes"
|
||||
@@ -77,7 +85,6 @@ export default {
|
||||
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;
|
||||
//id 0 means create a new record don't load one
|
||||
if (vm.$route.params.recordid != 0) {
|
||||
//is there already an obj from a prior operation?
|
||||
@@ -190,15 +197,6 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
goToCustomer() {
|
||||
this.$router.push({
|
||||
name: "customer-edit",
|
||||
params: {
|
||||
recordid: this.obj.customerId
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
canSave: function() {
|
||||
return this.formState.valid && this.formState.dirty;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user