diff --git a/dist.tar.gz b/dist.tar.gz index 30239603..b7e2404c 100644 Binary files a/dist.tar.gz and b/dist.tar.gz differ diff --git a/src/api/print/print.ts b/src/api/print/print.ts index 5257fa74..e4c0980a 100644 --- a/src/api/print/print.ts +++ b/src/api/print/print.ts @@ -313,3 +313,38 @@ export function sendPrint(data: PrintSendParams) { data: body }) } + +/** print.notifyLock:仅锁定订单,不发送打印任务(见 print 模块 module.json) */ +export type PrintNotifyLockParams = { + order_ids?: Array + orderIds?: Array + waveGroups?: unknown[] + data?: Record +} + +export function notifyLock(data?: PrintNotifyLockParams) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'print.notifyLock', + v, + timestamp: stamp() + }, + data: data ?? {} + }) +} + +/** print.notify_lock:兼容别名,等价转调 print.notifyLock */ +export function notify_lock(data?: PrintNotifyLockParams) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'print.notify_lock', + v, + timestamp: stamp() + }, + data: data ?? {} + }) +} diff --git a/src/core/printerComponentConnection.ts b/src/core/printerComponentConnection.ts index 3d210721..cdfee0f3 100644 --- a/src/core/printerComponentConnection.ts +++ b/src/core/printerComponentConnection.ts @@ -36,11 +36,12 @@ export function canConnectLoopbackPrinterFromBrowser(): boolean { return window.isSecureContext } -/** 是否可对 loopback 发起 fetch 预检(公网 HTTP 下必须跳过,否则会触发 PNA/CORS 报错) */ +/** 是否可对 loopback 发起 fetch 预检(仅公网 HTTPS;localhost 直连 ws,预检无意义且会 403) */ export function canPreflightLoopbackPrinter(): boolean { if (typeof window === 'undefined') return false if (!window.isSecureContext) return false - return true + if (isLocalLoopbackPageOrigin()) return false + return isHttpsPublicPage() } /** 当前是否为公网 HTTPS 页面(浏览器打印的典型生产环境) */ @@ -80,9 +81,11 @@ type LocalNetworkFetchInit = RequestInit & { targetAddressSpace?: 'local' | 'private' | 'public' } -/** 建立 WebSocket 前可选 HTTP 预检(HTTPS 下触发 PNA,失败不影响后续 WebSocket) */ +/** 建立 WebSocket 前可选 HTTP 预检(仅公网 HTTPS 需要;localhost 直连 ws,预检会触发无意义的 CORS/403) */ export async function preflightPrinterComponentConnection(port: string): Promise { if (!canPreflightLoopbackPrinter()) return + if (isLocalLoopbackPageOrigin()) return + if (!isHttpsPublicPage()) return const httpUrl = buildPrinterComponentHttpUrl(port) const headers = { ...PRINTER_COMPONENT_PRIVATE_NETWORK_HEADERS } diff --git a/src/core/printerComponentCore.ts b/src/core/printerComponentCore.ts index baf7909d..bbf4e173 100644 --- a/src/core/printerComponentCore.ts +++ b/src/core/printerComponentCore.ts @@ -79,6 +79,11 @@ export class PrinterComponentCore extends SimpleEmitter { const port = this.ports.get(name) if (!port) return + const existing = this.components.get(name) + if (existing?.readyState === WebSocket.OPEN || existing?.readyState === WebSocket.CONNECTING) { + return + } + if (!canConnectLoopbackPrinterFromBrowser()) { this.updateStatus(name, 'disconnected') return @@ -188,13 +193,19 @@ export class PrinterComponentCore extends SimpleEmitter { ws.send(body) } + /** 指定组件 WebSocket 是否已 OPEN */ + isComponentOpen(name: string): boolean { + return this.components.get(name)?.readyState === WebSocket.OPEN + } + /** * 优先使用长连接发送;未连接时触发 initComponent 并等待握手(浏览器直打面单用)。 + * 若已有 CONNECTING 中的连接则等待其完成,不重复 initComponent 以免断开已有 ws。 */ async sendMessageWhenReady(name: string, body: string, timeoutMs = 8000): Promise { - const existing = this.components.get(name) - if (existing?.readyState === WebSocket.OPEN) { - existing.send(body) + const openWs = this.components.get(name) + if (openWs?.readyState === WebSocket.OPEN) { + openWs.send(body) return } @@ -209,10 +220,19 @@ export class PrinterComponentCore extends SimpleEmitter { throw new Error(`未知打印组件: ${name}`) } - await preflightPrinterComponentConnection(port) - this.initComponent(name) - const deadline = Date.now() + timeoutMs + + const ensureConnection = async (): Promise => { + const ws = this.components.get(name) + if (ws?.readyState === WebSocket.OPEN || ws?.readyState === WebSocket.CONNECTING) { + return + } + await preflightPrinterComponentConnection(port) + this.initComponent(name) + } + + await ensureConnection() + while (Date.now() < deadline) { const ws = this.components.get(name) if (ws?.readyState === WebSocket.OPEN) { diff --git a/src/core/printerRuntime.ts b/src/core/printerRuntime.ts index 60b9c465..e11e31ad 100644 --- a/src/core/printerRuntime.ts +++ b/src/core/printerRuntime.ts @@ -1,5 +1,4 @@ import { getToken } from '@/utils/auth' -import { canConnectLoopbackPrinterFromBrowser } from './printerComponentConnection' import { PrinterComponentCore } from './printerComponentCore' import { PrinterComponentMessageHandler } from './printerComponentMessageHandler' @@ -53,27 +52,14 @@ export function startPrinterComponentConnections(): void { } /** - * 浏览器打印前确保长连接可用(HTTPS 场景下若首次连接失败可重试)。 - * 与 startPrinterComponentConnections 不同:在已登录且为安全上下文时总会尝试连接/重连。 + * 浏览器打印前标记 runtime 已就绪。 + * 打印任务仅复用登录/连接面板已建立的 WebSocket,此处不再 init / reconnect,避免重复建连与 preflight。 */ -export function ensurePrinterConnectionsForBrowserPrint(): void { +export function ensurePrinterConnectionsForBrowserPrint(_componentNames?: string[]): void { initPrinterRuntime() if (!getToken()) return if (typeof WebSocket === 'undefined') return - if (!canConnectLoopbackPrinterFromBrowser()) return - connectionsStarted = true - const statuses = printerComponents.getAllStatus() - const hasConnected = statuses.some((item) => item.status === 'connected') - if (!hasConnected) { - printerComponents.reconnectAll() - return - } - statuses.forEach((item) => { - if (item.status !== 'connected') { - printerComponents.initComponent(item.name) - } - }) } /** 退出登录时断开所有打印组件连接 */ diff --git a/src/views/order/waveOrder/component/WavePlatformPrintPreviewDialog.vue b/src/views/order/waveOrder/component/WavePlatformPrintPreviewDialog.vue index 1e9cedcc..870d5a16 100644 --- a/src/views/order/waveOrder/component/WavePlatformPrintPreviewDialog.vue +++ b/src/views/order/waveOrder/component/WavePlatformPrintPreviewDialog.vue @@ -153,7 +153,7 @@ 浏览器打印 @@ -170,14 +170,15 @@ import { unlockWavePlatformPrintDataByGroup } from '@/api/order.print/orderprint import * as stationApi from '@/api/print/print' import type { PrintSendParams } from '@/api/print/print' import { - ensurePrinterConnectionsForBrowserPrint, getBrowserPrintUsageHint, getLoopbackPrinterAccessHint } from '@/core/printerRuntime' import { usePrinterComponentStore } from '@/stores/modules/printerComponent' import { + buildWaveGroupsForNotifyLock, parseExpressPrinterMapFromStationDetail, - sendWavePlatformBrowserPrint + sendWavePlatformBrowserPrint, + type BrowserWavePrintItemResult } from '../config/print' const WAVE_PRINT_STATION_STORAGE_KEY = 'wave_platform_print_station_id' @@ -717,6 +718,29 @@ function buildExpressRequestCode(): string { return `wave-print-${wh}-${wids}-${Date.now()}` } +async function notifyLockAfterBrowserPrint( + waveGroups: unknown[], + items: BrowserWavePrintItemResult[], +): Promise<{ ok: boolean; message?: string }> { + const lockWaveGroups = buildWaveGroupsForNotifyLock(waveGroups, items) + if (!lockWaveGroups.length) { + return { ok: false, message: '无可锁定的打印分组' } + } + + try { + const res: any = await stationApi.notifyLock({ waveGroups: lockWaveGroups }) + if (isApiSuccess(res)) { + return { ok: true, message: res?.message } + } + return { ok: false, message: res?.message || res?.msg || '订单锁定失败' } + } catch (error) { + return { + ok: false, + message: error instanceof Error ? error.message : '订单锁定失败', + } + } +} + async function printToStation() { if (!printSettings.station) { ElMessage.warning('请选择打印台') @@ -796,22 +820,37 @@ function unwrapPrintStationRecord(data: unknown): Record { } async function loadStationPrinterBindings(stationId: string) { + console.log('[wave browser print] loadStationPrinterBindings: 开始', { stationId }) const fallback = stationOptions.value.find((item) => item.stationId === stationId) const fallbackDefault = fallback?.default_printer_name ?? '' try { const res: any = await stationApi.getItem(stationId) if (!isApiSuccess(res)) { + console.log('[wave browser print] loadStationPrinterBindings: API 失败,使用 fallback', { + stationId, + fallbackDefault, + }) return { defaultPrinter: fallbackDefault, expressPrinterMap: {} as Record } } const parsed = parseExpressPrinterMapFromStationDetail(unwrapPrintStationRecord(res?.data ?? res)) + console.log('[wave browser print] loadStationPrinterBindings: 成功', { + stationId, + defaultPrinter: parsed.defaultPrinter || fallbackDefault, + expressPrinterMap: parsed.expressPrinterMap, + }) return { defaultPrinter: parsed.defaultPrinter || fallbackDefault, expressPrinterMap: parsed.expressPrinterMap } - } catch { + } catch (error) { + console.log('[wave browser print] loadStationPrinterBindings: 异常,使用 fallback', { + stationId, + fallbackDefault, + error, + }) return { defaultPrinter: fallbackDefault, expressPrinterMap: {} as Record @@ -820,30 +859,31 @@ async function loadStationPrinterBindings(stationId: string) { } async function printReport() { + console.log('[wave browser print] printReport: 用户点击浏览器打印') + const accessHint = getLoopbackPrinterAccessHint() if (accessHint) { + console.log('[wave browser print] printReport: 中止 — loopback 访问受限', { accessHint }) ElMessage.warning(accessHint) return } if (!props.payload) { + console.log('[wave browser print] printReport: 中止 — 无 payload') ElMessage.warning('暂无可打印数据') return } const waveGroups = props.payload.waveGroups if (!Array.isArray(waveGroups) || waveGroups.length === 0) { + console.log('[wave browser print] printReport: 中止 — waveGroups 为空') ElMessage.warning('暂无可打印的波次分组数据(waveGroups 为空)') return } - if (!printSettings.station) { - ElMessage.warning('请选择打印台以匹配打印机') - return - } - const warehouseId = Number(props.requestMeta?.warehouse_id || 0) if (!warehouseId) { + console.log('[wave browser print] printReport: 中止 — 缺少仓库 ID') ElMessage.warning('缺少仓库 ID') return } @@ -853,17 +893,29 @@ async function printReport() { expressRequestCode.value = requestCode } + console.log('[wave browser print] printReport: 前置校验通过', { + warehouseId, + stationId: printSettings.station || '', + waveGroupCount: waveGroups.length, + requestCode, + }) + browserPrinting.value = true try { - ensurePrinterConnectionsForBrowserPrint() + console.log('[wave browser print] printReport: 刷新打印组件 runtime 状态') usePrinterComponentStore().refreshFromRuntime() - const { defaultPrinter, expressPrinterMap } = await loadStationPrinterBindings(printSettings.station) - if (!defaultPrinter.trim()) { - ElMessage.warning('当前打印台未配置默认打印机,请先在打印台设置中配置') - return - } + const hasStation = String(printSettings.station || '').trim().length > 0 + const { defaultPrinter, expressPrinterMap } = hasStation + ? await loadStationPrinterBindings(printSettings.station) + : { defaultPrinter: '', expressPrinterMap: {} as Record } + console.log('[wave browser print] printReport: 打印机映射来源', { + hasStation, + defaultPrinter, + expressPrinterMapKeys: Object.keys(expressPrinterMap), + }) + console.log('[wave browser print] printReport: 调用 sendWavePlatformBrowserPrint') const result = await sendWavePlatformBrowserPrint({ warehouseId, waveGroups, @@ -872,27 +924,41 @@ async function printReport() { expressPrinterMap }) - if (result.flag === 'success') { - ElMessage.success(result.message) - emit('refresh') - emit('print-success') - return - } + console.log('[wave browser print] printReport: sendWavePlatformBrowserPrint 返回', result) - if (result.flag === 'partial') { - ElMessage.warning(result.message) - const failed = result.items.filter((item) => item.flag === 'failure') - if (failed.length) { - console.warn('[wave browser print] failed groups:', failed) + if (result.flag === 'success' || result.flag === 'partial') { + const isPartial = result.flag === 'partial' + console.log( + `[wave browser print] printReport: ${isPartial ? '部分成功' : '全部成功'}`, + isPartial ? { failed: result.items.filter((item) => item.flag === 'failure') } : undefined, + ) + + const lockResult = await notifyLockAfterBrowserPrint(waveGroups, result.items) + console.log('[wave browser print] printReport: notifyLock 返回', lockResult) + + if (lockResult.ok) { + if (isPartial) { + ElMessage.warning(`${result.message};${lockResult.message || '已成功分组订单已锁定'}`) + console.warn('[wave browser print] failed groups:', result.items.filter((item) => item.flag === 'failure')) + } else { + ElMessage.success(lockResult.message || result.message) + } + } else if (isPartial) { + ElMessage.warning(`${result.message};${lockResult.message || '订单锁定失败'}`) + console.warn('[wave browser print] failed groups:', result.items.filter((item) => item.flag === 'failure')) + } else { + ElMessage.warning(`${result.message};${lockResult.message || '订单锁定失败'}`) } + emit('refresh') emit('print-success') return } + console.log('[wave browser print] printReport: 失败', { message: result.message }) ElMessage.error(result.message || '浏览器打印失败') } catch (error) { - console.error('[wave browser print]', error) + console.error('[wave browser print] printReport: 异常', error) const msg = error instanceof Error ? error.message : '' ElMessage.error( msg.includes('本地网络') || msg.includes('HTTPS') @@ -901,6 +967,7 @@ async function printReport() { ) } finally { browserPrinting.value = false + console.log('[wave browser print] printReport: 结束') } } diff --git a/src/views/order/waveOrder/config/print.ts b/src/views/order/waveOrder/config/print.ts index 648b2d5c..4eed8382 100644 --- a/src/views/order/waveOrder/config/print.ts +++ b/src/views/order/waveOrder/config/print.ts @@ -509,84 +509,60 @@ export interface PrintSendRequest { } return null; } - - /** 默认:优先经 printerRuntime 长连接发送,失败再短时 WebSocket(与 printServer component.send 一致) */ - export async function sendPayloadToComponentWs(dispatch: ComponentDispatchPayload): Promise { - const body = typeof dispatch.payload === 'string' ? dispatch.payload : JSON.stringify(dispatch.payload); - if (typeof WebSocket === 'undefined') { - throw new Error('当前环境不支持 WebSocket,请注入 sendToComponent'); - } - const { canConnectLoopbackPrinterFromBrowser, getLoopbackPrinterAccessHint, printerComponents, preflightPrinterComponentConnection } = - await import('@/core/printerRuntime'); - - if (!canConnectLoopbackPrinterFromBrowser()) { - throw new Error(getLoopbackPrinterAccessHint() || '当前环境无法连接本机打印组件'); - } - - const port = PRINT_COMPONENT_PORTS[dispatch.componentName]; - if (port) { - await preflightPrinterComponentConnection(port); - } - - try { - await printerComponents.sendMessageWhenReady(dispatch.componentName, body); - return; - } catch (persistentErr) { - const detail = persistentErr instanceof Error ? persistentErr.message : String(persistentErr); - try { - await sendViaWebSocketConstructor(WebSocket, dispatch.wsUrl, body); - return; - } catch { - throw new Error(detail); - } + /** 浏览器打印调试日志(控制台过滤 `[wave browser print]`) */ + function waveBrowserPrintLog(step: string, data?: unknown): void { + if (data !== undefined) { + console.log(`[wave browser print] ${step}`, data); + } else { + console.log(`[wave browser print] ${step}`); } } - function sendViaWebSocketConstructor( - WS: typeof WebSocket, - url: string, - body: string, - ): Promise { - return new Promise((resolve, reject) => { - const ws = new WS(url) as WebSocket & { - on?(event: string, cb: (...args: unknown[]) => void): void; - once?(event: string, cb: (...args: unknown[]) => void): void; - }; - const timer = setTimeout(() => { - try { - ws.close(); - } catch { - /* ignore */ - } - reject(new Error(`连接打印组件超时: ${url}`)); - }, 8000); - - const onOpen = () => { - ws.send(body); - clearTimeout(timer); - setTimeout(() => { - try { - ws.close(); - } catch { - /* ignore */ - } - resolve(); - }, 100); - }; - const onError = () => { - clearTimeout(timer); - reject(new Error(`打印组件 WebSocket 连接失败: ${url}`)); - }; - - if (typeof ws.once === 'function') { - ws.once('open', onOpen); - ws.once('error', onError); - } else { - ws.addEventListener('open', onOpen); - ws.addEventListener('error', onError); - } + /** 默认:复用 printerRuntime 已有长连接下发(与 printServer component.send 一致,不 preflight、不另建 WebSocket) */ + export async function sendPayloadToComponentWs(dispatch: ComponentDispatchPayload): Promise { + const body = typeof dispatch.payload === 'string' ? dispatch.payload : JSON.stringify(dispatch.payload); + waveBrowserPrintLog('sendPayloadToComponentWs: 开始', { + componentName: dispatch.componentName, + wsUrl: dispatch.wsUrl, + bodyLength: body.length, }); + + if (typeof WebSocket === 'undefined') { + waveBrowserPrintLog('sendPayloadToComponentWs: 失败 — 当前环境不支持 WebSocket'); + throw new Error('当前环境不支持 WebSocket,请注入 sendToComponent'); + } + + const { canConnectLoopbackPrinterFromBrowser, getLoopbackPrinterAccessHint, printerComponents } = + await import('@/core/printerRuntime'); + + if (!canConnectLoopbackPrinterFromBrowser()) { + const hint = getLoopbackPrinterAccessHint() || '当前环境无法连接本机打印组件'; + waveBrowserPrintLog('sendPayloadToComponentWs: 失败 — 无法连接 loopback', { hint }); + throw new Error(hint); + } + + const isOpen = printerComponents.isComponentOpen(dispatch.componentName); + waveBrowserPrintLog('sendPayloadToComponentWs: 检查组件连接状态', { + componentName: dispatch.componentName, + isOpen, + }); + + if (isOpen) { + waveBrowserPrintLog('sendPayloadToComponentWs: 复用已有 WebSocket 发送', { + componentName: dispatch.componentName, + }); + printerComponents.sendMessage(dispatch.componentName, body); + waveBrowserPrintLog('sendPayloadToComponentWs: 发送完成', { componentName: dispatch.componentName }); + return; + } + + waveBrowserPrintLog('sendPayloadToComponentWs: 失败 — 组件未连接', { + componentName: dispatch.componentName, + }); + throw new Error( + `打印组件「${dispatch.componentName}」未连接,请先在「打印组件连接」面板确认该组件显示「已连接」后再打印`, + ); } /** @@ -598,34 +574,69 @@ export interface PrintSendRequest { fetchWindowsPrinters?: () => Promise; sendToComponent?: (payload: ComponentDispatchPayload) => Promise; dryRun?: boolean; + /** 浏览器直发组件时可关闭本机打印机名称校验(由组件自身返回最终打印结果) */ + skipPrinterValidation?: boolean; } = {}, ): Promise<{ ok: true; componentDispatch: ComponentDispatchPayload } | { ok: false; error: string; detail?: string }> { const fetchPrinters = options.fetchWindowsPrinters ?? fetchWindowsPrintersLocal; const sendToComponent = options.sendToComponent ?? sendPayloadToComponentWs; - + + waveBrowserPrintLog('dispatchToPrintComponent: 开始', { + printer: task.printer, + type: task.type, + component: task.component, + printId: task.printId, + dryRun: options.dryRun ?? false, + skipPrinterValidation: options.skipPrinterValidation ?? false, + }); + + if (!options.skipPrinterValidation) { const printerList = await fetchPrinters(); + waveBrowserPrintLog('dispatchToPrintComponent: 打印机列表', { + count: printerList.length, + names: printerList.map((p) => p.name), + }); + const validationError = validatePrinterInList(printerList, task.printer); if (validationError) { + waveBrowserPrintLog('dispatchToPrintComponent: 打印机校验失败', validationError); return { ok: false, error: validationError.error!, detail: validationError.detail }; } - + } else { + waveBrowserPrintLog('dispatchToPrintComponent: 跳过本机打印机校验(browser 直发)'); + } + let componentDispatch: ComponentDispatchPayload; try { componentDispatch = buildComponentDispatchPayload(task); + waveBrowserPrintLog('dispatchToPrintComponent: 构建下发载荷', { + componentName: componentDispatch.componentName, + wsUrl: componentDispatch.wsUrl, + payloadType: typeof componentDispatch.payload, + }); } catch (err) { const message = err instanceof Error ? err.message : String(err); + waveBrowserPrintLog('dispatchToPrintComponent: 构建载荷失败', { message }); return { ok: false, error: message }; } - + if (!options.dryRun) { try { + waveBrowserPrintLog('dispatchToPrintComponent: 调用 sendToComponent', { + componentName: componentDispatch.componentName, + }); await sendToComponent(componentDispatch); + waveBrowserPrintLog('dispatchToPrintComponent: sendToComponent 成功', { + componentName: componentDispatch.componentName, + }); } catch (err) { const message = err instanceof Error ? err.message : String(err); + waveBrowserPrintLog('dispatchToPrintComponent: sendToComponent 失败', { message }); return { ok: false, error: '打印组件通讯失败', detail: message }; } } - + + waveBrowserPrintLog('dispatchToPrintComponent: 完成'); return { ok: true, componentDispatch }; } @@ -1255,6 +1266,35 @@ export interface PrintSendRequest { return defaultPrinter; } +/** + * 平台组件打印机名规范化(仅快手): + * 快手控件偶发携带 LODOP 索引尾缀 "(0)" / ",0",菜鸟等组件须使用完整系统打印机名(如 xxx(U)2)。 + */ +export function normalizeExpressPrinterForComponent(component: string, printer: string): string { + const raw = String(printer ?? '').trim(); + if (!raw || component === 'LODOP') return raw; + if (component !== '快手') return raw; + + const withoutBracketSuffix = raw.replace(/\(0\)\s*$/, '').trim(); + const withoutCommaSuffix = withoutBracketSuffix.replace(/,\s*0\s*$/, '').trim(); + return withoutCommaSuffix || raw; +} + +/** 支持 getPrinters 协议、需按组件内列表对齐打印机名的平台组件(与 printserver / oldprint 一致) */ +const COMPONENT_GET_PRINTERS_EVENT: Record = { + 快手: 'kuaishouMessage', + 菜鸟: 'cainiaoMessage', + 抖音: 'douyinMessage', + 拼多多: 'pinduoduoMessage', + 京东: 'jingdongMessage', + 视频号: 'shipinhaoMessage', + 小红书: 'xiaohongshuMessage', +}; + +function shouldAlignPrinterViaComponent(component: string): boolean { + return Object.prototype.hasOwnProperty.call(COMPONENT_GET_PRINTERS_EVENT, component); +} + /** 从平台分组 orders 提取可打印 documents(需含 contents) */ export function extractWavePlatformPrintDocuments(rawOrders: unknown): WavePlatformPrintDocument[] { if (!Array.isArray(rawOrders)) return []; @@ -1312,6 +1352,151 @@ export interface PrintSendRequest { return async () => [{ name: printer, workOffline: 'FALSE' }]; } +function pickBestPrinterName(preferred: string, candidates: string[], fallback = ''): string { + const preferredTrim = String(preferred ?? '').trim(); + const fallbackTrim = String(fallback ?? '').trim(); + if (!candidates.length) return preferredTrim || fallbackTrim; + if (!preferredTrim) return fallbackTrim || candidates[0] || ''; + + if (candidates.includes(preferredTrim)) return preferredTrim; + + const fuzzy = candidates.find( + (name) => name.includes(preferredTrim) || preferredTrim.includes(name), + ); + if (fuzzy) return fuzzy; + + if (fallbackTrim && candidates.includes(fallbackTrim)) return fallbackTrim; + return fallbackTrim || candidates[0] || ''; +} + +/** + * 打印前向组件查询 getPrinters,用组件内真实打印机名下发(与 printserver / oldprint 一致)。 + */ +async function alignComponentPrinterName( + componentName: string, + preferredPrinter: string, + fallbackDefaultPrinter: string, + requestID?: string, +): Promise { + const desired = String(preferredPrinter ?? '').trim(); + const eventName = COMPONENT_GET_PRINTERS_EVENT[componentName]; + if (!eventName) return desired; + + try { + const { printerComponents } = await import('@/core/printerRuntime'); + if (!printerComponents.isComponentOpen(componentName)) { + return desired; + } + + const reqId = requestID || `wave-${componentName}-getPrinters-${Date.now()}`; + const response = await new Promise | null>((resolve) => { + const timeout = setTimeout(() => { + printerComponents.off(eventName, onMessage); + resolve(null); + }, 2000); + + const onMessage = (msg: unknown) => { + const text = String(msg ?? ''); + if (!text) return; + let parsed: Record | null = null; + try { + parsed = JSON.parse(text) as Record; + } catch { + return; + } + if (!parsed) return; + const cmd = String(parsed.cmd ?? ''); + const rid = String(parsed.requestID ?? parsed.requetID ?? parsed.requestId ?? ''); + if (cmd !== 'getPrinters' || rid !== reqId) return; + clearTimeout(timeout); + printerComponents.off(eventName, onMessage); + resolve(parsed); + }; + + printerComponents.on(eventName, onMessage); + printerComponents.sendMessage( + componentName, + JSON.stringify({ + requestID: reqId, + requetID: reqId, + requestId: reqId, + version: '1.0', + cmd: 'getPrinters', + }), + ); + }); + + if (!response) { + waveBrowserPrintLog('alignComponentPrinterName: getPrinters 超时,使用原打印机名', { + componentName, + desired, + }); + return desired || String(fallbackDefaultPrinter ?? '').trim(); + } + + const printersRaw = Array.isArray(response.printers) ? response.printers : []; + const printerNames = printersRaw + .map((item) => { + if (typeof item === 'string') return item.trim(); + if (item && typeof item === 'object') { + return String((item as Record).name ?? '').trim(); + } + return ''; + }) + .filter(Boolean); + + const defaultFromComponent = String(response.defaultPrinter ?? '').trim(); + waveBrowserPrintLog('alignComponentPrinterName: getPrinters 成功', { + componentName, + desired, + defaultFromComponent, + printerNames, + }); + + if (!printerNames.length) { + return desired || defaultFromComponent || String(fallbackDefaultPrinter ?? '').trim(); + } + return pickBestPrinterName(desired, printerNames, defaultFromComponent || fallbackDefaultPrinter); + } catch { + return desired || String(fallbackDefaultPrinter ?? '').trim(); + } +} + +async function resolveFinalExpressPrinter( + component: string, + printer: string, + defaultPrinter: string, + requestCode?: string, +): Promise { + const normalized = normalizeExpressPrinterForComponent(component, printer); + if (shouldAlignPrinterViaComponent(component)) { + return alignComponentPrinterName(component, normalized, defaultPrinter, requestCode); + } + return normalized; +} + + /** 从 waveGroups 解析本次打印涉及的平台打印组件名(去重) */ + function collectWavePlatformPrintComponents(waveGroups: unknown[]): string[] { + const names = new Set(); + for (const rawWave of waveGroups) { + const wave = asRecord(rawWave); + if (!wave) continue; + const rawPlatforms = Array.isArray(wave.platforms) ? wave.platforms : []; + for (const rawPlatform of rawPlatforms) { + const platformRec = asRecord(rawPlatform); + if (!platformRec) continue; + const platform = String(platformRec.platform ?? '').trim(); + const platform_name = String(platformRec.platform_name ?? platform).trim() || platform; + const componentHint = String(platformRec.component ?? platformRec.print_component ?? '').trim(); + const component = + resolveComponentName(componentHint) ?? + resolvePlatformComponent(platform, platform_name); + if (component) names.add(component); + } + } + return [...names]; + } + /** * 浏览器打印:按 waveGroups → platforms 串行下发至本机打印组件。 * 使用 orders.contents 构建面单任务,打印机自打印台默认 / 快递绑定解析。 @@ -1328,11 +1513,41 @@ export interface PrintSendRequest { preview = false, } = options; + waveBrowserPrintLog('sendWavePlatformBrowserPrint: 开始', { + warehouseId, + waveGroupCount: Array.isArray(waveGroups) ? waveGroups.length : 0, + requestCode, + defaultPrinter, + expressPrinterMapKeys: Object.keys(expressPrinterMap), + preview, + }); + if (!Array.isArray(waveGroups) || waveGroups.length === 0) { + waveBrowserPrintLog('sendWavePlatformBrowserPrint: 失败 — waveGroups 为空'); return { flag: 'failure', message: 'waveGroups 为空', items: [] }; } if (!defaultPrinter.trim()) { - return { flag: 'failure', message: '缺少默认打印机,请先选择打印台', items: [] }; + waveBrowserPrintLog('sendWavePlatformBrowserPrint: 未配置默认打印机,将优先使用平台数据内打印机或组件默认打印机'); + } + + const requiredComponents = collectWavePlatformPrintComponents(waveGroups); + waveBrowserPrintLog('sendWavePlatformBrowserPrint: 解析所需打印组件', { requiredComponents }); + + const { ensurePrinterConnectionsForBrowserPrint, printerComponents } = await import('@/core/printerRuntime'); + waveBrowserPrintLog('sendWavePlatformBrowserPrint: 标记 runtime 就绪'); + ensurePrinterConnectionsForBrowserPrint(requiredComponents); + + const notConnected = requiredComponents.filter((name) => !printerComponents.isComponentOpen(name)); + const connected = requiredComponents.filter((name) => printerComponents.isComponentOpen(name)); + waveBrowserPrintLog('sendWavePlatformBrowserPrint: 组件连接检查', { connected, notConnected }); + + if (notConnected.length) { + waveBrowserPrintLog('sendWavePlatformBrowserPrint: 失败 — 存在未连接组件', { notConnected }); + return { + flag: 'failure', + message: `以下打印组件未连接:${notConnected.join('、')}。请先在「打印组件连接」面板连接后再打印`, + items: [], + }; } const items: BrowserWavePrintItemResult[] = []; @@ -1345,6 +1560,12 @@ export interface PrintSendRequest { const wave_no = String(wave.wave_no ?? '—'); const rawPlatforms = Array.isArray(wave.platforms) ? wave.platforms : []; + waveBrowserPrintLog('sendWavePlatformBrowserPrint: 处理波次', { + wave_id, + wave_no, + platformCount: rawPlatforms.length, + }); + for (const rawPlatform of rawPlatforms) { const platformRec = asRecord(rawPlatform); if (!platformRec) continue; @@ -1359,6 +1580,15 @@ export interface PrintSendRequest { resolveComponentName(componentHint) ?? resolvePlatformComponent(platform, platform_name); + waveBrowserPrintLog('sendWavePlatformBrowserPrint: 处理平台分组', { + wave_no, + platform, + platform_name, + sys_logistics_code, + componentHint, + component, + }); + const baseItem: Omit = { wave_id, wave_no, @@ -1369,6 +1599,7 @@ export interface PrintSendRequest { }; if (!component) { + waveBrowserPrintLog('sendWavePlatformBrowserPrint: 跳过 — 无法识别打印组件', { platform_name, platform }); items.push({ ...baseItem, order_count: 0, @@ -1387,7 +1618,23 @@ export interface PrintSendRequest { expressPrinterMap, sys_logistics_name, ); - if (!printer.trim()) { + const finalPrinter = await resolveFinalExpressPrinter( + component, + printer, + defaultPrinter, + requestCode, + ); + waveBrowserPrintLog('sendWavePlatformBrowserPrint: 解析打印机', { + wave_no, + platform_name, + sys_logistics_code, + sys_logistics_name, + printer, + finalPrinter, + }); + + if (!finalPrinter.trim()) { + waveBrowserPrintLog('sendWavePlatformBrowserPrint: 跳过 — 未配置打印机', { wave_no, platform_name }); items.push({ ...baseItem, component, @@ -1405,10 +1652,44 @@ export interface PrintSendRequest { if (prebuilt) { expressPayload = prebuilt; orderCount = Number(platformRec.order_count ?? 0) || 1; + waveBrowserPrintLog('sendWavePlatformBrowserPrint: 使用预构建 print_data', { + wave_no, + platform_name, + orderCount, + }); + // 若后端给的是旧格式打印机名(如 xxx(0)),在浏览器直发时做兼容修正 + const prebuiltTask = asRecord(expressPayload.task); + if (prebuiltTask?.printer) { + const prebuiltPrinter = String(prebuiltTask.printer ?? ''); + const finalPrebuiltPrinter = await resolveFinalExpressPrinter( + component, + prebuiltPrinter, + defaultPrinter, + requestCode, + ); + if (finalPrebuiltPrinter && finalPrebuiltPrinter !== prebuiltPrinter) { + prebuiltTask.printer = finalPrebuiltPrinter; + waveBrowserPrintLog('sendWavePlatformBrowserPrint: 修正预构建 payload 打印机名', { + wave_no, + platform_name, + prebuiltPrinter, + finalPrebuiltPrinter, + }); + } + } } else { const rawOrders = platformRec.orders ?? platformRec.order_list; const documents = extractWavePlatformPrintDocuments(rawOrders); + waveBrowserPrintLog('sendWavePlatformBrowserPrint: 从 orders 提取面单', { + wave_no, + platform_name, + documentCount: documents.length, + }); if (!documents.length) { + waveBrowserPrintLog('sendWavePlatformBrowserPrint: 跳过 — 缺少 orders.contents', { + wave_no, + platform_name, + }); items.push({ ...baseItem, component, @@ -1421,16 +1702,22 @@ export interface PrintSendRequest { } orderCount = documents.length; expressPayload = buildExpressComponentPayload({ - printer, + printer: finalPrinter, documents, requestCode: requestCode ? `${requestCode}-${platform}-${sys_logistics_code}` : undefined, preview, }); + waveBrowserPrintLog('sendWavePlatformBrowserPrint: 构建 express 载荷', { + wave_no, + platform_name, + orderCount, + requestID: (expressPayload as Record).requestID, + }); } const printData = buildPrintTaskData( { - printer, + printer: finalPrinter, type: 'express', component, computerId: 'browser', @@ -1440,26 +1727,48 @@ export interface PrintSendRequest { expressPayload, ); + waveBrowserPrintLog('sendWavePlatformBrowserPrint: 下发打印任务', { + wave_no, + platform_name, + component, + printer, + printId: printData.printId, + orderCount, + }); + const dispatchResult = await dispatchToPrintComponent(printData, { fetchWindowsPrinters: createBrowserPrinterListFetcher(printer), sendToComponent: sendPayloadToComponentWs, + skipPrinterValidation: true, }); if (dispatchResult.ok) { successCount += 1; + waveBrowserPrintLog('sendWavePlatformBrowserPrint: 平台分组下发成功', { + wave_no, + platform_name, + component, + }); items.push({ ...baseItem, component, - printer, + printer: finalPrinter, order_count: orderCount, flag: 'success', message: '已发送至本地打印组件', }); } else { + waveBrowserPrintLog('sendWavePlatformBrowserPrint: 平台分组下发失败', { + wave_no, + platform_name, + component, + error: dispatchResult.error, + detail: dispatchResult.detail, + }); items.push({ ...baseItem, component, - printer, + printer: finalPrinter, order_count: orderCount, flag: 'failure', message: dispatchResult.error, @@ -1469,9 +1778,11 @@ export interface PrintSendRequest { } if (!items.length) { + waveBrowserPrintLog('sendWavePlatformBrowserPrint: 失败 — 未找到可打印的平台分组'); return { flag: 'failure', message: '未找到可打印的平台分组', items: [] }; } if (successCount === items.length) { + waveBrowserPrintLog('sendWavePlatformBrowserPrint: 全部成功', { successCount, total: items.length }); return { flag: 'success', message: `全部 ${successCount} 组已发送至本地打印组件`, @@ -1479,12 +1790,18 @@ export interface PrintSendRequest { }; } if (successCount > 0) { + waveBrowserPrintLog('sendWavePlatformBrowserPrint: 部分成功', { + successCount, + total: items.length, + failed: items.filter((item) => item.flag === 'failure'), + }); return { flag: 'partial', message: `成功 ${successCount}/${items.length} 组,部分平台发送失败`, items, }; } + waveBrowserPrintLog('sendWavePlatformBrowserPrint: 全部失败', { items }); return { flag: 'failure', message: items[0]?.message || '发送打印组件失败', @@ -1492,6 +1809,46 @@ export interface PrintSendRequest { }; } + function makeBrowserPrintPlatformKey( + wave_id: string, + platform: string, + platform_name: string, + ): string { + return `${wave_id}::${platform}::${platform_name}`; + } + + /** 从浏览器打印结果中提取已成功下发的 waveGroups,供 print.notifyLock 锁定订单 */ + export function buildWaveGroupsForNotifyLock( + waveGroups: unknown[], + items: BrowserWavePrintItemResult[], + ): unknown[] { + const successKeys = new Set( + items + .filter((item) => item.flag === 'success') + .map((item) => makeBrowserPrintPlatformKey(item.wave_id, item.platform, item.platform_name)), + ); + if (!successKeys.size) return []; + + const result: unknown[] = []; + for (const rawWave of waveGroups) { + const wave = asRecord(rawWave); + if (!wave) continue; + const wave_id = String(wave.wave_id ?? ''); + const rawPlatforms = Array.isArray(wave.platforms) ? wave.platforms : []; + const matchedPlatforms = rawPlatforms.filter((rawPlatform) => { + const platformRec = asRecord(rawPlatform); + if (!platformRec) return false; + const platform = String(platformRec.platform ?? '').trim(); + const platform_name = String(platformRec.platform_name ?? platform).trim() || platform; + return successKeys.has(makeBrowserPrintPlatformKey(wave_id, platform, platform_name)); + }); + if (matchedPlatforms.length) { + result.push({ ...wave, platforms: matchedPlatforms }); + } + } + return result; + } + /** 从 print.getItem 详情解析 express_bind_printer → express_code: printer_name */ export function parseExpressPrinterMapFromStationDetail( detail: unknown, diff --git a/workflows/api-doc-agent/config/接口.md b/workflows/api-doc-agent/config/接口.md index 624d8da2..80d373e8 100644 --- a/workflows/api-doc-agent/config/接口.md +++ b/workflows/api-doc-agent/config/接口.md @@ -1,11 +1,11 @@ # 接口 -- 更新时间: 2026-05-29 09:12:17 +- 更新时间: 2026-06-01 15:28:07 - 扫描目录: `src\api` - 模块数: 40 - API 文件数: 40 -- 接口数: 324 -- 已启用: 291 +- 接口数: 326 +- 已启用: 293 - 占位接口: 2 ## 模块统计 @@ -29,7 +29,7 @@ | order.revieworder | 1 | 3 | 3 | 0 | | order.wave | 1 | 30 | 29 | 0 | | pick | 1 | 2 | 2 | 0 | -| print | 1 | 14 | 13 | 1 | +| print | 1 | 16 | 15 | 1 | | printer.station | 1 | 11 | 1 | 0 | | setting.account | 1 | 7 | 7 | 0 | | setting.express | 1 | 7 | 7 | 0 | @@ -181,6 +181,8 @@ | print | getPrintRecordItem | print.getPrintRecordItem | POST | 是 | 否 | print/print.ts | | | print | getPrintResult | print.getPrintResult | POST | 是 | 否 | print/print.ts | | | print | hasName | print.hasName | POST | 是 | 否 | print/print.ts | | +| print | notify_lock | print.notify_lock | POST | 是 | 否 | print/print.ts | | +| print | notifyLock | print.notifyLock | POST | 是 | 否 | print/print.ts | | | print | retryFailed | print.retryFailed | POST | 是 | 否 | print/print.ts | | | print | savePrinters | print.savePrinters | POST | 是 | 否 | print/print.ts | | | print | sendPrint | print.send | POST | 是 | 否 | print/print.ts | | diff --git a/workflows/api-doc-system/data/interface-details/interface-details.json b/workflows/api-doc-system/data/interface-details/interface-details.json index 0cd588ae..8fdc1c2d 100644 --- a/workflows/api-doc-system/data/interface-details/interface-details.json +++ b/workflows/api-doc-system/data/interface-details/interface-details.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { @@ -12,13 +12,13 @@ "label": "全部" } }, - "totalInterfaceCount": 285, + "totalInterfaceCount": 287, "changes": { "summary": { "moduleAdded": 0, "moduleDeleted": 0, - "moduleUpdated": 0, - "interfaceAdded": 0, + "moduleUpdated": 1, + "interfaceAdded": 2, "interfaceDeleted": 0, "interfaceParamsUpdated": 0, "interfaceResponseUpdated": 0 @@ -26,10 +26,40 @@ "moduleUpdates": { "added": [], "deleted": [], - "updated": [] + "updated": [ + { + "moduleName": "打印模块", + "moduleKey": "print", + "folder": "print", + "previousModuleName": "打印模块", + "previousModuleKey": "print", + "interfaceChanges": { + "addedMethods": [ + "print.notify_lock", + "print.notifyLock" + ], + "deletedMethods": [], + "paramsUpdatedMethods": [], + "responseUpdatedMethods": [] + } + } + ] }, "interfaceUpdates": { - "added": [], + "added": [ + { + "moduleName": "打印模块", + "moduleKey": "print", + "folder": "print", + "method": "print.notify_lock" + }, + { + "moduleName": "打印模块", + "moduleKey": "print", + "folder": "print", + "method": "print.notifyLock" + } + ], "deleted": [], "paramsUpdated": [], "responseUpdated": [] @@ -7754,6 +7784,106 @@ ], "response": [] }, + { + "moduleName": "打印模块", + "moduleKey": "print", + "moduleFolder": "print", + "method": "print.notify_lock", + "title": "兼容别名(等价转调到 print.notifyLock);建议使用 print.notifyLock。", + "description": "兼容别名(等价转调到 print.notifyLock);建议使用 print.notifyLock。", + "endpoint": "/system", + "authRequired": false, + "loginRequired": true, + "status": { + "isUsed": false, + "isPlaceholder": false + }, + "headers": [ + { + "name": "Authorization", + "type": "string", + "required": true, + "description": "Bearer token" + } + ], + "params": [], + "response": [] + }, + { + "moduleName": "打印模块", + "moduleKey": "print", + "moduleFolder": "print", + "method": "print.notifyLock", + "title": "仅执行订单锁定流程,不发送打印任务;记录打印任务日志并写入订单操作日志。兼容别名:print.notify_lock(等价转调)。", + "description": "仅执行订单锁定流程,不发送打印任务;记录打印任务日志并写入订单操作日志。兼容别名:print.notify_lock(等价转调)。", + "endpoint": "/system", + "authRequired": false, + "loginRequired": true, + "status": { + "isUsed": false, + "isPlaceholder": false + }, + "headers": [ + { + "name": "Authorization", + "type": "string", + "required": true, + "description": "Bearer token" + } + ], + "params": [ + { + "name": "order_ids", + "type": "array", + "required": false, + "description": "订单 ID 数组(与 orderIds 互为别名)。至少需提供 order_ids/orderIds/waveGroups/data.waveGroups 中的一类以提取订单 ID。" + }, + { + "name": "orderIds", + "type": "array", + "required": false, + "description": "订单 ID 数组(驼峰兼容,等同于 order_ids)。" + }, + { + "name": "waveGroups", + "type": "array", + "required": false, + "description": "波次分组结构(可从中提取订单 ID,参考 order.print.getWavePlatformPrintData 返回的 waveGroups)。" + }, + { + "name": "data", + "type": "object", + "required": false, + "description": "兼容包装对象;若传入 data.waveGroups,可从中提取订单 ID。" + } + ], + "response": [ + { + "name": "locked_count", + "type": "number", + "required": false, + "description": "成功锁定的订单数量" + }, + { + "name": "order_ids_count", + "type": "number", + "required": false, + "description": "请求中识别出的订单 ID 数量" + }, + { + "name": "order_ids", + "type": "array", + "required": false, + "description": "本次尝试锁定的订单 ID 列表" + }, + { + "name": "source", + "type": "string", + "required": false, + "description": "操作来源标识(可选,若后端返回则提供具体来源)" + } + ] + }, { "moduleName": "打印模块", "moduleKey": "print", @@ -7903,8 +8033,8 @@ "moduleKey": "print", "moduleFolder": "print", "method": "print.send", - "title": "发送打印任务到打印电脑,并记录打印单。说明:当 type=express 时,接口按 data.waveGroups(来源于 order.print.getWavePlatformPrintData 返回的 data.waveGroups)进行处理,按 waveGroups -> platforms 串行处理,每个平台+快递 组分别发送;返回沿用现有简要风格,不返回明细。", - "description": "发送打印任务到打印电脑,并记录打印单。说明:当 type=express 时,接口按 data.waveGroups(来源于 order.print.getWavePlatformPrintData 返回的 data.waveGroups)进行处理,按 waveGroups -> platforms 串行处理,每个平台+快递 组分别发送;返回沿用现有简要风格,不返回明细。", + "title": "发送打印任务到打印电脑,并记录打印单。说明:当 type=express 时,接口按 data.waveGroups(来源于 order.print.getWavePlatformPrintData 返回的 data.waveGroups)进行处理,按 waveGroups -> platforms 串行处理,每个平台+快递 组分别发送;返回沿用现有简要风格,不返回明细。接口在记录打印单的同时,也会写入订单操作日志(记录打印相关操作)。", + "description": "发送打印任务到打印电脑,并记录打印单。说明:当 type=express 时,接口按 data.waveGroups(来源于 order.print.getWavePlatformPrintData 返回的 data.waveGroups)进行处理,按 waveGroups -> platforms 串行处理,每个平台+快递 组分别发送;返回沿用现有简要风格,不返回明细。接口在记录打印单的同时,也会写入订单操作日志(记录打印相关操作)。", "endpoint": "/system", "authRequired": false, "loginRequired": true, diff --git a/workflows/api-doc-system/data/module-list/module-list.json b/workflows/api-doc-system/data/module-list/module-list.json index 4e38967d..851a6dc0 100644 --- a/workflows/api-doc-system/data/module-list/module-list.json +++ b/workflows/api-doc-system/data/module-list/module-list.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { @@ -13,13 +13,13 @@ } }, "moduleCount": 40, - "totalInterfaceCount": 285, + "totalInterfaceCount": 287, "changes": { "summary": { "moduleAdded": 0, "moduleDeleted": 0, - "moduleUpdated": 0, - "interfaceAdded": 0, + "moduleUpdated": 1, + "interfaceAdded": 2, "interfaceDeleted": 0, "interfaceParamsUpdated": 0, "interfaceResponseUpdated": 0 @@ -27,10 +27,40 @@ "moduleUpdates": { "added": [], "deleted": [], - "updated": [] + "updated": [ + { + "moduleName": "打印模块", + "moduleKey": "print", + "folder": "print", + "previousModuleName": "打印模块", + "previousModuleKey": "print", + "interfaceChanges": { + "addedMethods": [ + "print.notify_lock", + "print.notifyLock" + ], + "deletedMethods": [], + "paramsUpdatedMethods": [], + "responseUpdatedMethods": [] + } + } + ] }, "interfaceUpdates": { - "added": [], + "added": [ + { + "moduleName": "打印模块", + "moduleKey": "print", + "folder": "print", + "method": "print.notify_lock" + }, + { + "moduleName": "打印模块", + "moduleKey": "print", + "folder": "print", + "method": "print.notifyLock" + } + ], "deleted": [], "paramsUpdated": [], "responseUpdated": [] @@ -203,7 +233,7 @@ "moduleName": "打印模块", "moduleKey": "print", "folder": "print", - "interfaceCount": 13, + "interfaceCount": 15, "interfaces": [ { "method": "print.send" @@ -243,6 +273,12 @@ }, { "method": "print.retryFailed" + }, + { + "method": "print.notifyLock" + }, + { + "method": "print.notify_lock" } ] }, diff --git a/workflows/api-doc-system/data/module/config/_module.lifecycle.json b/workflows/api-doc-system/data/module/config/_module.lifecycle.json index e8922601..5d80b3a3 100644 --- a/workflows/api-doc-system/data/module/config/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/config/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-16 11:15:05", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/config/module.json b/workflows/api-doc-system/data/module/config/module.json index 41d2f516..823fc128 100644 --- a/workflows/api-doc-system/data/module/config/module.json +++ b/workflows/api-doc-system/data/module/config/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/dashboard/_module.lifecycle.json b/workflows/api-doc-system/data/module/dashboard/_module.lifecycle.json index 8385665c..d29c881e 100644 --- a/workflows/api-doc-system/data/module/dashboard/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/dashboard/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-16 11:15:05", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/dashboard/module.json b/workflows/api-doc-system/data/module/dashboard/module.json index 146baa66..d2eeef9a 100644 --- a/workflows/api-doc-system/data/module/dashboard/module.json +++ b/workflows/api-doc-system/data/module/dashboard/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/index/_module.lifecycle.json b/workflows/api-doc-system/data/module/index/_module.lifecycle.json index 5a69964b..23cb2ddd 100644 --- a/workflows/api-doc-system/data/module/index/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/index/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-16 11:15:05", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/index/module.json b/workflows/api-doc-system/data/module/index/module.json index 524dc3dc..676a0b07 100644 --- a/workflows/api-doc-system/data/module/index/module.json +++ b/workflows/api-doc-system/data/module/index/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/order.archiveorder/_module.lifecycle.json b/workflows/api-doc-system/data/module/order.archiveorder/_module.lifecycle.json index 9644f3c9..8765cba3 100644 --- a/workflows/api-doc-system/data/module/order.archiveorder/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/order.archiveorder/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-16 11:15:05", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": "2026-04-17 19:16:50" } diff --git a/workflows/api-doc-system/data/module/order.archiveorder/module.json b/workflows/api-doc-system/data/module/order.archiveorder/module.json index cf55af7e..b92c3a5a 100644 --- a/workflows/api-doc-system/data/module/order.archiveorder/module.json +++ b/workflows/api-doc-system/data/module/order.archiveorder/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/order.deliveryexpectionorder/_module.lifecycle.json b/workflows/api-doc-system/data/module/order.deliveryexpectionorder/_module.lifecycle.json index 0e056368..e3878800 100644 --- a/workflows/api-doc-system/data/module/order.deliveryexpectionorder/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/order.deliveryexpectionorder/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-16 11:15:05", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": "2026-04-17 19:16:50" } diff --git a/workflows/api-doc-system/data/module/order.deliveryexpectionorder/module.json b/workflows/api-doc-system/data/module/order.deliveryexpectionorder/module.json index a62f156c..1cb8ee48 100644 --- a/workflows/api-doc-system/data/module/order.deliveryexpectionorder/module.json +++ b/workflows/api-doc-system/data/module/order.deliveryexpectionorder/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/order.deliveryorder/_module.lifecycle.json b/workflows/api-doc-system/data/module/order.deliveryorder/_module.lifecycle.json index b08dab80..8f444749 100644 --- a/workflows/api-doc-system/data/module/order.deliveryorder/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/order.deliveryorder/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-16 11:15:05", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": "2026-04-17 19:16:50" } diff --git a/workflows/api-doc-system/data/module/order.deliveryorder/module.json b/workflows/api-doc-system/data/module/order.deliveryorder/module.json index b6e5ea96..1ca530c4 100644 --- a/workflows/api-doc-system/data/module/order.deliveryorder/module.json +++ b/workflows/api-doc-system/data/module/order.deliveryorder/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/order.entrustorder/_module.lifecycle.json b/workflows/api-doc-system/data/module/order.entrustorder/_module.lifecycle.json index abc64e8e..ee7b3f13 100644 --- a/workflows/api-doc-system/data/module/order.entrustorder/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/order.entrustorder/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-16 11:15:05", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": "2026-04-17 19:16:50" } diff --git a/workflows/api-doc-system/data/module/order.entrustorder/module.json b/workflows/api-doc-system/data/module/order.entrustorder/module.json index 4bbb598a..722ef705 100644 --- a/workflows/api-doc-system/data/module/order.entrustorder/module.json +++ b/workflows/api-doc-system/data/module/order.entrustorder/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/order.expectionorder/_module.lifecycle.json b/workflows/api-doc-system/data/module/order.expectionorder/_module.lifecycle.json index b0af697c..5f54551d 100644 --- a/workflows/api-doc-system/data/module/order.expectionorder/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/order.expectionorder/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-16 11:15:05", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": "2026-04-17 19:16:50" } diff --git a/workflows/api-doc-system/data/module/order.expectionorder/module.json b/workflows/api-doc-system/data/module/order.expectionorder/module.json index ad9aa1a0..88ba9c22 100644 --- a/workflows/api-doc-system/data/module/order.expectionorder/module.json +++ b/workflows/api-doc-system/data/module/order.expectionorder/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/order.index/_module.lifecycle.json b/workflows/api-doc-system/data/module/order.index/_module.lifecycle.json index 601bbfe2..f9157573 100644 --- a/workflows/api-doc-system/data/module/order.index/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/order.index/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-16 11:15:05", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": "2026-04-17 19:16:50" } diff --git a/workflows/api-doc-system/data/module/order.index/module.json b/workflows/api-doc-system/data/module/order.index/module.json index 54738485..83e7c157 100644 --- a/workflows/api-doc-system/data/module/order.index/module.json +++ b/workflows/api-doc-system/data/module/order.index/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/order.outboundorder/_module.lifecycle.json b/workflows/api-doc-system/data/module/order.outboundorder/_module.lifecycle.json index 27626826..6bbc1b21 100644 --- a/workflows/api-doc-system/data/module/order.outboundorder/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/order.outboundorder/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-16 11:15:05", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": "2026-04-17 19:16:50" } diff --git a/workflows/api-doc-system/data/module/order.outboundorder/module.json b/workflows/api-doc-system/data/module/order.outboundorder/module.json index f1cac66d..76ed2186 100644 --- a/workflows/api-doc-system/data/module/order.outboundorder/module.json +++ b/workflows/api-doc-system/data/module/order.outboundorder/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/order.pendingorder/_module.lifecycle.json b/workflows/api-doc-system/data/module/order.pendingorder/_module.lifecycle.json index 4c505942..eb8289b4 100644 --- a/workflows/api-doc-system/data/module/order.pendingorder/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/order.pendingorder/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-16 11:15:05", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": "2026-04-17 19:16:50" } diff --git a/workflows/api-doc-system/data/module/order.pendingorder/module.json b/workflows/api-doc-system/data/module/order.pendingorder/module.json index 7100a5f4..9da0adac 100644 --- a/workflows/api-doc-system/data/module/order.pendingorder/module.json +++ b/workflows/api-doc-system/data/module/order.pendingorder/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/order.print/_module.lifecycle.json b/workflows/api-doc-system/data/module/order.print/_module.lifecycle.json index 0a61c78f..67a6a3ed 100644 --- a/workflows/api-doc-system/data/module/order.print/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/order.print/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-05-05 09:15:19", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/order.print/module.json b/workflows/api-doc-system/data/module/order.print/module.json index 8479ee4d..9c397e63 100644 --- a/workflows/api-doc-system/data/module/order.print/module.json +++ b/workflows/api-doc-system/data/module/order.print/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/order.recheckorder/_module.lifecycle.json b/workflows/api-doc-system/data/module/order.recheckorder/_module.lifecycle.json index 816a77d1..3794372b 100644 --- a/workflows/api-doc-system/data/module/order.recheckorder/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/order.recheckorder/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-05-20 08:59:09", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/order.recheckorder/module.json b/workflows/api-doc-system/data/module/order.recheckorder/module.json index a3dae901..e6cd8b9e 100644 --- a/workflows/api-doc-system/data/module/order.recheckorder/module.json +++ b/workflows/api-doc-system/data/module/order.recheckorder/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/order.revieworder/_module.lifecycle.json b/workflows/api-doc-system/data/module/order.revieworder/_module.lifecycle.json index 8a902cf2..a34e5e8a 100644 --- a/workflows/api-doc-system/data/module/order.revieworder/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/order.revieworder/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-16 11:15:05", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": "2026-04-17 19:16:50" } diff --git a/workflows/api-doc-system/data/module/order.revieworder/module.json b/workflows/api-doc-system/data/module/order.revieworder/module.json index c2901416..62cca68c 100644 --- a/workflows/api-doc-system/data/module/order.revieworder/module.json +++ b/workflows/api-doc-system/data/module/order.revieworder/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/order.wave/_module.lifecycle.json b/workflows/api-doc-system/data/module/order.wave/_module.lifecycle.json index 1d0cf6a7..4da635bc 100644 --- a/workflows/api-doc-system/data/module/order.wave/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/order.wave/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-05-04 09:11:04", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/order.wave/module.json b/workflows/api-doc-system/data/module/order.wave/module.json index 9d28376b..07af3883 100644 --- a/workflows/api-doc-system/data/module/order.wave/module.json +++ b/workflows/api-doc-system/data/module/order.wave/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/order/_module.lifecycle.json b/workflows/api-doc-system/data/module/order/_module.lifecycle.json index b2999a3f..18d814c7 100644 --- a/workflows/api-doc-system/data/module/order/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/order/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-05-09 09:52:14", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/order/module.json b/workflows/api-doc-system/data/module/order/module.json index 36ba2207..7a6443f8 100644 --- a/workflows/api-doc-system/data/module/order/module.json +++ b/workflows/api-doc-system/data/module/order/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/pick/_module.lifecycle.json b/workflows/api-doc-system/data/module/pick/_module.lifecycle.json index 80cd6e7c..ad4e672c 100644 --- a/workflows/api-doc-system/data/module/pick/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/pick/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-05-04 17:23:48", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/pick/module.json b/workflows/api-doc-system/data/module/pick/module.json index d1134ddb..9679a65a 100644 --- a/workflows/api-doc-system/data/module/pick/module.json +++ b/workflows/api-doc-system/data/module/pick/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/print/_module.lifecycle.json b/workflows/api-doc-system/data/module/print/_module.lifecycle.json index 0c599c2a..c4b592ad 100644 --- a/workflows/api-doc-system/data/module/print/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/print/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-16 11:15:05", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/print/module.json b/workflows/api-doc-system/data/module/print/module.json index f1968379..3123da5a 100644 --- a/workflows/api-doc-system/data/module/print/module.json +++ b/workflows/api-doc-system/data/module/print/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { @@ -16,14 +16,17 @@ "name": "打印模块", "key": "print", "folder": "print", - "interfaceCount": 13 + "interfaceCount": 15 }, "changes": { "fromPreviousSnapshot": { "moduleAdded": false, "moduleRenamed": false, "interfaceChanges": { - "addedMethods": [], + "addedMethods": [ + "print.notify_lock", + "print.notifyLock" + ], "deletedMethods": [], "paramsUpdatedMethods": [], "responseUpdatedMethods": [] @@ -33,8 +36,8 @@ "interfaces": [ { "method": "print.send", - "title": "发送打印任务到打印电脑,并记录打印单。说明:当 type=express 时,接口按 data.waveGroups(来源于 order.print.getWavePlatformPrintData 返回的 data.waveGroups)进行处理,按 waveGroups -> platforms 串行处理,每个平台+快递 组分别发送;返回沿用现有简要风格,不返回明细。", - "description": "发送打印任务到打印电脑,并记录打印单。说明:当 type=express 时,接口按 data.waveGroups(来源于 order.print.getWavePlatformPrintData 返回的 data.waveGroups)进行处理,按 waveGroups -> platforms 串行处理,每个平台+快递 组分别发送;返回沿用现有简要风格,不返回明细。", + "title": "发送打印任务到打印电脑,并记录打印单。说明:当 type=express 时,接口按 data.waveGroups(来源于 order.print.getWavePlatformPrintData 返回的 data.waveGroups)进行处理,按 waveGroups -> platforms 串行处理,每个平台+快递 组分别发送;返回沿用现有简要风格,不返回明细。接口在记录打印单的同时,也会写入订单操作日志(记录打印相关操作)。", + "description": "发送打印任务到打印电脑,并记录打印单。说明:当 type=express 时,接口按 data.waveGroups(来源于 order.print.getWavePlatformPrintData 返回的 data.waveGroups)进行处理,按 waveGroups -> platforms 串行处理,每个平台+快递 组分别发送;返回沿用现有简要风格,不返回明细。接口在记录打印单的同时,也会写入订单操作日志(记录打印相关操作)。", "endpoint": "/system", "authRequired": false, "loginRequired": true, @@ -674,6 +677,100 @@ "description": "跳过项明细" } ] + }, + { + "method": "print.notifyLock", + "title": "仅执行订单锁定流程,不发送打印任务;记录打印任务日志并写入订单操作日志。兼容别名:print.notify_lock(等价转调)。", + "description": "仅执行订单锁定流程,不发送打印任务;记录打印任务日志并写入订单操作日志。兼容别名:print.notify_lock(等价转调)。", + "endpoint": "/system", + "authRequired": false, + "loginRequired": true, + "status": { + "isUsed": false, + "isPlaceholder": false + }, + "headers": [ + { + "name": "Authorization", + "type": "string", + "required": true, + "description": "Bearer token" + } + ], + "params": [ + { + "name": "order_ids", + "type": "array", + "required": false, + "description": "订单 ID 数组(与 orderIds 互为别名)。至少需提供 order_ids/orderIds/waveGroups/data.waveGroups 中的一类以提取订单 ID。" + }, + { + "name": "orderIds", + "type": "array", + "required": false, + "description": "订单 ID 数组(驼峰兼容,等同于 order_ids)。" + }, + { + "name": "waveGroups", + "type": "array", + "required": false, + "description": "波次分组结构(可从中提取订单 ID,参考 order.print.getWavePlatformPrintData 返回的 waveGroups)。" + }, + { + "name": "data", + "type": "object", + "required": false, + "description": "兼容包装对象;若传入 data.waveGroups,可从中提取订单 ID。" + } + ], + "response": [ + { + "name": "locked_count", + "type": "number", + "required": false, + "description": "成功锁定的订单数量" + }, + { + "name": "order_ids_count", + "type": "number", + "required": false, + "description": "请求中识别出的订单 ID 数量" + }, + { + "name": "order_ids", + "type": "array", + "required": false, + "description": "本次尝试锁定的订单 ID 列表" + }, + { + "name": "source", + "type": "string", + "required": false, + "description": "操作来源标识(可选,若后端返回则提供具体来源)" + } + ] + }, + { + "method": "print.notify_lock", + "title": "兼容别名(等价转调到 print.notifyLock);建议使用 print.notifyLock。", + "description": "兼容别名(等价转调到 print.notifyLock);建议使用 print.notifyLock。", + "endpoint": "/system", + "authRequired": false, + "loginRequired": true, + "status": { + "isUsed": false, + "isPlaceholder": false + }, + "headers": [ + { + "name": "Authorization", + "type": "string", + "required": true, + "description": "Bearer token" + } + ], + "params": [], + "response": [] } ] } diff --git a/workflows/api-doc-system/data/module/printer.station/_module.lifecycle.json b/workflows/api-doc-system/data/module/printer.station/_module.lifecycle.json index 1742bafb..1f203247 100644 --- a/workflows/api-doc-system/data/module/printer.station/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/printer.station/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-16 11:15:05", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/printer.station/module.json b/workflows/api-doc-system/data/module/printer.station/module.json index 18cc6b4b..acb71b10 100644 --- a/workflows/api-doc-system/data/module/printer.station/module.json +++ b/workflows/api-doc-system/data/module/printer.station/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/setting.account/_module.lifecycle.json b/workflows/api-doc-system/data/module/setting.account/_module.lifecycle.json index 8aac3f28..2c22d34e 100644 --- a/workflows/api-doc-system/data/module/setting.account/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/setting.account/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-16 11:15:05", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/setting.account/module.json b/workflows/api-doc-system/data/module/setting.account/module.json index a57be435..4fe1072b 100644 --- a/workflows/api-doc-system/data/module/setting.account/module.json +++ b/workflows/api-doc-system/data/module/setting.account/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/setting.express/_module.lifecycle.json b/workflows/api-doc-system/data/module/setting.express/_module.lifecycle.json index c5fe0b34..e13d986f 100644 --- a/workflows/api-doc-system/data/module/setting.express/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/setting.express/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-17 19:37:49", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/setting.express/module.json b/workflows/api-doc-system/data/module/setting.express/module.json index 57f0d190..f0774f7b 100644 --- a/workflows/api-doc-system/data/module/setting.express/module.json +++ b/workflows/api-doc-system/data/module/setting.express/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/setting.expressinterface/_module.lifecycle.json b/workflows/api-doc-system/data/module/setting.expressinterface/_module.lifecycle.json index 7c88eac3..e0ed5acd 100644 --- a/workflows/api-doc-system/data/module/setting.expressinterface/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/setting.expressinterface/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-17 20:21:27", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/setting.expressinterface/module.json b/workflows/api-doc-system/data/module/setting.expressinterface/module.json index d15e1228..8ac347be 100644 --- a/workflows/api-doc-system/data/module/setting.expressinterface/module.json +++ b/workflows/api-doc-system/data/module/setting.expressinterface/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/setting.packagematerial/_module.lifecycle.json b/workflows/api-doc-system/data/module/setting.packagematerial/_module.lifecycle.json index d56884cf..29f3f204 100644 --- a/workflows/api-doc-system/data/module/setting.packagematerial/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/setting.packagematerial/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-05-29 09:07:53", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/setting.packagematerial/module.json b/workflows/api-doc-system/data/module/setting.packagematerial/module.json index e63410b2..532b049b 100644 --- a/workflows/api-doc-system/data/module/setting.packagematerial/module.json +++ b/workflows/api-doc-system/data/module/setting.packagematerial/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/setting.packagesupplier/_module.lifecycle.json b/workflows/api-doc-system/data/module/setting.packagesupplier/_module.lifecycle.json index 86bf3816..80d6d952 100644 --- a/workflows/api-doc-system/data/module/setting.packagesupplier/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/setting.packagesupplier/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-05-29 09:07:53", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/setting.packagesupplier/module.json b/workflows/api-doc-system/data/module/setting.packagesupplier/module.json index 4f96644f..60cad91b 100644 --- a/workflows/api-doc-system/data/module/setting.packagesupplier/module.json +++ b/workflows/api-doc-system/data/module/setting.packagesupplier/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/setting.permission/_module.lifecycle.json b/workflows/api-doc-system/data/module/setting.permission/_module.lifecycle.json index 767860c8..d4a03063 100644 --- a/workflows/api-doc-system/data/module/setting.permission/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/setting.permission/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-16 11:15:05", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/setting.permission/module.json b/workflows/api-doc-system/data/module/setting.permission/module.json index 66333539..e1a8934b 100644 --- a/workflows/api-doc-system/data/module/setting.permission/module.json +++ b/workflows/api-doc-system/data/module/setting.permission/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/setting.platform/_module.lifecycle.json b/workflows/api-doc-system/data/module/setting.platform/_module.lifecycle.json index be29e114..16679cd0 100644 --- a/workflows/api-doc-system/data/module/setting.platform/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/setting.platform/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-17 19:16:50", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/setting.platform/module.json b/workflows/api-doc-system/data/module/setting.platform/module.json index 030498e2..20580f3d 100644 --- a/workflows/api-doc-system/data/module/setting.platform/module.json +++ b/workflows/api-doc-system/data/module/setting.platform/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/setting.printtemplate/_module.lifecycle.json b/workflows/api-doc-system/data/module/setting.printtemplate/_module.lifecycle.json index f02b3bfa..08c2dd99 100644 --- a/workflows/api-doc-system/data/module/setting.printtemplate/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/setting.printtemplate/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-16 11:15:05", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/setting.printtemplate/module.json b/workflows/api-doc-system/data/module/setting.printtemplate/module.json index c58787c0..a9c3c7d7 100644 --- a/workflows/api-doc-system/data/module/setting.printtemplate/module.json +++ b/workflows/api-doc-system/data/module/setting.printtemplate/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/setting.role/_module.lifecycle.json b/workflows/api-doc-system/data/module/setting.role/_module.lifecycle.json index fc31dd31..77326f9a 100644 --- a/workflows/api-doc-system/data/module/setting.role/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/setting.role/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-16 11:15:05", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/setting.role/module.json b/workflows/api-doc-system/data/module/setting.role/module.json index 459699e8..4e74e544 100644 --- a/workflows/api-doc-system/data/module/setting.role/module.json +++ b/workflows/api-doc-system/data/module/setting.role/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/setting.warehouse/_module.lifecycle.json b/workflows/api-doc-system/data/module/setting.warehouse/_module.lifecycle.json index d3a98cd3..e2aaf27a 100644 --- a/workflows/api-doc-system/data/module/setting.warehouse/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/setting.warehouse/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-05-04 09:11:04", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/setting.warehouse/module.json b/workflows/api-doc-system/data/module/setting.warehouse/module.json index bcec79bc..dcda78cd 100644 --- a/workflows/api-doc-system/data/module/setting.warehouse/module.json +++ b/workflows/api-doc-system/data/module/setting.warehouse/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/shops/_module.lifecycle.json b/workflows/api-doc-system/data/module/shops/_module.lifecycle.json index 84b5c350..15dbc593 100644 --- a/workflows/api-doc-system/data/module/shops/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/shops/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-05-25 17:05:16", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/shops/module.json b/workflows/api-doc-system/data/module/shops/module.json index 0e1758af..0db9cb1d 100644 --- a/workflows/api-doc-system/data/module/shops/module.json +++ b/workflows/api-doc-system/data/module/shops/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/stock/_module.lifecycle.json b/workflows/api-doc-system/data/module/stock/_module.lifecycle.json index 9938b2e4..5c77a1ee 100644 --- a/workflows/api-doc-system/data/module/stock/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/stock/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-16 11:15:05", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/stock/module.json b/workflows/api-doc-system/data/module/stock/module.json index 18a6922a..3c02d56b 100644 --- a/workflows/api-doc-system/data/module/stock/module.json +++ b/workflows/api-doc-system/data/module/stock/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/storage.entry/_module.lifecycle.json b/workflows/api-doc-system/data/module/storage.entry/_module.lifecycle.json index f56b1fc8..63e2bcc9 100644 --- a/workflows/api-doc-system/data/module/storage.entry/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/storage.entry/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-16 11:15:05", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/storage.entry/module.json b/workflows/api-doc-system/data/module/storage.entry/module.json index ace2a93d..8694b048 100644 --- a/workflows/api-doc-system/data/module/storage.entry/module.json +++ b/workflows/api-doc-system/data/module/storage.entry/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/storage.inventory/_module.lifecycle.json b/workflows/api-doc-system/data/module/storage.inventory/_module.lifecycle.json index 868a455e..acc9a17e 100644 --- a/workflows/api-doc-system/data/module/storage.inventory/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/storage.inventory/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-16 11:15:05", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/storage.inventory/module.json b/workflows/api-doc-system/data/module/storage.inventory/module.json index 79f8068e..933b9996 100644 --- a/workflows/api-doc-system/data/module/storage.inventory/module.json +++ b/workflows/api-doc-system/data/module/storage.inventory/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/storage.report/_module.lifecycle.json b/workflows/api-doc-system/data/module/storage.report/_module.lifecycle.json index d50b0343..70f96bb7 100644 --- a/workflows/api-doc-system/data/module/storage.report/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/storage.report/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-05-15 17:32:36", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/storage.report/module.json b/workflows/api-doc-system/data/module/storage.report/module.json index 5a5ea7bc..e9b31c33 100644 --- a/workflows/api-doc-system/data/module/storage.report/module.json +++ b/workflows/api-doc-system/data/module/storage.report/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/storage.stockout/_module.lifecycle.json b/workflows/api-doc-system/data/module/storage.stockout/_module.lifecycle.json index 8cc9a0c5..97f003df 100644 --- a/workflows/api-doc-system/data/module/storage.stockout/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/storage.stockout/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-16 11:15:05", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/storage.stockout/module.json b/workflows/api-doc-system/data/module/storage.stockout/module.json index 2cbd8a5c..bc6bf06c 100644 --- a/workflows/api-doc-system/data/module/storage.stockout/module.json +++ b/workflows/api-doc-system/data/module/storage.stockout/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/storage_receiving/_module.lifecycle.json b/workflows/api-doc-system/data/module/storage_receiving/_module.lifecycle.json index 8fe7ddb4..1023c35a 100644 --- a/workflows/api-doc-system/data/module/storage_receiving/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/storage_receiving/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-16 11:15:05", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": "2026-04-17 19:16:50" } diff --git a/workflows/api-doc-system/data/module/storage_receiving/module.json b/workflows/api-doc-system/data/module/storage_receiving/module.json index 4104f3ce..73e85cd0 100644 --- a/workflows/api-doc-system/data/module/storage_receiving/module.json +++ b/workflows/api-doc-system/data/module/storage_receiving/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/store/_module.lifecycle.json b/workflows/api-doc-system/data/module/store/_module.lifecycle.json index 07005e44..7a86e263 100644 --- a/workflows/api-doc-system/data/module/store/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/store/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-16 11:15:05", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/store/module.json b/workflows/api-doc-system/data/module/store/module.json index 42da5c18..d900d291 100644 --- a/workflows/api-doc-system/data/module/store/module.json +++ b/workflows/api-doc-system/data/module/store/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/storewarehouse.store/_module.lifecycle.json b/workflows/api-doc-system/data/module/storewarehouse.store/_module.lifecycle.json index 2c12eeba..b5c610b6 100644 --- a/workflows/api-doc-system/data/module/storewarehouse.store/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/storewarehouse.store/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-16 11:15:05", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/storewarehouse.store/module.json b/workflows/api-doc-system/data/module/storewarehouse.store/module.json index 38a802aa..77d58f09 100644 --- a/workflows/api-doc-system/data/module/storewarehouse.store/module.json +++ b/workflows/api-doc-system/data/module/storewarehouse.store/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/user/_module.lifecycle.json b/workflows/api-doc-system/data/module/user/_module.lifecycle.json index fe408b54..1e6b4b1a 100644 --- a/workflows/api-doc-system/data/module/user/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/user/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-16 11:15:05", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/user/module.json b/workflows/api-doc-system/data/module/user/module.json index a5976612..5f10b405 100644 --- a/workflows/api-doc-system/data/module/user/module.json +++ b/workflows/api-doc-system/data/module/user/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/warehouse/_module.lifecycle.json b/workflows/api-doc-system/data/module/warehouse/_module.lifecycle.json index ada731bf..cbd51b82 100644 --- a/workflows/api-doc-system/data/module/warehouse/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/warehouse/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-04-16 11:15:05", - "updatedAt": "2026-05-30 13:25:44", + "updatedAt": "2026-06-01 09:11:20", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/warehouse/module.json b/workflows/api-doc-system/data/module/warehouse/module.json index 7a1a27f7..a11c3ab0 100644 --- a/workflows/api-doc-system/data/module/warehouse/module.json +++ b/workflows/api-doc-system/data/module/warehouse/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-05-30 13:25:44", - "generatedAtLocal": "2026-05-30 13:25:44", + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/pending-updates.json b/workflows/api-doc-system/data/pending-updates.json index 0967ef42..ff6c2c09 100644 --- a/workflows/api-doc-system/data/pending-updates.json +++ b/workflows/api-doc-system/data/pending-updates.json @@ -1 +1,43 @@ -{} +{ + "generatedAt": "2026-06-01 09:11:20", + "generatedAtLocal": "2026-06-01 09:11:20", + "source": "remote", + "filter": { + "platform": { + "value": "web", + "label": "网页端" + }, + "project": { + "value": "all", + "label": "全部" + } + }, + "summary": { + "moduleAdded": 0, + "moduleDeleted": 0, + "interfaceAdded": 2, + "interfaceDeleted": 0, + "interfaceParamsUpdated": 0, + "interfaceResponseUpdated": 0, + "totalChangedItems": 2 + }, + "interfaceUpdates": { + "added": [ + { + "moduleName": "打印模块", + "moduleKey": "print", + "folder": "print", + "method": "print.notify_lock" + }, + { + "moduleName": "打印模块", + "moduleKey": "print", + "folder": "print", + "method": "print.notifyLock" + } + ], + "deleted": [], + "paramsUpdated": [], + "responseUpdated": [] + } +}