This commit is contained in:
@@ -5,6 +5,8 @@
|
|||||||
|
|
||||||
MISC ITEMS THAT CAME UP
|
MISC ITEMS THAT CAME UP
|
||||||
|
|
||||||
|
todo: picklist preId fetch should *always* return the name even if inactive
|
||||||
|
http://localhost:7575/api/v8.0/pick-list/List?ayaType=15&preId=3
|
||||||
|
|
||||||
|
|
||||||
todo: if list view not found / deleted when grid list form is opened rather than erroring with object/object it should
|
todo: if list view not found / deleted when grid list form is opened rather than erroring with object/object it should
|
||||||
|
|||||||
@@ -815,13 +815,13 @@ export default {
|
|||||||
},
|
},
|
||||||
obj:
|
obj:
|
||||||
//IMPORTANT NOTE: Fields that are NON NULLABLE in the schema for the table but *are* hideable **MUST** have a default value set here or else there will be no way to save the record
|
//IMPORTANT NOTE: Fields that are NON NULLABLE in the schema for the table but *are* hideable **MUST** have a default value set here or else there will be no way to save the record
|
||||||
//I.E. Serial, usertype fields
|
//I.E. Serial, usertype fields, ACTIVE
|
||||||
//Also, if it's a non-nullable Enum backed field then it should have a valid selection i.e. not zero if there is no zero
|
//Also, if it's a non-nullable Enum backed field then it should have a valid selection i.e. not zero if there is no zero
|
||||||
{
|
{
|
||||||
id: 0,
|
id: 0,
|
||||||
concurrency: 0,
|
concurrency: 0,
|
||||||
name: null,
|
name: null,
|
||||||
active: null,
|
active: false,
|
||||||
notes: null,
|
notes: null,
|
||||||
wiki: null,
|
wiki: null,
|
||||||
customFields: "{}",
|
customFields: "{}",
|
||||||
|
|||||||
@@ -729,7 +729,7 @@ export default {
|
|||||||
id: 0,
|
id: 0,
|
||||||
concurrency: 0,
|
concurrency: 0,
|
||||||
name: null,
|
name: null,
|
||||||
active: null,
|
active: false,
|
||||||
notes: null,
|
notes: null,
|
||||||
wiki: null,
|
wiki: null,
|
||||||
customFields: "{}",
|
customFields: "{}",
|
||||||
@@ -908,7 +908,7 @@ export default {
|
|||||||
//NOTE: will not cause a page re-render, almost nothing does unless forced with a KEY property or using router.GO()
|
//NOTE: will not cause a page re-render, almost nothing does unless forced with a KEY property or using router.GO()
|
||||||
|
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: "customer-edit",
|
name: "head-office-edit",
|
||||||
params: {
|
params: {
|
||||||
recordid: res.data.id,
|
recordid: res.data.id,
|
||||||
obj: res.data // Pass data object to new form
|
obj: res.data // Pass data object to new form
|
||||||
@@ -999,7 +999,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
//Navigate to new record
|
//Navigate to new record
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: "customer-edit",
|
name: "head-office-edit",
|
||||||
params: {
|
params: {
|
||||||
recordid: res.data.id,
|
recordid: res.data.id,
|
||||||
obj: res.data // Pass data object to new form
|
obj: res.data // Pass data object to new form
|
||||||
@@ -1033,7 +1033,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: "cust-user",
|
name: "cust-user",
|
||||||
params: { recordid: 0, customerid: this.obj.id }
|
params: { recordid: 0, headofficeid: this.obj.id }
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
contactsRowClick(item) {
|
contactsRowClick(item) {
|
||||||
@@ -1235,7 +1235,7 @@ async function clickHandler(menuItem) {
|
|||||||
break;
|
break;
|
||||||
case "new":
|
case "new":
|
||||||
m.vm.$router.push({
|
m.vm.$router.push({
|
||||||
name: "customer-edit",
|
name: "head-office-edit",
|
||||||
params: { recordid: 0, new: true }
|
params: { recordid: 0, new: true }
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
@@ -1284,12 +1284,7 @@ async function clickHandler(menuItem) {
|
|||||||
postCode: m.vm.obj.postCode
|
postCode: m.vm.obj.postCode
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case "HeadOfficeNoteList":
|
|
||||||
m.vm.$router.push({
|
|
||||||
name: "customer-notes",
|
|
||||||
params: { customerid: m.vm.obj.id, customername: m.vm.obj.name }
|
|
||||||
});
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
window.$gz.eventBus.$emit(
|
window.$gz.eventBus.$emit(
|
||||||
"notify-warning",
|
"notify-warning",
|
||||||
|
|||||||
@@ -435,6 +435,7 @@ export default {
|
|||||||
vm.$route.params.headofficeid &&
|
vm.$route.params.headofficeid &&
|
||||||
vm.$route.params.headofficeid != 0
|
vm.$route.params.headofficeid != 0
|
||||||
) {
|
) {
|
||||||
|
console.log(vm.$route.params.headofficeid);
|
||||||
vm.obj.headOfficeId = vm.$route.params.headofficeid;
|
vm.obj.headOfficeId = vm.$route.params.headofficeid;
|
||||||
vm.obj.userType = 4;
|
vm.obj.userType = 4;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user