diff --git a/dist.tar.gz b/dist.tar.gz index 733bacb3..0f23b3ef 100644 Binary files a/dist.tar.gz and b/dist.tar.gz differ diff --git a/src/api/order.deliveryOrder/orderdeliveryOrder.ts b/src/api/order.deliveryOrder/orderdeliveryOrder.ts index 53b37802..17a03e4c 100644 --- a/src/api/order.deliveryOrder/orderdeliveryOrder.ts +++ b/src/api/order.deliveryOrder/orderdeliveryOrder.ts @@ -162,6 +162,21 @@ export type DeliveryOrderDetailItem = { images?: string[] } +/** order.deliveryOrder.detail 运单信息项 */ +export type DeliveryOrderDetailExpressItem = { + waybill_code?: string + weighing_weight?: number | null + sys_logistics_code?: string + sys_logistics_name?: string + logistics_code?: string + logistics_name?: string + logistics_interface_id?: number | null + business_key?: string + created_at?: number | null + package_material_id?: number | null + package_material_name_snapshot?: string | null +} + /** order.deliveryOrder.detail 日志项 */ export type DeliveryOrderDetailLogItem = { id: number @@ -182,7 +197,7 @@ export type DeliveryOrderDetailPayload = { order?: DeliveryOrderDetailHeader items?: DeliveryOrderDetailItem[] orderItems?: DeliveryOrderDetailItem[] - expresses?: Record[] + expresses?: DeliveryOrderDetailExpressItem[] logs?: DeliveryOrderDetailLogItem[] waybill_codes?: string[] } diff --git a/src/api/order.index/orderindex.ts b/src/api/order.index/orderindex.ts index 19e76dc7..1316ac63 100644 --- a/src/api/order.index/orderindex.ts +++ b/src/api/order.index/orderindex.ts @@ -123,6 +123,8 @@ export type OrderDetailExpressItem = { logistics_interface_id?: number | null business_key?: string created_at?: number | null + package_material_id?: number | null + package_material_name_snapshot?: string | null } /** order.detail 响应 data */ @@ -141,6 +143,21 @@ export type BindExpressPackageMaterialParams = { package_material_code: string } +/** order.bindExpressPackageMaterialByWaybill 请求参数 */ +export type BindExpressPackageMaterialByWaybillParams = { + waybill_code: string + package_material_code: string +} + +/** order.bindExpressPackageMaterialByWaybill 响应 data */ +export type BindExpressPackageMaterialByWaybillResponse = { + order_id: number + waybill_code: string + package_material_id: number + package_material_name_snapshot: string + package_material_code: string +} + export type OrderExportParams = { table_type?: string tableType?: string @@ -268,6 +285,23 @@ export function orderBindExpressPackageMaterial(data: BindExpressPackageMaterial } as any) } +/** order.bindExpressPackageMaterialByWaybill:按运单号绑定包材,无需传入订单 ID */ +export function orderBindExpressPackageMaterialByWaybill( + data: BindExpressPackageMaterialByWaybillParams +): Promise { + return request({ + url: '/system', + method: 'post', + params: { + method: 'order.bindExpressPackageMaterialByWaybill', + v, + timestamp: new Date().getTime() + }, + data, + isSystemApi: true + } as any) +} + export function orderExport(data: OrderExportParams = {}): Promise { return request({ url: '/system', @@ -319,6 +353,7 @@ export const order = { queryOrderLogList: orderQueryOrderLogList, updateExpressWeighingWeight: orderUpdateExpressWeighingWeight, bindExpressPackageMaterial: orderBindExpressPackageMaterial, + bindExpressPackageMaterialByWaybill: orderBindExpressPackageMaterialByWaybill, export: orderExport, exportTaskProgress: orderExportTaskProgress, detail: orderDetail diff --git a/src/api/order.recheckorder/recheckOrder.ts b/src/api/order.recheckorder/recheckOrder.ts index 056483bd..6c3b05f2 100644 --- a/src/api/order.recheckorder/recheckOrder.ts +++ b/src/api/order.recheckorder/recheckOrder.ts @@ -8,13 +8,15 @@ import { const v = '1.0' -/** 扫描关键词;支持 keyword、value、运单号与车号别名(见 order.recheckorder module.json) */ +/** 扫描关键词;支持 keyword、value、运单号、波次号与车号别名(见 order.recheckorder module.json) */ export type RecheckScanOrderParams = { keyword?: string value?: string waybill_no?: string waybillCode?: string waybill_code?: string + wave_no?: string + waveNo?: string cart_code?: string cartCode?: string } @@ -25,6 +27,8 @@ const SCAN_ORDER_FIELD_KEYS: (keyof RecheckScanOrderParams)[] = [ 'waybill_no', 'waybillCode', 'waybill_code', + 'wave_no', + 'waveNo', 'cart_code', 'cartCode' ] @@ -37,16 +41,30 @@ function pickScanOrderBody(data: RecheckScanOrderParams): Record } } throw new Error( - '扫描关键词不能为空(keyword / value / waybill_no / waybillCode / waybill_code / cart_code / cartCode)' + '扫描关键词不能为空(keyword / value / waybill_no / waybillCode / waybill_code / wave_no / waveNo / cart_code / cartCode)' ) } -/** scanOrder 成功时服务端常用字段 */ +/** scanOrder 成功时服务端常用字段(与 order.recheckOrder.scanOrder 响应对齐) */ export type ScanOrderResultShape = { - match_type?: 'waybill' | 'cart' | string + match_type?: 'waybill' | 'wave' | 'cart' | string + list_type?: 'single' | 'group' | string + waybill_no?: string + task_id?: number | null + picker_id?: number | null + picker_name?: string + wave_id?: number + wave_no?: string + wave_type?: number + pick_mode?: number + strategy_id?: number | null + strategy_name?: string + total_orders?: number + reviewed_count?: number + unreviewed_count?: number + list?: unknown[] cart_match_view?: Record | null order_id?: number | string - waybill_no?: string order?: Record items?: unknown[] expresses?: unknown[] @@ -152,6 +170,34 @@ export function confirmRecheck(data: ConfirmRecheckParams): Promise { } as any) } +/** order.recheckOrder.batchQuickRecheck 请求参数 */ +export type BatchQuickRecheckParams = { + ids: number[] | string +} + +/** order.recheckOrder.batchQuickRecheck 响应 data */ +export type BatchQuickRecheckResponse = { + success: unknown[] + failed: unknown[] + success_count: number + failed_count: number +} + +/** order.recheckOrder.batchQuickRecheck:批量快捷复核 */ +export function batchQuickRecheck(data: BatchQuickRecheckParams): Promise { + return request({ + url: '/system', + method: 'post', + params: { + method: 'order.recheckOrder.batchQuickRecheck', + v, + timestamp: Date.now() + }, + data, + isSystemApi: true + } as any) +} + /** order.recheckOrder.confirmIntercept:确认拦截,入参 order_id,匹配单个订单并标记拦截 */ export function confirmIntercept(data: ConfirmRecheckParams): Promise { return request({ @@ -169,6 +215,7 @@ export function confirmIntercept(data: ConfirmRecheckParams): Promise { export const orderRecheckOrder = { scanOrder, + batchQuickRecheck, confirmRecheck, confirmIntercept } diff --git a/src/api/setting.warehouse/settingwarehouse.ts b/src/api/setting.warehouse/settingwarehouse.ts index c69d372e..bec38e30 100644 --- a/src/api/setting.warehouse/settingwarehouse.ts +++ b/src/api/setting.warehouse/settingwarehouse.ts @@ -2,9 +2,21 @@ import request from '@/utils/request' const v = '1.0' +/** 自动出库规则配置(subject_config.auto_outbound_rules) */ +export type SettingWarehouseAutoOutboundRules = { + enabled?: boolean + require_recheck?: boolean + require_pack?: boolean + require_weigh?: boolean + require_sync?: boolean + require_print?: boolean + require_pick?: boolean +} + /** 与 module setting.warehouse 文档 subject_config 对齐 */ export type SettingWarehouseSubjectConfig = { enable_external_express_code?: boolean + auto_outbound_rules?: SettingWarehouseAutoOutboundRules max_wave_quantity?: number min_group_order_fetch_quantity?: number max_notice_webhook_count?: number diff --git a/src/components/BatchReceivingPrintDialog.vue b/src/components/BatchReceivingPrintDialog.vue index c0168f07..3aa03ae4 100644 --- a/src/components/BatchReceivingPrintDialog.vue +++ b/src/components/BatchReceivingPrintDialog.vue @@ -196,6 +196,7 @@ const printerLoading = ref(false) const businessTypeOptions = [ { label: '收货单 (RECEIPT)', value: 'RECEIPT' }, { label: '库存单 (STOCK)', value: 'STOCK' }, + { label: '出库单 (STOCKOUT)', value: 'STOCKOUT' }, { label: '拣货单 (PICKING)', value: 'PICKING' } ] @@ -460,7 +461,7 @@ function resolveBusinessType() { } function isSupportedBusinessType(value: string) { - return ['STOCK', 'RECEIPT', 'PICKING'].includes(value) + return ['STOCK', 'STOCKOUT', 'RECEIPT', 'PICKING'].includes(value) } async function handleBusinessTypeChange() { diff --git a/src/layout/component/CreateOrderSessionHost.vue b/src/layout/component/CreateOrderSessionHost.vue index eb00583f..25d8e278 100644 --- a/src/layout/component/CreateOrderSessionHost.vue +++ b/src/layout/component/CreateOrderSessionHost.vue @@ -1,6 +1,6 @@ + + diff --git a/src/views/order/orderreview/index.vue b/src/views/order/orderreview/index.vue index 2d384a2a..d76a60fd 100644 --- a/src/views/order/orderreview/index.vue +++ b/src/views/order/orderreview/index.vue @@ -44,6 +44,9 @@ 确认拦截 清空 + + 批量快捷复核 + 保存 + + @@ -200,6 +209,7 @@ import { ElMessage, ElMessageBox } from 'element-plus' import type { FormInstance, FormRules } from 'element-plus' import ScanBox from '@/components/ScanBox/index.vue' import RecheckOrderPanel from './component/RecheckOrderPanel.vue' +import BatchQuickRecheckDialog from './component/BatchQuickRecheckDialog.vue' import * as stationApi from '@/api/print/print' import { getOrderPrintData } from '@/api/order.print/orderprint' import type { WavePlatformPrintDataPayload } from '@/api/order.print/orderprint' @@ -428,6 +438,8 @@ const panelActiveWaybill = ref('') const panelScanMode = ref<'search' | 'recheck'>('search') const panelTaskId = ref(undefined) const refreshTaskLoading = ref(false) +const batchRecheckDialogVisible = ref(false) +const lastScanParams = ref(null) function handlePanelSearch(keyword: string) { void executeScan({ keyword }) @@ -662,6 +674,29 @@ const selectedOrderRow = ref | null>(null) const showDetailPane = computed(() => scanPayload.value != null && activeOrderId.value != null) +function resolvePanelOrderId(order: any): number | null { + if (order?._is_wave) return null + const raw = order?.order_id ?? order?.id + const n = Number(raw) + return Number.isFinite(n) && n > 0 ? n : null +} + +const batchRecheckSuggestedIds = computed(() => { + const ids: number[] = [] + const seen = new Set() + for (const o of panelOrders.value) { + const id = resolvePanelOrderId(o) + if (id == null) continue + const status = String(o.recheck_status ?? o.is_reviewed ?? '').trim() + if (status === 'fin' || status === 'true') continue + if (!seen.has(id)) { + seen.add(id) + ids.push(id) + } + } + return ids +}) + const waybillSummaryRows = computed(() => (scanPayload.value ? [{}] : [])) function clearScanResult() { @@ -1446,7 +1481,19 @@ watch(cartSelectableOrders, (list) => { } }) +async function handleBatchQuickRecheckSuccess() { + const taskId = Number(panelTaskId.value) + if (Number.isFinite(taskId) && taskId > 0) { + await handleRefreshTask(taskId) + return + } + if (lastScanParams.value) { + await executeScan(lastScanParams.value) + } +} + async function executeScan(params: RecheckScanOrderParams) { + lastScanParams.value = { ...params } scanHint.value = '' scanHintType.value = 'info' selectedOrderId.value = null diff --git a/src/views/order/waveOrder/GroupWaveBatchListPanel.vue b/src/views/order/waveOrder/GroupWaveBatchListPanel.vue index 75e4f3b0..cad2ed42 100644 --- a/src/views/order/waveOrder/GroupWaveBatchListPanel.vue +++ b/src/views/order/waveOrder/GroupWaveBatchListPanel.vue @@ -835,6 +835,17 @@ :fetch-print-data="loadWavePrintFormData" /> + + (null) @@ -985,6 +1000,9 @@ const userStore = useUserStore() const wavePrintDialogVisible = ref(false) const wavePrintRows = ref([]) const wavePrintDataMap = ref>({}) +const outboundPrintDialogVisible = ref(false) +const outboundPrintRows = ref([]) +const outboundPrintDataMap = ref>({}) const queryTime = ref(0) const tableSize = ref('small') const activeTab = ref('detail') @@ -1198,6 +1216,7 @@ const buttonLoadingMap = computed(() => ({ batchFinishAutoGroupingLoading: batchFinishAutoGroupingLoading.value, batchCancelLoading: batchCancelLoading.value, batchPrintLoading: batchPrintLoading.value, + batchOutboundPrintLoading: batchOutboundPrintLoading.value, batchPlatformPrintLoading: batchPlatformPrintLoading.value, batchAllocateExpressLoading: batchAllocateExpressLoading.value, batchAllocateStorageLoading: batchAllocateStorageLoading.value, @@ -1209,12 +1228,14 @@ const batchPlatformPrintDisabled = computed(() => !printableSelectionRows.value. const buttonDisabledMap = computed(() => ({ batchPickingPrintDisabled: batchPrintDisabled.value, batchPrintDisabled: batchPrintDisabled.value, + batchOutboundPrintDisabled: batchPrintDisabled.value, batchPlatformPrintDisabled: batchPlatformPrintDisabled.value, noSelection: !hasSelection.value })) const buttonLabelMap = computed(() => ({ batchPrintTotal: `批量打印(${selectedWaveOrderTotal.value})`, + batchOutboundPrintTotal: `批量打印出库单(${selectedWaveOrderTotal.value})`, batchPlatformPrintTotal: `批量打印(平台)(${selectedWaveOrderTotal.value})`, batchPickingPrintTotal: `批量打印拣货单(${selectionRows.value.length})`, detailToggleLabel: detailVisible.value ? '隐藏详情' : '显示详情' @@ -1242,6 +1263,9 @@ const toolbarActionMap: Record void> = { openColumnConfigPanel: () => openColumnConfigPanel(), toggleDetailVisible: () => toggleDetailVisible(), handleBatchPrint: () => handleBatchPrint(), + handleBatchOutboundPrint: () => { + void handleBatchOutboundPrint() + }, handleBatchPlatformPrint: () => { void handleBatchPlatformPrint() }, @@ -1865,6 +1889,87 @@ async function handleBatchPrint() { await openBatchPrintDialog(rows) } +async function loadOutboundPrintFormData(row: any) { + const key = String(row?.id ?? resolveOutboundPrintRowKey(row || {}, String(row?.wave_id ?? ''), 0)) + return outboundPrintDataMap.value[key] || row || {} +} + +async function openBatchOutboundPrintDialog(rows: any[]) { + const first = rows[0] as Record + const warehouseId = Number(first?.warehouse_id ?? userStore.user?.warehouse_id ?? userStore.user?.store_id) + if (!Number.isFinite(warehouseId) || warehouseId <= 0) { + ElMessage.error('无法确定仓库 ID,请确认列表中的仓库字段或当前登录仓库上下文') + return + } + + const wave_ids = rows + .map((row: any) => row?.id ?? row?.wave_id ?? row?.batch_id) + .filter((id: unknown) => id !== undefined && id !== null && id !== '') + + if (!wave_ids.length) { + ElMessage.warning('当前勾选记录缺少可用的波次 ID') + return + } + + batchOutboundPrintLoading.value = true + try { + const res: any = await getWavePrintData({ warehouse_id: warehouseId, wave_ids }) + const payload = unwrapWavePrintPayloadFromConfig(res) + const waveList = Array.isArray(payload.wave_list) ? payload.wave_list : [] + const { printRows, dataMap } = buildOutboundPrintQueue(waveList, rows) + if (!printRows.length) { + ElMessage.warning('未获取到可打印的出库单明细,请确认波次下存在订单且快递已完全分配') + return + } + outboundPrintRows.value = printRows + outboundPrintDataMap.value = dataMap + outboundPrintDialogVisible.value = true + ElMessage.success(res?.message || `已获取出库单打印数据,共 ${printRows.length} 单`) + } catch (error: any) { + outboundPrintRows.value = [] + outboundPrintDataMap.value = {} + ElMessage.error(error?.message || '获取出库单打印数据失败') + } finally { + batchOutboundPrintLoading.value = false + } +} + +async function handleBatchOutboundPrint() { + if (!selectionRows.value.length) { + ElMessage.warning('请先勾选要打印的波次') + return + } + + const autoGroupingRows = [...autoGroupingSelectionRows.value] + const removedCount = autoGroupingRows.length + + if (removedCount) { + autoGroupingRows.forEach((row: any) => { + upperTable.value?.toggleRowSelection?.(row, false) + }) + } + + if (!printableSelectionRows.value.length) { + ElMessage.warning('自动加团中的波次不参与批量打印,已从当前勾选中移除') + return + } + + if (waveMaxOrderLimit.value !== null && selectedWaveOrderTotal.value > waveMaxOrderLimit.value) { + ElMessage.warning(`选中波次总订单数为 ${selectedWaveOrderTotal.value},超过仓库配置上限 ${waveMaxOrderLimit.value} 单,暂不允许批量打印`) + return + } + if (waveMaxOrderLimit.value === null) { + ElMessage.warning('未获取到仓库波次最大订单数量配置,暂无法执行批量打印') + return + } + + if (removedCount) { + ElMessage.warning(`已自动移除 ${removedCount} 个“自动加团中”波次,不计入批量打印`) + } + + await openBatchOutboundPrintDialog(printableSelectionRows.value) +} + async function handleBatchPrintPickingList() { if (!selectionRows.value.length) { ElMessage.warning('请先勾选要打印拣货单的波次') diff --git a/src/views/order/waveOrder/SandanWaveBatchListPanel.vue b/src/views/order/waveOrder/SandanWaveBatchListPanel.vue index ca002341..335c7d73 100644 --- a/src/views/order/waveOrder/SandanWaveBatchListPanel.vue +++ b/src/views/order/waveOrder/SandanWaveBatchListPanel.vue @@ -421,6 +421,17 @@ :fetch-print-data="loadWavePrintFormData" /> + + (null) @@ -554,6 +569,9 @@ const userStore = useUserStore() const wavePrintDialogVisible = ref(false) const wavePrintRows = ref([]) const wavePrintDataMap = ref>({}) +const outboundPrintDialogVisible = ref(false) +const outboundPrintRows = ref([]) +const outboundPrintDataMap = ref>({}) const queryTime = ref(0) const tableSize = ref('small') const activeTab = ref('detail') @@ -699,6 +717,7 @@ const buttonLoadingMap = computed(() => ({ batchFinishAutoGroupingLoading: batchFinishAutoGroupingLoading.value, batchCancelLoading: batchCancelLoading.value, batchPrintLoading: batchPrintLoading.value, + batchOutboundPrintLoading: batchOutboundPrintLoading.value, batchPlatformPrintLoading: batchPlatformPrintLoading.value, batchAllocateExpressLoading: batchAllocateExpressLoading.value, batchAllocateStorageLoading: batchAllocateStorageLoading.value, @@ -709,12 +728,14 @@ const batchPlatformPrintDisabled = computed(() => !printableSelectionRows.value. const buttonDisabledMap = computed(() => ({ batchPrintDisabled: batchPrintDisabled.value, + batchOutboundPrintDisabled: batchPrintDisabled.value, batchPlatformPrintDisabled: batchPlatformPrintDisabled.value, noSelection: !hasSelection.value })) const buttonLabelMap = computed(() => ({ batchPrintTotal: `批量打印(${selectedWaveOrderTotal.value})`, + batchOutboundPrintTotal: `批量打印出库单(${selectedWaveOrderTotal.value})`, batchPlatformPrintTotal: `批量打印(平台)(${selectedWaveOrderTotal.value})`, detailToggleLabel: detailVisible.value ? '隐藏详情' : '显示详情' })) @@ -741,6 +762,9 @@ const toolbarActionMap: Record void> = { openColumnConfigPanel: () => openColumnConfigPanel(), toggleDetailVisible: () => toggleDetailVisible(), handleBatchPrint: () => handleBatchPrint(), + handleBatchOutboundPrint: () => { + void handleBatchOutboundPrint() + }, handleBatchPlatformPrint: () => { void handleBatchPlatformPrint() }, @@ -1378,6 +1402,87 @@ async function handleBatchPrint() { } } +async function loadOutboundPrintFormData(row: any) { + const key = String(row?.id ?? resolveOutboundPrintRowKey(row || {}, String(row?.wave_id ?? ''), 0)) + return outboundPrintDataMap.value[key] || row || {} +} + +async function openBatchOutboundPrintDialog(rows: any[]) { + const first = rows[0] as Record + const warehouseId = Number(first?.warehouse_id ?? userStore.user?.warehouse_id ?? userStore.user?.store_id) + if (!Number.isFinite(warehouseId) || warehouseId <= 0) { + ElMessage.error('无法确定仓库 ID,请确认列表中的仓库字段或当前登录仓库上下文') + return + } + + const wave_ids = rows + .map((row: any) => row?.id ?? row?.wave_id ?? row?.batch_id) + .filter((id: unknown) => id !== undefined && id !== null && id !== '') + + if (!wave_ids.length) { + ElMessage.warning('当前勾选记录缺少可用的波次 ID') + return + } + + batchOutboundPrintLoading.value = true + try { + const res: any = await getWavePrintData({ warehouse_id: warehouseId, wave_ids }) + const payload = unwrapWavePrintPayloadFromConfig(res) + const waveList = Array.isArray(payload.wave_list) ? payload.wave_list : [] + const { printRows, dataMap } = buildOutboundPrintQueue(waveList, rows) + if (!printRows.length) { + ElMessage.warning('未获取到可打印的出库单明细,请确认波次下存在订单且快递已完全分配') + return + } + outboundPrintRows.value = printRows + outboundPrintDataMap.value = dataMap + outboundPrintDialogVisible.value = true + ElMessage.success(res?.message || `已获取出库单打印数据,共 ${printRows.length} 单`) + } catch (error: any) { + outboundPrintRows.value = [] + outboundPrintDataMap.value = {} + ElMessage.error(error?.message || '获取出库单打印数据失败') + } finally { + batchOutboundPrintLoading.value = false + } +} + +async function handleBatchOutboundPrint() { + if (!selectionRows.value.length) { + ElMessage.warning('请先勾选要打印的波次') + return + } + + const autoGroupingRows = [...autoGroupingSelectionRows.value] + const removedCount = autoGroupingRows.length + + if (removedCount) { + autoGroupingRows.forEach((row: any) => { + upperTable.value?.toggleRowSelection?.(row, false) + }) + } + + if (!printableSelectionRows.value.length) { + ElMessage.warning('自动加团中的波次不参与批量打印,已从当前勾选中移除') + return + } + + if (waveMaxOrderLimit.value !== null && selectedWaveOrderTotal.value > waveMaxOrderLimit.value) { + ElMessage.warning(`选中波次总订单数为 ${selectedWaveOrderTotal.value},超过仓库配置上限 ${waveMaxOrderLimit.value} 单,暂不允许批量打印`) + return + } + if (waveMaxOrderLimit.value === null) { + ElMessage.warning('未获取到仓库波次最大订单数量配置,暂无法执行批量打印') + return + } + + if (removedCount) { + ElMessage.warning(`已自动移除 ${removedCount} 个“自动加团中”波次,不计入批量打印`) + } + + await openBatchOutboundPrintDialog(printableSelectionRows.value) +} + function stopFetchTaskPolling() { if (fetchTaskPollTimer.value) { clearTimeout(fetchTaskPollTimer.value) diff --git a/src/views/order/waveOrder/config/wave-config.ts b/src/views/order/waveOrder/config/wave-config.ts index 36cbaef0..5824f25f 100644 --- a/src/views/order/waveOrder/config/wave-config.ts +++ b/src/views/order/waveOrder/config/wave-config.ts @@ -334,6 +334,17 @@ export const waveToolbarButtons: WaveToolbarButtonConfig[] = [ loadingKey: 'batchPlatformPrintLoading', action: 'handleBatchPlatformPrint' }, + { + key: 'batchOutboundPrint', + label: '批量打印出库单(0)', + dynamicLabelKey: 'batchOutboundPrintTotal', + type: 'info', + plain: true, + size: 'small', + disabledKey: 'batchOutboundPrintDisabled', + loadingKey: 'batchOutboundPrintLoading', + action: 'handleBatchOutboundPrint' + }, { key: 'printerComponentConnection', label: '打印组件连接', @@ -845,3 +856,114 @@ export function getPickTaskSourceTagType(value: unknown): 'info' | 'success' { if (num === 1) return 'success' return 'info' } + +export function unwrapWavePrintPayload(res: any) { + const inner = + res?.data !== undefined && res?.data !== null && typeof res.data === 'object' && !Array.isArray(res.data) + ? res.data + : res + const summaryRaw = inner?.summary + const summary = + summaryRaw !== undefined && summaryRaw !== null && typeof summaryRaw === 'object' && !Array.isArray(summaryRaw) + ? (summaryRaw as Record) + : {} + const waveListRaw = inner?.wave_list + const wave_list = Array.isArray(waveListRaw) + ? (waveListRaw.filter((x) => x && typeof x === 'object') as Record[]) + : [] + const extRaw = inner?.ext + const ext = + extRaw !== undefined && extRaw !== null && typeof extRaw === 'object' && !Array.isArray(extRaw) + ? (extRaw as Record) + : undefined + return { summary, wave_list, ext } +} + +export function getWaveOrders(wave: Record) { + const keys = ['orders', 'order_list', 'order_details', 'items', 'print_orders', 'order_rows', 'details'] + for (const key of keys) { + const value = wave[key] + if (Array.isArray(value)) return value + } + return [] +} + +export function getWaveOrderLineItems(order: Record) { + const keys = ['items', 'order_items', 'details', 'order_details', 'sku_list', 'goods_list', 'lines'] + for (const key of keys) { + const value = order[key] + if (Array.isArray(value)) return value + } + return [] +} + +export function resolveWaveRowKey(row: Record) { + return String(row?.id ?? row?.wave_id ?? row?.batch_id ?? row?.wave_no ?? '') +} + +export function resolveOutboundQueueNo(order: Record, fallback = '—') { + return String( + order.delivery_order_code + ?? order.delivery_no + ?? order.order_sn + ?? order.order_no + ?? order.order_number + ?? fallback + ) +} + +export function resolveOutboundPrintRowKey( + order: Record, + waveKey: string, + index: number +) { + const orderId = order.order_id ?? order.id ?? `${waveKey}-${index}` + return `${waveKey}::${orderId}` +} + +export function toOutboundPrintForm(order: Record, wave: Record) { + const lineItems = getWaveOrderLineItems(order) + return { + ...wave, + ...order, + wave_no: String(wave.wave_no ?? wave.batch_no ?? wave.wave_code ?? wave.id ?? '—'), + delivery_order_code: resolveOutboundQueueNo(order), + details: lineItems + } +} + +export function buildOutboundPrintQueue( + waveList: Record[], + selectedWaveRows: any[] +) { + const waveByKey = new Map>() + waveList.forEach((wave) => { + const key = resolveWaveRowKey(wave) + if (key) waveByKey.set(key, wave) + }) + + const printRows: any[] = [] + const dataMap: Record = {} + + selectedWaveRows.forEach((waveRow) => { + const waveKey = resolveWaveRowKey(waveRow || {}) + const wave = (waveKey ? waveByKey.get(waveKey) : undefined) || (waveRow as Record) + const orders = getWaveOrders(wave) + orders.forEach((order, index) => { + const orderRec = order && typeof order === 'object' ? (order as Record) : {} + const rowKey = resolveOutboundPrintRowKey(orderRec, waveKey || 'wave', index) + const queueNo = resolveOutboundQueueNo(orderRec, rowKey) + const queueRow = { + ...orderRec, + id: rowKey, + delivery_order_code: queueNo, + wave_no: String(wave.wave_no ?? waveRow?.wave_no ?? waveRow?.batch_no ?? waveRow?.wave_code ?? '—'), + wave_id: waveKey || waveRow?.id + } + printRows.push(queueRow) + dataMap[rowKey] = toOutboundPrintForm(orderRec, wave) + }) + }) + + return { printRows, dataMap } +} diff --git a/src/views/stock/stock/component/add.vue b/src/views/stock/stock/component/add.vue index b79c9d35..b17d1e05 100644 --- a/src/views/stock/stock/component/add.vue +++ b/src/views/stock/stock/component/add.vue @@ -395,13 +395,6 @@ const validateItemCode = async (rule: any, value: any, callback: any) => { return } - const pattern = /^[A-Za-z0-9_\-\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]+$/ - if (!pattern.test(value)) { - itemCodeError.value = "商品编码只能包含字母、数字、汉字、下划线和短横线" - callback(new Error(itemCodeError.value)) - return - } - if (value.length > 20) { itemCodeError.value = "条码长度不能超过20个字符" callback(new Error(itemCodeError.value)) diff --git a/src/views/stock/stock/component/info.vue b/src/views/stock/stock/component/info.vue index 768eb2ef..fd231ccc 100644 --- a/src/views/stock/stock/component/info.vue +++ b/src/views/stock/stock/component/info.vue @@ -595,14 +595,6 @@ const validateItemCode = async (rule: any, value: string, callback: any) => { return } - // 检查格式(允许字母、数字、汉字、下划线、短横线) - const pattern = /^[A-Za-z0-9_\-\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]+$/ - if (!pattern.test(value)) { - itemCodeError = "商品编码只能包含字母、数字、汉字、下划线和短横线" - callback(new Error('商品编码只能包含字母、数字、汉字、下划线和短横线')) - return - } - // 检查长度 if (value.length > 20) { itemCodeError = "条码长度不能超过20个字符" diff --git a/workflows/api-doc-agent/config/接口.md b/workflows/api-doc-agent/config/接口.md index cd14a167..3b036e07 100644 --- a/workflows/api-doc-agent/config/接口.md +++ b/workflows/api-doc-agent/config/接口.md @@ -1,11 +1,11 @@ # 接口 -- 更新时间: 2026-06-12 11:18:58 +- 更新时间: 2026-06-15 09:45:23 - 扫描目录: `src\api` - 模块数: 41 - API 文件数: 41 -- 接口数: 354 -- 已启用: 316 +- 接口数: 356 +- 已启用: 319 - 占位接口: 2 ## 模块统计 @@ -15,17 +15,17 @@ | config | 1 | 1 | 0 | 0 | | dashboard | 1 | 6 | 6 | 0 | | index | 1 | 25 | 22 | 1 | -| order | 1 | 3 | 2 | 0 | +| order | 1 | 3 | 3 | 0 | | order.archiveorder | 1 | 2 | 2 | 0 | | order.deliveryexpectionorder | 1 | 2 | 2 | 0 | | order.deliveryorder | 1 | 2 | 2 | 0 | | order.entrustorder | 1 | 2 | 2 | 0 | | order.expectionorder | 1 | 3 | 3 | 0 | -| order.index | 1 | 10 | 9 | 0 | +| order.index | 1 | 11 | 10 | 0 | | order.outboundorder | 1 | 3 | 3 | 0 | | order.pendingorder | 1 | 27 | 25 | 0 | | order.print | 1 | 4 | 4 | 0 | -| order.recheckorder | 1 | 6 | 4 | 0 | +| order.recheckorder | 1 | 7 | 5 | 0 | | order.revieworder | 1 | 3 | 3 | 0 | | order.wave | 1 | 30 | 28 | 0 | | pick | 1 | 4 | 4 | 0 | @@ -106,6 +106,7 @@ | order.expectionorder | orderExpectionOrderResolveException | order.expectionOrder.resolveException | POST | 是 | 否 | order.expectionorder/orderexpectionorder.ts | | | order.index | orderBadgeCount | order.badgeCount | POST | 是 | 否 | order.index/orderindex.ts | | | order.index | orderBindExpressPackageMaterial | order.bindExpressPackageMaterial | POST | 是 | 否 | order.index/orderindex.ts | | +| order.index | orderBindExpressPackageMaterialByWaybill | order.bindExpressPackageMaterialByWaybill | POST | 是 | 否 | order.index/orderindex.ts | | | order.index | orderDetail | order.detail | POST | 否 | 否 | order.index/orderindex.ts | | | order.index | orderExport | order.export | POST | 是 | 否 | order.index/orderindex.ts | | | order.index | orderExportTaskProgress | order.exportTaskProgress | POST | 是 | 否 | order.index/orderindex.ts | | @@ -148,6 +149,7 @@ | order.print | getWavePlatformPrintData | order.print.getWavePlatformPrintData | POST | 是 | 否 | order.print/orderprint.ts | | | order.print | getWavePrintData | order.print.getWavePrintData | POST | 是 | 否 | order.print/orderprint.ts | | | order.print | unlockWavePlatformPrintDataByGroup | order.print.unlockWavePlatformPrintDataByGroup | POST | 是 | 否 | order.print/orderprint.ts | | +| order.recheckorder | batchQuickRecheck | order.recheckOrder.batchQuickRecheck | POST | 是 | 否 | order.recheckorder/recheckOrder.ts | | | order.recheckorder | confirmIntercept | order.recheckOrder.confirmIntercept | POST | 是 | 否 | order.recheckorder/recheckOrder.ts | | | order.recheckorder | confirmRecheck | order.recheckOrder.confirmRecheck | POST | 是 | 否 | order.recheckorder/recheckOrder.ts | | | order.recheckorder | scanOrder | order.recheckOrder.scanOrder | POST | 是 | 否 | order.recheckorder/recheckOrder.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 01459051..416191fb 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "source": "remote", "filter": { "platform": { @@ -12,27 +12,139 @@ "label": "全部" } }, - "totalInterfaceCount": 313, + "totalInterfaceCount": 315, "changes": { "summary": { "moduleAdded": 0, "moduleDeleted": 0, - "moduleUpdated": 0, - "interfaceAdded": 0, + "moduleUpdated": 4, + "interfaceAdded": 2, "interfaceDeleted": 0, - "interfaceParamsUpdated": 0, - "interfaceResponseUpdated": 0 + "interfaceParamsUpdated": 1, + "interfaceResponseUpdated": 4 }, "moduleUpdates": { "added": [], "deleted": [], - "updated": [] + "updated": [ + { + "moduleName": "订单工作台入口模块", + "moduleKey": "order.index", + "folder": "order.index", + "previousModuleName": "订单工作台入口模块", + "previousModuleKey": "order.index", + "interfaceChanges": { + "addedMethods": [ + "order.bindExpressPackageMaterialByWaybill" + ], + "deletedMethods": [], + "paramsUpdatedMethods": [], + "responseUpdatedMethods": [ + "order.detail" + ] + } + }, + { + "moduleName": "订单复核模块", + "moduleKey": "order.recheckOrder", + "folder": "order.recheckorder", + "previousModuleName": "订单复核模块", + "previousModuleKey": "order.recheckOrder", + "interfaceChanges": { + "addedMethods": [ + "order.recheckOrder.batchQuickRecheck" + ], + "deletedMethods": [], + "paramsUpdatedMethods": [], + "responseUpdatedMethods": [ + "order.recheckOrder.scanOrder" + ] + } + }, + { + "moduleName": "订单配送模块", + "moduleKey": "order.deliveryOrder", + "folder": "order.deliveryorder", + "previousModuleName": "订单配送模块", + "previousModuleKey": "order.deliveryOrder", + "interfaceChanges": { + "addedMethods": [], + "deletedMethods": [], + "paramsUpdatedMethods": [], + "responseUpdatedMethods": [ + "order.deliveryOrder.detail" + ] + } + }, + { + "moduleName": "仓库设置模块", + "moduleKey": "setting.warehouse", + "folder": "setting.warehouse", + "previousModuleName": "仓库设置模块", + "previousModuleKey": "setting.warehouse", + "interfaceChanges": { + "addedMethods": [], + "deletedMethods": [], + "paramsUpdatedMethods": [ + "setting.warehouse.saveSettings" + ], + "responseUpdatedMethods": [ + "setting.warehouse.getSettings" + ] + } + } + ] }, "interfaceUpdates": { - "added": [], + "added": [ + { + "moduleName": "订单工作台入口模块", + "moduleKey": "order.index", + "folder": "order.index", + "method": "order.bindExpressPackageMaterialByWaybill" + }, + { + "moduleName": "订单复核模块", + "moduleKey": "order.recheckOrder", + "folder": "order.recheckorder", + "method": "order.recheckOrder.batchQuickRecheck" + } + ], "deleted": [], - "paramsUpdated": [], - "responseUpdated": [] + "paramsUpdated": [ + { + "moduleName": "仓库设置模块", + "moduleKey": "setting.warehouse", + "folder": "setting.warehouse", + "method": "setting.warehouse.saveSettings" + } + ], + "responseUpdated": [ + { + "moduleName": "订单工作台入口模块", + "moduleKey": "order.index", + "folder": "order.index", + "method": "order.detail" + }, + { + "moduleName": "订单复核模块", + "moduleKey": "order.recheckOrder", + "folder": "order.recheckorder", + "method": "order.recheckOrder.scanOrder" + }, + { + "moduleName": "订单配送模块", + "moduleKey": "order.deliveryOrder", + "folder": "order.deliveryorder", + "method": "order.deliveryOrder.detail" + }, + { + "moduleName": "仓库设置模块", + "moduleKey": "setting.warehouse", + "folder": "setting.warehouse", + "method": "setting.warehouse.getSettings" + } + ] } }, "interfaces": [ @@ -1604,6 +1716,75 @@ } ] }, + { + "moduleName": "订单工作台入口模块", + "moduleKey": "order.index", + "moduleFolder": "order.index", + "method": "order.bindExpressPackageMaterialByWaybill", + "title": "按运单号绑定包材。仅需传入运单号与包材编码,系统自动根据运单号反查对应订单运单记录并绑定包材,无需传入订单ID。", + "description": "按运单号绑定包材。仅需传入运单号与包材编码,系统自动根据运单号反查对应订单运单记录并绑定包材,无需传入订单ID。", + "endpoint": "/system", + "authRequired": false, + "loginRequired": true, + "status": { + "isUsed": false, + "isPlaceholder": false + }, + "headers": [ + { + "name": "Authorization", + "type": "string", + "required": true, + "description": "Bearer token" + } + ], + "params": [ + { + "name": "waybill_code", + "type": "string", + "required": true, + "description": "运单号,必填。" + }, + { + "name": "package_material_code", + "type": "string", + "required": true, + "description": "包材编码,必填。" + } + ], + "response": [ + { + "name": "order_id", + "type": "number", + "required": true, + "description": "运单号对应的订单ID(成功时返回于 data 对象中)。" + }, + { + "name": "waybill_code", + "type": "string", + "required": true, + "description": "运单号(成功时返回于 data 对象中)。" + }, + { + "name": "package_material_id", + "type": "number", + "required": true, + "description": "绑定后的包材ID(成功时返回于 data 对象中)。" + }, + { + "name": "package_material_name_snapshot", + "type": "string", + "required": true, + "description": "绑定时写入的包材名称快照(成功时返回于 data 对象中)。" + }, + { + "name": "package_material_code", + "type": "string", + "required": true, + "description": "绑定成功的包材编码(成功时返回于 data 对象中)。" + } + ] + }, { "moduleName": "订单配送异常模块", "moduleKey": "order.deliveryExpectionOrder", @@ -1776,31 +1957,31 @@ { "name": "order", "type": "object", - "required": false, + "required": true, "description": "订单头对象(raw 行数据)" }, { "name": "detail", "type": "object", - "required": false, + "required": true, "description": "等同于 order" }, { "name": "orderItems / items", "type": "array", - "required": false, + "required": true, "description": "商品明细数组" }, { "name": "expresses", "type": "array", - "required": false, - "description": "运单信息数组" + "required": true, + "description": "运单信息数组,每个元素包含以下字段:waybill_code(运单号,string)、weighing_weight(称重重量,number|null)、sys_logistics_code(系统物流公司编码,string)、sys_logistics_name(系统物流公司名称,string)、logistics_code(实际物流公司编码,string)、logistics_name(实际物流公司名称,string)、logistics_interface_id(物流接口ID,number|null)、business_key(业务标识,string)、created_at(创建时间戳毫秒,number|null)、package_material_id(包材ID,number|null)、package_material_name_snapshot(包材名称快照,string|null)" }, { "name": "waybill_codes", "type": "array", - "required": false, + "required": true, "description": "去重后的运单号字符串数组" } ] @@ -1927,7 +2108,7 @@ "name": "expresses", "type": "array", "required": true, - "description": "运单信息数组,每个元素包含以下字段:waybill_code(运单号,string)、weighing_weight(称重重量,number|null)、sys_logistics_code(系统物流公司编码,string)、sys_logistics_name(系统物流公司名称,string)、logistics_code(实际物流公司编码,string)、logistics_name(实际物流公司名称,string)、logistics_interface_id(物流接口ID,number|null)、business_key(业务标识,string)、created_at(创建时间戳毫秒,number|null)" + "description": "运单信息数组,每个元素包含以下字段:waybill_code(运单号,string)、weighing_weight(称重重量,number|null)、sys_logistics_code(系统物流公司编码,string)、sys_logistics_name(系统物流公司名称,string)、logistics_code(实际物流公司编码,string)、logistics_name(实际物流公司名称,string)、logistics_interface_id(物流接口ID,number|null)、business_key(业务标识,string)、created_at(创建时间戳毫秒,number|null)、package_material_id(包材ID,number|null)、package_material_name_snapshot(包材名称快照,string|null)" }, { "name": "waybill_codes", @@ -5364,6 +5545,63 @@ } ] }, + { + "moduleName": "订单复核模块", + "moduleKey": "order.recheckOrder", + "moduleFolder": "order.recheckorder", + "method": "order.recheckOrder.batchQuickRecheck", + "title": "批量快捷复核:传入订单 IDs 列表,对每个有效订单执行前置检查(已分配储位、已分配快递、已同步且未被拦截),必要时自动完成拣货(含库存锁定校验与扣减、库存流水写入、拣货任务状态同步)后标记复核(含复核任务记录、任务复核状态更新、车任务解绑、操作日志)。每个订单在独立事务中执行,支持部分失败,不满足条件的订单跳过并返回原因。", + "description": "批量快捷复核:传入订单 IDs 列表,对每个有效订单执行前置检查(已分配储位、已分配快递、已同步且未被拦截),必要时自动完成拣货(含库存锁定校验与扣减、库存流水写入、拣货任务状态同步)后标记复核(含复核任务记录、任务复核状态更新、车任务解绑、操作日志)。每个订单在独立事务中执行,支持部分失败,不满足条件的订单跳过并返回原因。", + "endpoint": "/system", + "authRequired": false, + "loginRequired": true, + "status": { + "isUsed": false, + "isPlaceholder": false + }, + "headers": [ + { + "name": "Authorization", + "type": "string", + "required": true, + "description": "Bearer token" + } + ], + "params": [ + { + "name": "ids", + "type": "array|string", + "required": true, + "description": "订单 ID 列表,支持数组或以逗号分隔的字符串" + } + ], + "response": [ + { + "name": "success", + "type": "array", + "required": true, + "description": "复核成功的订单列表" + }, + { + "name": "failed", + "type": "array", + "required": true, + "description": "复核失败的订单列表" + }, + { + "name": "success_count", + "type": "number", + "required": true, + "description": "成功数量" + }, + { + "name": "failed_count", + "type": "number", + "required": true, + "description": "失败数量" + } + ] + }, { "moduleName": "订单复核模块", "moduleKey": "order.recheckOrder", @@ -5666,7 +5904,7 @@ "name": "list", "type": "array", "required": true, - "description": "统一列表输出。散单模式(list_type=single)有波次信息时:扁平订单数组;无波次信息时退回单订单详情模式(每项含 detail、items、expresses、logs)。团购模式(list_type=group):波次视图数组(每项含 wave_id、wave_no、wave_type、wave_status、total_orders、processed_orders、creator、create_time、update_time、order_count、pick_mode、box_no、orders[])" + "description": "统一列表输出。散单模式(list_type=single)有波次信息时:扁平订单数组;无波次信息时退回单订单详情模式(每项含 detail、items、expresses、logs)。团购模式(list_type=group):波次视图数组(每项含 wave_id、wave_no、wave_type、wave_status、total_orders、processed_orders、creator、create_time、update_time、order_count、pick_mode、box_no、order_ids、orders_detail、stocks[])" } ] }, @@ -12480,6 +12718,54 @@ "type": "boolean", "required": true, "description": "是否启用外部快递编码;默认 false(关闭)。开启后允许按外部系统传入的快递编码进行处理(如无匹配仍以业务校验为准)" + }, + { + "name": "subject_config.auto_outbound_rules", + "type": "object", + "required": true, + "description": "自动出库规则配置。全部条件满足时自动标记待出库" + }, + { + "name": "subject_config.auto_outbound_rules.enabled", + "type": "boolean", + "required": true, + "description": "是否启用自动出库,默认 false" + }, + { + "name": "subject_config.auto_outbound_rules.require_recheck", + "type": "boolean", + "required": true, + "description": "是否要求已复核(recheck_status=fin),默认 true" + }, + { + "name": "subject_config.auto_outbound_rules.require_pack", + "type": "boolean", + "required": true, + "description": "是否要求已打包(pack_status=fin),默认 true" + }, + { + "name": "subject_config.auto_outbound_rules.require_weigh", + "type": "boolean", + "required": true, + "description": "是否要求已称重(weighing_weight>0),默认 true" + }, + { + "name": "subject_config.auto_outbound_rules.require_sync", + "type": "boolean", + "required": true, + "description": "是否要求已同步(sync_status=fin),默认 true" + }, + { + "name": "subject_config.auto_outbound_rules.require_print", + "type": "boolean", + "required": true, + "description": "是否要求已打印(print_status=fin),默认 true" + }, + { + "name": "subject_config.auto_outbound_rules.require_pick", + "type": "boolean", + "required": true, + "description": "是否要求已拣货(pick_status=fin),默认 true" } ] }, @@ -12529,6 +12815,54 @@ "type": "boolean", "required": false, "description": "是否启用外部快递编码;默认 false(关闭)。开启后允许按外部系统传入的快递编码进行处理(如无匹配仍以业务校验为准)" + }, + { + "name": "subject_config.auto_outbound_rules", + "type": "object", + "required": false, + "description": "自动出库规则配置。全部条件满足时自动标记待出库" + }, + { + "name": "subject_config.auto_outbound_rules.enabled", + "type": "boolean", + "required": false, + "description": "是否启用自动出库,默认 false" + }, + { + "name": "subject_config.auto_outbound_rules.require_recheck", + "type": "boolean", + "required": false, + "description": "是否要求已复核(recheck_status=fin),默认 true" + }, + { + "name": "subject_config.auto_outbound_rules.require_pack", + "type": "boolean", + "required": false, + "description": "是否要求已打包(pack_status=fin),默认 true" + }, + { + "name": "subject_config.auto_outbound_rules.require_weigh", + "type": "boolean", + "required": false, + "description": "是否要求已称重(weighing_weight>0),默认 true" + }, + { + "name": "subject_config.auto_outbound_rules.require_sync", + "type": "boolean", + "required": false, + "description": "是否要求已同步(sync_status=fin),默认 true" + }, + { + "name": "subject_config.auto_outbound_rules.require_print", + "type": "boolean", + "required": false, + "description": "是否要求已打印(print_status=fin),默认 true" + }, + { + "name": "subject_config.auto_outbound_rules.require_pick", + "type": "boolean", + "required": false, + "description": "是否要求已拣货(pick_status=fin),默认 true" } ], "response": [ 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 1014678b..c878e6dc 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "source": "remote", "filter": { "platform": { @@ -13,27 +13,139 @@ } }, "moduleCount": 41, - "totalInterfaceCount": 313, + "totalInterfaceCount": 315, "changes": { "summary": { "moduleAdded": 0, "moduleDeleted": 0, - "moduleUpdated": 0, - "interfaceAdded": 0, + "moduleUpdated": 4, + "interfaceAdded": 2, "interfaceDeleted": 0, - "interfaceParamsUpdated": 0, - "interfaceResponseUpdated": 0 + "interfaceParamsUpdated": 1, + "interfaceResponseUpdated": 4 }, "moduleUpdates": { "added": [], "deleted": [], - "updated": [] + "updated": [ + { + "moduleName": "订单工作台入口模块", + "moduleKey": "order.index", + "folder": "order.index", + "previousModuleName": "订单工作台入口模块", + "previousModuleKey": "order.index", + "interfaceChanges": { + "addedMethods": [ + "order.bindExpressPackageMaterialByWaybill" + ], + "deletedMethods": [], + "paramsUpdatedMethods": [], + "responseUpdatedMethods": [ + "order.detail" + ] + } + }, + { + "moduleName": "订单复核模块", + "moduleKey": "order.recheckOrder", + "folder": "order.recheckorder", + "previousModuleName": "订单复核模块", + "previousModuleKey": "order.recheckOrder", + "interfaceChanges": { + "addedMethods": [ + "order.recheckOrder.batchQuickRecheck" + ], + "deletedMethods": [], + "paramsUpdatedMethods": [], + "responseUpdatedMethods": [ + "order.recheckOrder.scanOrder" + ] + } + }, + { + "moduleName": "订单配送模块", + "moduleKey": "order.deliveryOrder", + "folder": "order.deliveryorder", + "previousModuleName": "订单配送模块", + "previousModuleKey": "order.deliveryOrder", + "interfaceChanges": { + "addedMethods": [], + "deletedMethods": [], + "paramsUpdatedMethods": [], + "responseUpdatedMethods": [ + "order.deliveryOrder.detail" + ] + } + }, + { + "moduleName": "仓库设置模块", + "moduleKey": "setting.warehouse", + "folder": "setting.warehouse", + "previousModuleName": "仓库设置模块", + "previousModuleKey": "setting.warehouse", + "interfaceChanges": { + "addedMethods": [], + "deletedMethods": [], + "paramsUpdatedMethods": [ + "setting.warehouse.saveSettings" + ], + "responseUpdatedMethods": [ + "setting.warehouse.getSettings" + ] + } + } + ] }, "interfaceUpdates": { - "added": [], + "added": [ + { + "moduleName": "订单工作台入口模块", + "moduleKey": "order.index", + "folder": "order.index", + "method": "order.bindExpressPackageMaterialByWaybill" + }, + { + "moduleName": "订单复核模块", + "moduleKey": "order.recheckOrder", + "folder": "order.recheckorder", + "method": "order.recheckOrder.batchQuickRecheck" + } + ], "deleted": [], - "paramsUpdated": [], - "responseUpdated": [] + "paramsUpdated": [ + { + "moduleName": "仓库设置模块", + "moduleKey": "setting.warehouse", + "folder": "setting.warehouse", + "method": "setting.warehouse.saveSettings" + } + ], + "responseUpdated": [ + { + "moduleName": "订单工作台入口模块", + "moduleKey": "order.index", + "folder": "order.index", + "method": "order.detail" + }, + { + "moduleName": "订单复核模块", + "moduleKey": "order.recheckOrder", + "folder": "order.recheckorder", + "method": "order.recheckOrder.scanOrder" + }, + { + "moduleName": "订单配送模块", + "moduleKey": "order.deliveryOrder", + "folder": "order.deliveryorder", + "method": "order.deliveryOrder.detail" + }, + { + "moduleName": "仓库设置模块", + "moduleKey": "setting.warehouse", + "folder": "setting.warehouse", + "method": "setting.warehouse.getSettings" + } + ] } }, "modules": [ @@ -528,7 +640,7 @@ "moduleName": "订单复核模块", "moduleKey": "order.recheckOrder", "folder": "order.recheckorder", - "interfaceCount": 5, + "interfaceCount": 6, "interfaces": [ { "method": "order.recheckOrder.scanOrder" @@ -544,6 +656,9 @@ }, { "method": "order.recheckOrder.scanTask" + }, + { + "method": "order.recheckOrder.batchQuickRecheck" } ] }, @@ -551,7 +666,7 @@ "moduleName": "订单工作台入口模块", "moduleKey": "order.index", "folder": "order.index", - "interfaceCount": 10, + "interfaceCount": 11, "interfaces": [ { "method": "order.list" @@ -577,6 +692,9 @@ { "method": "order.bindExpressPackageMaterial" }, + { + "method": "order.bindExpressPackageMaterialByWaybill" + }, { "method": "order.export" }, 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 215aaa12..f500eba3 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 57cea26f..8e4d7fb2 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 d529e354..0849c27f 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 1a2bca82..222ffb1b 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 b229cfe9..65219061 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 f8497d5e..a9d2210b 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 d53c089d..c49ac87d 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 f4f4bd84..60fa1374 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 ec989007..199e34dd 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 4cb05a02..5108eef8 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 c0cdc2ff..72f72422 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 656c7b28..07ddecbb 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "source": "remote", "filter": { "platform": { @@ -26,7 +26,9 @@ "addedMethods": [], "deletedMethods": [], "paramsUpdatedMethods": [], - "responseUpdatedMethods": [] + "responseUpdatedMethods": [ + "order.deliveryOrder.detail" + ] } } }, @@ -128,31 +130,31 @@ { "name": "order", "type": "object", - "required": false, + "required": true, "description": "订单头对象(raw 行数据)" }, { "name": "detail", "type": "object", - "required": false, + "required": true, "description": "等同于 order" }, { "name": "orderItems / items", "type": "array", - "required": false, + "required": true, "description": "商品明细数组" }, { "name": "expresses", "type": "array", - "required": false, - "description": "运单信息数组" + "required": true, + "description": "运单信息数组,每个元素包含以下字段:waybill_code(运单号,string)、weighing_weight(称重重量,number|null)、sys_logistics_code(系统物流公司编码,string)、sys_logistics_name(系统物流公司名称,string)、logistics_code(实际物流公司编码,string)、logistics_name(实际物流公司名称,string)、logistics_interface_id(物流接口ID,number|null)、business_key(业务标识,string)、created_at(创建时间戳毫秒,number|null)、package_material_id(包材ID,number|null)、package_material_name_snapshot(包材名称快照,string|null)" }, { "name": "waybill_codes", "type": "array", - "required": false, + "required": true, "description": "去重后的运单号字符串数组" } ] 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 6c404fbd..ac44fc8d 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 acfc95a7..6ce08488 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 4eb7bf65..488d8cd8 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 366dde16..9a6daf6e 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 3c633bd7..8512860c 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 caedfa92..1ddfc5e4 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "source": "remote", "filter": { "platform": { @@ -16,17 +16,21 @@ "name": "订单工作台入口模块", "key": "order.index", "folder": "order.index", - "interfaceCount": 10 + "interfaceCount": 11 }, "changes": { "fromPreviousSnapshot": { "moduleAdded": false, "moduleRenamed": false, "interfaceChanges": { - "addedMethods": [], + "addedMethods": [ + "order.bindExpressPackageMaterialByWaybill" + ], "deletedMethods": [], "paramsUpdatedMethods": [], - "responseUpdatedMethods": [] + "responseUpdatedMethods": [ + "order.detail" + ] } } }, @@ -147,7 +151,7 @@ "name": "expresses", "type": "array", "required": true, - "description": "运单信息数组,每个元素包含以下字段:waybill_code(运单号,string)、weighing_weight(称重重量,number|null)、sys_logistics_code(系统物流公司编码,string)、sys_logistics_name(系统物流公司名称,string)、logistics_code(实际物流公司编码,string)、logistics_name(实际物流公司名称,string)、logistics_interface_id(物流接口ID,number|null)、business_key(业务标识,string)、created_at(创建时间戳毫秒,number|null)" + "description": "运单信息数组,每个元素包含以下字段:waybill_code(运单号,string)、weighing_weight(称重重量,number|null)、sys_logistics_code(系统物流公司编码,string)、sys_logistics_name(系统物流公司名称,string)、logistics_code(实际物流公司编码,string)、logistics_name(实际物流公司名称,string)、logistics_interface_id(物流接口ID,number|null)、business_key(业务标识,string)、created_at(创建时间戳毫秒,number|null)、package_material_id(包材ID,number|null)、package_material_name_snapshot(包材名称快照,string|null)" }, { "name": "waybill_codes", @@ -594,6 +598,72 @@ } ] }, + { + "method": "order.bindExpressPackageMaterialByWaybill", + "title": "按运单号绑定包材。仅需传入运单号与包材编码,系统自动根据运单号反查对应订单运单记录并绑定包材,无需传入订单ID。", + "description": "按运单号绑定包材。仅需传入运单号与包材编码,系统自动根据运单号反查对应订单运单记录并绑定包材,无需传入订单ID。", + "endpoint": "/system", + "authRequired": false, + "loginRequired": true, + "status": { + "isUsed": false, + "isPlaceholder": false + }, + "headers": [ + { + "name": "Authorization", + "type": "string", + "required": true, + "description": "Bearer token" + } + ], + "params": [ + { + "name": "waybill_code", + "type": "string", + "required": true, + "description": "运单号,必填。" + }, + { + "name": "package_material_code", + "type": "string", + "required": true, + "description": "包材编码,必填。" + } + ], + "response": [ + { + "name": "order_id", + "type": "number", + "required": true, + "description": "运单号对应的订单ID(成功时返回于 data 对象中)。" + }, + { + "name": "waybill_code", + "type": "string", + "required": true, + "description": "运单号(成功时返回于 data 对象中)。" + }, + { + "name": "package_material_id", + "type": "number", + "required": true, + "description": "绑定后的包材ID(成功时返回于 data 对象中)。" + }, + { + "name": "package_material_name_snapshot", + "type": "string", + "required": true, + "description": "绑定时写入的包材名称快照(成功时返回于 data 对象中)。" + }, + { + "name": "package_material_code", + "type": "string", + "required": true, + "description": "绑定成功的包材编码(成功时返回于 data 对象中)。" + } + ] + }, { "method": "order.export", "title": "提交订单导出任务(异步)。入参支持 table_type/tableType 与 module/module_name;where 与 sort 语义与 order.list 一致。提交后立即返回 task_id,后台异步执行,导出进度/下载请通过 order.exportTaskProgress 查询。", 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 0fd11311..07a4f819 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 8ddf98a4..114ed62f 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 5b3d8c0e..a205d8d9 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 f30a6251..0943afe3 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 dae3c0e9..001d891a 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 10c5862d..7b5ec9b4 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 fbe26e34..a68b7787 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 26249428..4b124a39 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "source": "remote", "filter": { "platform": { @@ -16,17 +16,21 @@ "name": "订单复核模块", "key": "order.recheckOrder", "folder": "order.recheckorder", - "interfaceCount": 5 + "interfaceCount": 6 }, "changes": { "fromPreviousSnapshot": { "moduleAdded": false, "moduleRenamed": false, "interfaceChanges": { - "addedMethods": [], + "addedMethods": [ + "order.recheckOrder.batchQuickRecheck" + ], "deletedMethods": [], "paramsUpdatedMethods": [], - "responseUpdatedMethods": [] + "responseUpdatedMethods": [ + "order.recheckOrder.scanOrder" + ] } } }, @@ -153,7 +157,7 @@ "name": "list", "type": "array", "required": true, - "description": "统一列表输出。散单模式(list_type=single)有波次信息时:扁平订单数组;无波次信息时退回单订单详情模式(每项含 detail、items、expresses、logs)。团购模式(list_type=group):波次视图数组(每项含 wave_id、wave_no、wave_type、wave_status、total_orders、processed_orders、creator、create_time、update_time、order_count、pick_mode、box_no、orders[])" + "description": "统一列表输出。散单模式(list_type=single)有波次信息时:扁平订单数组;无波次信息时退回单订单详情模式(每项含 detail、items、expresses、logs)。团购模式(list_type=group):波次视图数组(每项含 wave_id、wave_no、wave_type、wave_status、total_orders、processed_orders、creator、create_time、update_time、order_count、pick_mode、box_no、order_ids、orders_detail、stocks[])" } ] }, @@ -444,6 +448,60 @@ "description": "统一列表输出。散单模式(list_type=single):扁平订单数组(每项结构与 scanOrder 散单有波次模式一致,含 order_id/delivery_order_code/waybill_no/pick_status/is_printed/is_reviewed/shop_nick/items_count/wave_index/recheck_status/order_type/status/logistics_name/store_remark/intercept_status/stock[])。团购模式(list_type=group):波次视图数组(结构与 scanOrder 团购模式一致,每项含 wave_id/wave_no/wave_type/wave_status/total_orders/processed_orders/creator/create_time/update_time/order_count/pick_mode/box_no/orders[])" } ] + }, + { + "method": "order.recheckOrder.batchQuickRecheck", + "title": "批量快捷复核:传入订单 IDs 列表,对每个有效订单执行前置检查(已分配储位、已分配快递、已同步且未被拦截),必要时自动完成拣货(含库存锁定校验与扣减、库存流水写入、拣货任务状态同步)后标记复核(含复核任务记录、任务复核状态更新、车任务解绑、操作日志)。每个订单在独立事务中执行,支持部分失败,不满足条件的订单跳过并返回原因。", + "description": "批量快捷复核:传入订单 IDs 列表,对每个有效订单执行前置检查(已分配储位、已分配快递、已同步且未被拦截),必要时自动完成拣货(含库存锁定校验与扣减、库存流水写入、拣货任务状态同步)后标记复核(含复核任务记录、任务复核状态更新、车任务解绑、操作日志)。每个订单在独立事务中执行,支持部分失败,不满足条件的订单跳过并返回原因。", + "endpoint": "/system", + "authRequired": false, + "loginRequired": true, + "status": { + "isUsed": false, + "isPlaceholder": false + }, + "headers": [ + { + "name": "Authorization", + "type": "string", + "required": true, + "description": "Bearer token" + } + ], + "params": [ + { + "name": "ids", + "type": "array|string", + "required": true, + "description": "订单 ID 列表,支持数组或以逗号分隔的字符串" + } + ], + "response": [ + { + "name": "success", + "type": "array", + "required": true, + "description": "复核成功的订单列表" + }, + { + "name": "failed", + "type": "array", + "required": true, + "description": "复核失败的订单列表" + }, + { + "name": "success_count", + "type": "number", + "required": true, + "description": "成功数量" + }, + { + "name": "failed_count", + "type": "number", + "required": true, + "description": "失败数量" + } + ] } ] } 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 bdbc102d..45fcd475 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 5e72fed5..9f78441c 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 89bf6edc..3616d33d 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 62c0fb71..bf5a5c05 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 b69a7d9c..6019588d 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 2d2d9fc8..d94d7270 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 fc498eef..b73572fd 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 d7983f50..2451e918 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "source": "remote", "filter": { "platform": { diff --git a/workflows/api-doc-system/data/module/pickcart/_module.lifecycle.json b/workflows/api-doc-system/data/module/pickcart/_module.lifecycle.json index 4792614d..9ccb7062 100644 --- a/workflows/api-doc-system/data/module/pickcart/_module.lifecycle.json +++ b/workflows/api-doc-system/data/module/pickcart/_module.lifecycle.json @@ -6,7 +6,7 @@ }, "status": "active", "createdAt": "2026-06-03 16:55:40", - "updatedAt": "2026-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "deletedAt": null, "restoredAt": null } diff --git a/workflows/api-doc-system/data/module/pickcart/module.json b/workflows/api-doc-system/data/module/pickcart/module.json index b8d78515..3dd85785 100644 --- a/workflows/api-doc-system/data/module/pickcart/module.json +++ b/workflows/api-doc-system/data/module/pickcart/module.json @@ -1,6 +1,6 @@ { - "generatedAt": "2026-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 c9c0141c..b1b19692 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 774e58f0..070b7e1e 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "source": "remote", "filter": { "platform": { 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 4dee33f1..b99279d2 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 de5e68cc..384b37c0 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 cab699d2..a3c49de9 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 7c917543..4ed73b11 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 6158fb60..3ef09309 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 bd48c512..4d078e05 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 e5b5212e..b1216f7e 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 1b1b33db..8dced94d 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 7941653d..232782ad 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 7881c29f..c91288ee 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 f586b03b..844baf54 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 710b6e72..72320184 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 9d8f4787..96d5965b 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 dc385791..c1772f7c 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 9974420e..e2b96c6d 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 8ed67851..df80f659 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 6c287971..faa663a3 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 873c4633..0eee7fd2 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 1ad6dba2..a4a2921a 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 09568c48..fa608ed9 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 3b44ec07..1d829eef 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 59f2c389..f3a53a66 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "source": "remote", "filter": { "platform": { @@ -25,8 +25,12 @@ "interfaceChanges": { "addedMethods": [], "deletedMethods": [], - "paramsUpdatedMethods": [], - "responseUpdatedMethods": [] + "paramsUpdatedMethods": [ + "setting.warehouse.saveSettings" + ], + "responseUpdatedMethods": [ + "setting.warehouse.getSettings" + ] } } }, @@ -69,6 +73,54 @@ "type": "boolean", "required": true, "description": "是否启用外部快递编码;默认 false(关闭)。开启后允许按外部系统传入的快递编码进行处理(如无匹配仍以业务校验为准)" + }, + { + "name": "subject_config.auto_outbound_rules", + "type": "object", + "required": true, + "description": "自动出库规则配置。全部条件满足时自动标记待出库" + }, + { + "name": "subject_config.auto_outbound_rules.enabled", + "type": "boolean", + "required": true, + "description": "是否启用自动出库,默认 false" + }, + { + "name": "subject_config.auto_outbound_rules.require_recheck", + "type": "boolean", + "required": true, + "description": "是否要求已复核(recheck_status=fin),默认 true" + }, + { + "name": "subject_config.auto_outbound_rules.require_pack", + "type": "boolean", + "required": true, + "description": "是否要求已打包(pack_status=fin),默认 true" + }, + { + "name": "subject_config.auto_outbound_rules.require_weigh", + "type": "boolean", + "required": true, + "description": "是否要求已称重(weighing_weight>0),默认 true" + }, + { + "name": "subject_config.auto_outbound_rules.require_sync", + "type": "boolean", + "required": true, + "description": "是否要求已同步(sync_status=fin),默认 true" + }, + { + "name": "subject_config.auto_outbound_rules.require_print", + "type": "boolean", + "required": true, + "description": "是否要求已打印(print_status=fin),默认 true" + }, + { + "name": "subject_config.auto_outbound_rules.require_pick", + "type": "boolean", + "required": true, + "description": "是否要求已拣货(pick_status=fin),默认 true" } ] }, @@ -144,6 +196,54 @@ "type": "boolean", "required": false, "description": "是否启用外部快递编码;默认 false(关闭)。开启后允许按外部系统传入的快递编码进行处理(如无匹配仍以业务校验为准)" + }, + { + "name": "subject_config.auto_outbound_rules", + "type": "object", + "required": false, + "description": "自动出库规则配置。全部条件满足时自动标记待出库" + }, + { + "name": "subject_config.auto_outbound_rules.enabled", + "type": "boolean", + "required": false, + "description": "是否启用自动出库,默认 false" + }, + { + "name": "subject_config.auto_outbound_rules.require_recheck", + "type": "boolean", + "required": false, + "description": "是否要求已复核(recheck_status=fin),默认 true" + }, + { + "name": "subject_config.auto_outbound_rules.require_pack", + "type": "boolean", + "required": false, + "description": "是否要求已打包(pack_status=fin),默认 true" + }, + { + "name": "subject_config.auto_outbound_rules.require_weigh", + "type": "boolean", + "required": false, + "description": "是否要求已称重(weighing_weight>0),默认 true" + }, + { + "name": "subject_config.auto_outbound_rules.require_sync", + "type": "boolean", + "required": false, + "description": "是否要求已同步(sync_status=fin),默认 true" + }, + { + "name": "subject_config.auto_outbound_rules.require_print", + "type": "boolean", + "required": false, + "description": "是否要求已打印(print_status=fin),默认 true" + }, + { + "name": "subject_config.auto_outbound_rules.require_pick", + "type": "boolean", + "required": false, + "description": "是否要求已拣货(pick_status=fin),默认 true" } ], "response": [ 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 a7d0f1e7..78404832 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 2a9e821c..8460d2dd 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 cea3126a..92b04e3a 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 d245d341..d1c07869 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 c01eb7f2..a7583208 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 5630d6bd..58441728 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 d2671a74..fdec8a9f 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 e9c1cadd..5b34202e 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 3200c4ff..8c3fa683 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 8ce585bc..25b3d37a 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 ce9e8d98..6d872cde 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 7bf956b8..2dd44139 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 d74e913d..9490971b 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 61eb29db..5f445dc4 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 c2410163..8f117bfc 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 682849aa..4a2b6c79 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 31865071..db8e9652 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 4040aab6..b6338d9b 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 4f59b366..283760bc 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 9afb0c44..cbad5487 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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 189c596d..2853dd5f 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-06-13 17:11:23", + "updatedAt": "2026-06-15 09:13:10", "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 100d1f36..38367602 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-06-13 17:11:23", - "generatedAtLocal": "2026-06-13 17:11:23", + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", "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..eb058a99 100644 --- a/workflows/api-doc-system/data/pending-updates.json +++ b/workflows/api-doc-system/data/pending-updates.json @@ -1 +1,75 @@ -{} +{ + "generatedAt": "2026-06-15 09:13:10", + "generatedAtLocal": "2026-06-15 09:13:10", + "source": "remote", + "filter": { + "platform": { + "value": "web", + "label": "网页端" + }, + "project": { + "value": "all", + "label": "全部" + } + }, + "summary": { + "moduleAdded": 0, + "moduleDeleted": 0, + "interfaceAdded": 2, + "interfaceDeleted": 0, + "interfaceParamsUpdated": 1, + "interfaceResponseUpdated": 4, + "totalChangedItems": 7 + }, + "interfaceUpdates": { + "added": [ + { + "moduleName": "订单工作台入口模块", + "moduleKey": "order.index", + "folder": "order.index", + "method": "order.bindExpressPackageMaterialByWaybill" + }, + { + "moduleName": "订单复核模块", + "moduleKey": "order.recheckOrder", + "folder": "order.recheckorder", + "method": "order.recheckOrder.batchQuickRecheck" + } + ], + "deleted": [], + "paramsUpdated": [ + { + "moduleName": "仓库设置模块", + "moduleKey": "setting.warehouse", + "folder": "setting.warehouse", + "method": "setting.warehouse.saveSettings" + } + ], + "responseUpdated": [ + { + "moduleName": "订单工作台入口模块", + "moduleKey": "order.index", + "folder": "order.index", + "method": "order.detail" + }, + { + "moduleName": "订单复核模块", + "moduleKey": "order.recheckOrder", + "folder": "order.recheckorder", + "method": "order.recheckOrder.scanOrder" + }, + { + "moduleName": "订单配送模块", + "moduleKey": "order.deliveryOrder", + "folder": "order.deliveryorder", + "method": "order.deliveryOrder.detail" + }, + { + "moduleName": "仓库设置模块", + "moduleKey": "setting.warehouse", + "folder": "setting.warehouse", + "method": "setting.warehouse.getSettings" + } + ] + } +}