This commit is contained in:
@@ -139,17 +139,25 @@ export default {
|
||||
usertypes: []
|
||||
},
|
||||
customername: undefined,
|
||||
/*
|
||||
|
||||
public string Description { get; set; }
|
||||
public long Meter { get; set; }
|
||||
public DateTime MeterDate { get; set; }
|
||||
public long UnitId { get; set; }
|
||||
public long? WorkOrderItemUnitId { get; set; }
|
||||
*/
|
||||
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
|
||||
//I.E. Serial, usertype fields
|
||||
//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,
|
||||
concurrency: 0,
|
||||
notes: null,
|
||||
noteDate: window.$gz.locale.nowUTC8601String(),
|
||||
tags: [],
|
||||
customerId: undefined,
|
||||
userId: undefined
|
||||
description: null,
|
||||
meter: 0,
|
||||
meterDate: window.$gz.locale.nowUTC8601String(),
|
||||
unitId: undefined,
|
||||
workOrderItemUnitId: undefined
|
||||
},
|
||||
formState: {
|
||||
ready: false,
|
||||
|
||||
@@ -982,11 +982,16 @@ export default {
|
||||
if (this.canOpenMeter()) {
|
||||
this.$router.push({
|
||||
name: "meter-readings",
|
||||
params: {
|
||||
aType: window.$gz.type.Unit,
|
||||
objectId: this.$route.params.recordid
|
||||
}
|
||||
params: { unitid: this.obj.id, unitname: this.obj.serial }
|
||||
});
|
||||
|
||||
// this.$router.push({
|
||||
// name: "meter-readings",
|
||||
// params: {
|
||||
// aType: window.$gz.type.Unit,
|
||||
// objectId: this.$route.params.recordid
|
||||
// }
|
||||
// });
|
||||
}
|
||||
},
|
||||
canSave: function() {
|
||||
|
||||
Reference in New Issue
Block a user