Merged in bugfix/PMCORE-2684 (pull request #7753)

PMCORE-2684

Approved-by: Rodrigo Quelca <rockoinfo@yahoo.com>
This commit is contained in:
Fabio Guachalla
2021-01-20 20:03:56 +00:00
committed by Julio Cesar Laura Avendaño
4 changed files with 87 additions and 2 deletions

View File

@@ -201,6 +201,7 @@ export default {
this.getInputDocuments();
this.getOutputDocuments();
this.getCasesNotes();
this.requestOpenSummary();
},
methods: {
postComment(comment, send, files) {
@@ -504,7 +505,24 @@ export default {
ACTION: "todo",
});
this.$emit("onUpdatePage", "XCase");
}
},
/**
* Verify if the case has the permission Summary Form
* to add dynUid in dataCase
*/
requestOpenSummary() {
Api.cases
.openSummary(this.dataCase)
.then((response) => {
var data = response.data;
if (data.dynUid !== "") {
this.dataCase.DYN_UID = data.dynUid;
}
})
.catch((e) => {
console.error(e);
});
},
},
};
</script>