diff --git a/modules/ticket/front/dms/index/index.html b/modules/ticket/front/dms/index/index.html index 203ceb635..526a3e379 100644 --- a/modules/ticket/front/dms/index/index.html +++ b/modules/ticket/front/dms/index/index.html @@ -96,18 +96,48 @@ +
+ + + + + + + + +
- - - - + - \ No newline at end of file + + + + + + + + + + + + \ No newline at end of file diff --git a/modules/ticket/front/dms/index/index.js b/modules/ticket/front/dms/index/index.js index da6aa6b6f..e9ff3e4b9 100644 --- a/modules/ticket/front/dms/index/index.js +++ b/modules/ticket/front/dms/index/index.js @@ -55,6 +55,18 @@ class Controller extends Section { downloadFile(dmsId) { this.vnFile.download(`api/dms/${dmsId}/downloadFile`); } + + importDms() { + const data = { + ticketFk: this.$params.id, + dmsFk: this.dmsId + }; + + this.$http.post('ticketDms', data).then(() => { + this.vnApp.showSuccess(this.$t('Data saved!')); + this.$.model.refresh(); + }); + } } Controller.$inject = ['$element', '$scope', 'vnFile']; diff --git a/modules/ticket/front/dms/locale/es.yml b/modules/ticket/front/dms/locale/es.yml index 998960a8e..83b290472 100644 --- a/modules/ticket/front/dms/locale/es.yml +++ b/modules/ticket/front/dms/locale/es.yml @@ -6,4 +6,6 @@ FileDescription: Ticket id {{ticketId}} del cliente {{clientName}} id {{clientId Generate identifier for original file: Generar identificador para archivo original ContentTypesInfo: 'Tipos de archivo permitidos: {{allowedContentTypes}}' Are you sure you want to continue?: ¿Seguro que quieres continuar? -File management: Gestión documental \ No newline at end of file +File management: Gestión documental +Select document id: Introduzca id de gestion documental +Import from existing: Importar desde existente \ No newline at end of file