diff --git a/resources/js/components/pedidos/ProductoCantidad.vue b/resources/js/components/pedidos/ProductoCantidad.vue index 7acd421..dbc18e4 100644 --- a/resources/js/components/pedidos/ProductoCantidad.vue +++ b/resources/js/components/pedidos/ProductoCantidad.vue @@ -14,7 +14,7 @@ - + @@ -25,10 +25,20 @@ - - + + + + + + + + + + + No se puede dejar este campo vacío + + - @@ -86,6 +96,13 @@ puedeBorrar() { return this.cantidadEnChismosa() > 0; }, + warningNotas() { + return this.producto.requiere_notas && this.cantidad > 0 && !this.notas; + }, + disableConfirm() { + if (!this.hayCambios() || this.warningNotas()) return true; + return false; + }, } } @@ -107,4 +124,12 @@ .contador { min-width: 178px; } + + .is-danger { + background-color: #fca697; + } + .is-danger::placeholder { + color: #fff; + opacity: 1; /* Firefox */ + } \ No newline at end of file