sigesp 1.1.38-20250103 → 1.1.40-20250123
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/core/interfaces/ITipoDepositos.mjs +1 -1
- package/esm2020/lib/core/models/SIV/MTipoDepositos.model.mjs +70 -34
- package/esm2020/lib/sigesp.service.mjs +6 -6
- package/fesm2015/sigesp.mjs +74 -38
- package/fesm2015/sigesp.mjs.map +1 -1
- package/fesm2020/sigesp.mjs +74 -38
- package/fesm2020/sigesp.mjs.map +1 -1
- package/lib/core/interfaces/ITipoDepositos.d.ts +22 -10
- package/lib/core/models/SIV/MTipoDepositos.model.d.ts +22 -10
- package/lib/sigesp.service.d.ts +4 -4
- package/package.json +1 -1
package/fesm2015/sigesp.mjs
CHANGED
|
@@ -6354,37 +6354,61 @@ class MTipoDepositos extends MBasicModel {
|
|
|
6354
6354
|
super();
|
|
6355
6355
|
this.idEmpresa = 0;
|
|
6356
6356
|
this.idEnterprise = 0;
|
|
6357
|
+
this.idAlmacen = 0;
|
|
6358
|
+
this.idDeposito = 0;
|
|
6357
6359
|
this.idTipoDeposito = 0;
|
|
6360
|
+
this.idArticulo = 0;
|
|
6361
|
+
this.idUbicacion = 0;
|
|
6362
|
+
this.idLote = 0;
|
|
6363
|
+
this.codigoAlmacen = '';
|
|
6364
|
+
this.nombreAlmacen = '';
|
|
6358
6365
|
this.codigoTipoDeposito = '';
|
|
6359
6366
|
this.denominacionTipoDeposito = '';
|
|
6360
|
-
this.idDeposito = 0;
|
|
6361
6367
|
this.codigoDeposito = '';
|
|
6362
|
-
this.
|
|
6363
|
-
this.
|
|
6364
|
-
this.
|
|
6365
|
-
this.
|
|
6366
|
-
this.
|
|
6367
|
-
this.
|
|
6368
|
-
this.
|
|
6369
|
-
this.
|
|
6370
|
-
this.
|
|
6368
|
+
this.denominacionDeposito = '';
|
|
6369
|
+
this.codigoArticulo = '';
|
|
6370
|
+
this.denominacionArticulo = '';
|
|
6371
|
+
this.codigoLote = '';
|
|
6372
|
+
this.zona = '';
|
|
6373
|
+
this.pasillo = '';
|
|
6374
|
+
this.nivel = '';
|
|
6375
|
+
this.subnivel = '';
|
|
6376
|
+
this.codigo = '';
|
|
6377
|
+
this.recepcion = 0;
|
|
6378
|
+
this.reservacion = 0;
|
|
6379
|
+
this.despacho = 0;
|
|
6380
|
+
this.disponible = 0;
|
|
6381
|
+
this.seriaLote = '';
|
|
6382
|
+
this.cantidad = 0;
|
|
6371
6383
|
if (e) {
|
|
6372
|
-
this.idEmpresa =
|
|
6384
|
+
this.idEmpresa = +e.id_empresa;
|
|
6373
6385
|
this.idEnterprise = +e.id_enterprise;
|
|
6374
|
-
this.
|
|
6375
|
-
this.
|
|
6376
|
-
this.
|
|
6377
|
-
this.
|
|
6378
|
-
this.
|
|
6379
|
-
this.
|
|
6380
|
-
this.codigoDeposito = e.coddep;
|
|
6381
|
-
this.denominacionTipoDeposito = e.dentipalm;
|
|
6382
|
-
this.idAlmacen = parseInt(e.id_almacen);
|
|
6386
|
+
this.idAlmacen = +e.id_almacen;
|
|
6387
|
+
this.idDeposito = +e.id_deposito;
|
|
6388
|
+
this.idTipoDeposito = +e.id_tipodeposito;
|
|
6389
|
+
this.idUbicacion = +e.id_ubicacion;
|
|
6390
|
+
this.idArticulo = +e.id_articulo;
|
|
6391
|
+
this.idLote = +e.id_lote;
|
|
6383
6392
|
this.codigoAlmacen = e.codalm;
|
|
6384
6393
|
this.nombreAlmacen = e.nomfisalm;
|
|
6385
|
-
this.
|
|
6386
|
-
this.
|
|
6387
|
-
this.
|
|
6394
|
+
this.codigoTipoDeposito = e.codtipalm;
|
|
6395
|
+
this.denominacionTipoDeposito = e.dentipalm;
|
|
6396
|
+
this.codigoDeposito = e.coddep;
|
|
6397
|
+
this.denominacionDeposito = e.dendep;
|
|
6398
|
+
this.codigoArticulo = e.codart;
|
|
6399
|
+
this.denominacionArticulo = e.denart;
|
|
6400
|
+
this.zona = e.zona;
|
|
6401
|
+
this.pasillo = e.pasillo;
|
|
6402
|
+
this.nivel = e.nivel;
|
|
6403
|
+
this.subnivel = e.subnivel;
|
|
6404
|
+
this.codigo = e.codigo;
|
|
6405
|
+
this.recepcion = +e.recepcion;
|
|
6406
|
+
this.reservacion = +e.reservacion;
|
|
6407
|
+
this.despacho = +e.despacho;
|
|
6408
|
+
this.disponible = +e.disponible;
|
|
6409
|
+
this.codigoLote = e.codlote;
|
|
6410
|
+
this.seriaLote = e.serlot;
|
|
6411
|
+
this.cantidad = +e.cantidad;
|
|
6388
6412
|
}
|
|
6389
6413
|
else {
|
|
6390
6414
|
this.isNew = true;
|
|
@@ -6394,20 +6418,32 @@ class MTipoDepositos extends MBasicModel {
|
|
|
6394
6418
|
return {
|
|
6395
6419
|
id_empresa: this.idEmpresa.toString(),
|
|
6396
6420
|
id_enterprise: this.idEnterprise.toString(),
|
|
6421
|
+
id_almacen: this.idAlmacen.toString(),
|
|
6422
|
+
id_deposito: this.idDeposito.toString(),
|
|
6397
6423
|
id_tipodeposito: this.idTipoDeposito.toString(),
|
|
6424
|
+
id_articulo: this.idArticulo.toString(),
|
|
6425
|
+
id_ubicacion: this.idUbicacion.toString(),
|
|
6426
|
+
id_lote: this.idLote.toString(),
|
|
6427
|
+
codlote: this.codigoLote,
|
|
6428
|
+
serlot: this.seriaLote,
|
|
6429
|
+
codalm: this.codigoAlmacen,
|
|
6430
|
+
nomfisalm: this.nombreAlmacen,
|
|
6398
6431
|
codtipalm: this.codigoTipoDeposito,
|
|
6399
6432
|
dentipalm: this.denominacionTipoDeposito,
|
|
6400
|
-
existencia: this.existencia.toString(),
|
|
6401
|
-
reservado: this.reservado.toString(),
|
|
6402
|
-
id_cenlog: this.idCentroLogistico.toString(),
|
|
6403
|
-
codcenlog: this.codigoCentroLogistico,
|
|
6404
|
-
dencenlog: this.denominacionCentroLogistico,
|
|
6405
|
-
id_deposito: this.idDeposito.toString(),
|
|
6406
6433
|
coddep: this.codigoDeposito,
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
|
|
6410
|
-
|
|
6434
|
+
dendep: this.denominacionTipoDeposito,
|
|
6435
|
+
codart: this.codigoArticulo,
|
|
6436
|
+
denart: this.denominacionArticulo,
|
|
6437
|
+
zona: this.zona,
|
|
6438
|
+
pasillo: this.pasillo,
|
|
6439
|
+
nivel: this.nivel,
|
|
6440
|
+
subnivel: this.subnivel,
|
|
6441
|
+
codigo: this.codigo,
|
|
6442
|
+
recepcion: this.recepcion.toString(),
|
|
6443
|
+
reservacion: this.reservacion.toString(),
|
|
6444
|
+
despacho: this.despacho.toString(),
|
|
6445
|
+
disponible: this.disponible.toString(),
|
|
6446
|
+
cantidad: this.cantidad.toString()
|
|
6411
6447
|
};
|
|
6412
6448
|
}
|
|
6413
6449
|
}
|
|
@@ -8405,14 +8441,14 @@ class SigespService {
|
|
|
8405
8441
|
/**
|
|
8406
8442
|
* @description Obtiene los tipos de depositos *
|
|
8407
8443
|
* @param procede : procede del modulo
|
|
8408
|
-
* @param
|
|
8444
|
+
* @param idMaterial : id del articulo
|
|
8409
8445
|
* @param idUsuario : id usuario permitido
|
|
8410
8446
|
* @returns
|
|
8411
|
-
* @author
|
|
8412
|
-
* @date 23-
|
|
8447
|
+
* @author Dimaly Crespo
|
|
8448
|
+
* @date 23-01-2025
|
|
8413
8449
|
*/
|
|
8414
|
-
getDepositType(procede,
|
|
8415
|
-
return this.http.get(`${this.URL}/dao/siv/catalogo_parametrizado_dao.php?get=${procede}&id=${
|
|
8450
|
+
getDepositType(procede, idMaterial, idEnterprise) {
|
|
8451
|
+
return this.http.get(`${this.URL}/dao/siv/catalogo_parametrizado_dao.php?get=${procede}&id=${idMaterial}&i=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
8416
8452
|
if (res.success) {
|
|
8417
8453
|
res.data = res.data.map(e => new MTipoDepositos(e));
|
|
8418
8454
|
}
|