This commit is contained in:
@@ -65,8 +65,10 @@ TODO: //MIGRATE_OUTSTANDING comment tag
|
||||
|
||||
currently doing: Review
|
||||
Display, printable
|
||||
Create new in both modes from another object so self and assign to another based on extra biz rule rights
|
||||
need route with type and id appended for new 0 one.
|
||||
Currently just started create new from Customer
|
||||
make name display at top a link back to the customer / source object to save hunting around
|
||||
Make sure can review from all edit forms
|
||||
test it out full from front to back start to finish, lots of edges on this one
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -4,7 +4,10 @@
|
||||
<div v-if="formState.ready">
|
||||
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
|
||||
<v-form ref="form">
|
||||
<span class="text-h5"> {{ name }}</span>
|
||||
<div class="mb-6" v-if="obj.objectType">
|
||||
<v-icon large>{{ iconForType }}</v-icon
|
||||
><span class="text-h5"> {{ name }}</span>
|
||||
</div>
|
||||
<v-row>
|
||||
<v-col v-if="currentUserIsASupervisor" cols="12" sm="6" lg="4" xl="3">
|
||||
<gz-pick-list
|
||||
@@ -203,6 +206,7 @@ export default {
|
||||
//is there already an obj from a prior operation?
|
||||
if (vm.$route.params.obj) {
|
||||
//yes, no need to fetch it
|
||||
vm.name = vm.$route.params.name;
|
||||
vm.obj = vm.$route.params.obj;
|
||||
window.$gz.form.setFormState({
|
||||
vm: vm,
|
||||
@@ -298,7 +302,8 @@ export default {
|
||||
window.$gz.role.AUTHORIZATION_ROLES.InventoryFull,
|
||||
window.$gz.role.AUTHORIZATION_ROLES.SalesFull,
|
||||
window.$gz.role.AUTHORIZATION_ROLES.AccountingFull
|
||||
])
|
||||
]),
|
||||
name: null
|
||||
};
|
||||
},
|
||||
//WATCHERS
|
||||
@@ -339,6 +344,10 @@ export default {
|
||||
selfAssigned: function() {
|
||||
return this.obj.userId == this.obj.assignedByUserId;
|
||||
},
|
||||
|
||||
iconForType() {
|
||||
return window.$gz.util.iconForType(Number.parseInt(this.obj.objectType));
|
||||
},
|
||||
hasSupervisorRole: function() {
|
||||
//mirrored from ReviewBiz.cs validation rule at server
|
||||
/*
|
||||
@@ -454,7 +463,8 @@ export default {
|
||||
name: "review-edit",
|
||||
params: {
|
||||
recordid: res.data.id,
|
||||
obj: res.data // Pass data object to new form
|
||||
obj: res.data, // Pass data object to new form,
|
||||
name: this.name
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
{{ iconForType() }}
|
||||
<div v-if="objectType">
|
||||
<v-icon>{{ iconForType() }}</v-icon
|
||||
<div v-if="objectType" class="mb-6">
|
||||
<v-icon large>{{ iconForType() }}</v-icon
|
||||
><span class="text-h5"> {{ name }}</span>
|
||||
</div>
|
||||
<gz-report-selector ref="reportSelector"></gz-report-selector>
|
||||
|
||||
Reference in New Issue
Block a user