This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user