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