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/fesm2020/sigesp.mjs
CHANGED
|
@@ -6343,37 +6343,59 @@ 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 = '';
|
|
6360
6371
|
if (e) {
|
|
6361
|
-
this.idEmpresa =
|
|
6372
|
+
this.idEmpresa = +e.id_empresa;
|
|
6362
6373
|
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);
|
|
6374
|
+
this.idAlmacen = +e.id_almacen;
|
|
6375
|
+
this.idDeposito = +e.id_deposito;
|
|
6376
|
+
this.idTipoDeposito = +e.id_tipodeposito;
|
|
6377
|
+
this.idUbicacion = +e.id_ubicacion;
|
|
6378
|
+
this.idArticulo = +e.id_articulo;
|
|
6379
|
+
this.idLote = +e.id_lote;
|
|
6372
6380
|
this.codigoAlmacen = e.codalm;
|
|
6373
6381
|
this.nombreAlmacen = e.nomfisalm;
|
|
6374
|
-
this.
|
|
6375
|
-
this.
|
|
6376
|
-
this.
|
|
6382
|
+
this.codigoTipoDeposito = e.codtipalm;
|
|
6383
|
+
this.denominacionTipoDeposito = e.dentipalm;
|
|
6384
|
+
this.codigoDeposito = e.coddep;
|
|
6385
|
+
this.denominacionDeposito = e.dendep;
|
|
6386
|
+
this.codigoArticulo = e.codart;
|
|
6387
|
+
this.denominacionArticulo = e.denart;
|
|
6388
|
+
this.zona = e.zona;
|
|
6389
|
+
this.pasillo = e.pasillo;
|
|
6390
|
+
this.nivel = e.nivel;
|
|
6391
|
+
this.subnivel = e.subnivel;
|
|
6392
|
+
this.codigo = e.codigo;
|
|
6393
|
+
this.recepcion = +e.recepcion;
|
|
6394
|
+
this.reservacion = +e.reservacion;
|
|
6395
|
+
this.despacho = +e.despacho;
|
|
6396
|
+
this.disponible = +e.disponible;
|
|
6397
|
+
this.codigoLote = e.codlote;
|
|
6398
|
+
this.seriaLote = e.serlot;
|
|
6377
6399
|
}
|
|
6378
6400
|
else {
|
|
6379
6401
|
this.isNew = true;
|
|
@@ -6383,20 +6405,31 @@ class MTipoDepositos extends MBasicModel {
|
|
|
6383
6405
|
return {
|
|
6384
6406
|
id_empresa: this.idEmpresa.toString(),
|
|
6385
6407
|
id_enterprise: this.idEnterprise.toString(),
|
|
6408
|
+
id_almacen: this.idAlmacen.toString(),
|
|
6409
|
+
id_deposito: this.idDeposito.toString(),
|
|
6386
6410
|
id_tipodeposito: this.idTipoDeposito.toString(),
|
|
6411
|
+
id_articulo: this.idArticulo.toString(),
|
|
6412
|
+
id_ubicacion: this.idUbicacion.toString(),
|
|
6413
|
+
id_lote: this.idLote.toString(),
|
|
6414
|
+
codlote: this.codigoLote,
|
|
6415
|
+
serlot: this.seriaLote,
|
|
6416
|
+
codalm: this.codigoAlmacen,
|
|
6417
|
+
nomfisalm: this.nombreAlmacen,
|
|
6387
6418
|
codtipalm: this.codigoTipoDeposito,
|
|
6388
6419
|
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
6420
|
coddep: this.codigoDeposito,
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
|
|
6421
|
+
dendep: this.denominacionTipoDeposito,
|
|
6422
|
+
codart: this.codigoArticulo,
|
|
6423
|
+
denart: this.denominacionArticulo,
|
|
6424
|
+
zona: this.zona,
|
|
6425
|
+
pasillo: this.pasillo,
|
|
6426
|
+
nivel: this.nivel,
|
|
6427
|
+
subnivel: this.subnivel,
|
|
6428
|
+
codigo: this.codigo,
|
|
6429
|
+
recepcion: this.recepcion.toString(),
|
|
6430
|
+
reservacion: this.reservacion.toString(),
|
|
6431
|
+
despacho: this.despacho.toString(),
|
|
6432
|
+
disponible: this.disponible.toString(),
|
|
6400
6433
|
};
|
|
6401
6434
|
}
|
|
6402
6435
|
}
|
|
@@ -8368,14 +8401,14 @@ class SigespService {
|
|
|
8368
8401
|
/**
|
|
8369
8402
|
* @description Obtiene los tipos de depositos *
|
|
8370
8403
|
* @param procede : procede del modulo
|
|
8371
|
-
* @param
|
|
8404
|
+
* @param idMaterial : id del articulo
|
|
8372
8405
|
* @param idUsuario : id usuario permitido
|
|
8373
8406
|
* @returns
|
|
8374
|
-
* @author
|
|
8375
|
-
* @date 23-
|
|
8407
|
+
* @author Dimaly Crespo
|
|
8408
|
+
* @date 23-01-2025
|
|
8376
8409
|
*/
|
|
8377
|
-
getDepositType(procede,
|
|
8378
|
-
return this.http.get(`${this.URL}/dao/siv/catalogo_parametrizado_dao.php?get=${procede}&id=${
|
|
8410
|
+
getDepositType(procede, idMaterial, idEnterprise) {
|
|
8411
|
+
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
8412
|
if (res.success) {
|
|
8380
8413
|
res.data = res.data.map(e => new MTipoDepositos(e));
|
|
8381
8414
|
}
|