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/fesm2020/sigesp.mjs
CHANGED
|
@@ -6342,36 +6342,60 @@ class MTipoDepositos extends MBasicModel {
|
|
|
6342
6342
|
constructor(e) {
|
|
6343
6343
|
super();
|
|
6344
6344
|
this.idEmpresa = 0;
|
|
6345
|
+
this.idEnterprise = 0;
|
|
6346
|
+
this.idAlmacen = 0;
|
|
6347
|
+
this.idDeposito = 0;
|
|
6345
6348
|
this.idTipoDeposito = 0;
|
|
6349
|
+
this.idArticulo = 0;
|
|
6350
|
+
this.idUbicacion = 0;
|
|
6351
|
+
this.idLote = 0;
|
|
6352
|
+
this.codigoAlmacen = '';
|
|
6353
|
+
this.nombreAlmacen = '';
|
|
6346
6354
|
this.codigoTipoDeposito = '';
|
|
6347
6355
|
this.denominacionTipoDeposito = '';
|
|
6348
|
-
this.idDeposito = 0;
|
|
6349
6356
|
this.codigoDeposito = '';
|
|
6350
|
-
this.
|
|
6351
|
-
this.
|
|
6352
|
-
this.
|
|
6353
|
-
this.
|
|
6354
|
-
this.
|
|
6355
|
-
this.
|
|
6356
|
-
this.
|
|
6357
|
-
this.
|
|
6358
|
-
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 = '';
|
|
6359
6371
|
if (e) {
|
|
6360
|
-
this.idEmpresa =
|
|
6361
|
-
this.
|
|
6362
|
-
this.
|
|
6363
|
-
this.idDeposito =
|
|
6364
|
-
this.
|
|
6365
|
-
this.
|
|
6366
|
-
this.
|
|
6367
|
-
this.
|
|
6368
|
-
this.denominacionTipoDeposito = e.dentipalm;
|
|
6369
|
-
this.idAlmacen = parseInt(e.id_almacen);
|
|
6372
|
+
this.idEmpresa = +e.id_empresa;
|
|
6373
|
+
this.idEnterprise = +e.id_enterprise;
|
|
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;
|
|
6370
6380
|
this.codigoAlmacen = e.codalm;
|
|
6371
6381
|
this.nombreAlmacen = e.nomfisalm;
|
|
6372
|
-
this.
|
|
6373
|
-
this.
|
|
6374
|
-
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;
|
|
6375
6399
|
}
|
|
6376
6400
|
else {
|
|
6377
6401
|
this.isNew = true;
|
|
@@ -6380,20 +6404,32 @@ class MTipoDepositos extends MBasicModel {
|
|
|
6380
6404
|
dataInterface() {
|
|
6381
6405
|
return {
|
|
6382
6406
|
id_empresa: this.idEmpresa.toString(),
|
|
6383
|
-
|
|
6384
|
-
codtipalm: this.codigoTipoDeposito,
|
|
6385
|
-
dentipalm: this.denominacionTipoDeposito,
|
|
6386
|
-
existencia: this.existencia.toString(),
|
|
6387
|
-
reservado: this.reservado.toString(),
|
|
6388
|
-
id_cenlog: this.idCentroLogistico.toString(),
|
|
6389
|
-
codcenlog: this.codigoCentroLogistico,
|
|
6390
|
-
dencenlog: this.denominacionCentroLogistico,
|
|
6391
|
-
id_deposito: this.idDeposito.toString(),
|
|
6392
|
-
coddep: this.codigoDeposito,
|
|
6407
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
6393
6408
|
id_almacen: this.idAlmacen.toString(),
|
|
6409
|
+
id_deposito: this.idDeposito.toString(),
|
|
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,
|
|
6394
6416
|
codalm: this.codigoAlmacen,
|
|
6395
6417
|
nomfisalm: this.nombreAlmacen,
|
|
6396
|
-
|
|
6418
|
+
codtipalm: this.codigoTipoDeposito,
|
|
6419
|
+
dentipalm: this.denominacionTipoDeposito,
|
|
6420
|
+
coddep: this.codigoDeposito,
|
|
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(),
|
|
6397
6433
|
};
|
|
6398
6434
|
}
|
|
6399
6435
|
}
|
|
@@ -8365,14 +8401,14 @@ class SigespService {
|
|
|
8365
8401
|
/**
|
|
8366
8402
|
* @description Obtiene los tipos de depositos *
|
|
8367
8403
|
* @param procede : procede del modulo
|
|
8368
|
-
* @param
|
|
8404
|
+
* @param idMaterial : id del articulo
|
|
8369
8405
|
* @param idUsuario : id usuario permitido
|
|
8370
8406
|
* @returns
|
|
8371
|
-
* @author
|
|
8372
|
-
* @date 23-
|
|
8407
|
+
* @author Dimaly Crespo
|
|
8408
|
+
* @date 23-01-2025
|
|
8373
8409
|
*/
|
|
8374
|
-
getDepositType(procede,
|
|
8375
|
-
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) => {
|
|
8376
8412
|
if (res.success) {
|
|
8377
8413
|
res.data = res.data.map(e => new MTipoDepositos(e));
|
|
8378
8414
|
}
|