This commit is contained in:
2021-08-05 19:40:06 +00:00
parent b693dd926a
commit 2498491528
2 changed files with 44 additions and 57 deletions

View File

@@ -598,17 +598,6 @@ export default {
break;
}
},
// duplicate() {
// //Navigate to new record
// this.$router.push({
// name: "pm-edit",
// params: {
// recordid: 0,
// obj: this.obj
// }
// });
// },
duplicate() {
let cp = JSON.parse(JSON.stringify(this.obj));
if (this.genCopyAttachments) {
@@ -674,7 +663,7 @@ export default {
if (this.genCopyAttachments) {
//this property set will trigger server to copy attachments
cp.genCopyAttachmentsFrom = {
sAType: window.$gz.type.WorkOrder,
sAType: window.$gz.type.PM,
sId: this.obj.id
};
}