sigo-package 1.2.141 → 1.2.143
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/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +47 -0
- package/dist/index.mjs +46 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as sigo_entities from 'sigo-entities';
|
|
2
|
-
import { ManoObraENTITY, ReservaENTITY, ItemDetalleLogisticaDTO, CodigoNombreUMDTO, PrecioContratistaMOAL04ENTITY, ManoObraGlobalENTITY, ValorizacionManoObraDTO, PrecioContratistaMOAL02ENTITY, HomePassDTO, FlujoDocDTO, NodoDocDTO, DocumentacionPEXENTITY, PrecioEspecialidadENTITY, ObraChile9512ENTITY, TrabajoAlemaniaENTITY, ValorizacionAlemaniaDTO, ValorizacionDTO, StockPersonalENTITY, StockAlmacenENTITY, ConsumoMaterialAlemaniaENTITY, ValorizacionesDTO, PrecioContratistaMaterialENTITY, TrabajoENTITY, ActividadesDTO, PreciosVigentesDTO, ContratoOTENTITY, DetalleChileValorizacionMODTO, PrecioMaterialENTITY, CodigoNombreDTO, SystemOptionEntity } from 'sigo-entities';
|
|
2
|
+
import { ManoObraENTITY, ReservaENTITY, ItemDetalleLogisticaDTO, CodigoNombreUMDTO, PrecioContratistaMOAL04ENTITY, ManoObraGlobalENTITY, ValorizacionManoObraDTO, PrecioContratistaMOAL02ENTITY, HomePassDTO, FlujoDocDTO, NodoDocDTO, DocumentacionPEXENTITY, PrecioEspecialidadENTITY, ObraChile9512ENTITY, TrabajoAlemaniaENTITY, ValorizacionAlemaniaDTO, ValorizacionDTO, StockPersonalENTITY, StockAlmacenENTITY, ConsumoMaterialAlemaniaENTITY, ValorizacionesDTO, PrecioContratistaMaterialENTITY, TrabajoENTITY, ActividadesDTO, PreciosVigentesDTO, ContratoOTENTITY, DetalleChileValorizacionMODTO, PrecioMaterialENTITY, CodigoNombreDTO, SystemOptionEntity, MenuDto } from 'sigo-entities';
|
|
3
3
|
import { ClassConstructor } from 'class-transformer';
|
|
4
4
|
|
|
5
5
|
interface IenvSIGO$1 {
|
|
@@ -752,6 +752,7 @@ declare const collections: Readonly<{
|
|
|
752
752
|
PERU_9112_ToaOrder: "PERU_9112_ToaOrder";
|
|
753
753
|
PERU_9112_ToaRequestNumberTTL: "PERU_9112_ToaRequestNumberTTL";
|
|
754
754
|
PERU_9112_ToaOrderStock: "PERU_9112_ToaOrderStock";
|
|
755
|
+
CHILE_9518_TdcOrderStock: "CHILE_9518_TdcOrderStock";
|
|
755
756
|
scrapingCredential: "scrapingCredentials";
|
|
756
757
|
PERU_9112_WinOrder: "PERU_9112_WinOrder";
|
|
757
758
|
PERU_9112_WinRequestNumberTTL: "PERU_9112_WinRequestNumberTTL";
|
|
@@ -813,4 +814,6 @@ declare function builSystemOption(params: IParams): Promise<{
|
|
|
813
814
|
newData: SystemOptionEntity[];
|
|
814
815
|
}>;
|
|
815
816
|
|
|
816
|
-
|
|
817
|
+
declare const buildMenu: (data: SystemOptionEntity[]) => MenuDto[];
|
|
818
|
+
|
|
819
|
+
export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenLiquidacionesColombia, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, AsignacionHelper, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenLiquidacionesColombia, CalcularResumenValorizacionesAlemania, CodigosMaterialDuctosAL02, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DocumentacionReplanteo, EstadoEspecialidad9612, GemeindeChangeNomenclatura, GetCodigoFechaActual, type IDPContrato, type IDocumentacion, type IMOAndMaterialsRules, type IMORules, type IMateriales, MOCantidadNVT01, MOHijasAL04, MOHijasDEPTH, MapeoEspecialidades9612, MapeoMOBOMAL04, MapeoMatBOMAL04, type MatRetiradosType, type MatStockAlmacenType, type MatStockPersonalType$2 as MatStockPersonalType, type MatUtilizadosType$2 as MatUtilizadosType, type MoUoType$2 as MoUoType, ModelDataFlujosDocumentacionReplanteo, ObtenerMONoReservada, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, type ResumenLiquidacionesType, type ResumenLiquidacionesTypeChile, type ResumenLiquidacionesTypeColombia, SEGMENT_TY, type TARGET, UpdateNodosDocDP, ValorizacionHelper, builSystemOption, buildDataMOFromMaterialRules, buildDataMaterialsRule, buildKeyMO, buildMenu, buildReservaMOJobMajorProjectsAlemaniaAL02, buildReservaMOJobMajorProjectsAlemaniaAL04, buildTenantCollectionName, calcularTotalMaterialValorizacionPeru9112, checkAndBuildMaterialsFromStock, checkMaterialAvailability, codBalizaAL04, codClientes, codIssueByPeriodoAL02, codMOClientesAL02, codMOClientesAL02Asfaltado, codMOClientesAL02OC, codMOClientesAL02Soplado, codMOClientes_ReglaLiquidacion1, codMODROPAL04, codMODROPAL04OC, codMODROPAL04Soplado, codMOFTTFAL04, codMONoClientesAL02, codMONoClientesAL02Asfaltado, codMONoClientesAL02OC, codMONoClientesAL02Soplado, codMONoClientes_ReglaLiquidacion1, codMOOcultosAL04, codMOPublico, codMOTroncalAL02, codMOTroncalAL02Asfaltado, codMOTroncalAL02OC, codMOTroncalAL02Soplado, codMOTroncalAL04, codMOTroncalAL04Asfaltado, codMOTroncalAL04Issue, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncalHistoricoAL02, codMOTroncal_ReglaLiquidacion1, codNoCliente, codSopladoRD, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, collections, consumirStockPersonal, convertDates, dataFlujosHomePass, db_default, db_root, empresas, esCadenaFechaISOValida, esObjetoFecha, formatCurrencyV1, formatNumberSmart, formatNumberV1, formatPercentageV1, generateUniqueNumber, generateUniqueNumberArray, getChannelName, getContainerName, getDBName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getNextID_Amap, getNextID_AsignacionValorizacion, getNextID_Valorizacion, getPrecioContratista, getPriceMaterial, getQueueName, getQueueNameSaveOneNotification, hashCode, isValidDate, isValidPartialEntity, logTiempoProceso, mapaDPContratoPrecioFullAL02, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, mapeoZonasSimilares, newCodMOTroncalReglaLiquidacion1, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioContratistaMaterial, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, parseDuplicateKeyError, roundNumber, searchCurrentContractorSpecialtyPrice, setColModels, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, updatePricePBBudgetAlemaniaAL02, updatePricePBBudgetAlemaniaAL04, uuidRegex, validateNoLookup };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as sigo_entities from 'sigo-entities';
|
|
2
|
-
import { ManoObraENTITY, ReservaENTITY, ItemDetalleLogisticaDTO, CodigoNombreUMDTO, PrecioContratistaMOAL04ENTITY, ManoObraGlobalENTITY, ValorizacionManoObraDTO, PrecioContratistaMOAL02ENTITY, HomePassDTO, FlujoDocDTO, NodoDocDTO, DocumentacionPEXENTITY, PrecioEspecialidadENTITY, ObraChile9512ENTITY, TrabajoAlemaniaENTITY, ValorizacionAlemaniaDTO, ValorizacionDTO, StockPersonalENTITY, StockAlmacenENTITY, ConsumoMaterialAlemaniaENTITY, ValorizacionesDTO, PrecioContratistaMaterialENTITY, TrabajoENTITY, ActividadesDTO, PreciosVigentesDTO, ContratoOTENTITY, DetalleChileValorizacionMODTO, PrecioMaterialENTITY, CodigoNombreDTO, SystemOptionEntity } from 'sigo-entities';
|
|
2
|
+
import { ManoObraENTITY, ReservaENTITY, ItemDetalleLogisticaDTO, CodigoNombreUMDTO, PrecioContratistaMOAL04ENTITY, ManoObraGlobalENTITY, ValorizacionManoObraDTO, PrecioContratistaMOAL02ENTITY, HomePassDTO, FlujoDocDTO, NodoDocDTO, DocumentacionPEXENTITY, PrecioEspecialidadENTITY, ObraChile9512ENTITY, TrabajoAlemaniaENTITY, ValorizacionAlemaniaDTO, ValorizacionDTO, StockPersonalENTITY, StockAlmacenENTITY, ConsumoMaterialAlemaniaENTITY, ValorizacionesDTO, PrecioContratistaMaterialENTITY, TrabajoENTITY, ActividadesDTO, PreciosVigentesDTO, ContratoOTENTITY, DetalleChileValorizacionMODTO, PrecioMaterialENTITY, CodigoNombreDTO, SystemOptionEntity, MenuDto } from 'sigo-entities';
|
|
3
3
|
import { ClassConstructor } from 'class-transformer';
|
|
4
4
|
|
|
5
5
|
interface IenvSIGO$1 {
|
|
@@ -752,6 +752,7 @@ declare const collections: Readonly<{
|
|
|
752
752
|
PERU_9112_ToaOrder: "PERU_9112_ToaOrder";
|
|
753
753
|
PERU_9112_ToaRequestNumberTTL: "PERU_9112_ToaRequestNumberTTL";
|
|
754
754
|
PERU_9112_ToaOrderStock: "PERU_9112_ToaOrderStock";
|
|
755
|
+
CHILE_9518_TdcOrderStock: "CHILE_9518_TdcOrderStock";
|
|
755
756
|
scrapingCredential: "scrapingCredentials";
|
|
756
757
|
PERU_9112_WinOrder: "PERU_9112_WinOrder";
|
|
757
758
|
PERU_9112_WinRequestNumberTTL: "PERU_9112_WinRequestNumberTTL";
|
|
@@ -813,4 +814,6 @@ declare function builSystemOption(params: IParams): Promise<{
|
|
|
813
814
|
newData: SystemOptionEntity[];
|
|
814
815
|
}>;
|
|
815
816
|
|
|
816
|
-
|
|
817
|
+
declare const buildMenu: (data: SystemOptionEntity[]) => MenuDto[];
|
|
818
|
+
|
|
819
|
+
export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenLiquidacionesColombia, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, AsignacionHelper, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenLiquidacionesColombia, CalcularResumenValorizacionesAlemania, CodigosMaterialDuctosAL02, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DocumentacionReplanteo, EstadoEspecialidad9612, GemeindeChangeNomenclatura, GetCodigoFechaActual, type IDPContrato, type IDocumentacion, type IMOAndMaterialsRules, type IMORules, type IMateriales, MOCantidadNVT01, MOHijasAL04, MOHijasDEPTH, MapeoEspecialidades9612, MapeoMOBOMAL04, MapeoMatBOMAL04, type MatRetiradosType, type MatStockAlmacenType, type MatStockPersonalType$2 as MatStockPersonalType, type MatUtilizadosType$2 as MatUtilizadosType, type MoUoType$2 as MoUoType, ModelDataFlujosDocumentacionReplanteo, ObtenerMONoReservada, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, type ResumenLiquidacionesType, type ResumenLiquidacionesTypeChile, type ResumenLiquidacionesTypeColombia, SEGMENT_TY, type TARGET, UpdateNodosDocDP, ValorizacionHelper, builSystemOption, buildDataMOFromMaterialRules, buildDataMaterialsRule, buildKeyMO, buildMenu, buildReservaMOJobMajorProjectsAlemaniaAL02, buildReservaMOJobMajorProjectsAlemaniaAL04, buildTenantCollectionName, calcularTotalMaterialValorizacionPeru9112, checkAndBuildMaterialsFromStock, checkMaterialAvailability, codBalizaAL04, codClientes, codIssueByPeriodoAL02, codMOClientesAL02, codMOClientesAL02Asfaltado, codMOClientesAL02OC, codMOClientesAL02Soplado, codMOClientes_ReglaLiquidacion1, codMODROPAL04, codMODROPAL04OC, codMODROPAL04Soplado, codMOFTTFAL04, codMONoClientesAL02, codMONoClientesAL02Asfaltado, codMONoClientesAL02OC, codMONoClientesAL02Soplado, codMONoClientes_ReglaLiquidacion1, codMOOcultosAL04, codMOPublico, codMOTroncalAL02, codMOTroncalAL02Asfaltado, codMOTroncalAL02OC, codMOTroncalAL02Soplado, codMOTroncalAL04, codMOTroncalAL04Asfaltado, codMOTroncalAL04Issue, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncalHistoricoAL02, codMOTroncal_ReglaLiquidacion1, codNoCliente, codSopladoRD, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, collections, consumirStockPersonal, convertDates, dataFlujosHomePass, db_default, db_root, empresas, esCadenaFechaISOValida, esObjetoFecha, formatCurrencyV1, formatNumberSmart, formatNumberV1, formatPercentageV1, generateUniqueNumber, generateUniqueNumberArray, getChannelName, getContainerName, getDBName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getNextID_Amap, getNextID_AsignacionValorizacion, getNextID_Valorizacion, getPrecioContratista, getPriceMaterial, getQueueName, getQueueNameSaveOneNotification, hashCode, isValidDate, isValidPartialEntity, logTiempoProceso, mapaDPContratoPrecioFullAL02, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, mapeoZonasSimilares, newCodMOTroncalReglaLiquidacion1, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioContratistaMaterial, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, parseDuplicateKeyError, roundNumber, searchCurrentContractorSpecialtyPrice, setColModels, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, updatePricePBBudgetAlemaniaAL02, updatePricePBBudgetAlemaniaAL04, uuidRegex, validateNoLookup };
|
package/dist/index.js
CHANGED
|
@@ -66,6 +66,7 @@ __export(index_exports, {
|
|
|
66
66
|
buildDataMOFromMaterialRules: () => buildDataMOFromMaterialRules,
|
|
67
67
|
buildDataMaterialsRule: () => buildDataMaterialsRule,
|
|
68
68
|
buildKeyMO: () => buildKeyMO,
|
|
69
|
+
buildMenu: () => buildMenu,
|
|
69
70
|
buildReservaMOJobMajorProjectsAlemaniaAL02: () => buildReservaMOJobMajorProjectsAlemaniaAL02,
|
|
70
71
|
buildReservaMOJobMajorProjectsAlemaniaAL04: () => buildReservaMOJobMajorProjectsAlemaniaAL04,
|
|
71
72
|
buildTenantCollectionName: () => buildTenantCollectionName,
|
|
@@ -16793,6 +16794,7 @@ var collections = Object.freeze({
|
|
|
16793
16794
|
PERU_9112_ToaOrder: "PERU_9112_ToaOrder",
|
|
16794
16795
|
PERU_9112_ToaRequestNumberTTL: "PERU_9112_ToaRequestNumberTTL",
|
|
16795
16796
|
PERU_9112_ToaOrderStock: "PERU_9112_ToaOrderStock",
|
|
16797
|
+
CHILE_9518_TdcOrderStock: "CHILE_9518_TdcOrderStock",
|
|
16796
16798
|
scrapingCredential: "scrapingCredentials",
|
|
16797
16799
|
PERU_9112_WinOrder: "PERU_9112_WinOrder",
|
|
16798
16800
|
PERU_9112_WinRequestNumberTTL: "PERU_9112_WinRequestNumberTTL",
|
|
@@ -16901,6 +16903,50 @@ async function builSystemOption(params) {
|
|
|
16901
16903
|
};
|
|
16902
16904
|
}
|
|
16903
16905
|
__name(builSystemOption, "builSystemOption");
|
|
16906
|
+
|
|
16907
|
+
// src/v2/utils/buildMenu.ts
|
|
16908
|
+
var buildMenu = /* @__PURE__ */ __name((data) => {
|
|
16909
|
+
const tree = {};
|
|
16910
|
+
function formatText(text) {
|
|
16911
|
+
return text.toLowerCase().replace(/-/g, " ").replace(/\b\w/g, (char) => char.toUpperCase());
|
|
16912
|
+
}
|
|
16913
|
+
__name(formatText, "formatText");
|
|
16914
|
+
data.forEach((item) => {
|
|
16915
|
+
const methodMap = {
|
|
16916
|
+
"GET": "Consultar todos los registros",
|
|
16917
|
+
"POST": "Crear un registro",
|
|
16918
|
+
"PUT": "Actualizar",
|
|
16919
|
+
"DELETE": "Eliminar"
|
|
16920
|
+
};
|
|
16921
|
+
let label = `${item.name} ${item.method ? item.method : ""}`.trim();
|
|
16922
|
+
if (item.method) {
|
|
16923
|
+
const includeParmas = item.name.includes(":");
|
|
16924
|
+
if (includeParmas) {
|
|
16925
|
+
const accion = methodMap[item.method];
|
|
16926
|
+
label = `${accion} por ${item.name.replace(":", "")}`;
|
|
16927
|
+
} else if (methodMap[label]) {
|
|
16928
|
+
label = methodMap[label];
|
|
16929
|
+
} else {
|
|
16930
|
+
label = formatText(item.name);
|
|
16931
|
+
}
|
|
16932
|
+
}
|
|
16933
|
+
tree[item.key] = {
|
|
16934
|
+
children: [],
|
|
16935
|
+
id: item._id,
|
|
16936
|
+
label,
|
|
16937
|
+
systemOption: item
|
|
16938
|
+
};
|
|
16939
|
+
});
|
|
16940
|
+
const rootItems = [];
|
|
16941
|
+
data.forEach((item) => {
|
|
16942
|
+
if (item.father) {
|
|
16943
|
+
tree[item.father].children.push(tree[item.key]);
|
|
16944
|
+
} else {
|
|
16945
|
+
rootItems.push(tree[item.key]);
|
|
16946
|
+
}
|
|
16947
|
+
});
|
|
16948
|
+
return rootItems;
|
|
16949
|
+
}, "buildMenu");
|
|
16904
16950
|
// Annotate the CommonJS export names for ESM import in node:
|
|
16905
16951
|
0 && (module.exports = {
|
|
16906
16952
|
ActualizarDataManoObra,
|
|
@@ -16946,6 +16992,7 @@ __name(builSystemOption, "builSystemOption");
|
|
|
16946
16992
|
buildDataMOFromMaterialRules,
|
|
16947
16993
|
buildDataMaterialsRule,
|
|
16948
16994
|
buildKeyMO,
|
|
16995
|
+
buildMenu,
|
|
16949
16996
|
buildReservaMOJobMajorProjectsAlemaniaAL02,
|
|
16950
16997
|
buildReservaMOJobMajorProjectsAlemaniaAL04,
|
|
16951
16998
|
buildTenantCollectionName,
|
package/dist/index.mjs
CHANGED
|
@@ -16626,6 +16626,7 @@ var collections = Object.freeze({
|
|
|
16626
16626
|
PERU_9112_ToaOrder: "PERU_9112_ToaOrder",
|
|
16627
16627
|
PERU_9112_ToaRequestNumberTTL: "PERU_9112_ToaRequestNumberTTL",
|
|
16628
16628
|
PERU_9112_ToaOrderStock: "PERU_9112_ToaOrderStock",
|
|
16629
|
+
CHILE_9518_TdcOrderStock: "CHILE_9518_TdcOrderStock",
|
|
16629
16630
|
scrapingCredential: "scrapingCredentials",
|
|
16630
16631
|
PERU_9112_WinOrder: "PERU_9112_WinOrder",
|
|
16631
16632
|
PERU_9112_WinRequestNumberTTL: "PERU_9112_WinRequestNumberTTL",
|
|
@@ -16734,6 +16735,50 @@ async function builSystemOption(params) {
|
|
|
16734
16735
|
};
|
|
16735
16736
|
}
|
|
16736
16737
|
__name(builSystemOption, "builSystemOption");
|
|
16738
|
+
|
|
16739
|
+
// src/v2/utils/buildMenu.ts
|
|
16740
|
+
var buildMenu = /* @__PURE__ */ __name((data) => {
|
|
16741
|
+
const tree = {};
|
|
16742
|
+
function formatText(text) {
|
|
16743
|
+
return text.toLowerCase().replace(/-/g, " ").replace(/\b\w/g, (char) => char.toUpperCase());
|
|
16744
|
+
}
|
|
16745
|
+
__name(formatText, "formatText");
|
|
16746
|
+
data.forEach((item) => {
|
|
16747
|
+
const methodMap = {
|
|
16748
|
+
"GET": "Consultar todos los registros",
|
|
16749
|
+
"POST": "Crear un registro",
|
|
16750
|
+
"PUT": "Actualizar",
|
|
16751
|
+
"DELETE": "Eliminar"
|
|
16752
|
+
};
|
|
16753
|
+
let label = `${item.name} ${item.method ? item.method : ""}`.trim();
|
|
16754
|
+
if (item.method) {
|
|
16755
|
+
const includeParmas = item.name.includes(":");
|
|
16756
|
+
if (includeParmas) {
|
|
16757
|
+
const accion = methodMap[item.method];
|
|
16758
|
+
label = `${accion} por ${item.name.replace(":", "")}`;
|
|
16759
|
+
} else if (methodMap[label]) {
|
|
16760
|
+
label = methodMap[label];
|
|
16761
|
+
} else {
|
|
16762
|
+
label = formatText(item.name);
|
|
16763
|
+
}
|
|
16764
|
+
}
|
|
16765
|
+
tree[item.key] = {
|
|
16766
|
+
children: [],
|
|
16767
|
+
id: item._id,
|
|
16768
|
+
label,
|
|
16769
|
+
systemOption: item
|
|
16770
|
+
};
|
|
16771
|
+
});
|
|
16772
|
+
const rootItems = [];
|
|
16773
|
+
data.forEach((item) => {
|
|
16774
|
+
if (item.father) {
|
|
16775
|
+
tree[item.father].children.push(tree[item.key]);
|
|
16776
|
+
} else {
|
|
16777
|
+
rootItems.push(tree[item.key]);
|
|
16778
|
+
}
|
|
16779
|
+
});
|
|
16780
|
+
return rootItems;
|
|
16781
|
+
}, "buildMenu");
|
|
16737
16782
|
export {
|
|
16738
16783
|
ActualizarDataManoObra,
|
|
16739
16784
|
ActualizarDataReserva,
|
|
@@ -16778,6 +16823,7 @@ export {
|
|
|
16778
16823
|
buildDataMOFromMaterialRules,
|
|
16779
16824
|
buildDataMaterialsRule,
|
|
16780
16825
|
buildKeyMO,
|
|
16826
|
+
buildMenu,
|
|
16781
16827
|
buildReservaMOJobMajorProjectsAlemaniaAL02,
|
|
16782
16828
|
buildReservaMOJobMajorProjectsAlemaniaAL04,
|
|
16783
16829
|
buildTenantCollectionName,
|