This commit is contained in:
2021-07-09 00:20:53 +00:00
parent 17cae92902
commit 9c2983b2bf
2 changed files with 2 additions and 37 deletions

View File

@@ -764,27 +764,6 @@ export default {
//(set by workorder item part when user selects generate unit from part)
let gen = this.$route.params.genFromPart;
if (gen) {
/* genFromPart: {
customerId: this.value.customerId,
partId: thisPart.partId,
purchaseDate: this.value.serviceDate,
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
}
/*
owner is workorder customer
Description is part name
purchased here is true
purchased date is service date of workorder
Serial number is part serial number if set
*/
//get the part then set the values accordingly
let res = await window.$gz.api.get(`part/${gen.partId}`);
if (res.error) {