sigesp 1.1.38-20250103 → 1.1.39-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 +67 -34
- package/esm2020/lib/sigesp.service.mjs +6 -6
- package/fesm2015/sigesp.mjs +71 -38
- package/fesm2015/sigesp.mjs.map +1 -1
- package/fesm2020/sigesp.mjs +71 -38
- package/fesm2020/sigesp.mjs.map +1 -1
- package/lib/core/interfaces/ITipoDepositos.d.ts +21 -10
- package/lib/core/models/SIV/MTipoDepositos.model.d.ts +21 -10
- package/lib/sigesp.service.d.ts +4 -4
- package/package.json +1 -1
package/fesm2015/sigesp.mjs
CHANGED
|
@@ -6354,37 +6354,59 @@ 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 = '';
|
|
6371
6382
|
if (e) {
|
|
6372
|
-
this.idEmpresa =
|
|
6383
|
+
this.idEmpresa = +e.id_empresa;
|
|
6373
6384
|
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);
|
|
6385
|
+
this.idAlmacen = +e.id_almacen;
|
|
6386
|
+
this.idDeposito = +e.id_deposito;
|
|
6387
|
+
this.idTipoDeposito = +e.id_tipodeposito;
|
|
6388
|
+
this.idUbicacion = +e.id_ubicacion;
|
|
6389
|
+
this.idArticulo = +e.id_articulo;
|
|
6390
|
+
this.idLote = +e.id_lote;
|
|
6383
6391
|
this.codigoAlmacen = e.codalm;
|
|
6384
6392
|
this.nombreAlmacen = e.nomfisalm;
|
|
6385
|
-
this.
|
|
6386
|
-
this.
|
|
6387
|
-
this.
|
|
6393
|
+
this.codigoTipoDeposito = e.codtipalm;
|
|
6394
|
+
this.denominacionTipoDeposito = e.dentipalm;
|
|
6395
|
+
this.codigoDeposito = e.coddep;
|
|
6396
|
+
this.denominacionDeposito = e.dendep;
|
|
6397
|
+
this.codigoArticulo = e.codart;
|
|
6398
|
+
this.denominacionArticulo = e.denart;
|
|
6399
|
+
this.zona = e.zona;
|
|
6400
|
+
this.pasillo = e.pasillo;
|
|
6401
|
+
this.nivel = e.nivel;
|
|
6402
|
+
this.subnivel = e.subnivel;
|
|
6403
|
+
this.codigo = e.codigo;
|
|
6404
|
+
this.recepcion = +e.recepcion;
|
|
6405
|
+
this.reservacion = +e.reservacion;
|
|
6406
|
+
this.despacho = +e.despacho;
|
|
6407
|
+
this.disponible = +e.disponible;
|
|
6408
|
+
this.codigoLote = e.codlote;
|
|
6409
|
+
this.seriaLote = e.serlot;
|
|
6388
6410
|
}
|
|
6389
6411
|
else {
|
|
6390
6412
|
this.isNew = true;
|
|
@@ -6394,20 +6416,31 @@ class MTipoDepositos extends MBasicModel {
|
|
|
6394
6416
|
return {
|
|
6395
6417
|
id_empresa: this.idEmpresa.toString(),
|
|
6396
6418
|
id_enterprise: this.idEnterprise.toString(),
|
|
6419
|
+
id_almacen: this.idAlmacen.toString(),
|
|
6420
|
+
id_deposito: this.idDeposito.toString(),
|
|
6397
6421
|
id_tipodeposito: this.idTipoDeposito.toString(),
|
|
6422
|
+
id_articulo: this.idArticulo.toString(),
|
|
6423
|
+
id_ubicacion: this.idUbicacion.toString(),
|
|
6424
|
+
id_lote: this.idLote.toString(),
|
|
6425
|
+
codlote: this.codigoLote,
|
|
6426
|
+
serlot: this.seriaLote,
|
|
6427
|
+
codalm: this.codigoAlmacen,
|
|
6428
|
+
nomfisalm: this.nombreAlmacen,
|
|
6398
6429
|
codtipalm: this.codigoTipoDeposito,
|
|
6399
6430
|
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
6431
|
coddep: this.codigoDeposito,
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
|
|
6410
|
-
|
|
6432
|
+
dendep: this.denominacionTipoDeposito,
|
|
6433
|
+
codart: this.codigoArticulo,
|
|
6434
|
+
denart: this.denominacionArticulo,
|
|
6435
|
+
zona: this.zona,
|
|
6436
|
+
pasillo: this.pasillo,
|
|
6437
|
+
nivel: this.nivel,
|
|
6438
|
+
subnivel: this.subnivel,
|
|
6439
|
+
codigo: this.codigo,
|
|
6440
|
+
recepcion: this.recepcion.toString(),
|
|
6441
|
+
reservacion: this.reservacion.toString(),
|
|
6442
|
+
despacho: this.despacho.toString(),
|
|
6443
|
+
disponible: this.disponible.toString(),
|
|
6411
6444
|
};
|
|
6412
6445
|
}
|
|
6413
6446
|
}
|
|
@@ -8405,14 +8438,14 @@ class SigespService {
|
|
|
8405
8438
|
/**
|
|
8406
8439
|
* @description Obtiene los tipos de depositos *
|
|
8407
8440
|
* @param procede : procede del modulo
|
|
8408
|
-
* @param
|
|
8441
|
+
* @param idMaterial : id del articulo
|
|
8409
8442
|
* @param idUsuario : id usuario permitido
|
|
8410
8443
|
* @returns
|
|
8411
|
-
* @author
|
|
8412
|
-
* @date 23-
|
|
8444
|
+
* @author Dimaly Crespo
|
|
8445
|
+
* @date 23-01-2025
|
|
8413
8446
|
*/
|
|
8414
|
-
getDepositType(procede,
|
|
8415
|
-
return this.http.get(`${this.URL}/dao/siv/catalogo_parametrizado_dao.php?get=${procede}&id=${
|
|
8447
|
+
getDepositType(procede, idMaterial, idEnterprise) {
|
|
8448
|
+
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
8449
|
if (res.success) {
|
|
8417
8450
|
res.data = res.data.map(e => new MTipoDepositos(e));
|
|
8418
8451
|
}
|