- openapi.js 重命名为 openapiEntry.js,消除与 openapi/ 目录同名冲突,恢复 ctx.service.openapi.callback 可用,修复 quickInbound API 回传报 Cannot read properties of undefined (reading 'sendWithRetry') - 导入/PDA 入库 commit 新增非绑定模式收货单占用:带 receiving_detail_id 的记录优先按明细扣减,剩余导入量按 stock_id 匹配绑定收货单明细占用并回写收货单入库状态 - storage.entry.get 响应新增 total_order_lines / total_quantity / received_quantity 字段 - 同步 AI_METHOD_ROUTING.md 与 methods/changes 变更记录
62 KiB
62 KiB
AI 方法路由速查(WMS)
本文用于让 AI/开发者快速理解入口路由与 method 到代码文件的映射关系。
1. 入口定义(router 风格)
当前路由定义见 app/router.js:
POST /qimen-> 奇门开发接口入口POST /system-> Web 端与 PDA 端统一业务入口
注意:当前代码中 /qimen 与 /system 都是 POST 路由。
2. /system 入口说明(统一 Web + PDA)
调用链:
app/router.js->controller.home.systemapp/controller/home.js的system()读取ctx.query.methodapp/service/system.js的callMethod(className, actionName, requestData, authHeader)- 从
ctx.service.systemMethods中按 method 分段下钻并执行目标函数
参数规则(system):
- 必填 query:
method,v,timestamp - 认证头:可传
Authorization - 请求体:JSON(
system()中按 JSON 解析)
外部请求示例:
POST http://127.0.0.1:6060/system?method=print.getComputerPrinter&v=1.0×tamp=1773386721
示例 body(按业务方法需要):
{
"id": 10001
}
3. /qimen 入口说明(奇门开发接口)
调用链:
app/router.js->controller.home.qimenapp/controller/home.js的qimen()读取ctx.query.methodapp/service/qimen.js的callMethod(className, actionName, xmlData, ...)- 从
ctx.service.qimenMethods中按 method 分段下钻并执行目标函数
参数规则(qimen):
- 必填 query:
app_key,method,v,format,sign_method,sign,timestamp - 请求体:XML(
qimen()中按 XML 解析)
4. method 指向规则(核心)
统一规则:
method最后一段是函数名(actionName)- 前面部分是 service 路径(className)
- service 路径按
.拆分后,对应到app/service/systemMethods或app/service/qimenMethods的目录层级
4.1 /system 示例
method=print.getComputerPrinter
- service 路径:
print - 函数名:
getComputerPrinter - 对应文件:
app/service/systemMethods/print.js - 对应方法:
getComputerPrinter(data)
method=setting.printTemplate.list
- service 路径:
setting.printTemplate - 函数名:
list - 对应文件:
app/service/systemMethods/setting/printTemplate.js - 对应方法:
list(data)
method=printer.station.list
- service 路径:
printer.station - 函数名:
list - 对应文件:
app/service/systemMethods/printer/station.js - 对应方法:
list()
4.2 /qimen 示例
method=deliveryorder.xxx
- service 路径:
deliveryorder - 对应文件:
app/service/qimenMethods/deliveryorder.js
method=taobao.qimen.service.xxx
- service 路径:
taobao.qimen.service - 对应文件:
app/service/qimenMethods/taobao/qimen/service.js
5. AI 快速定位建议
当收到 method=aaa.bbb.ccc 时,优先按以下步骤定位:
- 判定入口:
/system还是/qimen - 取最后一段
ccc作为函数名 - 其余部分
aaa.bbb作为 service 路径 - 在对应 methods 目录查找文件并确认类方法是否存在
可用检索命令示例:
rg "getComputerPrinter|class PrintService" app/service/systemMethods
rg "class .*Service|module.exports" app/service/qimenMethods
后续所有的method新增变更全部需要维护到下方
method结束
6. 全量 Service Method 能力清单(自动扫描)
维护说明:
- 扫描范围:app/service/**/*.js
- 本节内容由脚本生成,新增/修改 service 后请同步刷新。
- 刷新命令:node .\script\tmp-gen-service-method-inventory.cjs
- 临时清单输出:temp/tmp-service-method-inventory.md
自动生成时间: 2026-08-25T06:27:16.894Z
扫描范围: app/service/**/*.js 文件数: 193
- app/service/api.js (1)
- callMethod
- app/service/apiMethods/print.js (5)
- getPrinterRedis, normalizeBindValue, getEmployeePermissions, getBindInfo, bindByTempCode
- app/service/apiMethods/test.js (3)
- playbackRequest, fibonacci, fibonacciRecursive
- app/service/apiMethods/user.js (2)
- getUserByTempCode, bindAccountByTempCode
- app/service/dispatcher.js (3)
- buildMap, getMethodMap, invoke
- app/service/im.js (3)
- ping, ssoCodeToId, getStoreEmployees
- app/service/inbox/ai.js (3)
- callDeepSeek, getConversationHistory, processWithAI
- app/service/inbox/functions.js (5)
- registerBuiltinFunctions, register, callFunction, _getRecordingComputerId, _buildVideoUrl
- app/service/inbox/groups.js (4)
- resolveActiveGroups, isFunctionAvailable, getFunctionList, buildFunctionListText
- app/service/inbox/index.js (5)
- list, detail, thread, reply, stats
- app/service/inbox/message.js (7)
- list, _normalizeIds, _normalizeStrings, detail, thread, stats, retry
- app/service/inbox/processor.js (15)
- _loadGroupInfo, isStaleMessage, process, handleApiMessage, tryBindGroup, writeOutboundReply, isBlocked, invalidateBlockCache, getApiAppCallbackConfig, getApiAppCallbackUrl, pushSystemNotification, extractWarehouseId, extractStoreId, getWarehouseIdFromContext, getStoreIdFromContext
- app/service/inbox/receiver.js (1)
- receive
- app/service/main.js (18)
- success, fail, normalizeDate, setInfo, getInfo, isPlainObject, normalizeWhereCondition, normalizeWhereParams, extractWhereValues, prepareWhereContext, findQimenAppWithContract, queryFromDatabase, checkAuth, checkApiPermission, extractApiPermissionState, collectApiPermissionValue, setUserContext, systemInit
- app/service/openapiEntry.js (9)
- resolveOpenapiMethod, getOpenapiMethodService, resolveOpenapiContract, getInfo, dispatchOpenapiMethod, validateOpenapiParams, parseJsonBody, normalizeSignFields, processRequest
- app/service/openapi/callback.js (4)
- signCallback, sendWithRetry, sendByAppKey, logCallback
- app/service/openapi/callbackRegistry.js (0)
- app/service/openapiMethods/callback.js (2)
- resolveAppInfo, test
- app/service/openapiMethods/deliveryorder.js (2)
- query, create
- app/service/openapiMethods/entryorder.js (2)
- create, query
- app/service/openapiMethods/index.js (2)
- ping, health
- app/service/openapiMethods/inventory.js (1)
- query
- app/service/openapiMethods/order.js (2)
- cancel, releaseStockLockForCancel
- app/service/openapiMethods/ping.js (1)
- echo
- app/service/openapiMethods/singleitem.js (2)
- synchronize, query
- app/service/pda.js (3)
- callMethod, validateParams, saveLog
- app/service/qimen.js (12)
- validateApi, getErpName, parseXmlToArray, cleanXmlString, callMethod, formatResponse, xmlResponse, buildXmlNode, escapeXml, saveQimenLog, saveQimenLogResult, saveQimenLogBody
- app/service/qimenMethods/deliveryorder.js (3)
- query, create, batchcreate
- app/service/qimenMethods/entryorder.js (2)
- create, query
- app/service/qimenMethods/inventory.js (1)
- query
- app/service/qimenMethods/order.js (5)
- getInterceptExpressInfo, sendCancelInterceptNotice, cancel, releaseStorageLockForCancel, pending
- app/service/qimenMethods/returnorder.js (2)
- create, query
- app/service/qimenMethods/singleitem.js (2)
- synchronize, query
- app/service/qimenMethods/stockout.js (2)
- create, query
- app/service/qimenMethods/taobao/qimen/service.js (1)
- heartbeat
- app/service/system.js (4)
- callMethod, validateParams, validateRequestContext, saveLog
- app/service/systemMethods/afterSale.js (22)
- workList, _resolveAfterSaleBlockRoleGroups, workCount, auditList, detail, create, _resolveRedundantFields, transfer, handleWorkOrder, batchSetPendingFeedback, batchClose, registerClaim, export, exportTaskProgress, generateAfterSaleNo, _getCurrentDatePart, _buildOperatorSnapshot, generateExportTaskId, normalizeExportTaskId, getExportTaskCacheKey, setExportTaskProgress, getExportTaskProgress
- app/service/systemMethods/apiApp.js (6)
- list, detail, create, update, delete, regenerateSecret
- app/service/systemMethods/camera.js (6)
- list, detail, create, update, setOsd, delete
- app/service/systemMethods/cameraServer.js (5)
- list, detail, create, update, delete
- app/service/systemMethods/comboGoods.js (5)
- list, create, update, delete, search
- app/service/systemMethods/config.js (1)
- list
- app/service/systemMethods/dashboard.js (17)
- storeStats, storeSideStoreStats, queryWarehouseStats, mergeStoreStats, emptyStoreStats, warehouseStats, hot_order_rank, express_ratio, storeSideExpressRatio, queryWarehouseExpressRatio, mergeChartData, formatChartData, emptyChartData, platform_distribution, storeSidePlatformDistribution, queryWarehousePlatformDistribution, order_trend
- app/service/systemMethods/inbox.js (11)
- group, message, after_sales, bindCode, groupList, groupDisable, groupUpdate, groupReset, groupMessages, retry, reply
- app/service/systemMethods/index.js (55)
- fastWhereTree, loadStores, loadWarehouses, loadExpressInterfaces, getCOSUploadConfig, getImages, uploadSuccessNotify, recognizeLicensePlate, ReferenceFile, getMessageDetail, test, getI18nMessage, putI18nCollect, extractModule, tryAutoTranslateNewKeys, searchSpace, searchSpaces, listInterfaceTypes, getLocationTypeList, getQimenAppList, getExpressList, getExpressProductTypeList, getPlatformList, getPrintPlatformList, ensureShopPrintPlatformExists, buildShopPrintPlatformInclude, getShopList, requestPddWaybillSearch, requestPddStdTemplates, requestTbWaybillSearch, requestTbCainiaoStdTemplates, requestPolyStdTemplates, getShopExpressList, getCainiaoStfTemplates, normalizeTemplatePlatformCode, normalizeTemplateExpressCode, getExpressPlatformFieldName, getTemplateAllowedExpressCodeSet, filterPrintPlatformTemplateResponseData, getPrintPlatformTemplateCacheKey, requestPrintPlatformTemplateList, resolvePddTemplateWpCodeCandidates, requestPddTemplateSourceList, getPrintPlatformTemplateList, isPlatformOauthReservationDuplicateError, getPlatformOauthReservationCodePrefix, hasPlatformOauthReservationCodePrefix, normalizePlatformOauthReservationCode, generatePlatformOauthReservationCode, createPlatformOauthReservation, getPlatformOauthLink, listenPlatformOauthBind, loginToIm, polyapiAuthorizeUrl, toOrder
- app/service/systemMethods/order/archiveOrder.js (2)
- list, detail
- app/service/systemMethods/order/base.js (57)
- maskListSensitiveValue, isInterceptedOrderStatus, isLockedOrderStatus, assertOrderNotIntercepted, getWarehouseId, getOrderLogOperator, getOrderLogWarehouseId, normalizePagination, normalizeWhereInput, normalizeOrderIds, isMergeableWhereCondition, mergeWhereObjects, getModuleConfig, getDefaultWhere, getBadgeCountCacheKey, formatBadgeCountValue, formatWeightTypeLabel, formatCreateChannelLabel, normalizeWaveScanResult, normalizeWaveStrategyVersion, normalizeLockStatusFlag, normalizeOrderListItem, getBadgeCountByModule, getOrderModel, resolveOrderTableType, getOrderModelByTableType, getOrderItemsModelByTableType, getOrderExpressesByOrderId, normalizeOrderListRow, attachOrderExpressNumbers, attachOrderWaveIndex, extractOrderListExpressVirtualFilter, extractBuyerMessageHasVirtualFilter, extractStockQueryVirtualFilter, extractWaveIndexVirtualFilter, extractWaveScopeVirtualFilter, findOrderIdsByWaveIndexCondition, in, buildWaveScopeWhereCondition, buildBuyerMessageHasCondition, appendConditionToWhere, normalizeExpressFilterValues, findOrderIdsByExpressNumbers, findOrderIdsByStockQuery, appendOrderIdsFilterToWhere, buildListOrder, buildWhere, listByModule, detail, attachStockDetailsToOrderItems, getOrderOperationLogs, resolveReviewStep, normalizeReviewOrderIds, buildOrderWhere, buildReviewOrderWhere, updateReviewOrder, updateOrderInspectionState
- app/service/systemMethods/order/deliveryExpectionOrder.js (2)
- list, detail
- app/service/systemMethods/order/deliveryOrder.js (5)
- list, detail, quickSearch, buildWaybillItem, fetchOrderMapByIds
- app/service/systemMethods/order/entrustOrder.js (2)
- list, detail
- app/service/systemMethods/order/expectionOrder.js (2)
- list, resolveException
- app/service/systemMethods/order/index.js (16)
- export, exportTaskProgress, generateExportTaskId, normalizeExportTaskId, getExportTaskCacheKey, setExportTaskProgress, getExportTaskProgress, list, manualOutboundOrder, badgeCount, queryOrderLogs, queryOrderLogList, updateExpressWeighingWeight, bindExpressPackageMaterial, bindExpressPackageMaterialByWaybill, pullReviewDataByWaybill
- app/service/systemMethods/order/outboundOrder.js (2)
- list, manualOutboundOrder
- app/service/systemMethods/order/packing.js (4)
- list, get, setEndTime, forceRecord
- app/service/systemMethods/order/pendingOrder.js (41)
- list, detail, reverseReviewOrder, assertOrdersWithoutWaybill, syncWavesAfterReverseReview, allocateStorage, allocateStorageProgress, normalizeAllocateStorageTaskProgress, normalizeAllocateStorageTaskCount, normalizeAllocateStorageTaskCounts, normalizeAllocateStorageRequestId, getAllocateStorageTaskCacheKey, setAllocateStorageTaskProgress, getAllocateStorageTaskProgress, getAllocateExpressTaskCacheKey, normalizeAllocateExpressTaskId, setAllocateExpressTaskProgress, getAllocateExpressTaskProgress, getSyncOrderIdsTaskCacheKey, normalizeSyncOrderIdsRequestId, setSyncOrderIdsTaskProgress, getSyncOrderIdsTaskProgress, cancelAllocateStorage, syncOrderIds, syncOrderIdsProgress, allocateExpressCode, allocateExpressCodeTaskProgress, markPendingOutboundOrder, cancelOrder, normalizePendingOutboundOrderIds, normalizePendingCancelOrderIds, isCancelablePendingOrder, updateOrderPlatform, updateOrderExpress, updateAddress, updateRemark, cloneOrder, parseAddress, _parseAddressBatchOneShot, _parseSingleAddress, catch
- app/service/systemMethods/order/print.js (4)
- getWavePlatformPrintData, getOrderPrintData, getPrintDataByWaybillCodes, unlockWavePlatformPrintDataByGroup
- app/service/systemMethods/order/recheckOrder.js (57)
- scanOrder, scanTask, buildSingleWaveScanView, buildSingleWaveView, buildGroupWaveList, getPickModeByWaveId, getTaskIdByWaveId, getWaveOrdersBasic, batchQueryPackageMaterialRecommendation, enrichOrdersWithStock, getPickerInfoByWaveId, getPickerInfoByTaskId, getWaveStrategyInfo, scanWaybill, confirmRecheck, confirmRecheckByWaveId, _writeRecheckActionLog, updateTaskOrderReviewAndTryUnbindCart, _resolveTaskIdByWaveFallback, _checkTaskOrdersAllReviewed, updateTaskOrdersReviewBatch, unbindCartForTask, resolveOrderId, resolveScanKeyword, pickOrderMatchByKeyword, pickOrderIdByWaybill, pickOrderIdByCartCode, pickWaveMatchContextByWaveNo, pickCartMatchContextByCartCode, getTableColumnSet, resolvePickModeName, buildWaveMatchView, buildCartMatchView, flattenCartMatchOrders, enrichTaskOrderRows, groupTaskOrdersByWaveId, groupTaskOrdersByPickStatus, groupTaskOrdersByBoxNo, groupTaskOrders, buildRecheckReviewNo, assertOrderCanRecheck, recheckOrderList, queryRecheckOrderSingleList, queryRecheckOrderGroupList, resolveModelTableName, confirmIntercept, interceptScan, batchQuickRecheck, normalizeWaveIds, batchQuickRecheckByWave, _completePickForOrder, _markRecheckForOrder, _tryCompleteWaveIfAllOrdersRechecked, _tryCompleteWaveInTransaction, _updateTaskOrderReviewInTransaction, _unbindCartForTaskInTransaction, _writeRecheckActionLogInTransaction
- app/service/systemMethods/order/reviewOrder.js (2)
- list, reviewOrder
- app/service/systemMethods/order/storageAllocation.js (0)
- app/service/systemMethods/order/wave.js (222)
- buildBatchAllocateExpressTraceId, buildOrderOperationLogRows, batchCreateOrderOperationLogs, buildMachineStructureToken, parseMachineStructureToken, getOrderItemPart, getDefaultWaveQuantity, getMinGroupOrderFetchQuantity, getGroupWavePrefix, getSingleFetchByIdsWavePrefix, getWarehouseSubjectConfig, getWarehouseSubjectConfigValue, normalizeFetchStructureRequests, generateWaveId, getCurrentDatePart, VALUES, getNextWaveNoSequence, buildWaveNo, id, getWaveCreator, extractInsertId, extractLastInsertId, isDuplicateEntryError, createWaveBatchReady, buildFetchWhere, fetchSingleStructure, normalizeBoolean, normalizePositiveInteger, normalizeRequiredPositiveInteger, normalizeIdsInput, normalizePagination, normalizeWaveStatusList, normalizeBatchListStorageAssignmentStatusFilter, normalizeBatchListExpressAssignmentStatusFilter, normalizeBatchListPrintAssignmentStatusFilter, normalizeBatchListReviewAssignmentStatusFilter, getBatchListAssignmentFilterSchema, normalizeBatchListAssignmentStatusFilterByType, normalizeBatchListAssignmentStatusFilter, getModelTableSqlName, buildBatchListStorageAssignmentFilterClause, buildBatchListExpressAssignmentFilterClause, buildBatchListPrintAssignmentFilterClause, buildBatchListReviewAssignmentFilterClause, buildBatchListAssignmentStatusFilterClauseByType, buildBatchListAssignmentStatusFilterClause, buildBatchListWhereClause, normalizeWavePickTaskListPagination, normalizeWavePickTaskListRequest, buildWavePickTaskListWhereClause, resolveAssignmentStatus, normalizeSkuText, normalizeShopName, parseItemSnapshot, normalizeOrderItemRow, mergeOrderItemDetails, buildItemSummary, buildOrderItemSnapshot, buildItemSnapshotKey, orderMatchesIncludeSku, buildCoarseGroupKey, buildStatusSummary, buildGroupKey, groupOrderFetchList, singleOrderFetchList, waveStrategyList, getWaveStrategyNextFetchOrderCountMap, getWaveStrategyDebugFetchOrderListMap, previewWaveStrategyNextFetchOrderCount, getWaveStrategyMatchedOrderCountFilteredMap, waveStrategyCreate, waveStrategyUpdate, bumpWaveStrategyVersionAndInvalidateCache, getWaveStrategyModel, normalizeWaveStrategyId, normalizeWaveStrategyUpsertPayload, normalizeWaveStrategyWavePrefix, resolveWaveStrategyFetchWavePrefix, patchWaveStrategyIntegerField, validateWaveStrategyAllowedOwners, validateWaveStrategyAllowedExpresses, getWaveStrategyAvailableOwnerSet, getWaveStrategyAvailableExpressSet, applyWaveStrategyMaxSameStructureConstraint, normalizeWaveStrategyFallbackOrderListWhere, resolveWaveStrategyFallbackTrackingNo, resolveWaveStrategyFallbackStoreName, resolveWaveStrategyFallbackSysLogisticsName, buildWaveStrategyFallbackOrderListItem, waveStrategyFallbackOrderList, batchList, wavePickTaskList, batchCancel, batchCancelTaskProgress, batchAllocateExpress, batchAllocateExpressTaskProgress, batchAllocateStorage, batchAllocateStorageTaskProgress, submitWaveStrategyQuickScanForWarehouse, waveStrategyQuickScan, waveStrategyQuickScanTaskProgress, buildWaveStrategyQuickScanOrderWhere, getWaveStrategyQuickScanStrategyRows, getWaveStrategyQuickScanMatchModel, syncWaveStrategyQuickScanMatchedStrategies, cleanupWaveStrategyQuickScanMatchedStrategies, cleanupWaveStrategyQuickScanMatchedStrategiesByOrderIds, enqueueWaveStrategyQuickScanPostOrderChange, executeWaveStrategyQuickScan, runWaveStrategyQuickScanTask, batchUpdateWaveStrategyQuickScanOrders, generateWaveStrategyQuickScanTaskId, normalizeWaveStrategyQuickScanTaskId, getWaveStrategyQuickScanTaskCacheKey, setWaveStrategyQuickScanTaskProgress, getWaveStrategyQuickScanTaskProgress, getWaveStrategyQuickScanWarehouseLockCacheKey, setWaveStrategyQuickScanWarehouseLock, getWaveStrategyQuickScanWarehouseLock, clearWaveStrategyQuickScanWarehouseLock, normalizeWaveStrategyQuickScanVersion, normalizeWaveStrategyQuickScanList, normalizeWaveStrategyQuickScanNumberOrNull, normalizeWaveStrategyQuickScanBoolean, normalizeWaveStrategyQuickScanStringList, getWaveStrategyQuickScanStructureKey, getWaveStrategyQuickScanExpressKey, filterCandidateOrdersByRequireSameExpress, isWaveStrategyQuickScanOrderMatched, getWaveStrategyQuickScanMatchedStrategyIds, isWaveStrategyQuickScanOrderMatchedSingleStrategy, isWaveStrategyQuickScanValueInRange, resolveGroupCandidateOrderIdsForSingleFetch, singleFetchByIds, batchRemoveOrders, resortWaveIndex, batchRemoveExceptionOrders, batchRemoveExceptionOrdersTaskProgress, generateBatchCancelTaskId, normalizeBatchCancelTaskId, generateBatchRemoveExceptionOrdersTaskId, normalizeBatchRemoveExceptionOrdersTaskId, normalizeBatchRemoveExceptionOrdersWaveIds, getBatchRemoveExceptionOrdersTaskCacheKey, setBatchRemoveExceptionOrdersTaskProgress, getBatchRemoveExceptionOrdersTaskProgress, isExceptionRemovableOrder, runBatchRemoveExceptionOrdersTask, normalizeBatchCancelWaveIds, getBatchCancelTaskCacheKey, setBatchCancelTaskProgress, getBatchCancelTaskProgress, runBatchCancelTask, generateBatchAllocateExpressTaskId, normalizeBatchAllocateExpressTaskId, normalizeBatchAllocateExpressWaveIds, getBatchAllocateExpressTaskCacheKey, setBatchAllocateExpressTaskProgress, getBatchAllocateExpressTaskProgress, generateBatchAllocateStorageTaskId, normalizeBatchAllocateStorageTaskId, normalizeBatchAllocateStorageWaveIds, normalizeBatchAllocateStorageTaskCount, buildBatchAllocateStorageRunningProgressPayload, normalizeBatchAllocateStorageOrderIds, getBatchAllocateStorageTaskCacheKey, getBatchAllocateStorageWarehouseLockKey, tryAcquireBatchAllocateStorageWarehouseLock, releaseBatchAllocateStorageWarehouseLock, setBatchAllocateStorageTaskProgress, getBatchAllocateStorageTaskProgress, isMissingBusinessKeyColumnError, runBatchAllocateExpressTask, runBatchAllocateStorageTask, batchAutoGrouping, batchFinishAutoGrouping, generateFetchTaskId, normalizeFetchTaskId, getFetchTaskCacheKey, setFetchTaskProgress, getFetchTaskProgress, fetchTaskProgress, runFetchTask, submitFetchTask, groupFetch, singleFetch, resolveWaveStrategyFetchPickMode, buildWaveStrategyFetchBoxAssignments, prepareWaveStrategyFetchPlan, in, ensureNoActiveWavePickTaskForOperator, getWaveStrategyFetchCandidateOrders, groupWaveStrategyFetchCandidateOrdersByStructure, buildWaveStrategyFetchOrderSkuMap, selectWaveStrategyFetchOrdersBySkuLimit, createWaveBatchByOrderIdsInTransaction, autoPopulateWaveStrategyFetchSelections, executeWaveStrategyDirectFetch, createWavePickTaskFromPlan, buildTaskCreatePayload, buildTaskWaveRows, buildTaskOrderRows, buildTaskSkuRows, buildTaskBoxRows, bindPickCartForTask, initTaskCheckpointAndLogs, ensurePickCartAvailable, generateWavePickTaskNo, createWavePickTaskWithRetry, isTaskNoDuplicateError, bulkInsertRows, parseWaveStrategyExistingTaskInfo, waveStrategyFetchPda, cancelWavePickTasksInternal, wavePickTaskCancel, wavePickTaskCancelSelf, waveStrategyFetchAdmin, deleteOrderWaveIndexByOrderIds, deleteOrderWaveIndexByWaveIds, rebuildOrderWaveIndex, replaceOrderWaveIndexByWaveIds, fetch
- app/service/systemMethods/outbound.js (1)
- autoOutbound
- app/service/systemMethods/pick.js (14)
- normalizeBoolean, getOrderModelByWarehouse, generatePickTaskNo, createWavePickTask, resolveLocationSortedOrderIds, query, wavePickTaskDetail, wavePickTaskCurrent, wavePickTaskSubmit, wavePickComplete, wavePickTaskComplete, getWavePickModeByWaveId, getWaveClaimGateStats, waveClaimScan
- app/service/systemMethods/pickCart.js (9)
- scan, bindTaskCart, create, update, delete, batchDelete, detail, list, codeDuplicateCheck
- app/service/systemMethods/print.js (28)
- buildPrintSendInputSummary, summarizeExpressPayload, extractExpressTaskCodeFromPayload, buildPrintTaskCodeForRecord, buildPendingPrintRecordPayload, buildSentPrintRecordUpdatePayload, buildSendFailedPrintRecordUpdatePayload, normalizeOrderIds, collectOrderIdsFromPlatformGroup, collectOrderIdsFromCustomizeData, normalizeExpressPlatformCode, extractOrderIdsFromPrintRecordData, updateOrderPrintStatusByCallback, getPrintTaskCodeRetryConfig, getPrintTaskCodeWritebackRetryConfig, generateAtomicPrintTaskCode, isDuplicateKeyError, calculateBackoffDelayMs, sleep, reserveUniquePrintTaskCode, bindTaskCodeToPrintRecord, bindTaskCodeToPrintRecordWithRetry, send, now, if, update, error, fail
- app/service/systemMethods/printComputer.js (5)
- list, update, setRecording, cancelRecording, delete
- app/service/systemMethods/printer/station.js (1)
- list
- app/service/systemMethods/returnReceived.js (5)
- _call, create, list, detail, delete
- app/service/systemMethods/returnUnpack.js (13)
- _call, create, addDetail, updateDetail, removeDetail, cancel, submit, forceRecord, list, detailList, videoList, detail, delete
- app/service/systemMethods/returnWaybill.js (6)
- _call, create, update, list, detail, delete
- app/service/systemMethods/setting/account.js (7)
- callSystemAccount, list, add, delete, update, getBindWechatCode, unbindWechat
- app/service/systemMethods/setting/express.js (8)
- callSystemExpress, list, listBase, create, checkCodeUnique, update, resolveDeleteIds, delete
- app/service/systemMethods/setting/expressInterface.js (6)
- callSystemExpressInterface, list, listByWarehousePlatformCode, create, update, delete
- app/service/systemMethods/setting/packageMaterial.js (8)
- callSystemPackageMaterial, resolveDeleteIds, get, list, search, create, update, delete
- app/service/systemMethods/setting/packageSupplier.js (7)
- callSystemPackageSupplier, resolveDeleteIds, get, list, create, update, delete
- app/service/systemMethods/setting/permission.js (5)
- callSystemPermission, list, add, delete, update
- app/service/systemMethods/setting/platform.js (6)
- callSystemPlatform, list, create, update, resolveDeleteIds, delete
- app/service/systemMethods/setting/printTemplate.js (6)
- list, normalizeAndValidateBusinessType, save, create, delete, listTemplatesByType
- app/service/systemMethods/setting/role.js (6)
- callSystemRole, list, permission, add, delete, update
- app/service/systemMethods/setting/store_warehouse.js (0)
- app/service/systemMethods/setting/warehouse.js (3)
- getSettings, getFieldMeta, saveSettings
- app/service/systemMethods/shops.js (6)
- callShopsSystem, list, add, del, edit, GetAuthorizeSessionKey
- app/service/systemMethods/stock/combo.js (0)
- app/service/systemMethods/stock/index.js (1)
- stockWarehouse
- app/service/systemMethods/stock/report.js (10)
- search, searchStore, exportStore, export, exportTaskProgress, generateExportTaskId, normalizeExportTaskId, getExportTaskCacheKey, setExportTaskProgress, getExportTaskProgress
- app/service/systemMethods/stock/store.js (0)
- app/service/systemMethods/stock/transaction.js (10)
- list, storeList, export, exportStore, exportTaskProgress, generateExportTaskId, normalizeExportTaskId, getExportTaskCacheKey, setExportTaskProgress, getExportTaskProgress
- app/service/systemMethods/stock/warehouse.js (37)
- normalizeWarehouseRecycleWhere, list, externalList, externalExport, export, exportTaskProgress, generateExportTaskId, normalizeExportTaskId, getExportTaskCacheKey, setExportTaskProgress, getExportTaskProgress, getProhibitedType, getInfo, saveWarehouseStock, createWarehouseStock, import, _normalizeWarehouseImportRows, _normalizeWarehouseImportRow, _normalizeNeedRecheckValue, _normalizeBarcodeField, getBarcodes, saveWarehouseStockBarcode, getStoreStocks, bindItem, unbindItem, checkItemCodeUnique, queryStockLogs, handleBatchDelete, deleteUnit, deleteProhibited, handleBatchChange, getStockUnits, getUnitList, createProhibited, createUnit, search, getStockDetail
- app/service/systemMethods/storage/delivery.js (3)
- list, toOrder, listItems
- app/service/systemMethods/storage/entry.js (26)
- list, listStore, get, getStore, cancel, addItem, commit, removeItem, bindReceiving, unbindReceiving, quickInbound, getPrintData, receivingCompare, queryEntryLogs, getReceivingDetailsForBind, containerList, reviewEntry, export, exportTaskProgress, generateExportTaskId, normalizeExportTaskId, getExportTaskCacheKey, setExportTaskProgress, getExportTaskProgress, storeExport, storeExportTaskProgress
- app/service/systemMethods/storage/expiry.js (1)
- list
- app/service/systemMethods/storage/inventory.js (14)
- transferLocation, transferByProduct, extractStockQueryVirtualFilter, list, listByStockId, quickPutaway, directPutaway, export, exportTaskProgress, generateExportTaskId, normalizeExportTaskId, getExportTaskCacheKey, setExportTaskProgress, getExportTaskProgress
- app/service/systemMethods/storage/management.js (1)
- replenishmentDemand
- app/service/systemMethods/storage/receiving.js (29)
- getReceivingList, getStoreReceivingList, getReceivingDetail, batchCancelReceiving, create, bindStore, bindDetailProduct, addItem, removeItem, save, get, addDetail, deleteDetail, detailChange, cancel, completeReceiving, rejectReceiving, reviewReceiving, queryReceivingLogs, scanDetail, export, exportTaskProgress, generateExportTaskId, normalizeExportTaskId, getExportTaskCacheKey, setExportTaskProgress, getExportTaskProgress, storeExport, storeExportTaskProgress
- app/service/systemMethods/storage/stockout.js (5)
- list, toOrder, listItems, confirm, updateExpress
- app/service/systemMethods/storage/transaction.js (1)
- list
- app/service/systemMethods/store_express_binding_policy.js (5)
- callSystem, list, add, edit, del
- app/service/systemMethods/store.js (6)
- createStore, createWarehouse, joinStore, joinWarehouse, getStoreRoles, auditApply
- app/service/systemMethods/storeWarehouse.js (0)
- app/service/systemMethods/storeWarehouse/store.js (25)
- list, sign, confirmSign, rename, unbind, adjustPrintQuantity, queryPrintQuantityLogs, getPolicyConfig, getPolicyConfigFields, savePolicyConfig, listApiConfig, saveApiConfig, deleteQimenConfig, openAccount, createUser, exportPrintQuantityLogs, exportPrintQuantityLogsTaskProgress, queryStorePrintQuantityLogs, exportStorePrintQuantityLogs, exportStorePrintQuantityLogsTaskProgress, generateExportTaskId, normalizeExportTaskId, getExportTaskCacheKey, setExportTaskProgress, getExportTaskProgress
- app/service/systemMethods/storeWarehouse/warehouse.js (3)
- list, sign, confirmSign
- app/service/systemMethods/user.js (9)
- login, loginByCode, getBindWechatCode, getLoginWechatCode, unbindWechat, logout, info, changeRole, register
- app/service/systemMethods/warehouse.js (25)
- getWarehouseZones, getWarehouseTree, getChildren, create, update, delete, detail, checkBarcodeUnique, toggleActive, getPath, getPickPath, updateRackPosition, recalculatePickPath, updateNeighbors, getAreaRacks, getSpacesByRack, createRackWithSpaces, getSpaceInfo, updateSpaceInfo, getBatchFieldValue, hasBatchField, normalizeBatchString, getCurrentWarehouseCode, batchUpdateSpaceInfo, exportRackSpaces
- app/service/systemMethods/waybill/warehouse.js (9)
- list, detail, export, exportTaskProgress, generateExportTaskId, normalizeExportTaskId, getExportTaskCacheKey, setExportTaskProgress, getExportTaskProgress
- app/service/systemMethods/workbench.js (8)
- list, detail, create, update, delete, business, bindCamera, checkBarcode
- app/service/systems/account_platform.js (11)
- getActiveInclude, getPrimaryRoleBinding, formatActiveContext, switchActiveRole, getActiveRoleByPlatform, getMultiplePlatformActiveRoles, getAllPlatformActives, clearPlatformActive, clearPlatformCache, getAvailableRoles, getCurrentContext
- app/service/systems/afterSale.js (29)
- list, countPending, _buildListWhere, _resolveConditionValue, _extractConditionValue, _buildListOrder, getDetail, _enrichAfterSaleDetail, _resolveOrderDetail, _resolveStoreContractNote, _resolveWaybillDetail, _enrichStepsWithAttachments, create, _enrichListStoreNames, update, _formatAfterSaleRow, addStep, bindAttachments, transfer, handleWorkOrder, createInterceptWorkOrdersAndNotify, _resolveFollowupHours, _tryParseHours, batchSetPendingFeedback, batchClose, registerClaim, exportAfterSales, _generateAndUploadExcel, _getCreateChannelLabel
- app/service/systems/api_sign.js (4)
- getApiAppCacheKey, getApiAppConfigByAppKey, getApiAppSecretByAppKey, verifyRequestSignByAppKey
- app/service/systems/apiApp.js (8)
- generateAppKey, generateAppSecret, getDefaultInterfaceTypeId, list, create, update, delete, regenerateSecret
- app/service/systems/auth/role_permission.js (7)
- normalizeTypeFilter, normalizePermissionSet, toApiPermissionIds, serializePermissionSet, getPermissionIdsForRoles, assignPermissions, removePermissionsFromAllRoles
- app/service/systems/auth/user.js (66)
- getMenuTypeWhereByPlatform, getCurrentAccountId, getWechatBindCacheKey, getWechatBindCodeCacheKey, getWechatBindScanCacheKey, getWechatLoginClientCacheKey, getWechatLoginCodeCacheKey, getWechatLoginEventChannel, createWechatBindCodeCandidate, createUniqueSixCode, createWechatBindCode, createWechatLoginCode, createWechatLoginClientCode, parseWechatBindCode, formatBindWechatData, formatLoginWechatData, getRemainingSecondsByExpiresAt, setWechatBindCache, setWechatBindCodeCache, setWechatBindScanCache, getWechatBindScanCache, setWechatLoginClientCache, setWechatLoginCodeCache, findYe4sBindingByAccountId, getWechatBindEventChannel, getWechatLongPollTimeoutMs, shouldUseWechatBindLongPoll, publishWechatBindEvent, waitForWechatBindEvent, refreshWechatBindState, login, loginByYe4sCode, waitForLoginCodeRefresh, isTransientWechatLoginError, extractYe4sUserIdFromLoginEvent, waitForWechatLoginEvent, loginByYe4sUserId, tryBuildWechatLoginTokenFromState, refreshWechatLoginState, getLoginWechatCode, getBindWechatCode, getBindWechatCodeByAccountId, getUserByTempCode, bindAccountByTempCode, unbindWechat, unbindWechatByAccountId, buildLoginResult, changeRole, info, getRoles, findById, setUserCache, getAvatarByEmployeeId, clearUserCache, clearRelatedCache, getPermissions, getMenus, convertToRoutes, findUserByIdentifier, checkUserStatus, verifyPassword, encryptPassword, generateSalt, updateLastLoginTime, ensurePlatformActiveRole, register
- app/service/systems/camera.js (6)
- list, detail, create, update, setOsd, delete
- app/service/systems/cameraServer.js (5)
- list, detail, create, update, delete
- app/service/systems/comboGoods.js (15)
- fetchStockInfoMap, buildSimpleNotation, buildNameNotation, validateItems, getTargetStoreIdFromMap, checkCustomCodeUniqueForCreate, checkCustomCodeUniqueForUpdate, list, buildListWhere, create, update, delete, search, searchByIdOrCode, enrichComboList
- app/service/systems/delivery_order.js (47)
- getStoreSubjectConfigCacheKey, normalizeStoreSubjectConfig, getStoreSubjectConfig, findCodeOption, getOptionName, appendOrderOperationLog, getOrderLogOperator, getOrderLogWarehouseId, flushOrderOperationLogs, findPlatformOptionByCode, getPlatformSnapshotCode, getPlatformSnapshotName, resolvePlatformSnapshot, resolveExpressCodeFromSetting, resolveExpressSettingSnapshot, resolveEnableExternalExpressCode, resolveExpressSnapshot, addOrder, isPrimaryKeyDuplicate, formatOrderCreateError, resolveOrderStep, generateItemsHash, calculateCRC32, normalizeOrderFromKey, resolveOperatorName, prepareOrderData, addOrderLines, buildOrderItemSnapshot, safeParseFloat, withPatchedCtxUser, buildAsyncProcessContext, buildExpressAllocateRequest, buildStorageAllocateRequest, getStoreWarehousePolicyConfig, normalizePolicyFlag, resolveCutoffOrderConfig, isPastCutoffTime, buildAutoGroupingStructure, findAutoGroupingWaveId, appendOrderToWave, countCandidateGroupOrders, createGroupingWave, markWaveAutoGrouping, finishAutoGroupingIfNeeded, runAutoGrouping, runAsyncProcessStep, asyncProcessOrderCreated
- app/service/systems/entry_order.js (16)
- addOrder, getLineCount, received, success, fail, findByOrderCode, findByStatus, getStatsByWarehouse, updateSyncStatus, updateOrderStatus, calculateReceivedQuantities, batchUpdateReceived, getOrderProgress, tryCreateEntryOrder, addItems, reviewEntry
- app/service/systems/excel.js (24)
- getContentType, sanitizeSheetName, normalizeHeaders, normalizeColumns, prepareSheetData, hasEmbeddedImages, buildWorksheet, buildWorkbook, buildExcelJsWorkbook, inferImageExtension, resolveImageSource, mergeCellStyle, applyStyledRows, addEmbeddedImages, generateBuffer, writeFile, writeAtomicBufferFile, sanitizeFilename, buildUploadKey, generateAndUpload, sendFile, parseBuffer, parseFile, workbookToJSON
- app/service/systems/express_platform.js (15)
- getOrderLogOperator, buildOrderExpressVerPatch, buildExpressPlatformTraceId, OrderExpress, cleanupFailedWaybillOrders, buildFailedOrderCleanupList, polyapi, cainiao, parsePlatformPrintData, stringifyPlatformPrintData, buildWaybillOrderMetaMap, buildWaybillSettlementRelationMap, persistWaybillSuccessUpdates, normalizePddExtData, pdd
- app/service/systems/express_policy.js (9)
- getWarehousePolicyCacheKey, getWarehousePolicyCacheTTL, clearWarehousePolicyCache, fetchWarehousePoliciesFromDB, getWarehousePolicies, _matchAnyToken, _matchAnyIntersect, _matchValueInArray, matchPolicy
- app/service/systems/express.js (72)
- getExpressListCacheKey, getCurrentWarehouseId, buildWaybillTraceId, getOrderLogOperator, getOrderLogWarehouseId, createAllocateExpressFailureLogs, normalizeWaybillBusinessKeys, normalizeWaybillCreatePlatformCode, normalizeWaybillPolicyConfig, buildWaybillBalanceExceptionText, normalizeWaybillCreateOrders, buildWaybillCreateRelationGroups, collectWaybillRelationProcessingState, buildWaybillRelationLockMap, lockWaybillRelationBalance, markWaybillOrdersAsException, writeWaybillOrderExceptions, writeDispatchOrderFlags, markWaybillAsyncOrdersAsError, buildMergedExpressLabel, normalizeExpressSettingRow, loadExpressSettingListFromDatabase, buildExpressSettingCustomCodeList, buildMergedExpressList, getExpressProductTypeListCacheKey, normalizeExpressProductTypeRow, normalizeExpressCodeKey, isSfExpressCode, extractExpressProductTypesFromTypeDesc, collectPddSfTimedDeliveryProductTypes, clearExpressProductTypeCache, upsertExpressProductTypeList, syncPddSfTimedDeliveryExpressProductTypes, normalizeExpressRow, loadExpressList, loadExpressListFromCache, loadExpressListFromDatabase, getSystemExpressList, loadExpressProductTypeListFromDatabase, getExpressList, getExpressProductTypeList, normalizeWaybillPrintPlatformCode, loadWaybillPrintPlatformCodeMap, loadWaybillAsyncRequestPlatformCodeMap, Map, resolveWaybillAsyncRequestPlatformCode, resolveWaybillGroupPrintPlatformCode, groupWaybillOrdersByPlatformAndLogistics, splitWaybillOrdersIntoBatches, pickWaybillExpressInterface, resolveWaybillAsyncPlatformCode, groupWaybillAsyncOrdersByPlatform, buildWaybillOrderDeliveryMap, normalizeWaybillAsyncText, normalizeWaybillAsyncNumber, formatWaybillAsyncDate, normalizeWaybillAsyncItems, buildWaybillAsyncRouteInfo, buildWaybillAsyncOrderInfo, buildWaybillAsyncReceiverInfo, buildWaybillAsyncSettlementInfo, buildWaybillAsyncItemsSummary, buildWaybillAsyncOrderListItem, buildWaybillAsyncBizcontentSkeleton, shouldDispatchWaybillAsyncPerOrder, dispatchWaybillAsyncPlatform, resolveWaybillAsyncDispatchPlatformCode, hardDeleteWaybillAsyncOrderExpressRows, getWaybillAsyncOrderDeliveryModel, createWaybillCodePipeline, asyncTask, createWaybillCode
- app/service/systems/fast_where.js (13)
- buildTree, getTreeByType, buildSubTree, getWithChildrenByType, getAllChildren, getByType, getGroups, getChildrenByPid, getTreeChildrenByPid, create, update, findById, delete
- app/service/systems/file.js (2)
- getImages, ReferenceFile
- app/service/systems/inbound_direct_log.js (10)
- getItems, _addSingleItem, _bindReceivingDetail, addItem, removeItem, commit, _sendOpenApiCallback, operationLog, qimenEntrySync, _syncReceivingStorageStatus
- app/service/systems/inbox/group.js (8)
- list, disable, update, reset, validateExpressInterfaces, validateSystemExpressCode, findGroupsByExpress, findStoreAfterSalesGroups
- app/service/systems/license_plate.js (7)
- getTencentCloudConfig, getTencentCloudRegion, normalizeBase64Image, buildTencentCloudRequest, sendTencentCloudRequest, recognizeLicensePlate, formatLicensePlateResult
- app/service/systems/location_space.js (16)
- create, batchCreate, list, detail, update, delete, toggleStatus, updateStatus, findAvailableSpaces, findByCode, findByBarcode, getWarehouseStats, getZoneStats, validateAllocation, validateTransferOut, _validateReferences
- app/service/systems/location_zone.js (24)
- collectZoneSubtree, assertSpacesNotOccupied, getWarehouseLevelZones, getZoneTreeByWarehouse, getChildrenByZoneId, isLeafNode, createZone, validateBasicFields, validateByZoneType, validateParentElement, validateZoneOverlap, isOverlap, generateZoneCodeByType, getDefaultColorByType, getZoneTypeText, updateZone, deleteZone, checkZoneOverlap, getZoneDetail, toggleZoneActive, getZonePath, generateSpacesForRack, getSpaceInfo, checkBarcodeUnique
- app/service/systems/location.js (10)
- createRackWithSpaces, _generateSpacesForRack, _calculateAreaRackOrder, _calculatePickPathForWarehouse, _updateSpacePickSequence, _calculatePickPriority, updateRackPosition, getPickPath, updateNeighborRelations, _findNeighborRacks
- app/service/systems/notice/drivers/generic.js (1)
- send
- app/service/systems/notice/drivers/wecom.js (4)
- buildTextContent, buildMarkdownContent, buildRequestData, send
- app/service/systems/notice/index.js (28)
- getDriver, normalizeMessageType, toObject, normalizeEventList, matchesEvents, buildTraceId, getRegisteredEventCodes, isValidEventCode, assertEventRegistered, getRetryDelays, sleep, isSuccessfulResponse, getFailureMessage, persistFailureLog, sendWithRetry, getStoreInfoCacheKey, resolveStoreInfo, resolveSubjectConfig, normalizePayload, buildOutgoingPayload, getWebhookLimit, findMatchedWebhooks, getFixedGroupTargets, findSubscribedGroups, resolveStoreLabelInternal, sendToWarehouseChannel, send, sendViaWebhooks
- app/service/systems/operation_log.js (13)
- buildOperationLogData, buildBusinessLogWhere, formatOperationLogRows, createOperationLog, createOperationLogs, queryLogsByBusinessType, queryStockLogs, queryOrderLogs, queryAllOrderLogs, queryAllLogsByBusinessType, queryReceivingLogs, queryEntryOrderLogs, getMessageDetail
- app/service/systems/order_async.js (5)
- finalizeSuccessfulQimenSync, syncQmOrders, syncManualOrders, flushDeferredOrderSyncNotices, syncApiOrders
- app/service/systems/order_auto_outbound.js (7)
- getEnabledAutoOutboundWarehouses, normalizeSubjectConfigForAutoOutbound, buildAutoOutboundWhere, findAutoOutboundOrders, findOrderIdsWithWeigh, processWarehouseAutoOutbound, executeAutoOutbound
- app/service/systems/order_delivery_migration.js (15)
- syncOutboundOrdersToDelivery, retryTimeoutOutboundOrdersToDelivery, syncOutboundOrdersByStatus, normalizeWarehouseIds, listCurrentWarehouseIds, normalizeOutboundStatuses, buildMigrationQueryOptions, getOutboundMigrationErrorInfo, markOutboundOrdersTimeout, buildDispatchKey, buildDispatchRow, buildDispatchItemRow, getMigrationModels, buildTargetOrderIdMap, syncOutboundOrdersForWarehouse
- app/service/systems/order_export.js (12)
- getExportPageSize, normalizeExportModuleName, getSortModuleNameByTableType, resolveExportTarget, getOrderExportColumns, buildOrderExportFilename, buildUploadKey, toPlainRow, normalizeExportCellValue, mapOrderExportRow, uploadOrderExportFile, exportOrders
- app/service/systems/order_express.js (30)
- createBusinessError, normalizeOrderId, normalizeWaybillCode, normalizePackageMaterialCode, normalizePackageMaterialId, normalizeBindOrderId, getCurrentWarehouseId, findActivePackageMaterialById, findActivePackageMaterialByCode, findValidOrderExpressByOrderAndWaybill, findOrderInterceptStatus, assertOrderNotIntercepted, normalizeWeighingWeight, findValidOrderExpressRows, updateWeighingWeight, updateWeighingWeightByWaybill, _updateWaveAllOrdersWeight, _buildWaveWeighingSummary, _getStoreName, _getWaveSysLogisticsName, _updateSingleOrderWeight, _updateWaveOrderWeight, _writeWeighActionLog, _tryWaveCompatibility, _upsertPackageMaterialItemRelation, bindExpressPackageMaterial, bindExpressPackageMaterialByWaybill, _bindSingleExpressPackageMaterial, _bindWavePackageMaterialByBusinessKey, _writePackageMaterialActionLog
- app/service/systems/order_outbound.js (1)
- markOutboundOrder
- app/service/systems/order_packing.js (6)
- _getRecordingComputerId, _buildVideoUrl, list, get, setEndTime, forceRecord
- app/service/systems/order_pending_exception.js (2)
- markPendingException, reversePendingException
- app/service/systems/order_print.js (54)
- isOrderLocked, buildLockedWavePlatformResult, buildLockedOrderPlatformPrintItem, shouldLoadPickingDetails, normalizeItemSnapshot, getFirstNonEmptyFieldText, buildPrintItemAggregationKey, buildPrintOrderRowMapWithPicking, normalizeContractPolicyConfig, getWavePlatformPrintData, getOrderPrintData, getPrintDataByWaybillCodes, queryWaybillsByCodes, getMainWaybillMapByOrderIds, normalizeUnlockGroupRules, isOrderMatchedByUnlockGroupRule, unlockWavePlatformPrintDataByGroup, normalizeWaveIds, normalizeOrderIds, getContextWarehouseId, resolveWarehouseId, queryWavesByIds, queryOrdersByWaveIds, queryOrdersByIds, queryOrderExpressByOrderIds, queryWaveOrderIndexMapByOrderIds, queryWaveTotalOrderCountMap, assertBusinessWaybillCompleteness, buildOrderExpressMap, isCainiaoPlatformCode, isJdPlatformCode, isPddPlatformCode, isDouyinPlatformCode, collectCainiaoExpressLookupCodes, queryCainiaoCpCodeMap, queryCainiaoExpressInterfaceList, queryJdExpressInterfaceList, queryPddExpressInterfaceList, queryDouyinExpressInterfaceList, pickCainiaoExpressInterface, pickJdExpressInterface, pickPddExpressInterface, pickDouyinExpressInterface, enrichCainiaoOrderExpressRows, enrichJdOrderExpressRows, enrichPddDyOrderExpressRows, getPolicyConfigMapByStore, resolvePrintPlatformCode, loadTemplateSampleByPlatform, buildOrderPlatformPrintItem, extractSinglePlatformPrintData, groupOrderPrintItemsByPlatform, groupOrderPrintItemsByWaveAndPlatform, filterFullyAssignedExpressWaves
- app/service/systems/order_review.js (14)
- createBusinessError, normalizeWaybillCode, isLockedStatus, isInterceptStatus, toPlainRecord, parseItemSnapshot, findOrderExpressByWaybill, findOrderById, findOrderItems, loadBarcodesByStockIds, loadImagesByStockIds, findWaveById, buildGroupInterceptList, pullReviewDataByWaybill
- app/service/systems/order_storage_allocation.js (4)
- allocatePicking, allocateStorage, syncOrderIds, cancelAllocateStorage
- app/service/systems/pack_task_auto_finish.js (1)
- executeAutoFinishPackTasks
- app/service/systems/pick_compensation.js (9)
- executeCompensation, compensateWarehouse, getPendingOrderIds, findPendingPickingForDispatchOrders, findPendingPickingForCancelledOrders, SUM, releaseCancelledInTransaction, compensateInTransaction, createBusinessError
- app/service/systems/pick.js (37)
- getOrderModel, createBusinessError, getTableColumnSet, loadOrderItemMap, parseItemSnapshot, buildPickingSummary, getPickModeViewMeta, loadOrderWaveMap, buildPickingView, resolveWaveInfo, isOrderReviewed, buildWaveOrderWhere, queryPickingInfo, queryByOrder, wavePickTaskCurrent, wavePickTaskDetail, resolveOperatorContext, normalizePickCartStatus, buildPickCartDetail, getPickCartById, getPickCartByCode, pickCartCodeDuplicateCheck, assertPickCartCodeUnique, getOwnedTask, getTaskPickProgress, wavePickTaskSubmit, wavePickTaskComplete, _afterSkipInterceptedPostActions, _writePickCompleteActionLog, pickCartScan, wavePickTaskBindCart, pickCartCreate, pickCartUpdate, pickCartDelete, pickCartBatchDelete, pickCartDetail, pickCartList
- app/service/systems/pickCart.js (9)
- scan, bindTaskCart, create, update, delete, batchDelete, detail, list, codeDuplicateCheck
- app/service/systems/platform.js (38)
- getCurrentWarehouseId, normalizePlatformOauthBindCode, getPlatformOauthBindSuccessCacheKey, getPlatformOauthBindFailCacheKey, getPlatformOauthBindEventChannel, getPlatformOauthLongPollTimeoutMs, shouldUsePlatformOauthLongPoll, getPlatformOauthBindState, publishPlatformOauthBindEvent, waitForPlatformOauthBindEvent, listenPlatformOauthBind, getPlatformFullAttributes, getPlatformSettingFullAttributes, getPrintPlatformModel, toPlainRow, normalizePrintPlatformId, loadPrintPlatformCodeMap, loadPrintPlatformPlatidMap, resolveDefaultExpressInterface, resolveRoutePlatformCode, getPlatformListCacheKey, isFullPlatformCacheSchemaStale, buildMergedPlatformLabel, normalizePlatformRow, loadPlatformSettingListFromDatabase, normalizePlatformSettingRow, normalizeFullPlatformRow, normalizeFullPlatformSettingRow, buildMergedPlatformList, loadPlatformListFromDatabase, getSystemPlatformList, getPlatformList, checkPlatformExists, getPlatformInfo, clearPlatformCache, getPlatformSettingDetail, batchCheckPlatforms, createPlatformSetting
- app/service/systems/polo_api.js (3)
- request, get, kuaishou
- app/service/systems/print/index.js (2)
- sendToComputer, test
- app/service/systems/print/printData.js (1)
- getPrintData
- app/service/systems/printComputer.js (6)
- notifyRefreshInfo, list, update, setRecording, cancelRecording, delete
- app/service/systems/qimen_query.js (3)
- qimenClient, send, sendRequest
- app/service/systems/receiving_entry_match.js (12)
- matchAfterEntryCompleted, _bindEntryOrderReceiving, bindEntryOrderReceiving, _getRecentReceivingOrders, _findReceivingByRemark, _compareDetails, _sendCallback, _sendQimenCallback, _sendOpenApiCallback, _markReceivingPartialStorage, _commitBinding, unbindEntryOrderReceiving
- app/service/systems/return_received.js (14)
- createBusinessError, create, _handleInterceptAfterSale, _updateOrderInterceptStatus, list, detail, delete, _findByIdChecked, _enrichReturn, _resolveStoreRemark, _buildListWhere, _resolveConditionValue, _extractConditionValue, _buildListOrder
- app/service/systems/return_unpack.js (35)
- _getRecordingComputerId, _buildVideoUrl, createBusinessError, create, addDetail, updateDetail, removeDetail, cancel, submit, forceRecord, list, detailList, videoList, detail, queryByWaybill, _resolveWarehouseName, _resolveStoreIdByWaybill, _resolveReturnOrderInfo, delete, _findByIdChecked, _assertUnpacking, _findDetailChecked, _recalcMain, _enrichRow, _flattenVideos, _enrichDetailsWithStock, _resolveStoreRemark, VALUES, _generateUnpackNo, _buildListWhere, _buildDetailListWhere, _buildVideoListWhere, _buildVideoListOrder, _resolveConditionValue, _buildListOrder
- app/service/systems/return_waybill.js (12)
- createBusinessError, create, update, list, detail, delete, _findByIdChecked, _assertStoreContract, _formatRow, _buildListWhere, _resolveConditionValue, _buildListOrder
- app/service/systems/setting/account.js (31)
- getListWhereSpecialFieldMap, createError, getCurrentStoreId, getCurrentEmployeeId, normalizeAccountId, getWmsClient, normalizePhone, isValidPhone, normalizeName, normalizeUsername, generateUsername, findRawAccountByPhone, findRawAccountByUsername, getAvatarMeta, resolveRoleId, normalizeRoleIds, flattenRoleTreeMeta, resolveAssignableRoleScope, pruneDescendantRoleIds, resolveRequestedRoleIds, replaceEmployeeRoles, buildEmployeeRoleGroupMap, buildWechatBindingMap, getOperableEmployeeByAccountId, formatEmployeeRow, list, add, delete, update, getBindWechatCode, unbindWechat
- app/service/systems/setting/express.js (26)
- createError, getCurrentStoreId, getExpressListCacheKey, deleteCacheByKey, clearExpressListCache, normalizeDeleteIds, normalizeText, normalizeCode, normalizePage, getListWhereSpecialFieldMap, getSystemExpressList, getSystemExpressMap, normalizeSettingRow, findSettingById, findCodeConflict, ensureSystemExpressExists, ensureCodeAvailable, resolveListWhere, list, listBase, checkCodeUnique, create, update, findSettingsForDelete, ensureDeleteCodesNotReferenced, delete
- app/service/systems/setting/expressInterface.js (43)
- createError, getCurrentStoreId, getWarehousePlatformCacheKey, deleteCacheByKey, clearWarehousePlatformCache, normalizePlatformCode, normalizeText, normalizeOptionalText, normalizeOptionalJson, normalizeInteger, normalizeFlag, normalizePage, getListWhereSpecialFieldMap, resolveListWhere, getInterfaceInclude, getInterfaceFullAttributes, ensureModelFieldExists, resolveShopBinding, clonePlainValue, normalizeExpressRow, resolveIsSystemExpressCodeFlag, getPlatformExpressColumn, ensureSystemExpressCodeExists, ensurePrintPlatformExists, normalizePrintPlatformRow, getPrintPlatformList, resolveSysExpressCode, normalizeInterfaceRow, normalizeFullInterfaceRow, hasWarehousePlatformShopData, normalizeFullInterfaceRows, resolveWarehousePlatformTarget, findInterfaceById, findCodeConflict, findInterfaceConflict, ensureCodeAvailable, ensureInterfaceAvailable, list, listByWarehousePlatformCode, create, update, delete, loadExpressInterfaces
- app/service/systems/setting/packageMaterial.js (18)
- createError, getCurrentStoreId, normalizeRequiredText, normalizeOptionalText, normalizeOptionalDecimal, normalizeStatus, normalizePage, normalizeDeleteIds, getListWhereSpecialFieldMap, resolveListWhere, normalizeMaterialRow, ensureMaterialCodeUnique, findMaterialById, create, update, delete, get, search
- app/service/systems/setting/packageSupplier.js (16)
- createError, getCurrentStoreId, normalizeRequiredText, normalizeOptionalText, normalizeStatus, normalizePage, normalizeDeleteIds, getListWhereSpecialFieldMap, resolveListWhere, normalizeSupplierRow, ensureSupplierCodeUnique, findSupplierById, create, update, delete, get
- app/service/systems/setting/permission.js (26)
- createError, getCurrentStoreId, getCurrentEmployeeId, toPositiveNumber, getRole, getPermission, normalizePermissionType, normalizeOptionalString, normalizeParentId, normalizeSort, normalizeStatus, normalizeBooleanFlag, getAvailablePermissionIdSet, ensureParentPermissionExists, ensurePermissionsExist, normalizePermissionIds, normalizeIds, validatePermissions, clearRoleUsersCache, getCurrentEmployeePermissionIds, getCurrentRoleId, resolveVisiblePermissionRows, list, add, delete, update
- app/service/systems/setting/platform.js (26)
- createError, getCurrentStoreId, normalizeDeleteIds, getPlatformListCacheKey, getPlatformDetailCacheKey, getPlatformExistsCacheKey, deleteCacheByKey, clearPlatformCaches, normalizeRequiredText, normalizeOptionalText, normalizeInteger, normalizePage, getListWhereSpecialFieldMap, resolveListWhere, buildPlatformLabel, normalizePlatformRow, findSettingById, findCodeConflict, findPlatformCodeConflict, ensurePlatformExists, ensureCodeAvailable, ensurePlatformCodeAvailable, list, create, update, delete
- app/service/systems/setting/print_template.js (17)
- normalizeAndValidateBusinessType, listTemplatesByType, getTree, getTemplatesByType, save, createTemplate, deleteTemplate, getBusinessTypesAndItem, getGroupedPrintItems, getTableConfigs, clearBusinessTypesCache, getXmlByTemplate, buildXmlFromElements, renderElement, computeItemStyle, computeTableItemStyle, renderTable
- app/service/systems/setting/role.js (25)
- createError, getCurrentStoreId, getCurrentEmployeeId, toPositiveNumber, getEmployee, normalizeRoleIds, findAssignableRoles, clearEmployeeCache, getCurrentEmployeeRoleIds, collectDescendantRoleIds, buildRolePermissionMap, buildRoleTree, normalizeStoreScope, isRoleVisibleInScope, normalizePermissionIds, normalizePid, getManageableRole, validatePermissionSet, replaceRolePermissions, clearRoleUsersCache, list, permission, add, delete, update
- app/service/systems/setting/store_warehouse.js (35)
- createError, getCurrentStoreId, getCurrentAccountId, toPositiveNumber, normalizePage, normalizeStatusFlag, normalizeAuthStatus, normalizeNonNegativeInteger, normalizeText, normalizeDate, normalizeSignAction, normalizeTempCode, getTempCodeCacheKey, createTempCode, pickRemaskField, resolveRemaskValue, buildCurrentRemaskPatch, requireCurrentRemaskPatch, saveTempSignPayload, getTempSignPayload, clearTempSignPayload, buildTempSignView, getCurrentSubject, getCounterparty, buildListWhere, getRelationIncludes, resolvePairIds, serializeRelation, findScopedRelation, list, sign, trimContract, confirmSign, rename, unbind
- app/service/systems/setting/warehouse.js (11)
- getDefaultCodeFieldOptionsMap, normalizeWaveStrategyVersion, normalizeSubjectConfigInternalFields, sanitizeSubjectConfigForOutput, createError, getCurrentWarehouseId, deleteCacheByKey, clearWarehouseSettingCache, getFieldMeta, getSettings, saveSettings
- app/service/systems/shops.js (20)
- generatePendingShopName, createError, getCurrentWarehouseId, normalizeText, normalizeInteger, ensureShopPrintPlatformExists, getListWhereSpecialFieldMap, buildListWhere, normalizePagination, buildShopPrintPlatformInclude, formatShopRow, list, ensureShopNameUnique, add, findShopById, del, edit, generateAuthorizeRandomCode, createOrReuseAuthorizeReservation, getAuthorizeSessionKey
- app/service/systems/sign.js (10)
- Constants, toXml, signTopRequest, verifyTopRequest, verifyAndExtractParams, generateSignedParams, encryptHMAC, encryptHMACSHA256, encryptMD5, byte2hex
- app/service/systems/space.js (3)
- _searchByKeyword, searchSpace, searchSpaces
- app/service/systems/stock_store.js (46)
- create, initQimenStockData, convertToQimenFormat, getItemInfoWithCache, getItemStorages, _calculateCacheTTL, clearItemStorageCache, _runWithTransaction, getStoreWarehousePolicyByStoreAndWarehouse, getStoreWarehousePolicyConfigByStockId, updateLockedQuantity, lockItemStorages, ID, inbound, normalizeOutboundMeta, getPickingRowsForOutbound, getPickingBatchMap, buildOutboundTransactionPayloads, outbound, checkAndCreateWarehouseStock, getWarehouseStock, exportWarehouseStock, exportExternalWarehouseStock, buildSequelizeCondition, processConditionValue, normalizeDate, formatDate, isEmptyValue, getProhibitedType, getBarcodes, handleBatchChange, saveWarehouseStockBarcode, getStoreStocks, bindItem, unbindItem, getInfo, saveWarehouseStock, createWarehouseStock, validateSaveParams, stockLog, checkItemCodeUnique, handleBatchDelete, deleteUnit, deleteProhibited, search, getStockDetail
- app/service/systems/stock_transaction.js (8)
- normalizeInboundOrderId, isOrderOutboundTransaction, resolveOutboundOrderReference, create, list, _resolveKeywordToStockIds, queryList, exportList
- app/service/systems/stock_warehouse.js (3)
- _buildStockDetailCacheKey, getStockDetails, invalidateStockDetailCache
- app/service/systems/storage/entry.js (24)
- normalizeExpenseRecordValue, normalizeExpenseRecordCondition, normalizeFilterValues, buildEntryStockTransactionExistsCondition, buildHasReceivingCondition, preprocessEntryListWhere, list, get, IN, enrichItemsWithAvailableReceivingDetails, normalizeCancelEntryOrderIds, getOwnedEntryOrderById, cancel, _rollbackReceivingStorageStatus, addItem, commit, removeItem, getReceivingDetailsForBind, containerList, quickInbound, receivingCompare, _buildMergedComparison, exportEntryOrders, exportStoreEntryOrders
- app/service/systems/storage/expiry.js (1)
- list
- app/service/systems/storage/index.js (10)
- findByStockAndBatch, findBySpace, findAvailableByWarehouse, findExpiringSoon, updateQuantity, lockQuantity, unlockQuantity, allocateQuantity, getStockSummary, getSpaceUsage
- app/service/systems/storage/inventory.js (13)
- createTransferStockTransactions, transferLocation, transferByProduct, resolveStockQueryToStockIds, getInventoryList, getStorageListByStockId, _aggregateStorageRowsBySpace, _loadInventoryWarningRanges, _formatBatchStorageRows, quickPutaway, directPutaway, exportInventoryList, _generateEntryOrderCode
- app/service/systems/storage/management.js (1)
- replenishmentDemand
- app/service/systems/storage/receiving.js (40)
- getReceivingList, _resolveStockQueryReceivingIds, getStoreReceivingList, getReceivingDetail, batchCancelReceiving, rejectReceiving, reviewReceiving, buildReviewReportSheets, sendStoreBoundNotice, sendReviewNotice, isEmptyValue, buildSequelizeCondition, processConditionValue, buildReceivingNumberPrefix, generateNextReceivingNumber, isReceivingNumberDuplicateError, create, save, bindStore, get, addDetail, bindDetailProduct, updateDetail, getStockStoreInfo, updateReceivingStats, deleteDetail, detailChange, invalid, formatReportDate, formatDeliveryMethod, getCompletionContactFields, Map, buildCompletionReportSheets, uploadCompletionExcelReport, sendCompletionNotice, completeReceiving, _syncProductDataFromReceiving, scanDetail, exportReceivingList, exportStoreReceivingList
- app/service/systems/storage/report.js (5)
- loadReportReferenceMaps, buildExportFilename, export, _resolveKeywordToStockIds, search
- app/service/systems/storage/stock_warehouse.js (3)
- _buildStockDetailCacheKey, getStockDetails, invalidateStockDetailCache
- app/service/systems/store_express_binding_policy.js (17)
- getCurrentWarehouseId, createError, normalizeText, normalizeInteger, normalizeWeightType, normalizeJsonArray, ensureExpressExists, getListWhereSpecialFieldMap, buildListWhere, normalizePagination, formatPolicyRow, list, ensureCustomNameUnique, add, findPolicyById, edit, del
- app/service/systems/store_warehouse.js (78)
- createError, getCurrentStoreId, getCurrentAccountId, toPositiveNumber, normalizePage, normalizeStatusFlag, normalizeAuthStatus, normalizeNonNegativeInteger, normalizeInteger, normalizeText, normalizeIntegerRange, normalizeEmail, getPolicyConfigFieldList, getPolicyConfigFieldMetaList, normalizePolicyConfig, getPolicyConfigCacheKey, hasPolicyConfigColumn, loadPolicyConfigByContractId, savePolicyConfigByContractId, getPolicyConfigDefaults, mergePolicyConfigWithDefaults, getEffectivePolicyConfigByContractId, ensureWarehouseSubject, getNoticeService, sendPrintQuantityAdjustNotice, resolveRelationId, normalizeDate, normalizeSignAction, normalizeTempCode, getTempCodeCacheKey, createTempCode, pickRemaskField, resolveRemaskValue, buildCurrentRemaskPatch, requireCurrentRemaskPatch, saveTempSignPayload, getTempSignPayload, clearTempSignPayload, buildTempSignView, getCurrentSubject, getCounterparty, buildListWhereByStoreId, buildListWhere, getRelationIncludes, getQimenContractCacheKey, clearQimenContractCache, getApiInterfaceType, getQimenInterfaceType, resolveQimenCustomerIdByAppKey, getQimenErpNameMapByAppKeys, serializeQimenConfig, getQimenConfigMap, getSingleQimenConfig, resolvePairIds, serializeRelation, findScopedRelation, listForStore, listForWarehouse, list, sign, trimContract, confirmSign, rename, adjustPrintQuantity, queryPrintQuantityLogs, exportPrintQuantityLogs, getPolicyConfigFields, getPolicyConfig, savePolicyConfig, listApiConfig, saveApiConfig, deleteQimenConfig, unbind, getContractConfigCacheKey, invalidateContractConfigCache, getContractConfig, openAccount, createUser
- app/service/systems/store.js (22)
- normalizeSubjectConfigInput, validateStoreData, checkCompanyNameExists, findByAccountId, findAllEnabled, findAllWarehouses, getStoreName, getStoreRemaskName, createStore, createWarehouse, joinStore, joinWarehouse, ensureEmployeeRoleBinding, assignAdminRoleToCreator, generateJoinToken, sendNotification, sendNotificationToAdmins, getStoreRoles, auditApply, loadStores, loadWarehouses, bindCode
- app/service/systems/upload.js (17)
- getTencentCloudConfig, getCosConfig, initCOS, getUploadParams, hash_hmac, generatePolicyAndSignature, validateFileInfo, generateFileName, parseSizeToBytes, formatFileSize, getFrontendConfig, uploadFile, validateFile, uploadSuccessNotify, getMimeType, createFileReference, handleUploadCallback
- app/service/systems/warehouseNotify.js (7)
- truncateLogBody, getCallbackConfig, MD5, buildSignature, writeLog, push, pushSystemMessage
- app/service/systems/wave_batch_closure.js (1)
- closeFinishedWaves
- app/service/systems/waybill.js (5)
- toOrder, list, detail, export, buildWaybillExportFile
- app/service/systems/workbench.js (19)
- list, detail, create, update, delete, bindCamera, business, _countWaveOrders, _getWaveOrderIds, Set, _buildPackChangeSummary, _writePackOperationLog, _packOrder, resolvePackTaskEndTime, _finishPack, _sendWeight, _writeWeighOpLog, _queryOrder, checkBarcodeExists
- app/service/warehouse.js (7)
- resolveWarehouseMethod, getWarehouseMethodService, dispatchWarehouseMethod, validateWarehouseParams, parseJsonBody, normalizeSignFields, processRequest
- app/service/warehouseMethods/inbox.js (2)
- push, parseSendTime
- app/service/warehouseMethods/index.js (1)
- ping
- app/service/warehouseMethods/store.js (1)
- list