sigesp 1.1.37-20241221 → 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 +71 -35
- package/esm2020/lib/sigesp.service.mjs +6 -6
- package/fesm2015/sigesp.mjs +75 -39
- package/fesm2015/sigesp.mjs.map +1 -1
- package/fesm2020/sigesp.mjs +75 -39
- package/fesm2020/sigesp.mjs.map +1 -1
- package/lib/core/interfaces/ITipoDepositos.d.ts +23 -11
- 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
|
@@ -6353,36 +6353,60 @@ class MTipoDepositos extends MBasicModel {
|
|
|
6353
6353
|
constructor(e) {
|
|
6354
6354
|
super();
|
|
6355
6355
|
this.idEmpresa = 0;
|
|
6356
|
+
this.idEnterprise = 0;
|
|
6357
|
+
this.idAlmacen = 0;
|
|
6358
|
+
this.idDeposito = 0;
|
|
6356
6359
|
this.idTipoDeposito = 0;
|
|
6360
|
+
this.idArticulo = 0;
|
|
6361
|
+
this.idUbicacion = 0;
|
|
6362
|
+
this.idLote = 0;
|
|
6363
|
+
this.codigoAlmacen = '';
|
|
6364
|
+
this.nombreAlmacen = '';
|
|
6357
6365
|
this.codigoTipoDeposito = '';
|
|
6358
6366
|
this.denominacionTipoDeposito = '';
|
|
6359
|
-
this.idDeposito = 0;
|
|
6360
6367
|
this.codigoDeposito = '';
|
|
6361
|
-
this.
|
|
6362
|
-
this.
|
|
6363
|
-
this.
|
|
6364
|
-
this.
|
|
6365
|
-
this.
|
|
6366
|
-
this.
|
|
6367
|
-
this.
|
|
6368
|
-
this.
|
|
6369
|
-
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 = '';
|
|
6370
6382
|
if (e) {
|
|
6371
|
-
this.idEmpresa =
|
|
6372
|
-
this.
|
|
6373
|
-
this.
|
|
6374
|
-
this.idDeposito =
|
|
6375
|
-
this.
|
|
6376
|
-
this.
|
|
6377
|
-
this.
|
|
6378
|
-
this.
|
|
6379
|
-
this.denominacionTipoDeposito = e.dentipalm;
|
|
6380
|
-
this.idAlmacen = parseInt(e.id_almacen);
|
|
6383
|
+
this.idEmpresa = +e.id_empresa;
|
|
6384
|
+
this.idEnterprise = +e.id_enterprise;
|
|
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;
|
|
6381
6391
|
this.codigoAlmacen = e.codalm;
|
|
6382
6392
|
this.nombreAlmacen = e.nomfisalm;
|
|
6383
|
-
this.
|
|
6384
|
-
this.
|
|
6385
|
-
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;
|
|
6386
6410
|
}
|
|
6387
6411
|
else {
|
|
6388
6412
|
this.isNew = true;
|
|
@@ -6391,20 +6415,32 @@ class MTipoDepositos extends MBasicModel {
|
|
|
6391
6415
|
dataInterface() {
|
|
6392
6416
|
return {
|
|
6393
6417
|
id_empresa: this.idEmpresa.toString(),
|
|
6394
|
-
|
|
6395
|
-
codtipalm: this.codigoTipoDeposito,
|
|
6396
|
-
dentipalm: this.denominacionTipoDeposito,
|
|
6397
|
-
existencia: this.existencia.toString(),
|
|
6398
|
-
reservado: this.reservado.toString(),
|
|
6399
|
-
id_cenlog: this.idCentroLogistico.toString(),
|
|
6400
|
-
codcenlog: this.codigoCentroLogistico,
|
|
6401
|
-
dencenlog: this.denominacionCentroLogistico,
|
|
6402
|
-
id_deposito: this.idDeposito.toString(),
|
|
6403
|
-
coddep: this.codigoDeposito,
|
|
6418
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
6404
6419
|
id_almacen: this.idAlmacen.toString(),
|
|
6420
|
+
id_deposito: this.idDeposito.toString(),
|
|
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,
|
|
6405
6427
|
codalm: this.codigoAlmacen,
|
|
6406
6428
|
nomfisalm: this.nombreAlmacen,
|
|
6407
|
-
|
|
6429
|
+
codtipalm: this.codigoTipoDeposito,
|
|
6430
|
+
dentipalm: this.denominacionTipoDeposito,
|
|
6431
|
+
coddep: this.codigoDeposito,
|
|
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(),
|
|
6408
6444
|
};
|
|
6409
6445
|
}
|
|
6410
6446
|
}
|
|
@@ -8402,14 +8438,14 @@ class SigespService {
|
|
|
8402
8438
|
/**
|
|
8403
8439
|
* @description Obtiene los tipos de depositos *
|
|
8404
8440
|
* @param procede : procede del modulo
|
|
8405
|
-
* @param
|
|
8441
|
+
* @param idMaterial : id del articulo
|
|
8406
8442
|
* @param idUsuario : id usuario permitido
|
|
8407
8443
|
* @returns
|
|
8408
|
-
* @author
|
|
8409
|
-
* @date 23-
|
|
8444
|
+
* @author Dimaly Crespo
|
|
8445
|
+
* @date 23-01-2025
|
|
8410
8446
|
*/
|
|
8411
|
-
getDepositType(procede,
|
|
8412
|
-
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) => {
|
|
8413
8449
|
if (res.success) {
|
|
8414
8450
|
res.data = res.data.map(e => new MTipoDepositos(e));
|
|
8415
8451
|
}
|