mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Features:
- Prototipo PDF - Ferro PDF - Ferro OK fecha cambiado a Ferro/Prototipo OK - Comentarios para orden,impresion,cubierta,encuadernacion y logistica - Migración para comentarios - Tarifas acabado migraciones con campos para identificar mejor si es plastificado,plakene,retractilado y el tipo de cada uno
This commit is contained in:
@ -153,7 +153,7 @@ class OrdenTrabajo {
|
||||
this.item.on("click", "#btn-reset-tareas", this.handleResetTareasDeleteConfirmation.bind(this))
|
||||
this.otForm.on("click", ".ot-tarea-comment", this.handleNoteTarea.bind(this))
|
||||
$("#btn-update-tarea-comment").on("click", this.handleTareaNoteSubmit.bind(this))
|
||||
this.otForm.on("change", "#ot-comment", this.handleOtComment.bind(this))
|
||||
this.otForm.on("change", ".ot-comment", this.handleOtComment.bind(this))
|
||||
$("#btn-update-pliegos").on('click', this.handleUpdatePliegos.bind(this))
|
||||
|
||||
this._handleGetData()
|
||||
@ -485,17 +485,18 @@ class OrdenTrabajo {
|
||||
}
|
||||
handleTareaChangeError(error) { }
|
||||
handleOtComment(event) {
|
||||
let name = $(event.currentTarget).attr("name")
|
||||
let data = {
|
||||
"orden_trabajo_id": this.modelId,
|
||||
"name": name,
|
||||
}
|
||||
data[name] = $(event.currentTarget).val()
|
||||
const ajax = new Ajax(
|
||||
"/produccion/ordentrabajo/update",
|
||||
{
|
||||
"orden_trabajo_id": this.modelId,
|
||||
"name": $(event.currentTarget).attr("name"),
|
||||
"comentarios": $(event.currentTarget).val()
|
||||
},
|
||||
data,
|
||||
null,
|
||||
(response) => {
|
||||
|
||||
this._handleGetData();
|
||||
alertSuccess(response.message).fire()
|
||||
},
|
||||
null
|
||||
|
||||
Reference in New Issue
Block a user