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/fesm2020/sigesp.mjs
CHANGED
|
@@ -6343,37 +6343,61 @@ class MTipoDepositos extends MBasicModel {
|
|
|
6343
6343
|
super();
|
|
6344
6344
|
this.idEmpresa = 0;
|
|
6345
6345
|
this.idEnterprise = 0;
|
|
6346
|
+
this.idAlmacen = 0;
|
|
6347
|
+
this.idDeposito = 0;
|
|
6346
6348
|
this.idTipoDeposito = 0;
|
|
6349
|
+
this.idArticulo = 0;
|
|
6350
|
+
this.idUbicacion = 0;
|
|
6351
|
+
this.idLote = 0;
|
|
6352
|
+
this.codigoAlmacen = '';
|
|
6353
|
+
this.nombreAlmacen = '';
|
|
6347
6354
|
this.codigoTipoDeposito = '';
|
|
6348
6355
|
this.denominacionTipoDeposito = '';
|
|
6349
|
-
this.idDeposito = 0;
|
|
6350
6356
|
this.codigoDeposito = '';
|
|
6351
|
-
this.
|
|
6352
|
-
this.
|
|
6353
|
-
this.
|
|
6354
|
-
this.
|
|
6355
|
-
this.
|
|
6356
|
-
this.
|
|
6357
|
-
this.
|
|
6358
|
-
this.
|
|
6359
|
-
this.
|
|
6357
|
+
this.denominacionDeposito = '';
|
|
6358
|
+
this.codigoArticulo = '';
|
|
6359
|
+
this.denominacionArticulo = '';
|
|
6360
|
+
this.codigoLote = '';
|
|
6361
|
+
this.zona = '';
|
|
6362
|
+
this.pasillo = '';
|
|
6363
|
+
this.nivel = '';
|
|
6364
|
+
this.subnivel = '';
|
|
6365
|
+
this.codigo = '';
|
|
6366
|
+
this.recepcion = 0;
|
|
6367
|
+
this.reservacion = 0;
|
|
6368
|
+
this.despacho = 0;
|
|
6369
|
+
this.disponible = 0;
|
|
6370
|
+
this.seriaLote = '';
|
|
6371
|
+
this.cantidad = 0;
|
|
6360
6372
|
if (e) {
|
|
6361
|
-
this.idEmpresa =
|
|
6373
|
+
this.idEmpresa = +e.id_empresa;
|
|
6362
6374
|
this.idEnterprise = +e.id_enterprise;
|
|
6363
|
-
this.
|
|
6364
|
-
this.
|
|
6365
|
-
this.
|
|
6366
|
-
this.
|
|
6367
|
-
this.
|
|
6368
|
-
this.
|
|
6369
|
-
this.codigoDeposito = e.coddep;
|
|
6370
|
-
this.denominacionTipoDeposito = e.dentipalm;
|
|
6371
|
-
this.idAlmacen = parseInt(e.id_almacen);
|
|
6375
|
+
this.idAlmacen = +e.id_almacen;
|
|
6376
|
+
this.idDeposito = +e.id_deposito;
|
|
6377
|
+
this.idTipoDeposito = +e.id_tipodeposito;
|
|
6378
|
+
this.idUbicacion = +e.id_ubicacion;
|
|
6379
|
+
this.idArticulo = +e.id_articulo;
|
|
6380
|
+
this.idLote = +e.id_lote;
|
|
6372
6381
|
this.codigoAlmacen = e.codalm;
|
|
6373
6382
|
this.nombreAlmacen = e.nomfisalm;
|
|
6374
|
-
this.
|
|
6375
|
-
this.
|
|
6376
|
-
this.
|
|
6383
|
+
this.codigoTipoDeposito = e.codtipalm;
|
|
6384
|
+
this.denominacionTipoDeposito = e.dentipalm;
|
|
6385
|
+
this.codigoDeposito = e.coddep;
|
|
6386
|
+
this.denominacionDeposito = e.dendep;
|
|
6387
|
+
this.codigoArticulo = e.codart;
|
|
6388
|
+
this.denominacionArticulo = e.denart;
|
|
6389
|
+
this.zona = e.zona;
|
|
6390
|
+
this.pasillo = e.pasillo;
|
|
6391
|
+
this.nivel = e.nivel;
|
|
6392
|
+
this.subnivel = e.subnivel;
|
|
6393
|
+
this.codigo = e.codigo;
|
|
6394
|
+
this.recepcion = +e.recepcion;
|
|
6395
|
+
this.reservacion = +e.reservacion;
|
|
6396
|
+
this.despacho = +e.despacho;
|
|
6397
|
+
this.disponible = +e.disponible;
|
|
6398
|
+
this.codigoLote = e.codlote;
|
|
6399
|
+
this.seriaLote = e.serlot;
|
|
6400
|
+
this.cantidad = +e.cantidad;
|
|
6377
6401
|
}
|
|
6378
6402
|
else {
|
|
6379
6403
|
this.isNew = true;
|
|
@@ -6383,20 +6407,32 @@ class MTipoDepositos extends MBasicModel {
|
|
|
6383
6407
|
return {
|
|
6384
6408
|
id_empresa: this.idEmpresa.toString(),
|
|
6385
6409
|
id_enterprise: this.idEnterprise.toString(),
|
|
6410
|
+
id_almacen: this.idAlmacen.toString(),
|
|
6411
|
+
id_deposito: this.idDeposito.toString(),
|
|
6386
6412
|
id_tipodeposito: this.idTipoDeposito.toString(),
|
|
6413
|
+
id_articulo: this.idArticulo.toString(),
|
|
6414
|
+
id_ubicacion: this.idUbicacion.toString(),
|
|
6415
|
+
id_lote: this.idLote.toString(),
|
|
6416
|
+
codlote: this.codigoLote,
|
|
6417
|
+
serlot: this.seriaLote,
|
|
6418
|
+
codalm: this.codigoAlmacen,
|
|
6419
|
+
nomfisalm: this.nombreAlmacen,
|
|
6387
6420
|
codtipalm: this.codigoTipoDeposito,
|
|
6388
6421
|
dentipalm: this.denominacionTipoDeposito,
|
|
6389
|
-
existencia: this.existencia.toString(),
|
|
6390
|
-
reservado: this.reservado.toString(),
|
|
6391
|
-
id_cenlog: this.idCentroLogistico.toString(),
|
|
6392
|
-
codcenlog: this.codigoCentroLogistico,
|
|
6393
|
-
dencenlog: this.denominacionCentroLogistico,
|
|
6394
|
-
id_deposito: this.idDeposito.toString(),
|
|
6395
6422
|
coddep: this.codigoDeposito,
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
|
|
6423
|
+
dendep: this.denominacionTipoDeposito,
|
|
6424
|
+
codart: this.codigoArticulo,
|
|
6425
|
+
denart: this.denominacionArticulo,
|
|
6426
|
+
zona: this.zona,
|
|
6427
|
+
pasillo: this.pasillo,
|
|
6428
|
+
nivel: this.nivel,
|
|
6429
|
+
subnivel: this.subnivel,
|
|
6430
|
+
codigo: this.codigo,
|
|
6431
|
+
recepcion: this.recepcion.toString(),
|
|
6432
|
+
reservacion: this.reservacion.toString(),
|
|
6433
|
+
despacho: this.despacho.toString(),
|
|
6434
|
+
disponible: this.disponible.toString(),
|
|
6435
|
+
cantidad: this.cantidad.toString()
|
|
6400
6436
|
};
|
|
6401
6437
|
}
|
|
6402
6438
|
}
|
|
@@ -8368,14 +8404,14 @@ class SigespService {
|
|
|
8368
8404
|
/**
|
|
8369
8405
|
* @description Obtiene los tipos de depositos *
|
|
8370
8406
|
* @param procede : procede del modulo
|
|
8371
|
-
* @param
|
|
8407
|
+
* @param idMaterial : id del articulo
|
|
8372
8408
|
* @param idUsuario : id usuario permitido
|
|
8373
8409
|
* @returns
|
|
8374
|
-
* @author
|
|
8375
|
-
* @date 23-
|
|
8410
|
+
* @author Dimaly Crespo
|
|
8411
|
+
* @date 23-01-2025
|
|
8376
8412
|
*/
|
|
8377
|
-
getDepositType(procede,
|
|
8378
|
-
return this.http.get(`${this.URL}/dao/siv/catalogo_parametrizado_dao.php?get=${procede}&id=${
|
|
8413
|
+
getDepositType(procede, idMaterial, idEnterprise) {
|
|
8414
|
+
return this.http.get(`${this.URL}/dao/siv/catalogo_parametrizado_dao.php?get=${procede}&id=${idMaterial}&i=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
8379
8415
|
if (res.success) {
|
|
8380
8416
|
res.data = res.data.map(e => new MTipoDepositos(e));
|
|
8381
8417
|
}
|