This commit is contained in:
@@ -520,14 +520,20 @@ export default {
|
|||||||
this.activeItemIndex
|
this.activeItemIndex
|
||||||
];
|
];
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: "svc-units",
|
name: "unit-edit",
|
||||||
params: {
|
params: {
|
||||||
recordid: 0,
|
recordid: 0,
|
||||||
genFromPart: {
|
genFromPart: {
|
||||||
customerId: this.value.customerId,
|
customerId: this.value.customerId,
|
||||||
partId: thisPart.partId,
|
partId: thisPart.partId,
|
||||||
purchaseDate: this.value.serviceDate,
|
purchaseDate: this.value.serviceDate,
|
||||||
serial: thisPart.serials
|
serial: thisPart.serials,
|
||||||
|
address: this.value.address,
|
||||||
|
city: this.value.city,
|
||||||
|
region: this.value.region,
|
||||||
|
country: this.value.country,
|
||||||
|
latitude: this.value.latitude,
|
||||||
|
longitude: this.value.longitude
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -768,7 +768,13 @@ export default {
|
|||||||
customerId: this.value.customerId,
|
customerId: this.value.customerId,
|
||||||
partId: thisPart.partId,
|
partId: thisPart.partId,
|
||||||
purchaseDate: this.value.serviceDate,
|
purchaseDate: this.value.serviceDate,
|
||||||
serial: thisPart.serials
|
serial: thisPart.serials,
|
||||||
|
address: this.value.address,
|
||||||
|
city: this.value.city,
|
||||||
|
region: this.value.region,
|
||||||
|
country: this.value.country,
|
||||||
|
latitude: this.value.latitude,
|
||||||
|
longitude: this.value.longitude
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -792,7 +798,27 @@ export default {
|
|||||||
this.obj.customerId = gen.customerId;
|
this.obj.customerId = gen.customerId;
|
||||||
this.obj.serial = gen.serial;
|
this.obj.serial = gen.serial;
|
||||||
this.obj.purchasedDate = gen.purchaseDate;
|
this.obj.purchasedDate = gen.purchaseDate;
|
||||||
this.obj.description = p.partNumber + " " + p.name;
|
this.obj.description = p.partNumber;
|
||||||
|
if (
|
||||||
|
gen.address ||
|
||||||
|
gen.city ||
|
||||||
|
gen.region ||
|
||||||
|
gen.country ||
|
||||||
|
gen.latitude ||
|
||||||
|
gen.longitude
|
||||||
|
) {
|
||||||
|
this.obj.unitHasOwnAddress = true;
|
||||||
|
this.obj.address = gen.address ?? null;
|
||||||
|
this.obj.city = gen.city ?? null;
|
||||||
|
this.obj.region = gen.region ?? null;
|
||||||
|
this.obj.country = gen.country ?? null;
|
||||||
|
this.obj.latitude = gen.latitude ?? null;
|
||||||
|
this.obj.longitude = gen.longitude ?? null;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (p.name) {
|
||||||
|
this.obj.description += ` ${p.name}`;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
setDirty = true;
|
setDirty = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user