5月7日
This commit is contained in:
parent
91f5295b4f
commit
f2fb59d356
BIN
dist.tar.gz
BIN
dist.tar.gz
Binary file not shown.
@ -23,6 +23,99 @@ export type WaveGroupOrderFetchListParams = {
|
||||
return_order_ids?: boolean
|
||||
}
|
||||
|
||||
export type WaveStrategyListParams = {
|
||||
pagination?: {
|
||||
page?: number
|
||||
pageSize?: number
|
||||
currentPage?: number
|
||||
page_size?: number
|
||||
size?: number
|
||||
}
|
||||
}
|
||||
|
||||
export type WaveStrategyCreateParams = {
|
||||
strategy_name: string
|
||||
strategy_type: number
|
||||
batch_mode: number
|
||||
status?: number
|
||||
order_min_sku?: number
|
||||
order_max_sku?: number
|
||||
order_min_qty?: number
|
||||
order_max_qty?: number
|
||||
min_same_structure?: number
|
||||
max_same_structure?: number
|
||||
batch_max_orders?: number
|
||||
batch_max_skus?: number
|
||||
group_batch_max_orders?: number
|
||||
require_same_express?: boolean
|
||||
allow_cross_owner?: boolean
|
||||
description?: string
|
||||
allowed_provinces?: Array<string>
|
||||
allowed_platforms?: Array<string>
|
||||
allowed_owners?: Array<number | string>
|
||||
allowed_expresses?: Array<string>
|
||||
}
|
||||
|
||||
export type WaveStrategyUpdateParams = {
|
||||
id?: number
|
||||
strategy_id?: number
|
||||
strategyId?: number
|
||||
strategy_name?: string
|
||||
strategy_type?: number
|
||||
batch_mode?: number
|
||||
status?: number
|
||||
order_min_sku?: number
|
||||
order_max_sku?: number
|
||||
order_min_qty?: number
|
||||
order_max_qty?: number
|
||||
min_same_structure?: number
|
||||
max_same_structure?: number
|
||||
batch_max_orders?: number
|
||||
batch_max_skus?: number
|
||||
group_batch_max_orders?: number
|
||||
require_same_express?: boolean
|
||||
allow_cross_owner?: boolean
|
||||
description?: string
|
||||
allowed_provinces?: Array<string>
|
||||
allowed_platforms?: Array<string>
|
||||
allowed_owners?: Array<number | string>
|
||||
allowed_expresses?: Array<string>
|
||||
}
|
||||
|
||||
export type WaveStrategyQuickScanParams = {
|
||||
}
|
||||
|
||||
export type WaveStrategyQuickScanResponse = {
|
||||
status: string
|
||||
task_id: string
|
||||
warehouse_id: number
|
||||
state: string
|
||||
message?: string
|
||||
accepted_at: string
|
||||
}
|
||||
|
||||
export type WaveStrategyQuickScanTaskProgressParams = {
|
||||
task_id?: string
|
||||
taskId?: string
|
||||
}
|
||||
|
||||
export type WaveStrategyQuickScanTaskProgressResponse = {
|
||||
task_id: string
|
||||
state: 'submitted' | 'running' | 'success' | 'failed' | 'not_found' | string
|
||||
warehouse_id?: number
|
||||
total_order_count?: number
|
||||
processed_order_count?: number
|
||||
matched_order_count?: number
|
||||
unmatched_order_count?: number
|
||||
progress_percent?: number
|
||||
submitted_at?: string
|
||||
start_time?: string
|
||||
end_time?: string
|
||||
error_message?: string
|
||||
error_code?: string
|
||||
duration_ms?: number
|
||||
}
|
||||
|
||||
export type WaveStrategyFallbackOrderListParams = {
|
||||
pagination?: {
|
||||
page?: number
|
||||
@ -38,6 +131,25 @@ export type WaveStrategyFallbackOrderListParams = {
|
||||
}
|
||||
}
|
||||
|
||||
/** 不符合波次策略订单行;含接口新增的 item_snapshot(商品名称*数量|…) */
|
||||
export type WaveStrategyFallbackOrderListRow = Record<string, unknown> & {
|
||||
item_snapshot?: string
|
||||
}
|
||||
|
||||
export type WaveStrategyFallbackOrderListPagination = {
|
||||
page?: number
|
||||
pageSize?: number
|
||||
total?: number
|
||||
totalPages?: number
|
||||
hasPrevious?: boolean
|
||||
hasNext?: boolean
|
||||
}
|
||||
|
||||
export type WaveStrategyFallbackOrderListResponse = {
|
||||
list: WaveStrategyFallbackOrderListRow[]
|
||||
pagination: WaveStrategyFallbackOrderListPagination
|
||||
}
|
||||
|
||||
export type WaveFetchParams = {
|
||||
structure_list: Array<{
|
||||
item_detail_machine: string
|
||||
@ -239,7 +351,83 @@ export function orderWaveGroupOrderFetchList(data: WaveGroupOrderFetchListParams
|
||||
} as any)
|
||||
}
|
||||
|
||||
export function orderWaveWaveStrategyFallbackOrderList(data: WaveStrategyFallbackOrderListParams = {}): Promise<any> {
|
||||
export function orderWaveWaveStrategyList(data: WaveStrategyListParams = {}): Promise<any> {
|
||||
return request({
|
||||
url: '/system',
|
||||
method: 'post',
|
||||
params: {
|
||||
method: 'order.wave.waveStrategyList',
|
||||
v,
|
||||
timestamp: new Date().getTime()
|
||||
},
|
||||
data,
|
||||
isSystemApi: true
|
||||
} as any)
|
||||
}
|
||||
|
||||
export function orderWaveWaveStrategyCreate(data: WaveStrategyCreateParams): Promise<any> {
|
||||
return request({
|
||||
url: '/system',
|
||||
method: 'post',
|
||||
params: {
|
||||
method: 'order.wave.waveStrategyCreate',
|
||||
v,
|
||||
timestamp: new Date().getTime()
|
||||
},
|
||||
data,
|
||||
isSystemApi: true
|
||||
} as any)
|
||||
}
|
||||
|
||||
export function orderWaveWaveStrategyUpdate(data: WaveStrategyUpdateParams): Promise<any> {
|
||||
return request({
|
||||
url: '/system',
|
||||
method: 'post',
|
||||
params: {
|
||||
method: 'order.wave.waveStrategyUpdate',
|
||||
v,
|
||||
timestamp: new Date().getTime()
|
||||
},
|
||||
data,
|
||||
isSystemApi: true
|
||||
} as any)
|
||||
}
|
||||
|
||||
export function orderWaveWaveStrategyQuickScan(
|
||||
data: WaveStrategyQuickScanParams = {}
|
||||
): Promise<WaveStrategyQuickScanResponse & { code?: number; message?: string }> {
|
||||
return request({
|
||||
url: '/system',
|
||||
method: 'post',
|
||||
params: {
|
||||
method: 'order.wave.waveStrategyQuickScan',
|
||||
v,
|
||||
timestamp: new Date().getTime()
|
||||
},
|
||||
data,
|
||||
isSystemApi: true
|
||||
} as any)
|
||||
}
|
||||
|
||||
export function orderWaveWaveStrategyQuickScanTaskProgress(
|
||||
data: WaveStrategyQuickScanTaskProgressParams
|
||||
): Promise<WaveStrategyQuickScanTaskProgressResponse & { code?: number; message?: string }> {
|
||||
return request({
|
||||
url: '/system',
|
||||
method: 'post',
|
||||
params: {
|
||||
method: 'order.wave.waveStrategyQuickScanTaskProgress',
|
||||
v,
|
||||
timestamp: new Date().getTime()
|
||||
},
|
||||
data,
|
||||
isSystemApi: true
|
||||
} as any)
|
||||
}
|
||||
|
||||
export function orderWaveWaveStrategyFallbackOrderList(
|
||||
data: WaveStrategyFallbackOrderListParams = {}
|
||||
): Promise<WaveStrategyFallbackOrderListResponse & { code?: number; message?: string }> {
|
||||
return request({
|
||||
url: '/system',
|
||||
method: 'post',
|
||||
@ -485,6 +673,11 @@ export function orderWaveBatchRemoveOrders(data: WaveBatchRemoveOrdersParams): P
|
||||
export const orderWave = {
|
||||
batchList: orderWaveBatchList,
|
||||
groupOrderFetchList: orderWaveGroupOrderFetchList,
|
||||
waveStrategyList: orderWaveWaveStrategyList,
|
||||
waveStrategyCreate: orderWaveWaveStrategyCreate,
|
||||
waveStrategyUpdate: orderWaveWaveStrategyUpdate,
|
||||
waveStrategyQuickScan: orderWaveWaveStrategyQuickScan,
|
||||
waveStrategyQuickScanTaskProgress: orderWaveWaveStrategyQuickScanTaskProgress,
|
||||
waveStrategyFallbackOrderList: orderWaveWaveStrategyFallbackOrderList,
|
||||
singleFetchByIds: orderWaveSingleFetchByIds,
|
||||
groupFetch: orderWaveGroupFetch,
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -168,7 +168,8 @@ import {
|
||||
pickToolbarButtons,
|
||||
type ToolbarButtonConfig,
|
||||
translateOrderField,
|
||||
getTagType
|
||||
getTagType,
|
||||
fillExpressCompanyScanFieldOptions
|
||||
} from '@/views/order/orderManagement/config/order-common-config'
|
||||
|
||||
const props = defineProps<{
|
||||
@ -497,29 +498,46 @@ function mapNameOptions(rawList: any[], nameKeys: string[]) {
|
||||
return result
|
||||
}
|
||||
|
||||
/** 与 pendingOrder / deliveryOrder 等页一致:兼容 data 为数组、{ list }、顶层 list */
|
||||
function unwrapIndexListResponse(res: any): any[] {
|
||||
const payload = res?.data !== undefined ? res.data : res
|
||||
if (Array.isArray(payload)) return payload
|
||||
if (payload && typeof payload === 'object') {
|
||||
if (Array.isArray(payload.list)) return payload.list
|
||||
if (Array.isArray(payload.items)) return payload.items
|
||||
if (Array.isArray(payload.records)) return payload.records
|
||||
}
|
||||
if (Array.isArray(res?.list)) return res.list
|
||||
return []
|
||||
}
|
||||
|
||||
async function loadOrderMetaOptions() {
|
||||
try {
|
||||
const [expressRes, platformRes] = await Promise.all([
|
||||
indexApi.getExpressList({}),
|
||||
indexApi.getPlatformList({})
|
||||
])
|
||||
const expressData: any = expressRes?.data
|
||||
const platformData: any = platformRes?.data
|
||||
const expressRaw = expressData?.list || expressData || []
|
||||
const platformRaw = platformData?.list || platformData || []
|
||||
const expressRaw = unwrapIndexListResponse(expressRes)
|
||||
const platformRaw = unwrapIndexListResponse(platformRes)
|
||||
expressCodeOptions.value = mapCodeOptions(expressRaw, ['code', 'logistics_code', 'express_code'], ['name', 'logistics_name', 'express_name'])
|
||||
platformCodeOptions.value = mapCodeOptions(platformRaw, ['code', 'platform_code'], ['name', 'platform_name'])
|
||||
const logisticsField = availableFieldsRef.find((item: any) => item.value === 'logistics_name')
|
||||
if (logisticsField) {
|
||||
logisticsField.options = mapNameOptions(expressRaw, ['name', 'logistics_name', 'express_name'])
|
||||
logisticsField.options = mapNameOptions(expressRaw, ['name', 'logistics_name', 'express_name', 'label'])
|
||||
}
|
||||
fillExpressCompanyScanFieldOptions(availableFieldsRef as any[], expressRaw)
|
||||
const platformField = availableFieldsRef.find((item: any) => item.value === 'sys_platform_name')
|
||||
if (platformField) {
|
||||
platformField.options = mapNameOptions(platformRaw, ['name', 'platform_name'])
|
||||
platformField.options = mapNameOptions(platformRaw, ['name', 'platform_name', 'sys_platform_name', 'label'])
|
||||
}
|
||||
} catch {
|
||||
expressCodeOptions.value = []
|
||||
platformCodeOptions.value = []
|
||||
const logisticsField = availableFieldsRef.find((item: any) => item.value === 'logistics_name')
|
||||
if (logisticsField) logisticsField.options = []
|
||||
fillExpressCompanyScanFieldOptions(availableFieldsRef as any[], [])
|
||||
const platformField = availableFieldsRef.find((item: any) => item.value === 'sys_platform_name')
|
||||
if (platformField) platformField.options = []
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
222
src/views/order/waveOrder/component/WaveBatchDetailPanel.vue
Normal file
222
src/views/order/waveOrder/component/WaveBatchDetailPanel.vue
Normal file
@ -0,0 +1,222 @@
|
||||
<template>
|
||||
<div class="wave-batch-detail">
|
||||
<div v-if="!row" class="empty-tip">请从上方列表中选择一项查看波次明细</div>
|
||||
<template v-else>
|
||||
<div class="section">
|
||||
<div class="section-title">基础信息</div>
|
||||
<el-descriptions :column="4" border size="small">
|
||||
<el-descriptions-item label="波次编号">{{ getWaveCode(row) }}</el-descriptions-item>
|
||||
<el-descriptions-item label="波次类型">{{ getWaveTypeText(row) }}</el-descriptions-item>
|
||||
<el-descriptions-item label="状态">
|
||||
<el-tag size="small" :type="getStatusTagType(row)">{{ getStatusText(row) }}</el-tag>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="仓库ID">{{ row.warehouse_id ?? '—' }}</el-descriptions-item>
|
||||
<el-descriptions-item label="订单数量">{{ getOrderCount(row) }}</el-descriptions-item>
|
||||
<el-descriptions-item label="已处理订单">{{ getProcessedOrders(row) }}</el-descriptions-item>
|
||||
<el-descriptions-item label="快递">{{ row.logistics_name || '—' }}</el-descriptions-item>
|
||||
<el-descriptions-item label="创建人">{{ row.creator || row.creator_name || '—' }}</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<div class="section-title">分配状态</div>
|
||||
<el-descriptions :column="3" border size="small">
|
||||
<el-descriptions-item label="库位分配状态">{{ getStorageAssignmentStatusText(row) }}</el-descriptions-item>
|
||||
<el-descriptions-item label="快递分配状态">{{ row.express_assignment_status || '—' }}</el-descriptions-item>
|
||||
<el-descriptions-item label="打印分配状态">{{ row.print_assignment_status || '—' }}</el-descriptions-item>
|
||||
<el-descriptions-item label="库位分配异常" :span="3">{{ getStorageAssignmentError(row) }}</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<div class="section-title">结构与订单信息</div>
|
||||
<el-descriptions :column="2" border size="small">
|
||||
<el-descriptions-item label="商品结构快照" :span="2">{{ getItemSnapshotText(row) }}</el-descriptions-item>
|
||||
<el-descriptions-item label="订单信息" :span="2">{{ getOrderInfoSummary(row) }}</el-descriptions-item>
|
||||
<el-descriptions-item label="订单列表" :span="2">{{ getOrderListPreview(row) }}</el-descriptions-item>
|
||||
<el-descriptions-item label="创建时间">{{ formatDateTime(row.create_time || row.created_at || row.create_at) }}</el-descriptions-item>
|
||||
<el-descriptions-item label="更新时间">{{ formatDateTime(row.update_time || row.updated_at || row.update_at) }}</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
waveStatusTextMap,
|
||||
waveStorageAssignmentErrorPhraseMap,
|
||||
waveStorageAssignmentErrorTextMap,
|
||||
waveStorageAssignmentStatusTextMap,
|
||||
waveTypeTextMap
|
||||
} from '../config/wave-config'
|
||||
|
||||
defineProps<{
|
||||
row: Record<string, any> | null
|
||||
}>()
|
||||
|
||||
function getWaveCode(row: any) {
|
||||
return row?.wave_code || row?.batch_code || row?.wave_no || row?.batch_no || row?.code || row?.id || '—'
|
||||
}
|
||||
|
||||
function getStatusValue(row: any) {
|
||||
return row?.status ?? row?.wave_status ?? row?.batch_status
|
||||
}
|
||||
|
||||
function getStatusText(row: any) {
|
||||
const value = getStatusValue(row)
|
||||
return waveStatusTextMap[String(value)] || (value ?? '—')
|
||||
}
|
||||
|
||||
function getStatusTagType(row: any) {
|
||||
const value = String(getStatusValue(row) ?? '')
|
||||
if (value === '-1' || value === 'cancelled') return 'danger'
|
||||
if (value === '0' || value === 'pending') return 'warning'
|
||||
if (value === '1' || value === '2' || value === 'assigned') return 'success'
|
||||
if (value === '3' || value === '4') return 'primary'
|
||||
if (value === '5' || value === '6') return 'info'
|
||||
return 'info'
|
||||
}
|
||||
|
||||
function getWaveTypeText(row: any) {
|
||||
const value = String(row?.wave_type ?? '')
|
||||
return waveTypeTextMap[value] || (value || '—')
|
||||
}
|
||||
|
||||
function getOrderCount(row: any) {
|
||||
return row?.order_count ?? row?.total_orders ?? row?.total_order_count ?? row?.orders_count ?? row?.count ?? 0
|
||||
}
|
||||
|
||||
function getProcessedOrders(row: any) {
|
||||
return row?.processed_orders ?? row?.done_orders ?? 0
|
||||
}
|
||||
|
||||
function getStorageAssignmentStatusText(row: any) {
|
||||
const rawValue = row?.storage_assignment_status
|
||||
const text = String(rawValue ?? '').trim()
|
||||
if (!text) return '—'
|
||||
const normalized = text.toLowerCase()
|
||||
if (waveStorageAssignmentStatusTextMap[normalized] !== undefined) {
|
||||
return waveStorageAssignmentStatusTextMap[normalized]
|
||||
}
|
||||
return text
|
||||
}
|
||||
|
||||
function translateStorageAssignmentErrorValue(value: unknown) {
|
||||
const text = String(value ?? '').trim()
|
||||
if (!text) return '—'
|
||||
|
||||
const normalized = text.toLowerCase()
|
||||
if (waveStorageAssignmentErrorTextMap[normalized] !== undefined) {
|
||||
return waveStorageAssignmentErrorTextMap[normalized]
|
||||
}
|
||||
|
||||
if (/[\u4e00-\u9fa5]/.test(text)) {
|
||||
return text
|
||||
}
|
||||
|
||||
let translated = text.replace(/[_-]+/g, ' ')
|
||||
for (const [pattern, replacement] of waveStorageAssignmentErrorPhraseMap) {
|
||||
translated = translated.replace(pattern, replacement)
|
||||
}
|
||||
|
||||
translated = translated.replace(/\s+/g, ' ').trim()
|
||||
return translated || text
|
||||
}
|
||||
|
||||
function getStorageAssignmentError(row: any) {
|
||||
return translateStorageAssignmentErrorValue(
|
||||
row?.storage_assignment_error
|
||||
|| row?.storage_assignment_exception
|
||||
|| row?.storage_assignment_error_message
|
||||
|| row?.storage_error
|
||||
|| row?.storage_error_message
|
||||
|| '—'
|
||||
)
|
||||
}
|
||||
|
||||
function getItemSnapshotText(row: any) {
|
||||
return row?.item_snapshot_key || row?.item_detail_machine || row?.item_detail || '—'
|
||||
}
|
||||
|
||||
function getOrderInfoSummary(row: any) {
|
||||
if (Array.isArray(row?.order_list) && row.order_list.length) {
|
||||
const preview = row.order_list
|
||||
.slice(0, 6)
|
||||
.map((item: any) => item.delivery_order_code || item.order_no || item.order_number || item.id)
|
||||
.filter(Boolean)
|
||||
return row.order_list.length > 6 ? `${preview.join(',')} 等 ${row.order_list.length} 单` : preview.join(',')
|
||||
}
|
||||
const info = row?.order_info || row?.order_summary || row?.orders_summary
|
||||
if (typeof info === 'string' && info.trim()) return info
|
||||
if (Array.isArray(info) && info.length) return info.join(',')
|
||||
if (Array.isArray(row?.orders) && row.orders.length) {
|
||||
return row.orders.map((item: any) => item.order_sn || item.order_no || item.order_number || item.id).filter(Boolean).join(',')
|
||||
}
|
||||
return '—'
|
||||
}
|
||||
|
||||
function getOrderListPreview(row: any) {
|
||||
if (!Array.isArray(row?.order_list) || row.order_list.length === 0) {
|
||||
return '—'
|
||||
}
|
||||
return row.order_list
|
||||
.map((item: any) => {
|
||||
const code = item.delivery_order_code || item.order_no || item.order_number || item.id
|
||||
const storage = item.storage_status || '—'
|
||||
const post = item.post_status || '—'
|
||||
return `${code}(库位:${storage}, 快递:${post})`
|
||||
})
|
||||
.join(';')
|
||||
}
|
||||
|
||||
function formatDateTime(value: string | number | null | undefined) {
|
||||
if (!value) return '—'
|
||||
let normalizedValue: string | number = value
|
||||
if (typeof value === 'string' && /^\d+$/.test(value.trim())) {
|
||||
const numericValue = Number(value.trim())
|
||||
normalizedValue = value.trim().length <= 10 ? numericValue * 1000 : numericValue
|
||||
} else if (typeof value === 'number' && Number.isFinite(value) && value > 0 && value < 1000000000000) {
|
||||
normalizedValue = value * 1000
|
||||
}
|
||||
|
||||
const date = new Date(normalizedValue)
|
||||
if (Number.isNaN(date.getTime())) return String(value)
|
||||
const y = date.getFullYear()
|
||||
const m = String(date.getMonth() + 1).padStart(2, '0')
|
||||
const d = String(date.getDate()).padStart(2, '0')
|
||||
const hh = String(date.getHours()).padStart(2, '0')
|
||||
const mm = String(date.getMinutes()).padStart(2, '0')
|
||||
const ss = String(date.getSeconds()).padStart(2, '0')
|
||||
return `${y}-${m}-${d} ${hh}:${mm}:${ss}`
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.wave-batch-detail {
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
padding: 10px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.section {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
margin-bottom: 8px;
|
||||
color: #606266;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.empty-tip {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #909399;
|
||||
font-size: 13px;
|
||||
}
|
||||
</style>
|
||||
@ -49,10 +49,10 @@ export const waveAvailableFields = [
|
||||
},
|
||||
{ label: '创建人', value: 'creator', type: 'text' },
|
||||
{ label: '快递', value: 'logistics_name', type: 'text' },
|
||||
{ label: '商品类型', value: 'item_part_type', type: 'text' },
|
||||
{ label: '商品部位', value: 'item_part', type: 'text' },
|
||||
{ label: '商品快照键', value: 'item_snapshot_key', type: 'text' },
|
||||
{ label: '商品结构', value: 'item_detail_machine', type: 'text' },
|
||||
// { label: '商品类型', value: 'item_part_type', type: 'text' },
|
||||
// { label: '商品部位', value: 'item_part', type: 'text' },
|
||||
// { label: '商品快照键', value: 'item_snapshot_key', type: 'text' },
|
||||
// { label: '商品结构', value: 'item_detail_machine', type: 'text' },
|
||||
{
|
||||
label: '区分快递',
|
||||
value: 'distinguish_express',
|
||||
@ -65,7 +65,7 @@ export const waveAvailableFields = [
|
||||
{label:'库位分配', value: 'storage_assignment_status', type: 'select', options: [
|
||||
{ label: '未分配', value: '未分配' },
|
||||
{ label: '部分分配', value: '部分分配' },
|
||||
{ label: '已分配', value: '已分配' }
|
||||
{ label: '已分配', value: '已分配' },
|
||||
]},
|
||||
{label:'快递分配', value: 'express_assignment_status', type: 'select', options: [
|
||||
{ label: '未分配', value: 'none' },
|
||||
@ -122,6 +122,8 @@ export const waveWhereAllowedFieldList = [
|
||||
'item_detail_machine',
|
||||
'distinguish_express',
|
||||
'storage_assignment_status',
|
||||
'express_assignment_status',
|
||||
'print_assignment_status',
|
||||
'total_orders_min',
|
||||
'total_orders_max',
|
||||
'processed_orders_min',
|
||||
@ -233,3 +235,95 @@ export function getWaveToolbarButtons(waveType: 1 | 2): WaveToolbarButtonConfig[
|
||||
(b) => b.onlyForWaveType === undefined || b.onlyForWaveType === waveType
|
||||
)
|
||||
}
|
||||
|
||||
/** 异步任务状态文案 */
|
||||
export const waveFetchTaskStatusTextMap: Record<string, string> = {
|
||||
submitted: '已受理',
|
||||
running: '进行中',
|
||||
success: '成功',
|
||||
failed: '失败',
|
||||
not_found: '未找到'
|
||||
}
|
||||
|
||||
/** 波次状态文案 */
|
||||
export const waveStatusTextMap: Record<string, string> = {
|
||||
'-1': '已取消',
|
||||
'0': '自动加团中',
|
||||
'1': '已就绪',
|
||||
'2': '已打印',
|
||||
'3': '拣货中',
|
||||
'4': '拣货完成',
|
||||
'5': '复核完成',
|
||||
'6': '打包完成',
|
||||
cancelled: '已取消',
|
||||
pending: '自动加团中',
|
||||
assigned: '已就绪'
|
||||
}
|
||||
|
||||
/** 波次类型文案 */
|
||||
export const waveTypeTextMap: Record<string, string> = {
|
||||
'1': '团购',
|
||||
'2': '散单'
|
||||
}
|
||||
|
||||
/** 库位分配状态文案 */
|
||||
export const waveStorageAssignmentStatusTextMap: Record<string, string> = {
|
||||
none: '未分配',
|
||||
no_error: '未分配',
|
||||
pending: '处理中',
|
||||
padding: '处理中',
|
||||
processing: '处理中',
|
||||
running: '处理中',
|
||||
success: '已分配',
|
||||
succeeded: '已分配',
|
||||
fin: '已分配',
|
||||
finished: '已分配',
|
||||
done: '已分配',
|
||||
completed: '已分配',
|
||||
partial: '部分分配',
|
||||
partial_failed: '部分分配',
|
||||
error: '分配异常',
|
||||
failed: '分配异常',
|
||||
exception: '分配异常',
|
||||
timeout: '处理超时',
|
||||
not_found: '未找到'
|
||||
}
|
||||
|
||||
/** 库位分配异常文案 */
|
||||
export const waveStorageAssignmentErrorTextMap: Record<string, string> = {
|
||||
none: '无',
|
||||
no_error: '无',
|
||||
no_exception: '无',
|
||||
success: '无',
|
||||
succeeded: '无',
|
||||
fin: '无',
|
||||
finished: '无',
|
||||
done: '无',
|
||||
completed: '无',
|
||||
pending: '处理中',
|
||||
padding: '处理中',
|
||||
processing: '处理中',
|
||||
running: '处理中',
|
||||
error: '分配异常',
|
||||
failed: '分配失败',
|
||||
exception: '分配异常',
|
||||
timeout: '处理超时',
|
||||
not_found: '未找到',
|
||||
partial: '部分异常',
|
||||
partial_failed: '部分异常'
|
||||
}
|
||||
|
||||
/** 库位分配异常短语翻译规则 */
|
||||
export const waveStorageAssignmentErrorPhraseMap: Array<[RegExp, string]> = [
|
||||
[/storage assignment/gi, '库位分配'],
|
||||
[/assignment/gi, '分配'],
|
||||
[/storage/gi, '库位'],
|
||||
[/error/gi, '异常'],
|
||||
[/failed/gi, '失败'],
|
||||
[/exception/gi, '异常'],
|
||||
[/timeout/gi, '超时'],
|
||||
[/pending|padding|processing|running/gi, '处理中'],
|
||||
[/partial/gi, '部分'],
|
||||
[/not found/gi, '未找到'],
|
||||
[/none|success|succeeded|finished|completed|done|fin/gi, '无']
|
||||
]
|
||||
|
||||
@ -8,139 +8,123 @@
|
||||
"message": "登录成功",
|
||||
"success": true,
|
||||
"data": {
|
||||
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MywidXNlcm5hbWUiOiJ5am0iLCJyZWFsX25hbWUiOiJ5aW4iLCJwbGF0Zm9ybV9jb2RlIjoid2ViIiwiY3VycmVudF9yb2xlX2lkIjozMSwiY3VycmVudF9zdG9yZV9pZCI6MTAwMDAwLCJpYXQiOjE3NzgwNTgxMTQsImV4cCI6MTc3ODA3MjUxNH0.i_XWXCEuBLQ3o4-AFxznOoUob7PXTf3Vf2i-t6qZTTg"
|
||||
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MywidXNlcm5hbWUiOiJ5am0iLCJyZWFsX25hbWUiOiJ5aW4iLCJwbGF0Zm9ybV9jb2RlIjoid2ViIiwiY3VycmVudF9yb2xlX2lkIjozMSwiY3VycmVudF9zdG9yZV9pZCI6MTAwMDAwLCJpYXQiOjE3NzgxNDMxNzYsImV4cCI6MTc3ODE1NzU3Nn0.j1apW5TxvynIiRnamXaNGbs7SqNc9_qKHgE0xkY-9ps"
|
||||
},
|
||||
"timestamp": 1778058114
|
||||
"timestamp": 1778143176
|
||||
}
|
||||
},
|
||||
{
|
||||
"接口": "setting.warehouse.getSettings",
|
||||
"data": {
|
||||
"flag": "success",
|
||||
"code": 1,
|
||||
"message": "ok",
|
||||
"warehouse_id": 100000,
|
||||
"subject_config": {
|
||||
"group_wave_prefix": "B",
|
||||
"max_wave_quantity": 500,
|
||||
"default_express_code": "STO",
|
||||
"auto_grouping_enabled": false,
|
||||
"default_platform_code": "TB",
|
||||
"delete_order_wave_prefix": "A",
|
||||
"max_notice_webhook_count": 5,
|
||||
"min_group_order_fetch_quantity": 13
|
||||
},
|
||||
"timestamp": 1778058114
|
||||
}
|
||||
},
|
||||
{
|
||||
"接口": "setting.warehouse.getFieldMeta",
|
||||
"接口": "order.wave.waveStrategyList",
|
||||
"data": {
|
||||
"flag": "success",
|
||||
"code": 1,
|
||||
"message": "ok",
|
||||
"list": [
|
||||
{
|
||||
"key": "max_notice_webhook_count",
|
||||
"name": "最大通知 Webhook 次数",
|
||||
"type": "integer",
|
||||
"default": 5,
|
||||
"required": false,
|
||||
"description": "单次事件最多触发的 Webhook 通知次数(0-5)",
|
||||
"min": 0,
|
||||
"max": 5
|
||||
"id": 1,
|
||||
"strategy_name": "测试策略-单品单件",
|
||||
"warehouse_id": 100000,
|
||||
"strategy_type": 1,
|
||||
"status": 1,
|
||||
"order_min_sku": 1,
|
||||
"order_max_sku": 1,
|
||||
"order_min_qty": 1,
|
||||
"order_max_qty": 1,
|
||||
"min_same_structure": 1,
|
||||
"max_same_structure": 1,
|
||||
"require_same_express": 1,
|
||||
"allow_cross_owner": 1,
|
||||
"batch_mode": 1,
|
||||
"batch_max_orders": 200,
|
||||
"batch_max_skus": 200,
|
||||
"group_batch_max_orders": 1,
|
||||
"allowed_owners": null,
|
||||
"allowed_expresses": null,
|
||||
"allowed_provinces": null,
|
||||
"allowed_platforms": null,
|
||||
"description": null,
|
||||
"creator_name": "阿猫",
|
||||
"create_time": "2026-05-07T15:42:01.000Z",
|
||||
"update_time": "2026-05-07T16:25:12.000Z"
|
||||
},
|
||||
{
|
||||
"key": "max_wave_quantity",
|
||||
"name": "仓库波次最大数量限制",
|
||||
"type": "integer",
|
||||
"default": 500,
|
||||
"required": false,
|
||||
"description": "控制单个波次允许的最大订单数量,默认 500",
|
||||
"min": 1
|
||||
"id": 3,
|
||||
"strategy_name": "测试策略-边捡边分",
|
||||
"warehouse_id": 100000,
|
||||
"strategy_type": 1,
|
||||
"status": 0,
|
||||
"order_min_sku": 1,
|
||||
"order_max_sku": 999,
|
||||
"order_min_qty": 1,
|
||||
"order_max_qty": 999,
|
||||
"min_same_structure": 1,
|
||||
"max_same_structure": 999,
|
||||
"require_same_express": 0,
|
||||
"allow_cross_owner": 1,
|
||||
"batch_mode": 1,
|
||||
"batch_max_orders": 20,
|
||||
"batch_max_skus": 50,
|
||||
"group_batch_max_orders": 1,
|
||||
"allowed_owners": null,
|
||||
"allowed_expresses": null,
|
||||
"allowed_provinces": null,
|
||||
"allowed_platforms": null,
|
||||
"description": null,
|
||||
"creator_name": null,
|
||||
"create_time": "2026-05-07T15:42:01.000Z",
|
||||
"update_time": "2026-05-07T16:22:54.000Z"
|
||||
},
|
||||
{
|
||||
"key": "min_group_order_fetch_quantity",
|
||||
"name": "最小团购订单抓取数量",
|
||||
"type": "integer",
|
||||
"default": 13,
|
||||
"required": false,
|
||||
"description": "控制团购波次最小抓取订单数量,默认 13",
|
||||
"min": 1
|
||||
},
|
||||
{
|
||||
"key": "default_express_code",
|
||||
"name": "默认快递编码",
|
||||
"type": "string",
|
||||
"default": "STO",
|
||||
"required": false,
|
||||
"description": "仓库默认使用的快递编码",
|
||||
"maxLength": 50
|
||||
},
|
||||
{
|
||||
"key": "default_platform_code",
|
||||
"name": "默认平台编码",
|
||||
"type": "string",
|
||||
"default": "TB",
|
||||
"required": false,
|
||||
"description": "仓库默认使用的平台编码",
|
||||
"maxLength": 50
|
||||
},
|
||||
{
|
||||
"key": "group_wave_prefix",
|
||||
"name": "团购波次前缀",
|
||||
"type": "string",
|
||||
"default": "B",
|
||||
"required": false,
|
||||
"description": "团购波次编号前缀,最多 5 个字符,默认 B",
|
||||
"maxLength": 5
|
||||
},
|
||||
{
|
||||
"key": "delete_order_wave_prefix",
|
||||
"name": "删单波次前缀",
|
||||
"type": "string",
|
||||
"default": "A",
|
||||
"required": false,
|
||||
"description": "删单波次编号前缀,最多 5 个字符,默认 A",
|
||||
"maxLength": 5
|
||||
},
|
||||
{
|
||||
"key": "webhook_enabled",
|
||||
"name": "是否启用 Webhook",
|
||||
"type": "flag",
|
||||
"default": false,
|
||||
"required": false,
|
||||
"description": "控制仓库是否启用 Webhook 事件推送"
|
||||
},
|
||||
{
|
||||
"key": "callback_strategy",
|
||||
"name": "回调策略",
|
||||
"type": "enum",
|
||||
"default": "async",
|
||||
"required": false,
|
||||
"description": "仓库 Webhook 事件的回调执行策略",
|
||||
"options": [
|
||||
{
|
||||
"value": "sync",
|
||||
"label": "同步回调"
|
||||
},
|
||||
{
|
||||
"value": "async",
|
||||
"label": "异步回调"
|
||||
}
|
||||
]
|
||||
"id": 2,
|
||||
"strategy_name": "测试策略-先拣后分",
|
||||
"warehouse_id": 100000,
|
||||
"strategy_type": 1,
|
||||
"status": 0,
|
||||
"order_min_sku": 1,
|
||||
"order_max_sku": 999,
|
||||
"order_min_qty": 1,
|
||||
"order_max_qty": 999,
|
||||
"min_same_structure": 1,
|
||||
"max_same_structure": 999,
|
||||
"require_same_express": 0,
|
||||
"allow_cross_owner": 1,
|
||||
"batch_mode": 1,
|
||||
"batch_max_orders": 20,
|
||||
"batch_max_skus": 50,
|
||||
"group_batch_max_orders": 1,
|
||||
"allowed_owners": null,
|
||||
"allowed_expresses": null,
|
||||
"allowed_provinces": null,
|
||||
"allowed_platforms": null,
|
||||
"description": null,
|
||||
"creator_name": null,
|
||||
"create_time": "2026-05-07T15:42:01.000Z",
|
||||
"update_time": "2026-05-07T16:22:53.000Z"
|
||||
}
|
||||
],
|
||||
"timestamp": 1778058114
|
||||
"pagination": {
|
||||
"page": 1,
|
||||
"pageSize": 20,
|
||||
"total": 3,
|
||||
"totalPages": 1,
|
||||
"hasPrevious": false,
|
||||
"hasNext": false
|
||||
},
|
||||
"timestamp": 1778143176
|
||||
}
|
||||
},
|
||||
{
|
||||
"接口": "setting.warehouse.saveSettings",
|
||||
"接口": "order.wave.waveStrategyQuickScan",
|
||||
"data": {
|
||||
"flag": "failure",
|
||||
"code": 400,
|
||||
"message": "subject_config 参数不能为空且必须是对象",
|
||||
"timestamp": 1778058114
|
||||
"flag": "success",
|
||||
"code": 1,
|
||||
"message": "Quick scan task submitted. Check progress with order.wave.waveStrategyQuickScanTaskProgress",
|
||||
"status": "success",
|
||||
"task_id": "wave_quick_scan_100000_1778143176_1onh",
|
||||
"warehouse_id": 100000,
|
||||
"state": "submitted",
|
||||
"accepted_at": "2026-05-07T08:39:36.452Z",
|
||||
"timestamp": 1778143176
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
# 接口
|
||||
|
||||
- 更新时间: 2026-05-06 15:05:40
|
||||
- 更新时间: 2026-05-07 17:25:00
|
||||
- 扫描目录: `src\api`
|
||||
- 模块数: 34
|
||||
- API 文件数: 34
|
||||
- 接口数: 268
|
||||
- 已启用: 238
|
||||
- 接口数: 275
|
||||
- 已启用: 244
|
||||
- 占位接口: 2
|
||||
|
||||
## 模块统计
|
||||
@ -25,7 +25,7 @@
|
||||
| order.pendingorder | 1 | 16 | 16 | 0 |
|
||||
| order.print | 1 | 1 | 1 | 0 |
|
||||
| order.revieworder | 1 | 3 | 3 | 0 |
|
||||
| order.wave | 1 | 17 | 17 | 0 |
|
||||
| order.wave | 1 | 24 | 23 | 0 |
|
||||
| pick | 1 | 1 | 1 | 0 |
|
||||
| print | 1 | 13 | 12 | 1 |
|
||||
| printer.station | 1 | 11 | 1 | 0 |
|
||||
@ -130,9 +130,16 @@
|
||||
| order.wave | orderWaveBatchRemoveOrders | order.wave.batchRemoveOrders | POST | 是 | 否 | order.wave/orderwave.ts | |
|
||||
| order.wave | orderWaveFetch | order.wave.fetch | POST | 是 | 否 | order.wave/orderwave.ts | |
|
||||
| order.wave | orderWaveFetchTaskProgress | order.wave.fetchTaskProgress | POST | 是 | 否 | order.wave/orderwave.ts | |
|
||||
| order.wave | orderWaveGroupFetch | order.wave.groupFetch | POST | 是 | 否 | order.wave/orderwave.ts | |
|
||||
| order.wave | orderWaveGroupOrderFetchList | order.wave.groupOrderFetchList | POST | 是 | 否 | order.wave/orderwave.ts | |
|
||||
| order.wave | orderWaveSingleFetchByIds | order.wave.singleFetchByIds | POST | 是 | 否 | order.wave/orderwave.ts | |
|
||||
| order.wave | orderWaveSingleOrderFetchList | order.wave.singleOrderFetchList | POST | 是 | 否 | order.wave/orderwave.ts | |
|
||||
| order.wave | orderWaveSingleOrderFetchList | order.wave.singleOrderFetchList | POST | 否 | 否 | order.wave/orderwave.ts | |
|
||||
| order.wave | orderWaveWaveStrategyCreate | order.wave.waveStrategyCreate | POST | 是 | 否 | order.wave/orderwave.ts | |
|
||||
| order.wave | orderWaveWaveStrategyFallbackOrderList | order.wave.waveStrategyFallbackOrderList | POST | 是 | 否 | order.wave/orderwave.ts | |
|
||||
| order.wave | orderWaveWaveStrategyList | order.wave.waveStrategyList | POST | 是 | 否 | order.wave/orderwave.ts | |
|
||||
| order.wave | orderWaveWaveStrategyQuickScan | order.wave.waveStrategyQuickScan | POST | 是 | 否 | order.wave/orderwave.ts | |
|
||||
| order.wave | orderWaveWaveStrategyQuickScanTaskProgress | order.wave.waveStrategyQuickScanTaskProgress | POST | 是 | 否 | order.wave/orderwave.ts | |
|
||||
| order.wave | orderWaveWaveStrategyUpdate | order.wave.waveStrategyUpdate | POST | 是 | 否 | order.wave/orderwave.ts | |
|
||||
| pick | pickQuery | pick.query | POST | 是 | 否 | pick/pick.ts | |
|
||||
| print | getExpressList | index.getExpressList | POST | 否 | 否 | print/print.ts | |
|
||||
| print | add | print.add | POST | 是 | 否 | print/print.ts | |
|
||||
|
||||
@ -8,15 +8,27 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "setting.warehouse.getSettings",
|
||||
"method": "order.wave.waveStrategyList",
|
||||
"body": {}
|
||||
},
|
||||
{
|
||||
"method": "setting.warehouse.getFieldMeta",
|
||||
"method": "order.wave.waveStrategyQuickScan",
|
||||
"body": {}
|
||||
},
|
||||
{
|
||||
"method": "setting.warehouse.saveSettings",
|
||||
"method": "",
|
||||
"body": {}
|
||||
},
|
||||
{
|
||||
"method": "",
|
||||
"body": {}
|
||||
},
|
||||
{
|
||||
"method": "",
|
||||
"body": {}
|
||||
},
|
||||
{
|
||||
"method": "",
|
||||
"body": {}
|
||||
}
|
||||
],
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
{
|
||||
"数据一览": {
|
||||
"当前请求数": 4,
|
||||
"成功数": 3,
|
||||
"全部请求数": 4,
|
||||
"成功数与全部请求数": "3/4",
|
||||
"当前请求数": 3,
|
||||
"成功数": 2,
|
||||
"全部请求数": 3,
|
||||
"成功数与全部请求数": "2/3",
|
||||
"成功判定名单": [
|
||||
"ok",
|
||||
"成功",
|
||||
@ -14,14 +14,14 @@
|
||||
],
|
||||
"失败接口": [
|
||||
{
|
||||
"接口": "setting.warehouse.saveSettings",
|
||||
"message": "subject_config 参数不能为空且必须是对象",
|
||||
"code": 400,
|
||||
"模块目录": "setting.warehouse",
|
||||
"接口": "order.wave.waveStrategyQuickScan",
|
||||
"message": "Quick scan task submitted. Check progress with order.wave.waveStrategyQuickScanTaskProgress",
|
||||
"code": 1,
|
||||
"模块目录": "order.wave",
|
||||
"api封装": [
|
||||
{
|
||||
"文件": "src/api/setting.warehouse/settingwarehouse.ts",
|
||||
"方法名": "settingWarehouse.saveSettings",
|
||||
"文件": "src/api/order.wave/orderwave.ts",
|
||||
"方法名": "orderWave.waveStrategyQuickScan",
|
||||
"说明": "聚合对象方法"
|
||||
}
|
||||
],
|
||||
@ -41,35 +41,13 @@
|
||||
"message": "登录成功",
|
||||
"success": true,
|
||||
"data": {
|
||||
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MywidXNlcm5hbWUiOiJ5am0iLCJyZWFsX25hbWUiOiJ5aW4iLCJwbGF0Zm9ybV9jb2RlIjoid2ViIiwiY3VycmVudF9yb2xlX2lkIjozMSwiY3VycmVudF9zdG9yZV9pZCI6MTAwMDAwLCJpYXQiOjE3NzgwNTgxMTQsImV4cCI6MTc3ODA3MjUxNH0.i_XWXCEuBLQ3o4-AFxznOoUob7PXTf3Vf2i-t6qZTTg"
|
||||
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MywidXNlcm5hbWUiOiJ5am0iLCJyZWFsX25hbWUiOiJ5aW4iLCJwbGF0Zm9ybV9jb2RlIjoid2ViIiwiY3VycmVudF9yb2xlX2lkIjozMSwiY3VycmVudF9zdG9yZV9pZCI6MTAwMDAwLCJpYXQiOjE3NzgxNDMxNzYsImV4cCI6MTc3ODE1NzU3Nn0.j1apW5TxvynIiRnamXaNGbs7SqNc9_qKHgE0xkY-9ps"
|
||||
},
|
||||
"timestamp": 1778058114
|
||||
"timestamp": 1778143176
|
||||
}
|
||||
},
|
||||
{
|
||||
"接口": "setting.warehouse.getSettings",
|
||||
"message": "ok",
|
||||
"code": 1,
|
||||
"data": {
|
||||
"flag": "success",
|
||||
"code": 1,
|
||||
"message": "ok",
|
||||
"warehouse_id": 100000,
|
||||
"subject_config": {
|
||||
"group_wave_prefix": "B",
|
||||
"max_wave_quantity": 500,
|
||||
"default_express_code": "STO",
|
||||
"auto_grouping_enabled": false,
|
||||
"default_platform_code": "TB",
|
||||
"delete_order_wave_prefix": "A",
|
||||
"max_notice_webhook_count": 5,
|
||||
"min_group_order_fetch_quantity": 13
|
||||
},
|
||||
"timestamp": 1778058114
|
||||
}
|
||||
},
|
||||
{
|
||||
"接口": "setting.warehouse.getFieldMeta",
|
||||
"接口": "order.wave.waveStrategyList",
|
||||
"message": "ok",
|
||||
"code": 1,
|
||||
"data": {
|
||||
@ -78,108 +56,112 @@
|
||||
"message": "ok",
|
||||
"list": [
|
||||
{
|
||||
"key": "max_notice_webhook_count",
|
||||
"name": "最大通知 Webhook 次数",
|
||||
"type": "integer",
|
||||
"default": 5,
|
||||
"required": false,
|
||||
"description": "单次事件最多触发的 Webhook 通知次数(0-5)",
|
||||
"min": 0,
|
||||
"max": 5
|
||||
"id": 1,
|
||||
"strategy_name": "测试策略-单品单件",
|
||||
"warehouse_id": 100000,
|
||||
"strategy_type": 1,
|
||||
"status": 1,
|
||||
"order_min_sku": 1,
|
||||
"order_max_sku": 1,
|
||||
"order_min_qty": 1,
|
||||
"order_max_qty": 1,
|
||||
"min_same_structure": 1,
|
||||
"max_same_structure": 1,
|
||||
"require_same_express": 1,
|
||||
"allow_cross_owner": 1,
|
||||
"batch_mode": 1,
|
||||
"batch_max_orders": 200,
|
||||
"batch_max_skus": 200,
|
||||
"group_batch_max_orders": 1,
|
||||
"allowed_owners": null,
|
||||
"allowed_expresses": null,
|
||||
"allowed_provinces": null,
|
||||
"allowed_platforms": null,
|
||||
"description": null,
|
||||
"creator_name": "阿猫",
|
||||
"create_time": "2026-05-07T15:42:01.000Z",
|
||||
"update_time": "2026-05-07T16:25:12.000Z"
|
||||
},
|
||||
{
|
||||
"key": "max_wave_quantity",
|
||||
"name": "仓库波次最大数量限制",
|
||||
"type": "integer",
|
||||
"default": 500,
|
||||
"required": false,
|
||||
"description": "控制单个波次允许的最大订单数量,默认 500",
|
||||
"min": 1
|
||||
"id": 3,
|
||||
"strategy_name": "测试策略-边捡边分",
|
||||
"warehouse_id": 100000,
|
||||
"strategy_type": 1,
|
||||
"status": 0,
|
||||
"order_min_sku": 1,
|
||||
"order_max_sku": 999,
|
||||
"order_min_qty": 1,
|
||||
"order_max_qty": 999,
|
||||
"min_same_structure": 1,
|
||||
"max_same_structure": 999,
|
||||
"require_same_express": 0,
|
||||
"allow_cross_owner": 1,
|
||||
"batch_mode": 1,
|
||||
"batch_max_orders": 20,
|
||||
"batch_max_skus": 50,
|
||||
"group_batch_max_orders": 1,
|
||||
"allowed_owners": null,
|
||||
"allowed_expresses": null,
|
||||
"allowed_provinces": null,
|
||||
"allowed_platforms": null,
|
||||
"description": null,
|
||||
"creator_name": null,
|
||||
"create_time": "2026-05-07T15:42:01.000Z",
|
||||
"update_time": "2026-05-07T16:22:54.000Z"
|
||||
},
|
||||
{
|
||||
"key": "min_group_order_fetch_quantity",
|
||||
"name": "最小团购订单抓取数量",
|
||||
"type": "integer",
|
||||
"default": 13,
|
||||
"required": false,
|
||||
"description": "控制团购波次最小抓取订单数量,默认 13",
|
||||
"min": 1
|
||||
},
|
||||
{
|
||||
"key": "default_express_code",
|
||||
"name": "默认快递编码",
|
||||
"type": "string",
|
||||
"default": "STO",
|
||||
"required": false,
|
||||
"description": "仓库默认使用的快递编码",
|
||||
"maxLength": 50
|
||||
},
|
||||
{
|
||||
"key": "default_platform_code",
|
||||
"name": "默认平台编码",
|
||||
"type": "string",
|
||||
"default": "TB",
|
||||
"required": false,
|
||||
"description": "仓库默认使用的平台编码",
|
||||
"maxLength": 50
|
||||
},
|
||||
{
|
||||
"key": "group_wave_prefix",
|
||||
"name": "团购波次前缀",
|
||||
"type": "string",
|
||||
"default": "B",
|
||||
"required": false,
|
||||
"description": "团购波次编号前缀,最多 5 个字符,默认 B",
|
||||
"maxLength": 5
|
||||
},
|
||||
{
|
||||
"key": "delete_order_wave_prefix",
|
||||
"name": "删单波次前缀",
|
||||
"type": "string",
|
||||
"default": "A",
|
||||
"required": false,
|
||||
"description": "删单波次编号前缀,最多 5 个字符,默认 A",
|
||||
"maxLength": 5
|
||||
},
|
||||
{
|
||||
"key": "webhook_enabled",
|
||||
"name": "是否启用 Webhook",
|
||||
"type": "flag",
|
||||
"default": false,
|
||||
"required": false,
|
||||
"description": "控制仓库是否启用 Webhook 事件推送"
|
||||
},
|
||||
{
|
||||
"key": "callback_strategy",
|
||||
"name": "回调策略",
|
||||
"type": "enum",
|
||||
"default": "async",
|
||||
"required": false,
|
||||
"description": "仓库 Webhook 事件的回调执行策略",
|
||||
"options": [
|
||||
{
|
||||
"value": "sync",
|
||||
"label": "同步回调"
|
||||
},
|
||||
{
|
||||
"value": "async",
|
||||
"label": "异步回调"
|
||||
}
|
||||
]
|
||||
"id": 2,
|
||||
"strategy_name": "测试策略-先拣后分",
|
||||
"warehouse_id": 100000,
|
||||
"strategy_type": 1,
|
||||
"status": 0,
|
||||
"order_min_sku": 1,
|
||||
"order_max_sku": 999,
|
||||
"order_min_qty": 1,
|
||||
"order_max_qty": 999,
|
||||
"min_same_structure": 1,
|
||||
"max_same_structure": 999,
|
||||
"require_same_express": 0,
|
||||
"allow_cross_owner": 1,
|
||||
"batch_mode": 1,
|
||||
"batch_max_orders": 20,
|
||||
"batch_max_skus": 50,
|
||||
"group_batch_max_orders": 1,
|
||||
"allowed_owners": null,
|
||||
"allowed_expresses": null,
|
||||
"allowed_provinces": null,
|
||||
"allowed_platforms": null,
|
||||
"description": null,
|
||||
"creator_name": null,
|
||||
"create_time": "2026-05-07T15:42:01.000Z",
|
||||
"update_time": "2026-05-07T16:22:53.000Z"
|
||||
}
|
||||
],
|
||||
"timestamp": 1778058114
|
||||
"pagination": {
|
||||
"page": 1,
|
||||
"pageSize": 20,
|
||||
"total": 3,
|
||||
"totalPages": 1,
|
||||
"hasPrevious": false,
|
||||
"hasNext": false
|
||||
},
|
||||
"timestamp": 1778143176
|
||||
}
|
||||
},
|
||||
{
|
||||
"接口": "setting.warehouse.saveSettings",
|
||||
"message": "subject_config 参数不能为空且必须是对象",
|
||||
"code": 400,
|
||||
"接口": "order.wave.waveStrategyQuickScan",
|
||||
"message": "Quick scan task submitted. Check progress with order.wave.waveStrategyQuickScanTaskProgress",
|
||||
"code": 1,
|
||||
"data": {
|
||||
"flag": "failure",
|
||||
"code": 400,
|
||||
"message": "subject_config 参数不能为空且必须是对象",
|
||||
"timestamp": 1778058114
|
||||
"flag": "success",
|
||||
"code": 1,
|
||||
"message": "Quick scan task submitted. Check progress with order.wave.waveStrategyQuickScanTaskProgress",
|
||||
"status": "success",
|
||||
"task_id": "wave_quick_scan_100000_1778143176_1onh",
|
||||
"warehouse_id": 100000,
|
||||
"state": "submitted",
|
||||
"accepted_at": "2026-05-07T08:39:36.452Z",
|
||||
"timestamp": 1778143176
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
@ -12,59 +12,57 @@
|
||||
"label": "全部"
|
||||
}
|
||||
},
|
||||
"totalInterfaceCount": 235,
|
||||
"totalInterfaceCount": 241,
|
||||
"changes": {
|
||||
"summary": {
|
||||
"moduleAdded": 0,
|
||||
"moduleDeleted": 0,
|
||||
"moduleUpdated": 1,
|
||||
"interfaceAdded": 0,
|
||||
"interfaceAdded": 2,
|
||||
"interfaceDeleted": 0,
|
||||
"interfaceParamsUpdated": 1,
|
||||
"interfaceResponseUpdated": 1
|
||||
"interfaceParamsUpdated": 0,
|
||||
"interfaceResponseUpdated": 0
|
||||
},
|
||||
"moduleUpdates": {
|
||||
"added": [],
|
||||
"deleted": [],
|
||||
"updated": [
|
||||
{
|
||||
"moduleName": "收货单模块",
|
||||
"moduleKey": "storage_receiving",
|
||||
"folder": "storage_receiving",
|
||||
"previousModuleName": "收货单模块",
|
||||
"previousModuleKey": "storage_receiving",
|
||||
"moduleName": "订单波次模块",
|
||||
"moduleKey": "order.wave",
|
||||
"folder": "order.wave",
|
||||
"previousModuleName": "订单波次模块",
|
||||
"previousModuleKey": "order.wave",
|
||||
"interfaceChanges": {
|
||||
"addedMethods": [],
|
||||
"deletedMethods": [],
|
||||
"paramsUpdatedMethods": [
|
||||
"storage.receiving.detailChange"
|
||||
"addedMethods": [
|
||||
"order.wave.waveStrategyCreate",
|
||||
"order.wave.waveStrategyUpdate"
|
||||
],
|
||||
"responseUpdatedMethods": [
|
||||
"storage.receiving.detailChange"
|
||||
]
|
||||
"deletedMethods": [],
|
||||
"paramsUpdatedMethods": [],
|
||||
"responseUpdatedMethods": []
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"interfaceUpdates": {
|
||||
"added": [],
|
||||
"deleted": [],
|
||||
"paramsUpdated": [
|
||||
"added": [
|
||||
{
|
||||
"moduleName": "收货单模块",
|
||||
"moduleKey": "storage_receiving",
|
||||
"folder": "storage_receiving",
|
||||
"method": "storage.receiving.detailChange"
|
||||
"moduleName": "订单波次模块",
|
||||
"moduleKey": "order.wave",
|
||||
"folder": "order.wave",
|
||||
"method": "order.wave.waveStrategyCreate"
|
||||
},
|
||||
{
|
||||
"moduleName": "订单波次模块",
|
||||
"moduleKey": "order.wave",
|
||||
"folder": "order.wave",
|
||||
"method": "order.wave.waveStrategyUpdate"
|
||||
}
|
||||
],
|
||||
"responseUpdated": [
|
||||
{
|
||||
"moduleName": "收货单模块",
|
||||
"moduleKey": "storage_receiving",
|
||||
"folder": "storage_receiving",
|
||||
"method": "storage.receiving.detailChange"
|
||||
}
|
||||
]
|
||||
"deleted": [],
|
||||
"paramsUpdated": [],
|
||||
"responseUpdated": []
|
||||
}
|
||||
},
|
||||
"interfaces": [
|
||||
@ -4902,6 +4900,617 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"moduleName": "订单波次模块",
|
||||
"moduleKey": "order.wave",
|
||||
"moduleFolder": "order.wave",
|
||||
"method": "order.wave.waveStrategyCreate",
|
||||
"title": "创建波次策略。warehouse_id 与 creator_name 强制使用当前登录仓库上下文,不允许外部覆盖;创建成功后会递增仓库的 wave_strategy_version 并失效相关仓库配置缓存,调用方可通过策略版本变更感知策略推进。",
|
||||
"description": "创建波次策略。warehouse_id 与 creator_name 强制使用当前登录仓库上下文,不允许外部覆盖;创建成功后会递增仓库的 wave_strategy_version 并失效相关仓库配置缓存,调用方可通过策略版本变更感知策略推进。",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "strategy_name",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "策略名称,必填"
|
||||
},
|
||||
{
|
||||
"name": "strategy_type",
|
||||
"type": "number",
|
||||
"required": true,
|
||||
"description": "策略类型(正整数)"
|
||||
},
|
||||
{
|
||||
"name": "batch_mode",
|
||||
"type": "number",
|
||||
"required": true,
|
||||
"description": "批次模式(正整数)"
|
||||
},
|
||||
{
|
||||
"name": "status",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "状态,0=禁用,1=启用"
|
||||
},
|
||||
{
|
||||
"name": "order_min_sku",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "单订单最小 SKU 数"
|
||||
},
|
||||
{
|
||||
"name": "order_max_sku",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "单订单最大 SKU 数"
|
||||
},
|
||||
{
|
||||
"name": "order_min_qty",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "单订单最小件数"
|
||||
},
|
||||
{
|
||||
"name": "order_max_qty",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "单订单最大件数"
|
||||
},
|
||||
{
|
||||
"name": "min_same_structure",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "同结构最小订单数(正整数)"
|
||||
},
|
||||
{
|
||||
"name": "max_same_structure",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "同结构最大订单数(正整数)。若该值 >= 仓库配置 min_group_order_fetch_quantity,则自动下调为 min_group_order_fetch_quantity - 1(最小为 1)。"
|
||||
},
|
||||
{
|
||||
"name": "batch_max_orders",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "批次最大订单数"
|
||||
},
|
||||
{
|
||||
"name": "batch_max_skus",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "批次最大 SKU 数"
|
||||
},
|
||||
{
|
||||
"name": "group_batch_max_orders",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "团购批次最大订单数"
|
||||
},
|
||||
{
|
||||
"name": "require_same_express",
|
||||
"type": "boolean",
|
||||
"required": false,
|
||||
"description": "是否要求相同快递"
|
||||
},
|
||||
{
|
||||
"name": "allow_cross_owner",
|
||||
"type": "boolean",
|
||||
"required": false,
|
||||
"description": "是否允许跨货主(默认 true)"
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "策略描述"
|
||||
},
|
||||
{
|
||||
"name": "allowed_provinces",
|
||||
"type": "array",
|
||||
"required": false,
|
||||
"description": "允许的省份列表(可选)"
|
||||
},
|
||||
{
|
||||
"name": "allowed_platforms",
|
||||
"type": "array",
|
||||
"required": false,
|
||||
"description": "允许的平台列表(可选)"
|
||||
},
|
||||
{
|
||||
"name": "allowed_owners",
|
||||
"type": "array",
|
||||
"required": false,
|
||||
"description": "允许的货主列表;必须在系统可用货主范围内,否则接口直接返回错误"
|
||||
},
|
||||
{
|
||||
"name": "allowed_expresses",
|
||||
"type": "array",
|
||||
"required": false,
|
||||
"description": "允许的快递编码列表;必须在系统可用快递范围内,否则接口直接返回错误"
|
||||
}
|
||||
],
|
||||
"response": [
|
||||
{
|
||||
"name": "data",
|
||||
"type": "object",
|
||||
"required": true,
|
||||
"description": "新建的波次策略记录,原始 wms_wave_strategy 字段"
|
||||
},
|
||||
{
|
||||
"name": "code",
|
||||
"type": "number",
|
||||
"required": true,
|
||||
"description": "业务状态码,200 表示成功"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"moduleName": "订单波次模块",
|
||||
"moduleKey": "order.wave",
|
||||
"moduleFolder": "order.wave",
|
||||
"method": "order.wave.waveStrategyFallbackOrderList",
|
||||
"title": "查询兜底不符合波次策略的订单列表(接口内置基础筛选:当前表、非待审核 step != 0、未分配波次 wave_id = 0、wave_scan_result = 2)。",
|
||||
"description": "查询兜底不符合波次策略的订单列表(接口内置基础筛选:当前表、非待审核 step != 0、未分配波次 wave_id = 0、wave_scan_result = 2)。",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "pagination",
|
||||
"type": "object",
|
||||
"required": false,
|
||||
"description": "分页参数,支持 page / pageSize,兼容 currentPage / page_size / size"
|
||||
},
|
||||
{
|
||||
"name": "where",
|
||||
"type": "object",
|
||||
"required": false,
|
||||
"description": "统一 where 条件对象;禁止传入 warehouse_id / warehouseId。注意:接口在服务端固定叠加基础筛选(step != 0、wave_id = 0、wave_scan_result = 2),where 将在此基础上附加更多过滤条件。"
|
||||
},
|
||||
{
|
||||
"name": "sort",
|
||||
"type": "object",
|
||||
"required": false,
|
||||
"description": "排序参数,支持 sortField / sortOrder"
|
||||
}
|
||||
],
|
||||
"response": [
|
||||
{
|
||||
"name": "list",
|
||||
"type": "array",
|
||||
"required": true,
|
||||
"description": "订单列表(raw 行数据,字段字典见 docs/order-workbench-list-api.md )。注意:返回的每个订单项中新增字段 `item_snapshot`,用于快速展示商品快照,格式为 商品名称*数量|商品名称*数量。"
|
||||
},
|
||||
{
|
||||
"name": "list[].item_snapshot",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "每个订单项新增 item_snapshot 字段,格式为 商品名称*数量|商品名称*数量(例:苹果*2|香蕉*3)"
|
||||
},
|
||||
{
|
||||
"name": "pagination",
|
||||
"type": "object",
|
||||
"required": true,
|
||||
"description": "分页信息(page、pageSize、total、totalPages、hasPrevious、hasNext)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"moduleName": "订单波次模块",
|
||||
"moduleKey": "order.wave",
|
||||
"moduleFolder": "order.wave",
|
||||
"method": "order.wave.waveStrategyList",
|
||||
"title": "查询当前仓库的波次策略列表,数据来源 wms_wave_strategy",
|
||||
"description": "查询当前仓库的波次策略列表,数据来源 wms_wave_strategy",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "pagination",
|
||||
"type": "object",
|
||||
"required": false,
|
||||
"description": "分页参数,支持 page / pageSize,兼容 currentPage / page_size / size"
|
||||
}
|
||||
],
|
||||
"response": [
|
||||
{
|
||||
"name": "list",
|
||||
"type": "array",
|
||||
"required": true,
|
||||
"description": "当前仓库波次策略原始字段列表(如 id/strategy_name/warehouse_id/strategy_type/status/batch_mode 等)"
|
||||
},
|
||||
{
|
||||
"name": "pagination",
|
||||
"type": "object",
|
||||
"required": true,
|
||||
"description": "分页信息(page、pageSize、total、totalPages、hasPrevious、hasNext)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"moduleName": "订单波次模块",
|
||||
"moduleKey": "order.wave",
|
||||
"moduleFolder": "order.wave",
|
||||
"method": "order.wave.waveStrategyQuickScan",
|
||||
"title": "提交当前仓库订单快速扫描任务(异步)",
|
||||
"description": "提交当前仓库订单快速扫描任务(异步)",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [],
|
||||
"response": [
|
||||
{
|
||||
"name": "status",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "提交状态,固定 success"
|
||||
},
|
||||
{
|
||||
"name": "task_id",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "任务 ID(用于查询任务进度)"
|
||||
},
|
||||
{
|
||||
"name": "warehouse_id",
|
||||
"type": "number",
|
||||
"required": true,
|
||||
"description": "当前仓库ID"
|
||||
},
|
||||
{
|
||||
"name": "state",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "任务当前状态,通常为 submitted"
|
||||
},
|
||||
{
|
||||
"name": "message",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "受理提示信息"
|
||||
},
|
||||
{
|
||||
"name": "accepted_at",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "任务受理时间(ISO8601)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"moduleName": "订单波次模块",
|
||||
"moduleKey": "order.wave",
|
||||
"moduleFolder": "order.wave",
|
||||
"method": "order.wave.waveStrategyQuickScanTaskProgress",
|
||||
"title": "查询订单快速扫描任务进度",
|
||||
"description": "查询订单快速扫描任务进度",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "task_id / taskId",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "任务 ID(后端生成或提交时传入),兼容 taskId 参数名"
|
||||
}
|
||||
],
|
||||
"response": [
|
||||
{
|
||||
"name": "task_id",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "任务 ID"
|
||||
},
|
||||
{
|
||||
"name": "state",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "任务状态枚举:submitted(已受理)/ running(进行中)/ success(成功)/ failed(失败)/ not_found(未找到)"
|
||||
},
|
||||
{
|
||||
"name": "warehouse_id",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "任务关联仓库 ID(若有)"
|
||||
},
|
||||
{
|
||||
"name": "total_order_count",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "参与扫描的订单总数"
|
||||
},
|
||||
{
|
||||
"name": "processed_order_count",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "已处理的订单数量"
|
||||
},
|
||||
{
|
||||
"name": "matched_order_count",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "匹配到波次的订单数量"
|
||||
},
|
||||
{
|
||||
"name": "unmatched_order_count",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "未匹配到波次的订单数量"
|
||||
},
|
||||
{
|
||||
"name": "progress_percent",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "进度百分比(0-100)"
|
||||
},
|
||||
{
|
||||
"name": "submitted_at",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "任务提交时间(ISO8601)"
|
||||
},
|
||||
{
|
||||
"name": "start_time",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "任务开始时间(ISO8601)"
|
||||
},
|
||||
{
|
||||
"name": "end_time",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "任务结束时间(ISO8601)"
|
||||
},
|
||||
{
|
||||
"name": "error_message",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "失败时的错误信息"
|
||||
},
|
||||
{
|
||||
"name": "error_code",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "失败时的错误码"
|
||||
},
|
||||
{
|
||||
"name": "duration_ms",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "任务已运行耗时(毫秒)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"moduleName": "订单波次模块",
|
||||
"moduleKey": "order.wave",
|
||||
"moduleFolder": "order.wave",
|
||||
"method": "order.wave.waveStrategyUpdate",
|
||||
"title": "更新波次策略。warehouse_id 与 creator_name 强制使用当前登录仓库上下文,不允许外部覆盖;更新成功后会递增仓库的 wave_strategy_version 并失效相关仓库配置缓存。",
|
||||
"description": "更新波次策略。warehouse_id 与 creator_name 强制使用当前登录仓库上下文,不允许外部覆盖;更新成功后会递增仓库的 wave_strategy_version 并失效相关仓库配置缓存。",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "id / strategy_id / strategyId",
|
||||
"type": "number",
|
||||
"required": true,
|
||||
"description": "要更新的策略 ID"
|
||||
},
|
||||
{
|
||||
"name": "strategy_name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "策略名称"
|
||||
},
|
||||
{
|
||||
"name": "strategy_type",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "策略类型(正整数)"
|
||||
},
|
||||
{
|
||||
"name": "batch_mode",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "批次模式(正整数)"
|
||||
},
|
||||
{
|
||||
"name": "status",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "状态,0=禁用,1=启用"
|
||||
},
|
||||
{
|
||||
"name": "order_min_sku",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "单订单最小 SKU 数"
|
||||
},
|
||||
{
|
||||
"name": "order_max_sku",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "单订单最大 SKU 数"
|
||||
},
|
||||
{
|
||||
"name": "order_min_qty",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "单订单最小件数"
|
||||
},
|
||||
{
|
||||
"name": "order_max_qty",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "单订单最大件数"
|
||||
},
|
||||
{
|
||||
"name": "min_same_structure",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "同结构最小订单数(正整数)"
|
||||
},
|
||||
{
|
||||
"name": "max_same_structure",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "同结构最大订单数(正整数)。若该值 >= 仓库配置 min_group_order_fetch_quantity,则自动下调为 min_group_order_fetch_quantity - 1(最小为 1)。"
|
||||
},
|
||||
{
|
||||
"name": "batch_max_orders",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "批次最大订单数"
|
||||
},
|
||||
{
|
||||
"name": "batch_max_skus",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "批次最大 SKU 数"
|
||||
},
|
||||
{
|
||||
"name": "group_batch_max_orders",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "团购批次最大订单数"
|
||||
},
|
||||
{
|
||||
"name": "require_same_express",
|
||||
"type": "boolean",
|
||||
"required": false,
|
||||
"description": "是否要求相同快递"
|
||||
},
|
||||
{
|
||||
"name": "allow_cross_owner",
|
||||
"type": "boolean",
|
||||
"required": false,
|
||||
"description": "是否允许跨货主(默认 true)"
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "策略描述"
|
||||
},
|
||||
{
|
||||
"name": "allowed_provinces",
|
||||
"type": "array",
|
||||
"required": false,
|
||||
"description": "允许的省份列表(可选)"
|
||||
},
|
||||
{
|
||||
"name": "allowed_platforms",
|
||||
"type": "array",
|
||||
"required": false,
|
||||
"description": "允许的平台列表(可选)"
|
||||
},
|
||||
{
|
||||
"name": "allowed_owners",
|
||||
"type": "array",
|
||||
"required": false,
|
||||
"description": "允许的货主列表;必须在系统可用货主范围内,否则接口直接返回错误"
|
||||
},
|
||||
{
|
||||
"name": "allowed_expresses",
|
||||
"type": "array",
|
||||
"required": false,
|
||||
"description": "允许的快递编码列表;必须在系统可用快递范围内,否则接口直接返回错误"
|
||||
}
|
||||
],
|
||||
"response": [
|
||||
{
|
||||
"name": "data",
|
||||
"type": "object",
|
||||
"required": false,
|
||||
"description": "更新后的波次策略记录(原始 wms_wave_strategy 字段)"
|
||||
},
|
||||
{
|
||||
"name": "code",
|
||||
"type": "number",
|
||||
"required": true,
|
||||
"description": "业务状态码,200 表示成功"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"moduleName": "拣货模块",
|
||||
"moduleKey": "pick",
|
||||
@ -9124,8 +9733,52 @@
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [],
|
||||
"response": []
|
||||
"params": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "number",
|
||||
"required": true,
|
||||
"description": "收货单ID"
|
||||
}
|
||||
],
|
||||
"response": [
|
||||
{
|
||||
"name": "code",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "业务状态码,200 表示成功"
|
||||
},
|
||||
{
|
||||
"name": "message",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "返回信息"
|
||||
},
|
||||
{
|
||||
"name": "data",
|
||||
"type": "object",
|
||||
"required": false,
|
||||
"description": "收货单详情对象,包含 details(明细数组)、images 及主表字段"
|
||||
},
|
||||
{
|
||||
"name": "data.details",
|
||||
"type": "array",
|
||||
"required": false,
|
||||
"description": "收货单明细数组(每项为明细对象)"
|
||||
},
|
||||
{
|
||||
"name": "data.details.*.box_remainder",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "箱内剩余数量/零散数量(不满箱时的件数),默认 0"
|
||||
},
|
||||
{
|
||||
"name": "data.details.*.box_weight",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "实测箱重(单位与系统重量一致,如 kg),默认 0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"moduleName": "收货单模块",
|
||||
@ -9169,6 +9822,24 @@
|
||||
"type": "object",
|
||||
"required": true,
|
||||
"description": "收货单详情(含 details、images、pagination)"
|
||||
},
|
||||
{
|
||||
"name": "receiving.details",
|
||||
"type": "array",
|
||||
"required": false,
|
||||
"description": "收货单明细列表,单条记录包含明细字段(见下文)"
|
||||
},
|
||||
{
|
||||
"name": "receiving.details.*.box_remainder",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "箱内剩余数量/零散数量(不满箱时的件数)"
|
||||
},
|
||||
{
|
||||
"name": "receiving.details.*.box_weight",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "实测箱重(单位与系统重量一致,如 kg)"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
@ -13,59 +13,57 @@
|
||||
}
|
||||
},
|
||||
"moduleCount": 34,
|
||||
"totalInterfaceCount": 235,
|
||||
"totalInterfaceCount": 241,
|
||||
"changes": {
|
||||
"summary": {
|
||||
"moduleAdded": 0,
|
||||
"moduleDeleted": 0,
|
||||
"moduleUpdated": 1,
|
||||
"interfaceAdded": 0,
|
||||
"interfaceAdded": 2,
|
||||
"interfaceDeleted": 0,
|
||||
"interfaceParamsUpdated": 1,
|
||||
"interfaceResponseUpdated": 1
|
||||
"interfaceParamsUpdated": 0,
|
||||
"interfaceResponseUpdated": 0
|
||||
},
|
||||
"moduleUpdates": {
|
||||
"added": [],
|
||||
"deleted": [],
|
||||
"updated": [
|
||||
{
|
||||
"moduleName": "收货单模块",
|
||||
"moduleKey": "storage_receiving",
|
||||
"folder": "storage_receiving",
|
||||
"previousModuleName": "收货单模块",
|
||||
"previousModuleKey": "storage_receiving",
|
||||
"moduleName": "订单波次模块",
|
||||
"moduleKey": "order.wave",
|
||||
"folder": "order.wave",
|
||||
"previousModuleName": "订单波次模块",
|
||||
"previousModuleKey": "order.wave",
|
||||
"interfaceChanges": {
|
||||
"addedMethods": [],
|
||||
"deletedMethods": [],
|
||||
"paramsUpdatedMethods": [
|
||||
"storage.receiving.detailChange"
|
||||
"addedMethods": [
|
||||
"order.wave.waveStrategyCreate",
|
||||
"order.wave.waveStrategyUpdate"
|
||||
],
|
||||
"responseUpdatedMethods": [
|
||||
"storage.receiving.detailChange"
|
||||
]
|
||||
"deletedMethods": [],
|
||||
"paramsUpdatedMethods": [],
|
||||
"responseUpdatedMethods": []
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"interfaceUpdates": {
|
||||
"added": [],
|
||||
"deleted": [],
|
||||
"paramsUpdated": [
|
||||
"added": [
|
||||
{
|
||||
"moduleName": "收货单模块",
|
||||
"moduleKey": "storage_receiving",
|
||||
"folder": "storage_receiving",
|
||||
"method": "storage.receiving.detailChange"
|
||||
"moduleName": "订单波次模块",
|
||||
"moduleKey": "order.wave",
|
||||
"folder": "order.wave",
|
||||
"method": "order.wave.waveStrategyCreate"
|
||||
},
|
||||
{
|
||||
"moduleName": "订单波次模块",
|
||||
"moduleKey": "order.wave",
|
||||
"folder": "order.wave",
|
||||
"method": "order.wave.waveStrategyUpdate"
|
||||
}
|
||||
],
|
||||
"responseUpdated": [
|
||||
{
|
||||
"moduleName": "收货单模块",
|
||||
"moduleKey": "storage_receiving",
|
||||
"folder": "storage_receiving",
|
||||
"method": "storage.receiving.detailChange"
|
||||
}
|
||||
]
|
||||
"deleted": [],
|
||||
"paramsUpdated": [],
|
||||
"responseUpdated": []
|
||||
}
|
||||
},
|
||||
"modules": [
|
||||
@ -312,11 +310,29 @@
|
||||
"moduleName": "订单波次模块",
|
||||
"moduleKey": "order.wave",
|
||||
"folder": "order.wave",
|
||||
"interfaceCount": 19,
|
||||
"interfaceCount": 25,
|
||||
"interfaces": [
|
||||
{
|
||||
"method": "order.wave.groupOrderFetchList"
|
||||
},
|
||||
{
|
||||
"method": "order.wave.waveStrategyList"
|
||||
},
|
||||
{
|
||||
"method": "order.wave.waveStrategyCreate"
|
||||
},
|
||||
{
|
||||
"method": "order.wave.waveStrategyUpdate"
|
||||
},
|
||||
{
|
||||
"method": "order.wave.waveStrategyQuickScan"
|
||||
},
|
||||
{
|
||||
"method": "order.wave.waveStrategyQuickScanTaskProgress"
|
||||
},
|
||||
{
|
||||
"method": "order.wave.waveStrategyFallbackOrderList"
|
||||
},
|
||||
{
|
||||
"method": "order.wave.singleFetchByIds"
|
||||
},
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-05-05 09:15:19",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-05-04 09:11:04",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
@ -16,14 +16,17 @@
|
||||
"name": "订单波次模块",
|
||||
"key": "order.wave",
|
||||
"folder": "order.wave",
|
||||
"interfaceCount": 19
|
||||
"interfaceCount": 25
|
||||
},
|
||||
"changes": {
|
||||
"fromPreviousSnapshot": {
|
||||
"moduleAdded": false,
|
||||
"moduleRenamed": false,
|
||||
"interfaceChanges": {
|
||||
"addedMethods": [],
|
||||
"addedMethods": [
|
||||
"order.wave.waveStrategyCreate",
|
||||
"order.wave.waveStrategyUpdate"
|
||||
],
|
||||
"deletedMethods": [],
|
||||
"paramsUpdatedMethods": [],
|
||||
"responseUpdatedMethods": []
|
||||
@ -109,6 +112,599 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"method": "order.wave.waveStrategyList",
|
||||
"title": "查询当前仓库的波次策略列表,数据来源 wms_wave_strategy",
|
||||
"description": "查询当前仓库的波次策略列表,数据来源 wms_wave_strategy",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "pagination",
|
||||
"type": "object",
|
||||
"required": false,
|
||||
"description": "分页参数,支持 page / pageSize,兼容 currentPage / page_size / size"
|
||||
}
|
||||
],
|
||||
"response": [
|
||||
{
|
||||
"name": "list",
|
||||
"type": "array",
|
||||
"required": true,
|
||||
"description": "当前仓库波次策略原始字段列表(如 id/strategy_name/warehouse_id/strategy_type/status/batch_mode 等)"
|
||||
},
|
||||
{
|
||||
"name": "pagination",
|
||||
"type": "object",
|
||||
"required": true,
|
||||
"description": "分页信息(page、pageSize、total、totalPages、hasPrevious、hasNext)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"method": "order.wave.waveStrategyCreate",
|
||||
"title": "创建波次策略。warehouse_id 与 creator_name 强制使用当前登录仓库上下文,不允许外部覆盖;创建成功后会递增仓库的 wave_strategy_version 并失效相关仓库配置缓存,调用方可通过策略版本变更感知策略推进。",
|
||||
"description": "创建波次策略。warehouse_id 与 creator_name 强制使用当前登录仓库上下文,不允许外部覆盖;创建成功后会递增仓库的 wave_strategy_version 并失效相关仓库配置缓存,调用方可通过策略版本变更感知策略推进。",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "strategy_name",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "策略名称,必填"
|
||||
},
|
||||
{
|
||||
"name": "strategy_type",
|
||||
"type": "number",
|
||||
"required": true,
|
||||
"description": "策略类型(正整数)"
|
||||
},
|
||||
{
|
||||
"name": "batch_mode",
|
||||
"type": "number",
|
||||
"required": true,
|
||||
"description": "批次模式(正整数)"
|
||||
},
|
||||
{
|
||||
"name": "status",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "状态,0=禁用,1=启用"
|
||||
},
|
||||
{
|
||||
"name": "order_min_sku",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "单订单最小 SKU 数"
|
||||
},
|
||||
{
|
||||
"name": "order_max_sku",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "单订单最大 SKU 数"
|
||||
},
|
||||
{
|
||||
"name": "order_min_qty",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "单订单最小件数"
|
||||
},
|
||||
{
|
||||
"name": "order_max_qty",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "单订单最大件数"
|
||||
},
|
||||
{
|
||||
"name": "min_same_structure",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "同结构最小订单数(正整数)"
|
||||
},
|
||||
{
|
||||
"name": "max_same_structure",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "同结构最大订单数(正整数)。若该值 >= 仓库配置 min_group_order_fetch_quantity,则自动下调为 min_group_order_fetch_quantity - 1(最小为 1)。"
|
||||
},
|
||||
{
|
||||
"name": "batch_max_orders",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "批次最大订单数"
|
||||
},
|
||||
{
|
||||
"name": "batch_max_skus",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "批次最大 SKU 数"
|
||||
},
|
||||
{
|
||||
"name": "group_batch_max_orders",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "团购批次最大订单数"
|
||||
},
|
||||
{
|
||||
"name": "require_same_express",
|
||||
"type": "boolean",
|
||||
"required": false,
|
||||
"description": "是否要求相同快递"
|
||||
},
|
||||
{
|
||||
"name": "allow_cross_owner",
|
||||
"type": "boolean",
|
||||
"required": false,
|
||||
"description": "是否允许跨货主(默认 true)"
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "策略描述"
|
||||
},
|
||||
{
|
||||
"name": "allowed_provinces",
|
||||
"type": "array",
|
||||
"required": false,
|
||||
"description": "允许的省份列表(可选)"
|
||||
},
|
||||
{
|
||||
"name": "allowed_platforms",
|
||||
"type": "array",
|
||||
"required": false,
|
||||
"description": "允许的平台列表(可选)"
|
||||
},
|
||||
{
|
||||
"name": "allowed_owners",
|
||||
"type": "array",
|
||||
"required": false,
|
||||
"description": "允许的货主列表;必须在系统可用货主范围内,否则接口直接返回错误"
|
||||
},
|
||||
{
|
||||
"name": "allowed_expresses",
|
||||
"type": "array",
|
||||
"required": false,
|
||||
"description": "允许的快递编码列表;必须在系统可用快递范围内,否则接口直接返回错误"
|
||||
}
|
||||
],
|
||||
"response": [
|
||||
{
|
||||
"name": "data",
|
||||
"type": "object",
|
||||
"required": true,
|
||||
"description": "新建的波次策略记录,原始 wms_wave_strategy 字段"
|
||||
},
|
||||
{
|
||||
"name": "code",
|
||||
"type": "number",
|
||||
"required": true,
|
||||
"description": "业务状态码,200 表示成功"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"method": "order.wave.waveStrategyUpdate",
|
||||
"title": "更新波次策略。warehouse_id 与 creator_name 强制使用当前登录仓库上下文,不允许外部覆盖;更新成功后会递增仓库的 wave_strategy_version 并失效相关仓库配置缓存。",
|
||||
"description": "更新波次策略。warehouse_id 与 creator_name 强制使用当前登录仓库上下文,不允许外部覆盖;更新成功后会递增仓库的 wave_strategy_version 并失效相关仓库配置缓存。",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "id / strategy_id / strategyId",
|
||||
"type": "number",
|
||||
"required": true,
|
||||
"description": "要更新的策略 ID"
|
||||
},
|
||||
{
|
||||
"name": "strategy_name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "策略名称"
|
||||
},
|
||||
{
|
||||
"name": "strategy_type",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "策略类型(正整数)"
|
||||
},
|
||||
{
|
||||
"name": "batch_mode",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "批次模式(正整数)"
|
||||
},
|
||||
{
|
||||
"name": "status",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "状态,0=禁用,1=启用"
|
||||
},
|
||||
{
|
||||
"name": "order_min_sku",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "单订单最小 SKU 数"
|
||||
},
|
||||
{
|
||||
"name": "order_max_sku",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "单订单最大 SKU 数"
|
||||
},
|
||||
{
|
||||
"name": "order_min_qty",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "单订单最小件数"
|
||||
},
|
||||
{
|
||||
"name": "order_max_qty",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "单订单最大件数"
|
||||
},
|
||||
{
|
||||
"name": "min_same_structure",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "同结构最小订单数(正整数)"
|
||||
},
|
||||
{
|
||||
"name": "max_same_structure",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "同结构最大订单数(正整数)。若该值 >= 仓库配置 min_group_order_fetch_quantity,则自动下调为 min_group_order_fetch_quantity - 1(最小为 1)。"
|
||||
},
|
||||
{
|
||||
"name": "batch_max_orders",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "批次最大订单数"
|
||||
},
|
||||
{
|
||||
"name": "batch_max_skus",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "批次最大 SKU 数"
|
||||
},
|
||||
{
|
||||
"name": "group_batch_max_orders",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "团购批次最大订单数"
|
||||
},
|
||||
{
|
||||
"name": "require_same_express",
|
||||
"type": "boolean",
|
||||
"required": false,
|
||||
"description": "是否要求相同快递"
|
||||
},
|
||||
{
|
||||
"name": "allow_cross_owner",
|
||||
"type": "boolean",
|
||||
"required": false,
|
||||
"description": "是否允许跨货主(默认 true)"
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "策略描述"
|
||||
},
|
||||
{
|
||||
"name": "allowed_provinces",
|
||||
"type": "array",
|
||||
"required": false,
|
||||
"description": "允许的省份列表(可选)"
|
||||
},
|
||||
{
|
||||
"name": "allowed_platforms",
|
||||
"type": "array",
|
||||
"required": false,
|
||||
"description": "允许的平台列表(可选)"
|
||||
},
|
||||
{
|
||||
"name": "allowed_owners",
|
||||
"type": "array",
|
||||
"required": false,
|
||||
"description": "允许的货主列表;必须在系统可用货主范围内,否则接口直接返回错误"
|
||||
},
|
||||
{
|
||||
"name": "allowed_expresses",
|
||||
"type": "array",
|
||||
"required": false,
|
||||
"description": "允许的快递编码列表;必须在系统可用快递范围内,否则接口直接返回错误"
|
||||
}
|
||||
],
|
||||
"response": [
|
||||
{
|
||||
"name": "data",
|
||||
"type": "object",
|
||||
"required": false,
|
||||
"description": "更新后的波次策略记录(原始 wms_wave_strategy 字段)"
|
||||
},
|
||||
{
|
||||
"name": "code",
|
||||
"type": "number",
|
||||
"required": true,
|
||||
"description": "业务状态码,200 表示成功"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"method": "order.wave.waveStrategyQuickScan",
|
||||
"title": "提交当前仓库订单快速扫描任务(异步)",
|
||||
"description": "提交当前仓库订单快速扫描任务(异步)",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [],
|
||||
"response": [
|
||||
{
|
||||
"name": "status",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "提交状态,固定 success"
|
||||
},
|
||||
{
|
||||
"name": "task_id",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "任务 ID(用于查询任务进度)"
|
||||
},
|
||||
{
|
||||
"name": "warehouse_id",
|
||||
"type": "number",
|
||||
"required": true,
|
||||
"description": "当前仓库ID"
|
||||
},
|
||||
{
|
||||
"name": "state",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "任务当前状态,通常为 submitted"
|
||||
},
|
||||
{
|
||||
"name": "message",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "受理提示信息"
|
||||
},
|
||||
{
|
||||
"name": "accepted_at",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "任务受理时间(ISO8601)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"method": "order.wave.waveStrategyQuickScanTaskProgress",
|
||||
"title": "查询订单快速扫描任务进度",
|
||||
"description": "查询订单快速扫描任务进度",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "task_id / taskId",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "任务 ID(后端生成或提交时传入),兼容 taskId 参数名"
|
||||
}
|
||||
],
|
||||
"response": [
|
||||
{
|
||||
"name": "task_id",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "任务 ID"
|
||||
},
|
||||
{
|
||||
"name": "state",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "任务状态枚举:submitted(已受理)/ running(进行中)/ success(成功)/ failed(失败)/ not_found(未找到)"
|
||||
},
|
||||
{
|
||||
"name": "warehouse_id",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "任务关联仓库 ID(若有)"
|
||||
},
|
||||
{
|
||||
"name": "total_order_count",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "参与扫描的订单总数"
|
||||
},
|
||||
{
|
||||
"name": "processed_order_count",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "已处理的订单数量"
|
||||
},
|
||||
{
|
||||
"name": "matched_order_count",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "匹配到波次的订单数量"
|
||||
},
|
||||
{
|
||||
"name": "unmatched_order_count",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "未匹配到波次的订单数量"
|
||||
},
|
||||
{
|
||||
"name": "progress_percent",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "进度百分比(0-100)"
|
||||
},
|
||||
{
|
||||
"name": "submitted_at",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "任务提交时间(ISO8601)"
|
||||
},
|
||||
{
|
||||
"name": "start_time",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "任务开始时间(ISO8601)"
|
||||
},
|
||||
{
|
||||
"name": "end_time",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "任务结束时间(ISO8601)"
|
||||
},
|
||||
{
|
||||
"name": "error_message",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "失败时的错误信息"
|
||||
},
|
||||
{
|
||||
"name": "error_code",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "失败时的错误码"
|
||||
},
|
||||
{
|
||||
"name": "duration_ms",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "任务已运行耗时(毫秒)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"method": "order.wave.waveStrategyFallbackOrderList",
|
||||
"title": "查询兜底不符合波次策略的订单列表(接口内置基础筛选:当前表、非待审核 step != 0、未分配波次 wave_id = 0、wave_scan_result = 2)。",
|
||||
"description": "查询兜底不符合波次策略的订单列表(接口内置基础筛选:当前表、非待审核 step != 0、未分配波次 wave_id = 0、wave_scan_result = 2)。",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "pagination",
|
||||
"type": "object",
|
||||
"required": false,
|
||||
"description": "分页参数,支持 page / pageSize,兼容 currentPage / page_size / size"
|
||||
},
|
||||
{
|
||||
"name": "where",
|
||||
"type": "object",
|
||||
"required": false,
|
||||
"description": "统一 where 条件对象;禁止传入 warehouse_id / warehouseId。注意:接口在服务端固定叠加基础筛选(step != 0、wave_id = 0、wave_scan_result = 2),where 将在此基础上附加更多过滤条件。"
|
||||
},
|
||||
{
|
||||
"name": "sort",
|
||||
"type": "object",
|
||||
"required": false,
|
||||
"description": "排序参数,支持 sortField / sortOrder"
|
||||
}
|
||||
],
|
||||
"response": [
|
||||
{
|
||||
"name": "list",
|
||||
"type": "array",
|
||||
"required": true,
|
||||
"description": "订单列表(raw 行数据,字段字典见 docs/order-workbench-list-api.md )。注意:返回的每个订单项中新增字段 `item_snapshot`,用于快速展示商品快照,格式为 商品名称*数量|商品名称*数量。"
|
||||
},
|
||||
{
|
||||
"name": "list[].item_snapshot",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "每个订单项新增 item_snapshot 字段,格式为 商品名称*数量|商品名称*数量(例:苹果*2|香蕉*3)"
|
||||
},
|
||||
{
|
||||
"name": "pagination",
|
||||
"type": "object",
|
||||
"required": true,
|
||||
"description": "分页信息(page、pageSize、total、totalPages、hasPrevious、hasNext)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"method": "order.wave.singleFetchByIds",
|
||||
"title": "按订单 ID 列表抓取到一个散单波次。仅处理当前仓库的待处理订单(step in [1,2,3]),排除已在波次中的订单(wave_id>0),不区分快递;成功抓取后批量写入订单操作日志;当无可抓取订单时返回 wave_id=0。",
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-05-04 17:23:48",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-17 19:37:49",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-17 20:21:27",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-17 19:16:50",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-05-04 09:11:04",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
@ -25,12 +25,8 @@
|
||||
"interfaceChanges": {
|
||||
"addedMethods": [],
|
||||
"deletedMethods": [],
|
||||
"paramsUpdatedMethods": [
|
||||
"storage.receiving.detailChange"
|
||||
],
|
||||
"responseUpdatedMethods": [
|
||||
"storage.receiving.detailChange"
|
||||
]
|
||||
"paramsUpdatedMethods": [],
|
||||
"responseUpdatedMethods": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -128,6 +124,24 @@
|
||||
"type": "object",
|
||||
"required": true,
|
||||
"description": "收货单详情(含 details、images、pagination)"
|
||||
},
|
||||
{
|
||||
"name": "receiving.details",
|
||||
"type": "array",
|
||||
"required": false,
|
||||
"description": "收货单明细列表,单条记录包含明细字段(见下文)"
|
||||
},
|
||||
{
|
||||
"name": "receiving.details.*.box_remainder",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "箱内剩余数量/零散数量(不满箱时的件数)"
|
||||
},
|
||||
{
|
||||
"name": "receiving.details.*.box_weight",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "实测箱重(单位与系统重量一致,如 kg)"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -718,8 +732,52 @@
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [],
|
||||
"response": []
|
||||
"params": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "number",
|
||||
"required": true,
|
||||
"description": "收货单ID"
|
||||
}
|
||||
],
|
||||
"response": [
|
||||
{
|
||||
"name": "code",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "业务状态码,200 表示成功"
|
||||
},
|
||||
{
|
||||
"name": "message",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "返回信息"
|
||||
},
|
||||
{
|
||||
"name": "data",
|
||||
"type": "object",
|
||||
"required": false,
|
||||
"description": "收货单详情对象,包含 details(明细数组)、images 及主表字段"
|
||||
},
|
||||
{
|
||||
"name": "data.details",
|
||||
"type": "array",
|
||||
"required": false,
|
||||
"description": "收货单明细数组(每项为明细对象)"
|
||||
},
|
||||
{
|
||||
"name": "data.details.*.box_remainder",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "箱内剩余数量/零散数量(不满箱时的件数),默认 0"
|
||||
},
|
||||
{
|
||||
"name": "data.details.*.box_weight",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"description": "实测箱重(单位与系统重量一致,如 kg),默认 0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"method": "storage.receiving.addDetail",
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-05-06 17:09:32",
|
||||
"updatedAt": "2026-05-07 17:23:10",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"generatedAt": "2026-05-07 17:23:10",
|
||||
"generatedAtLocal": "2026-05-07 17:23:10",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -1,44 +1 @@
|
||||
{
|
||||
"generatedAt": "2026-05-06 17:09:32",
|
||||
"generatedAtLocal": "2026-05-06 17:09:32",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
"value": "web",
|
||||
"label": "网页端"
|
||||
},
|
||||
"project": {
|
||||
"value": "all",
|
||||
"label": "全部"
|
||||
}
|
||||
},
|
||||
"summary": {
|
||||
"moduleAdded": 0,
|
||||
"moduleDeleted": 0,
|
||||
"interfaceAdded": 0,
|
||||
"interfaceDeleted": 0,
|
||||
"interfaceParamsUpdated": 1,
|
||||
"interfaceResponseUpdated": 1,
|
||||
"totalChangedItems": 2
|
||||
},
|
||||
"interfaceUpdates": {
|
||||
"added": [],
|
||||
"deleted": [],
|
||||
"paramsUpdated": [
|
||||
{
|
||||
"moduleName": "收货单模块",
|
||||
"moduleKey": "storage_receiving",
|
||||
"folder": "storage_receiving",
|
||||
"method": "storage.receiving.detailChange"
|
||||
}
|
||||
],
|
||||
"responseUpdated": [
|
||||
{
|
||||
"moduleName": "收货单模块",
|
||||
"moduleKey": "storage_receiving",
|
||||
"folder": "storage_receiving",
|
||||
"method": "storage.receiving.detailChange"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
{}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user