2999-ticket_dms_import_from_existing + buyer to ticket.isEditable #678
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -9,3 +9,4 @@ 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
|
||||
The document indentifier can't be empty: El número de documento no puede estar vacío
|
Loading…
Reference in New Issue