This commit is contained in:
2021-06-29 17:54:52 +00:00
parent 450bc26a81
commit 07b4dd3125
18 changed files with 54 additions and 0 deletions

View File

@@ -235,6 +235,9 @@ export default {
this.obj = this.$route.params.obj;
this.obj.concurrency = undefined;
this.obj.id = 0;
this.obj.name = `${this.obj.name} - ${window.$gz.translation.get(
"Copy"
)}`;
setDirty = true;
}
}

View File

@@ -197,6 +197,9 @@ export default {
this.obj = this.$route.params.obj;
this.obj.concurrency = undefined;
this.obj.id = 0;
this.obj.name = `${this.obj.name} - ${window.$gz.translation.get(
"Copy"
)}`;
setDirty = true;
}
}

View File

@@ -233,6 +233,9 @@ export default {
this.obj = this.$route.params.obj;
this.obj.concurrency = undefined;
this.obj.id = 0;
this.obj.name = `${this.obj.name} - ${window.$gz.translation.get(
"Copy"
)}`;
setDirty = true;
}
}

View File

@@ -362,6 +362,9 @@ export default {
this.obj = this.$route.params.obj;
this.obj.concurrency = undefined;
this.obj.id = 0;
this.obj.name = `${this.obj.name} - ${window.$gz.translation.get(
"Copy"
)}`;
setDirty = true;
}
}

View File

@@ -782,6 +782,9 @@ export default {
this.obj = this.$route.params.obj;
this.obj.concurrency = undefined;
this.obj.id = 0;
this.obj.name = `${this.obj.name} - ${window.$gz.translation.get(
"Copy"
)}`;
setDirty = true;
}
}

View File

@@ -692,6 +692,9 @@ export default {
this.obj = this.$route.params.obj;
this.obj.concurrency = undefined;
this.obj.id = 0;
this.obj.name = `${this.obj.name} - ${window.$gz.translation.get(
"Copy"
)}`;
setDirty = true;
}
}

View File

@@ -207,6 +207,9 @@ export default {
this.obj = this.$route.params.obj;
this.obj.concurrency = undefined;
this.obj.id = 0;
this.obj.name = `${this.obj.name} - ${window.$gz.translation.get(
"Copy"
)}`;
setDirty = true;
} else {
//----------------------------------------------------------

View File

@@ -209,6 +209,9 @@ export default {
this.obj = this.$route.params.obj;
this.obj.concurrency = undefined;
this.obj.id = 0;
this.obj.name = `${this.obj.name} - ${window.$gz.translation.get(
"Copy"
)}`;
setDirty = true;
} else {
//New record so there has to be a object type and objectId in route

View File

@@ -307,6 +307,9 @@ export default {
this.obj = this.$route.params.obj;
this.obj.concurrency = undefined;
this.obj.id = 0;
this.obj.name = `${this.obj.name} - ${window.$gz.translation.get(
"Copy"
)}`;
this.obj.items.forEach(z => (z.id = 0));
setDirty = true;
}

View File

@@ -138,6 +138,9 @@ export default {
this.obj = this.$route.params.obj;
this.obj.concurrency = undefined;
this.obj.id = 0;
this.obj.name = `${this.obj.name} - ${window.$gz.translation.get(
"Copy"
)}`;
setDirty = true;
}
}

View File

@@ -342,6 +342,9 @@ export default {
this.obj = this.$route.params.obj;
this.obj.concurrency = undefined;
this.obj.id = 0;
this.obj.partNumber = `${
this.obj.partNumber
} - ${window.$gz.translation.get("Copy")}`;
setDirty = true;
}
}

View File

@@ -1350,6 +1350,9 @@ export default {
this.obj = this.$route.params.obj;
this.obj.concurrency = undefined;
this.obj.id = 0;
this.obj.name = `${this.obj.name} - ${window.$gz.translation.get(
"Copy"
)}`;
this.obj.serviceRateItems.forEach(z => (z.id = 0));
this.obj.travelRateItems.forEach(z => (z.id = 0));
this.obj.contractPartOverrideItems.forEach(z => (z.id = 0));

View File

@@ -461,6 +461,9 @@ export default {
this.obj = this.$route.params.obj;
this.obj.concurrency = undefined;
this.obj.id = 0;
this.obj.name = `${this.obj.name} - ${window.$gz.translation.get(
"Copy"
)}`;
setDirty = true;
}
}

View File

@@ -214,6 +214,9 @@ export default {
this.obj = this.$route.params.obj;
this.obj.concurrency = undefined;
this.obj.id = 0;
this.obj.name = `${this.obj.name} - ${window.$gz.translation.get(
"Copy"
)}`;
setDirty = true;
}
}

View File

@@ -298,6 +298,9 @@ export default {
this.obj = this.$route.params.obj;
this.obj.concurrency = undefined;
this.obj.id = 0;
this.obj.number = `${this.obj.number} - ${window.$gz.translation.get(
"Copy"
)}`;
setDirty = true;
}
}

View File

@@ -755,6 +755,9 @@ export default {
this.obj = this.$route.params.obj;
this.obj.concurrency = undefined;
this.obj.id = 0;
this.obj.serial = `${this.obj.serial} - ${window.$gz.translation.get(
"Copy"
)}`;
setDirty = true;
}
}

View File

@@ -617,6 +617,9 @@ export default {
this.obj = this.$route.params.obj;
this.obj.concurrency = undefined;
this.obj.id = 0;
this.obj.name = `${this.obj.name} - ${window.$gz.translation.get(
"Copy"
)}`;
setDirty = true;
}
}

View File

@@ -301,6 +301,9 @@ export default {
this.obj = this.$route.params.obj;
this.obj.concurrency = undefined;
this.obj.id = 0;
this.obj.name = `${this.obj.name} - ${window.$gz.translation.get(
"Copy"
)}`;
setDirty = true;
} else {
//----------------------------------------------------------