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