add revision preimpresion ot

This commit is contained in:
amazuecos
2025-05-02 21:02:53 +02:00
parent 5138681718
commit a88ffda50d
8 changed files with 119 additions and 20 deletions

View File

@ -25,7 +25,9 @@ class OrdenTrabajo {
this.tiempoEstimado = this.item.find('#tiempo-estimado')
this.btnResetTareas = this.item.find("#btn-reset-tareas")
this.pedidoEnEsperaCheck = this.item.find("#ot-pedido-espera");
this.otPreimpresionRevisadaCheck = this.item.find("#ot-preimpresion-revisada");
this.pedidoEnEsperaBy = this.item.find("#pedido_espera_by");
this.otPreimpresionRevisadaUser = this.item.find("#preimpresion_revisada_by");
this.otEstado = this.item.find("#ot-estado");
this.datatableColumns = [
@ -516,12 +518,18 @@ class OrdenTrabajo {
this.embalaje.setDate(this.summaryData.dates.embalaje_at)
this.envio.setDate(this.summaryData.dates.envio_at)
this.pedidoEnEsperaCheck.prop("checked", this.summaryData.ot.is_pedido_espera);
this.otPreimpresionRevisadaCheck.prop("checked", this.summaryData.ot.preimpresion_revisada);
this.tiempoProcesamiento.val(this.summaryData.tiempo_procesamiento);
if (this.summaryData.ot.pedido_espera_by) {
this.pedidoEnEsperaBy.text([this.summaryData.ot.pedido_espera_by.first_name, this.summaryData.ot.pedido_espera_by.last_name].join(" "))
} else {
this.pedidoEnEsperaBy.text("");
}
if (this.summaryData.ot.preimpresion_revisada_by) {
this.otPreimpresionRevisadaUser.text([this.summaryData.ot.preimpresion_revisada_by.first_name, this.summaryData.ot.preimpresion_revisada_by.last_name].join(" "))
} else {
this.otPreimpresionRevisadaUser.text("")
}
this.otEstado.val(this.summaryData.ot.estado)
this.preFormatoAt.setDate(this.summaryData.dates.pre_formato_at)
this.preLomoAt.setDate(this.summaryData.dates.pre_lomo_at)