feat/ot-datatable-news

This commit is contained in:
amazuecos
2025-05-02 07:56:28 +02:00
parent 9283059f9d
commit 5138681718
14 changed files with 346 additions and 65 deletions

View File

@ -21,7 +21,8 @@ class OrdenTrabajo {
this.btnErasePedidoDate = this.item.find('.btn-erase-pedido-date');
this.isOtFinalizada = false;
this.tiempoTotal = this.item.find('#tiempo-total')
this.tiempoEstimado = this.item.find('#tiempo-estimado')
this.btnResetTareas = this.item.find("#btn-reset-tareas")
this.pedidoEnEsperaCheck = this.item.find("#ot-pedido-espera");
this.pedidoEnEsperaBy = this.item.find("#pedido_espera_by");
@ -278,7 +279,6 @@ class OrdenTrabajo {
createSelectMaquinaTarea() {
try {
$('.select-proveedor-tarea-datatable').each((index, element) => {
console.log(element)
this.createSelectProveedor($(element))
})
this.summaryData.tasks.forEach(async (element) => {
@ -472,6 +472,8 @@ class OrdenTrabajo {
fillOtDetails() {
const progreso = this.summaryData.ot.progreso
this.otForm.find("#ot-progress-bar").attr('aria-valuenow', progreso).text(progreso + "%").css("width", progreso + "%")
this.tiempoEstimado.html(this.summaryData.tiempo_procesamiento)
this.tiempoTotal.html(this.summaryData.tiempo_total)
}
fillOtDates() {
this.fechaImpresion.setDate(this.summaryData.pedido.fecha_impresion)
@ -861,7 +863,6 @@ class OrdenTrabajo {
alertConfirmationDelete()
.then(result => {
if (result.isConfirmed) {
console.log(name)
ajax.post()
}
})
@ -892,7 +893,6 @@ class OrdenTrabajo {
alertConfirmationDelete()
.then(result => {
if (result.isConfirmed) {
console.log(name)
ajax.post()
}
})