2999-ticket_dms_import_from_existing + buyer to ticket.isEditable #678

Merged
joan merged 8 commits from 2999-ticket_dms_import_from_existing into dev 2021-06-29 10:13:24 +00:00
2 changed files with 20 additions and 9 deletions
Showing only changes of commit d67e36212f - Show all commits

View File

@ -57,15 +57,25 @@ class Controller extends Section {
}
importDms() {
const data = {
ticketFk: this.$params.id,
dmsFk: this.dmsId
};
try {
if (!this.dmsId)
throw new Error(`The document indentifier can't be empty`);
this.$http.post('ticketDms', data).then(() => {
this.vnApp.showSuccess(this.$t('Data saved!'));
this.$.model.refresh();
});
const data = {
ticketFk: this.$params.id,
dmsFk: this.dmsId
};
this.$http.post('ticketDms', data).then(() => {
this.vnApp.showSuccess(this.$t('Data saved!'));
this.dmsId = null;
this.$.model.refresh();
});
} catch (e) {
this.vnApp.showError(this.$t(e.message));
return false;
}
return true;
}
}

View File

@ -8,4 +8,5 @@ ContentTypesInfo: 'Tipos de archivo permitidos: {{allowedContentTypes}}'
Are you sure you want to continue?: ¿Seguro que quieres continuar?
File management: Gestión documental
Select document id: Introduzca id de gestion documental
Import from existing: Importar desde existente
Import from existing: Importar desde existente
The document indentifier can't be empty: El número de documento no puede estar vacío