[ADD] GESTION TICKETS Y NUEVO DISEÑO

parent c46f636f
......@@ -34,10 +34,22 @@
align-items: center !important;
}
mat-card {
border: 3px solid #9cc2ff;
box-shadow: 0px 4px 6px rgba(0, 0.4, 0.4, 0.3);
}
mat-label {
opacity: 1; /* Por defecto, el label será completamente visible */
font-size: 15px;
font-family: Montserrat, sans-serif;
font-weight: bold;
line-height: 24px;
letter-spacing: .5px;
}
.custom-snackbar {
white-space: pre-line; /* Permite respetar saltos de línea */
}
......
......@@ -44,6 +44,15 @@ export class ConformidadHelper {
}
}
async listadoGeneralTickets(json: any){
const respuesta = await this.ConformidadService.listadoGeneralTickets(json);
if (respuesta?.status) {
return respuesta.data;
}else{
return [];
}
}
async gestionConformidad(json: any){
const respuesta = await this.ConformidadService.gestionConformidad(json);
if (respuesta?.status) {
......@@ -59,8 +68,8 @@ export class ConformidadHelper {
return respuesta
}
async eliminarDocumento(json : any){
const respuesta = await this.ConformidadService.eliminarDocumento(json);
async eliminarArchivo(json : any){
const respuesta = await this.ConformidadService.eliminarArchivo(json);
return respuesta
}
......
......@@ -22,7 +22,7 @@
<mat-label>CANTIDAD : </mat-label>
<mat-form-field class="w-full">
<mat-label>Ingrese cantidad</mat-label>
<input formControlName="cantidadArticulo" matInput soloNumeros="entero" maxlength="3" placeholder="Máx. 3 dígitos">
<input formControlName="cantidadArticulo" matInput soloNumeros="entero" maxlength="5" placeholder="Máx. 5 dígitos">
</mat-form-field>
</div>
......
......@@ -88,7 +88,7 @@
<div class="mt-6">
<div><b class="md:text-[1rem] text-[1em] text-black/60">EVIDENCIA DE MATERIAL SOBRANTE: (opcional)</b></div>
<div>
<button mat-fab class="!w-full" [color]="'blue'" (click)="fotoATC.click()">
<button mat-fab class="!w-full" style="background-color: #ffcf83" (click)="fotoATC.click()">
<mat-label>FOTO MATERIAL SOBRANTE</mat-label>
<mat-icon>file_open</mat-icon>
</button>
......
......@@ -62,6 +62,29 @@ export class ConformidadService {
}
}
async listadoGeneralTickets(json : any){
try {
const respuesta = await axios.post(this.t_asistencia_rest_link + '/api/v1/soticket/consultar_tickets',
{
p_item: json.p_item,
p_sede : json.p_sede,
p_responsable : json.p_responsable,
p_fecha_ini : json.p_fecha_ini ,
p_fecha_fin : json.p_fecha_fin,
p_correo : json.p_correo ,
p_estado : json.p_estado ,
length : json.length ,
start : json.start
}
);
return respuesta.data;
} catch (e) {
return e;
}
}
async gestionConformidad(json: any) {
const Parametros = {
......@@ -175,7 +198,7 @@ export class ConformidadService {
const responseBody = await response.json();
if (responseBody?.status) {
await this.registroDocumento({
await this.registroArchivo({
codconformidad: datos.codconformidad || 0,
tipoEvidencia: datos.tipoEvidencia || 0,
idDrive: responseBody.data.archivo_id || "",
......@@ -228,7 +251,7 @@ export class ConformidadService {
}
async registroDocumento(json: any) {
async registroArchivo(json: any) {
const parametros = {
accion: 1,
codconformidad: json.codconformidad || 0,
......@@ -249,7 +272,7 @@ export class ConformidadService {
}
}
async eliminarDocumento(json : any){
async eliminarArchivo(json : any){
const parametros = {
accion: 1,
codconformidad: json.codconformidad || 0,
......
<!doctype html>
<html lang="en">
<html lang="en" style="background-color: #caeeff;">
<head>
<meta charset="utf-8">
<title>AngularFormularioHR</title>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment