# AI 方法路由速查(WMS) 本文用于让 AI/开发者快速理解入口路由与 method 到代码文件的映射关系。 ## 1. 入口定义(router 风格) 当前路由定义见 `app/router.js`: - `POST /qimen` -> 奇门开发接口入口 - `POST /system` -> Web 端与 PDA 端统一业务入口 注意:当前代码中 `/qimen` 与 `/system` 都是 `POST` 路由。 ## 2. /system 入口说明(统一 Web + PDA) 调用链: 1. `app/router.js` -> `controller.home.system` 2. `app/controller/home.js` 的 `system()` 读取 `ctx.query.method` 3. `app/service/system.js` 的 `callMethod(className, actionName, requestData, authHeader)` 4. 从 `ctx.service.systemMethods` 中按 method 分段下钻并执行目标函数 参数规则(system): - 必填 query: `method`, `v`, `timestamp` - 认证头:可传 `Authorization` - 请求体:JSON(`system()` 中按 JSON 解析) 外部请求示例: ```text POST http://127.0.0.1:6060/system?method=print.getComputerPrinter&v=1.0×tamp=1773386721 ``` 示例 body(按业务方法需要): ```json { "id": 10001 } ``` ## 3. /qimen 入口说明(奇门开发接口) 调用链: 1. `app/router.js` -> `controller.home.qimen` 2. `app/controller/home.js` 的 `qimen()` 读取 `ctx.query.method` 3. `app/service/qimen.js` 的 `callMethod(className, actionName, xmlData, ...)` 4. 从 `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 示例 1) `method=print.getComputerPrinter` - service 路径:`print` - 函数名:`getComputerPrinter` - 对应文件:`app/service/systemMethods/print.js` - 对应方法:`getComputerPrinter(data)` 2) `method=setting.printTemplate.list` - service 路径:`setting.printTemplate` - 函数名:`list` - 对应文件:`app/service/systemMethods/setting/printTemplate.js` - 对应方法:`list(data)` 3) `method=printer.station.list` - service 路径:`printer.station` - 函数名:`list` - 对应文件:`app/service/systemMethods/printer/station.js` - 对应方法:`list()` 4) `method=report.generate` - service 路径:`report` - 函数名:`generate` - 对应文件:`app/service/systemMethods/report.js` - 对应方法:`generate(data)` 5) `method=report.deliveryPlan.save` - service 路径:`report.deliveryPlan` - 函数名:`save` - 对应文件:`app/service/systemMethods/report/deliveryPlan.js` - 对应方法:`save(data)` 6) `method=report.deliveryLog.list` - service 路径:`report.deliveryLog` - 函数名:`list` - 对应文件:`app/service/systemMethods/report/deliveryLog.js` - 对应方法:`list(data)` ### 4.2 /qimen 示例 1) `method=deliveryorder.xxx` - service 路径:`deliveryorder` - 对应文件:`app/service/qimenMethods/deliveryorder.js` 2) `method=taobao.qimen.service.xxx` - service 路径:`taobao.qimen.service` - 对应文件:`app/service/qimenMethods/taobao/qimen/service.js` ## 5. AI 快速定位建议 当收到 `method=aaa.bbb.ccc` 时,优先按以下步骤定位: 1. 判定入口:`/system` 还是 `/qimen` 2. 取最后一段 `ccc` 作为函数名 3. 其余部分 `aaa.bbb` 作为 service 路径 4. 在对应 methods 目录查找文件并确认类方法是否存在 可用检索命令示例: ```powershell rg "getComputerPrinter|class PrintService" app/service/systemMethods rg "class .*Service|module.exports" app/service/qimenMethods ``` ## 后续所有的method新增变更全部需要维护到下方 ## 5.1 report(配置驱动通用报表 + 货主定时投递)能力速查 | method | 实现文件 | 函数 | 登录 | 鉴权/权限 | |---|---|---|---|---| | report.generate | app/service/systemMethods/report.js | generate | 需登录 | 免权限(systemInit 声明 generate/generateTaskProgress 免权限) | | report.generateTaskProgress | app/service/systemMethods/report.js | generateTaskProgress | 需登录 | 免权限 | | report.definition.typeList | app/service/systemMethods/report/definition.js | typeList | 需登录 | 免权限(_noNeedRight/_noNeedAuth/_noNeedLog 含 typeList;同模块 save/list/delete 仍需授权) | | report.deliveryPlan.save | app/service/systemMethods/report/deliveryPlan.js | save | 需登录 | 需授权(未声明免权限) | | report.deliveryPlan.list | app/service/systemMethods/report/deliveryPlan.js | list | 需登录 | 需授权 | | report.deliveryPlan.copy | app/service/systemMethods/report/deliveryPlan.js | copy | 需登录 | 需授权(未声明免权限) | | report.deliveryLog.list | app/service/systemMethods/report/deliveryLog.js | list | 需登录 | 需授权 | | report.definition.save | app/service/systemMethods/report/definition.js | save | 需登录 | 需授权(未声明免权限) | | report.definition.list | app/service/systemMethods/report/definition.js | list | 需登录 | 需授权 | | report.definition.delete | app/service/systemMethods/report/definition.js | delete | 需登录 | 需授权 | - 底层编排:`app/service/systems/report.js`(报表定义读取/类型注册表解析/工作簿生成,含 listRegisteredTypes/saveDefinition/listDefinitions/deleteDefinition 定义管理)、`app/service/systems/reportDelivery.js`(投递计划/记录 CRUD 与分钟级投递调度,含文本通知模板渲染与定向群/成员推送)、`app/lib/report/notifyTemplate.js`(标签白名单 {time}/{url}/{report_name}/{biz_date} 渲染) - 配置与口径:`wms_report_definition` 极简配置(name/type/file_name/fields/is_enabled/remark,唯一性由主键 id 承担),注册类型与字段规格见 `app/service/systems/report/queries/index.js`(当前仅 stockFlow),详见 `docs/report-config-guide.md` - 接口文档:`methods/system.json` 分组「通用报表模块」(module=report),变更记录见 `methods/changes/system.json` 版本 `2026.08.31-report-meta-removed`、`2026.08.30-report-delivery-plan-copy`、`2026.08.30-report-delivery-plan-name-field`、`2026.08.30-report-type-list-merge-into-definition`、`2026.08.30-report-definition-model-refactor`、`2026.08.29-report-config-driven-generate-delivery`、`2026.08.29-report-meta`、`2026.08.29-report-delivery-notify-template-targets`、`2026.08.29-report-delivery-channel-converge`、`2026.08.29-report-definition-management`、`2026.08.29-report-channel-normalize-doc-audit` - 接口移除(2026-08-31,破坏性变更):`report.meta` 已下线移除(免权限列元数据接口),前端获取注册字段/窗口参数改由 `report.definition.typeList` 提供、某报表定义勾选字段经 `report.definition.list` 的 `fields` 数组获取;代码层删除 `systemMethods/report.js` 的 `meta` 方法与 `systems/report.js` 的 `getMeta`,`methods/system.json` 条目同步移除,详见 `docs/report-config-guide.md` 第 7 节 - 报表定义模型重构(2026-08-30,破坏性变更):报表定义由 code 编码改为主键 id 关联,`report.generate`/`report.meta`/`report.deliveryPlan.save` 入参 `report_code` 改为 `report_id`(=报表定义ID,兼容 reportId 驼峰,前端需同步改);`code/scope` 与 `output_config/source_config/sheet_config` 三段 JSON 配置已随模型删除,列渲染由类型硬编码字段规格自动完成;`report.definition.save` 入参 `{id?,name,type,file_name/fileName,fields,is_enabled?,remark?}`(type 须命中注册表、fields 须为该类型注册字段子集),`report.definition.list` where 改 `{name,type,is_enabled}` + sort 白名单 id/name/type/is_enabled/created_at/updated_at,`report.definition.delete` 入参 id 且引用拦截按 report_definition_id 统计;`report.deliveryPlan.*`/`report.deliveryLog.list` 关联键改 report_definition_id(log 响应带 report_name 快照);新增免权限只读 `report.definition.typeList` 返回注册类型清单(由独立模块 report/type.js 并入 report/definition.js);详见 `docs/report-config-guide.md` 第 1/2/3/6/7/8 节 - 投递渠道收敛(2026-08-29):`report.deliveryPlan.save` 的 channel 仅支持 inbox(默认 inbox,wecom/link 已弃用,非法渠道报「投递渠道仅支持 inbox: 」);历史 wecom/link 计划投递时按 inbox 兜底;inbox 推送失败经 inbox.message.retry 自动重推一次,仍失败进入 failed 退避(MAX_RETRY=3) - 文本通知(2026-08-29):`report.deliveryPlan.save` 可选入参 notify_template/notify_group_ids/notify_member_ids(仅入参存在时生效),`report.deliveryLog.list` 响应带 notify_targets 投递目标快照,详见 `docs/report-config-guide.md` 5.1 节 - 计划名称(2026-08-30):`report.deliveryPlan.save` 可选入参 `name`(string|null;未传不覆盖,null/空串/全空白清空,非空 trim 后 ≤100 超长报错「计划名称 name 长度不能超过 100 字符」),`save` 响应与 `report.deliveryPlan.list` 列表项新增 `name`(缺省 '');仅展示字段,不参与幂等/关联;详见 `docs/report-config-guide.md` 第 5 节 - 批量复制(2026-08-30):新增 `report.deliveryPlan.copy` 入参 `{id, store_ids}`(store_ids 非空正整数数组,自动去重,兼容 storeIds 驼峰),把源计划快速复制到多个目标货主;目标货主已存在同 report_definition_id 计划跳过不覆盖、货主不存在或状态异常跳过、与源计划货主相同跳过(reason 枚举见 methods/system.json);notify_group_ids/notify_member_ids 通知配置不复制(新计划置空)、enabled 原样复制(保持复制语义),其余字段(report_definition_id/schedule_times/channel/late_grace_minutes/name/remark/notify_template)原样复制;事务批量创建,唯一键冲突单条降级 skipped;需登录需鉴权(与 save/list 同口径) - 渲染规则(2026-08-30):无 sheet_config,列由 `app/lib/report/render.js` `renderSheetByType` 按类型硬编码字段规格生成(string 静态列、number 统一 zeroToDash、boolean 统一 yesNo、array 窗口展开列);asText 由类型字段规格硬编码(item_code/barcode),渲染层输出 textColumns(0 基列索引)由 excel.js 落地文本单元格(长数字串防科学计数法);详见 `docs/report-config-guide.md` 第 3 节 - 授权提示:需授权接口已登记 isNeedAuth=true,后续用 `npm run permission:sync:system-api -- --dry-run` 预演并按标准流程授权(不扩大任何角色授权) ## 5.2 inbox.group(站内信群管理)能力速查 | method | 实现文件 | 函数 | 登录 | 鉴权/权限 | |---|---|---|---|---| | inbox.group.quickList | app/service/systemMethods/inbox.js → app/service/systems/inbox/group.js | groupQuickList / quickList | 需登录 | 需权限 566(API:群快速查询,已授权角色 26/28/29/8;超级管理员/仓库管理员持 * 通配符自动拥有) | | inbox.group.members | app/service/systemMethods/inbox.js → app/service/systems/inbox/group.js | groupMembers / members | 需登录 | 需权限 567(API:群成员列表,已授权角色 26/28/29/8;超级管理员/仓库管理员持 * 通配符自动拥有) | - 底层实现:`app/service/systems/inbox/group.js` quickList(双维度可选过滤:store_id=货主维度(对应 wms_inbox_group.store_id 列)/ warehouse_id=仓库维度(对应 wms_inbox_group.warehouse_id 列),两者均可选、可同时传(AND 关系)、也可都不传(返回所有仓库/货主的群),非法值分别报「store_id 无效」「warehouse_id 无效」;keyword 同时模糊匹配 group_name/group_id、groupType 筛选 store/warehouse/express、limit 默认20上限100,无分页,按 created_at 倒序,软删自动排除)、members(groupIds 必填(非空数组,每个元素为正整数),先按内部主键ID数组+仓库批量校验群存在,再聚合多群外部群ID(去重、剔空),在 wms_inbox_message 按外部群ID集合聚合去重取每个 user_id 最新一条 user_name(多群共享同一 500 条聚合池,user_id 为 NULL/空串的消息被排除),keyword 对聚合结果小写包含过滤 user_name/user_id 后截断;外部群ID集合为空返回空列表) - 仓库口径(2026-08-30 变更):quickList 透传前端入参 `store_id`(货主维度)/`warehouse_id`(仓库维度),不再从登录上下文注入任何仓库值;members 的 warehouseId 仍从 `ctx.user.store_id` 服务端注入,不信任前端传值 - 多群聚合(2026-08-30 破坏性入参变更):inbox.group.members 入参由单个 `groupId` 改为 `groupIds`(数组,必填,非空,每个元素为正整数),一次查询多个群的成员并跨群按 user_id 去重;多群共享同一 500 条消息聚合池(更早消息中的成员不会出现在结果中);移除 `groupId` 入参,调用方需同步升级 - 权限:迁移 `database/migrations/20260829180000-add-inbox-group-select-permissions.js`(固定权限 ID 566/567、type=api、INSERT IGNORE 幂等);inbox systemMethods 未声明 systemInit 免权限,两接口走标准 API 权限校验 - 接口文档:`methods/system.json` 分组「站内信」(module=inbox),变更记录见 `methods/changes/system.json` 版本 `2026.08.30-inbox-group-members-groupids-array`、`2026.08.30-inbox-group-quicklist-dual-dim-filter`(修正/取代 `2026.08.30-inbox-group-quicklist-store-id`)、`2026.08.29-inbox-group-quick-list-members` - 索引迁移(待发布时执行):`database/migrations/20260830150000-add-store-id-index-to-wms-inbox-group.js` 为 wms_inbox_group.store_id 新增索引 idx_store_id(幂等 up/down,尚未执行) ## method结束 ## 6. 全量 Service Method 能力清单(自动扫描) 维护说明: - 扫描范围:app/service/**/*.js - 本节内容由脚本生成,新增/修改 service 后请同步刷新。 - 刷新命令:node .\script\tmp-gen-service-method-inventory.cjs - 临时清单输出:temp/tmp-service-method-inventory.md 自动生成时间: 2026-08-28T20:06:02.056Z 扫描范围: app/service/**/*.js 文件数: 203 - 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 (3) - registerBuiltinFunctions, register, callFunction - 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/inbox/rules.js (3) - handle, buildReply, formatStock - app/service/inbox/tools.js (2) - getRecordingComputerId, buildVideoUrl - 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/openapi/callback.js (4) - signCallback, sendWithRetry, sendByAppKey, logCallback - app/service/openapi/callbackRegistry.js (0) - - app/service/openapiEntry.js (9) - resolveOpenapiMethod, getOpenapiMethodService, resolveOpenapiContract, getInfo, dispatchOpenapiMethod, validateOpenapiParams, parseJsonBody, normalizeSignFields, processRequest - 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 (223) - 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, resolveWaveBatchOwnerStoreNameMap, 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/report.js (7) - generate, generateTaskProgress, generateExportTaskId, normalizeExportTaskId, getExportTaskCacheKey, setExportTaskProgress, getExportTaskProgress - app/service/systemMethods/report/deliveryLog.js (1) - list - app/service/systemMethods/report/deliveryPlan.js (2) - save, list - app/service/systemMethods/returnReceived.js (5) - _call, create, list, detail, delete - app/service/systemMethods/returnUnpack.js (15) - _call, create, addDetail, updateDetail, removeDetail, cancel, submit, forceRecord, list, detailList, videoList, detail, export, exportTaskProgress, 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 (10) - list, toOrder, _restoreStockoutLocks, _writeStockoutOperationLog, listItems, listLogs, confirm, cancel, updateExpress, updateInfo - 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 (48) - 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, enqueueAutoWaybillAllocation, 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 (16) - getOrderLogOperator, buildOrderExpressVerPatch, buildExpressPlatformTraceId, OrderExpress, cleanupFailedWaybillOrders, buildFailedOrderCleanupList, polyapi, cainiao, parsePlatformPrintData, stringifyPlatformPrintData, buildWaybillOrderMetaMap, buildWaybillSettlementRelationMap, lockAndDeductWaybillSettlement, persistWaybillSuccessUpdates, normalizePddExtData, pdd - app/service/systems/express_policy.js (10) - getWarehousePolicyCacheKey, getWarehousePolicyCacheTTL, clearWarehousePolicyCache, fetchWarehousePoliciesFromDB, getWarehousePolicies, _matchAnyToken, _matchAnyIntersect, _matchValueInArray, _isStoreOnlyPolicy, 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 (11) - getItems, _addSingleItem, _bindReceivingDetail, addItem, removeItem, commit, _sendOpenApiCallback, operationLog, qimenEntrySync, _syncReceivingStorageStatus, _applyReceivingStockOccupancy - 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 (14) - buildOperationLogData, buildBusinessLogWhere, formatOperationLogRows, createOperationLog, createOperationLogs, queryLogsByBusinessType, queryStockLogs, queryOrderLogs, queryAllOrderLogs, queryAllLogsByBusinessType, queryReceivingLogs, queryEntryOrderLogs, queryStockoutLogs, getMessageDetail - app/service/systems/order_async.js (6) - finalizeSuccessfulQimenSync, syncQmOrders, syncManualOrders, flushDeferredOrderSyncNotices, syncApiOrders, syncStockoutOrders - 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 (14) - getExportPageSize, normalizeExportModuleName, getSortModuleNameByTableType, resolveExportTarget, getOrderExportColumns, normalizeExportColumns, buildOrderExportFilename, buildUploadKey, toPlainRow, normalizeExportCellValue, mapOrderExportRow, uploadOrderExportFile, buildOrderExportPage, 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/report.js (7) - getDefinition, parseJsonField, resolveQuerier, buildFilename, buildWorkbookSheets, generate, generateBuffer - app/service/systems/report/queries/generic.js (0) - - app/service/systems/report/queries/index.js (0) - - app/service/systems/report/queries/sevenDayStockFlow.js (0) - - app/service/systems/reportDelivery.js (17) - normalizeScheduleTimes, savePlan, planToView, listPlans, listLogs, hitTimePoints, bizDateOfTrigger, bizDateOfTimePoint, resolveStoreWarehouse, markDelivered, markFailed, markExporting, buildMessageContent, deliverByChannel, processOne, parseScheduleTimes, dispatch - app/service/systems/return_received.js (15) - createBusinessError, create, notifyPending, _handleInterceptAfterSale, _updateOrderInterceptStatus, list, detail, delete, _findByIdChecked, _enrichReturn, _resolveStoreRemark, _buildListWhere, _resolveConditionValue, _extractConditionValue, _buildListOrder - app/service/systems/return_unpack.js (42) - _getRecordingComputerId, _buildVideoUrl, createBusinessError, create, addDetail, updateDetail, removeDetail, cancel, submit, _notifyUnpacked, forceRecord, list, detailList, videoList, exportUnpack, _resolveStoreNameMap, _resolveExpressNameMap, _extractDetailColor, detail, _buildWaybillMatch, _findWaybillFlexible, 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 (12) - getDefaultCodeFieldOptionsMap, normalizeWaveStrategyVersion, normalizeSubjectConfigInternalFields, sanitizeSubjectConfigForOutput, createError, getCurrentWarehouseId, deleteCacheByKey, clearWarehouseSettingCache, getFieldMeta, getSettings, validateDefaultLocation, 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 (25) - normalizeExpenseRecordValue, normalizeExpenseRecordCondition, normalizeFilterValues, buildEntryStockTransactionExistsCondition, buildHasReceivingCondition, preprocessEntryListWhere, list, get, IN, enrichItemsWithAvailableReceivingDetails, normalizeCancelEntryOrderIds, getOwnedEntryOrderById, cancel, _rollbackReceivingStorageStatus, addItem, commit, removeItem, getReceivingDetailsForBind, containerList, _applyReceivingInboundUsage, 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 (43) - getReceivingList, _resolveStockQueryReceivingIds, getStoreReceivingList, getReceivingDetail, batchCancelReceiving, rejectReceiving, reviewReceiving, buildReviewReportSheets, sendStoreBoundNotice, resolveReceivingCreatorName, sendReviewNotice, resolveReviewDetailItemCodeMap, 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, sendStoreUnmatchedNotice, 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 (18) - getTencentCloudConfig, getCosConfig, initCOS, getUploadParams, hash_hmac, generatePolicyAndSignature, resolveUploadMaxSizeBytes, 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 (20) - list, detail, create, update, delete, bindCamera, business, _countWaveOrders, _getWaveOrderIds, Set, _buildPackChangeSummary, _writePackOperationLog, _updateOrderPackStatus, _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