5月1日
This commit is contained in:
parent
ce0d10eb95
commit
f75ea53f9f
BIN
dist.tar.gz
BIN
dist.tar.gz
Binary file not shown.
@ -39,5 +39,36 @@ export default [
|
||||
"vue/multi-word-component-names": "off",
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ["src/views/order/orderManagement/**/*.{ts,vue}"],
|
||||
languageOptions: {
|
||||
globals: {
|
||||
window: "readonly",
|
||||
document: "readonly",
|
||||
navigator: "readonly",
|
||||
URL: "readonly",
|
||||
Blob: "readonly",
|
||||
File: "readonly",
|
||||
FileReader: "readonly",
|
||||
Event: "readonly",
|
||||
HTMLElement: "readonly",
|
||||
HTMLInputElement: "readonly",
|
||||
MouseEvent: "readonly",
|
||||
WheelEvent: "readonly",
|
||||
setTimeout: "readonly",
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"@typescript-eslint/no-explicit-any": "off",
|
||||
"@typescript-eslint/no-unused-vars": "off",
|
||||
"@typescript-eslint/no-unsafe-function-type": "off",
|
||||
"vue/attributes-order": "off",
|
||||
"vue/attribute-hyphenation": "off",
|
||||
"vue/no-template-shadow": "off",
|
||||
"vue/no-deprecated-v-on-native-modifier": "off",
|
||||
"no-empty": "off",
|
||||
"no-undef": "off",
|
||||
},
|
||||
},
|
||||
eslintConfigPrettier,
|
||||
];
|
||||
|
||||
@ -95,6 +95,21 @@ export function getMessageDetail(data:any){
|
||||
} as any)
|
||||
}
|
||||
|
||||
/** 生成 IM 单点登录一次性 code(有效期 5 分钟) */
|
||||
export function loginToIm(data?: Record<string, unknown>) {
|
||||
return request({
|
||||
url: '/system',
|
||||
method: 'post',
|
||||
params: {
|
||||
method: 'index.loginToIm',
|
||||
v: '1.0',
|
||||
timestamp: new Date().getTime()
|
||||
},
|
||||
data: data ?? {},
|
||||
isSystemApi: true
|
||||
} as any)
|
||||
}
|
||||
|
||||
export function getI18nMessage(data:any){
|
||||
return request({
|
||||
url: '/system',
|
||||
|
||||
@ -794,11 +794,16 @@ function filterNode(value: string, data: any) {
|
||||
return data.label && data.label.toLowerCase().includes(value.toLowerCase())
|
||||
}
|
||||
|
||||
function handleReset() {
|
||||
/** 仅重置内部 UI 状态,不向外 emit(供 defineExpose 与父组件二次调用,避免与 @reset 形成递归) */
|
||||
function applyResetState() {
|
||||
initCustomConditions(props.availableFields, true)
|
||||
activeCondition.value = null
|
||||
presetSearchText.value = ''
|
||||
filterPresetTree('')
|
||||
}
|
||||
|
||||
function handleReset() {
|
||||
applyResetState()
|
||||
emit('reset')
|
||||
}
|
||||
|
||||
@ -926,7 +931,7 @@ function buildConditionsObject() {
|
||||
}
|
||||
|
||||
function reset() {
|
||||
handleReset()
|
||||
applyResetState()
|
||||
}
|
||||
|
||||
function clear() {
|
||||
|
||||
@ -109,12 +109,14 @@ import { ref, nextTick, onMounted, watch } from 'vue'
|
||||
import { useAiStore, AI_IDENTITIES } from '@/stores/modules/ai'
|
||||
import { Plus, Clock, Close, UserFilled, Service, Position, ChatDotRound, Delete, ArrowDown } from '@element-plus/icons-vue'
|
||||
import type { ElScrollbar } from 'element-plus'
|
||||
import { loginToIm } from '@/api/index'
|
||||
import dayjs from 'dayjs'
|
||||
|
||||
const aiStore = useAiStore()
|
||||
const inputMessage = ref('')
|
||||
const scrollbarRef = ref<InstanceType<typeof ElScrollbar>>()
|
||||
const showHistory = ref(false)
|
||||
const IM_LOGIN_URL = 'http://192.168.11.56:9096/'
|
||||
|
||||
const getIconComponent = (iconName: string) => {
|
||||
const icons: Record<string, any> = { Service }
|
||||
@ -183,6 +185,18 @@ const sendMessage = () => {
|
||||
}, 1000)
|
||||
}
|
||||
|
||||
const openImPage = async () => {
|
||||
try {
|
||||
const res = await loginToIm()
|
||||
const imCode = res?.data?.code
|
||||
if (!imCode) return
|
||||
const openUrl = `${IM_LOGIN_URL}?token=${encodeURIComponent(imCode)}`
|
||||
window.open(openUrl, '_blank')
|
||||
} catch (error) {
|
||||
console.error('Failed to login to IM:', error)
|
||||
}
|
||||
}
|
||||
|
||||
watch(() => aiStore.messages.length, () => {
|
||||
if (!showHistory.value) {
|
||||
scrollToBottom()
|
||||
@ -191,7 +205,19 @@ watch(() => aiStore.messages.length, () => {
|
||||
|
||||
onMounted(() => {
|
||||
scrollToBottom()
|
||||
if (aiStore.isVisible) {
|
||||
openImPage()
|
||||
}
|
||||
})
|
||||
|
||||
watch(
|
||||
() => aiStore.isVisible,
|
||||
isVisible => {
|
||||
if (isVisible) {
|
||||
openImPage()
|
||||
}
|
||||
}
|
||||
)
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
15
src/main.ts
15
src/main.ts
@ -14,6 +14,21 @@ import '@/styles/index.scss' // global css
|
||||
|
||||
const app = createApp(App)
|
||||
|
||||
let errorHandlerDepth = 0
|
||||
app.config.errorHandler = (err, _instance, info) => {
|
||||
if (errorHandlerDepth > 0) {
|
||||
// 避免错误处理过程中再次抛错导致无限递归与栈溢出
|
||||
console.error('[Vue] errorHandler re-entry', err)
|
||||
return
|
||||
}
|
||||
errorHandlerDepth += 1
|
||||
try {
|
||||
console.error(info ? `[Vue] ${info}` : '[Vue] error', err)
|
||||
} finally {
|
||||
errorHandlerDepth -= 1
|
||||
}
|
||||
}
|
||||
|
||||
app.component('svg-icon', SvgIcon)
|
||||
app.use(createPinia())
|
||||
app.use(router)
|
||||
|
||||
15
src/utils/safe-invoke.ts
Normal file
15
src/utils/safe-invoke.ts
Normal file
@ -0,0 +1,15 @@
|
||||
/**
|
||||
* 在模板事件(如 ElButton @click)中调用可能同步抛错或返回 Promise 的函数,
|
||||
* 避免 Vue 控制台出现 “Unhandled error during execution of … handler”。
|
||||
* 成功路径仍由原函数内的逻辑处理;此处仅兜底未预料的错误并输出到控制台。
|
||||
*/
|
||||
export function safeInvoke(fn: () => unknown): void {
|
||||
try {
|
||||
const out = fn()
|
||||
void Promise.resolve(out).catch((err: unknown) => {
|
||||
console.error('[safeInvoke]', err)
|
||||
})
|
||||
} catch (err: unknown) {
|
||||
console.error('[safeInvoke]', err)
|
||||
}
|
||||
}
|
||||
@ -15,10 +15,18 @@
|
||||
<div class="main-content">
|
||||
<div class="toolbar">
|
||||
<div class="toolbar-left">
|
||||
<el-button size="small" type="primary" @click="loadData">刷新</el-button>
|
||||
<el-button size="small" :loading="exportLoading" @click="handleExport">导出</el-button>
|
||||
<el-button size="small" @click="openColumnConfigPanel">字段设置</el-button>
|
||||
<el-button size="small" @click="toggleDetailVisible">{{ detailVisible ? '隐藏详情' : '显示详情' }}</el-button>
|
||||
<el-button
|
||||
v-for="button in toolbarButtons"
|
||||
:key="button.key"
|
||||
:size="button.size || 'small'"
|
||||
:type="button.type"
|
||||
:plain="button.plain"
|
||||
:disabled="resolveButtonDisabled(button.disabledKey)"
|
||||
:loading="resolveButtonLoading(button.loadingKey)"
|
||||
@click="handleToolbarButtonClick(button.action)"
|
||||
>
|
||||
{{ resolveButtonLabel(button.label, button.dynamicLabelKey) }}
|
||||
</el-button>
|
||||
</div>
|
||||
|
||||
<div class="toolbar-right">
|
||||
@ -113,6 +121,8 @@ import { orderArchiveOrder } from '@/api/order.archiveorder/orderarchiveorder'
|
||||
import {
|
||||
archiveAvailableFields,
|
||||
archiveColumns,
|
||||
archiveOrderToolbarButtons,
|
||||
type ToolbarButtonConfig,
|
||||
translateOrderField,
|
||||
getTagType
|
||||
} from './config/order-common-config'
|
||||
@ -120,6 +130,8 @@ import WorkbenchOrderDetail from './component/WorkbenchOrderDetail.vue'
|
||||
import log from './component/log.vue'
|
||||
import { exportUpperTableRows } from './utils/export'
|
||||
import { useVerticalSplitPane } from '@/composables/useVerticalSplitPane'
|
||||
import { createSimpleListToolbarController } from './utils/toolbar-actions'
|
||||
import { safeInvoke } from '@/utils/safe-invoke'
|
||||
|
||||
const scanBox = ref<any>(null)
|
||||
const upperTable = ref<any>(null)
|
||||
@ -145,6 +157,7 @@ const selectedOrderId = ref<number | string | null>(null)
|
||||
const detailVisible = ref(true)
|
||||
|
||||
const quickSearch = ref('')
|
||||
const toolbarButtons = archiveOrderToolbarButtons
|
||||
|
||||
const selectedRow = computed(() => {
|
||||
return list.value.find((i: any) => i.id === selectedOrderId.value) || null
|
||||
@ -320,6 +333,44 @@ async function handleExport() {
|
||||
function openColumnConfigPanel() {
|
||||
upperTable.value?.openColumnConfig?.()
|
||||
}
|
||||
|
||||
const buttonLoadingMap = computed<Record<string, boolean>>(() => ({
|
||||
exportLoading: exportLoading.value
|
||||
}))
|
||||
|
||||
const buttonDisabledMap = computed<Record<string, boolean>>(() => ({}))
|
||||
|
||||
const buttonLabelMap = computed<Record<string, string>>(() => ({
|
||||
detailToggleLabel: detailVisible.value ? '隐藏详情' : '显示详情'
|
||||
}))
|
||||
|
||||
const { actionMap: toolbarActionMap } = createSimpleListToolbarController({
|
||||
loadData,
|
||||
handleExport,
|
||||
openColumnConfigPanel,
|
||||
toggleDetailVisible
|
||||
})
|
||||
|
||||
function resolveButtonLoading(loadingKey?: string) {
|
||||
if (!loadingKey) return false
|
||||
return Boolean(buttonLoadingMap.value[loadingKey])
|
||||
}
|
||||
|
||||
function resolveButtonDisabled(disabledKey?: string) {
|
||||
if (!disabledKey) return false
|
||||
return Boolean(buttonDisabledMap.value[disabledKey])
|
||||
}
|
||||
|
||||
function resolveButtonLabel(defaultLabel: string, dynamicLabelKey?: string) {
|
||||
if (!dynamicLabelKey) return defaultLabel
|
||||
return buttonLabelMap.value[dynamicLabelKey] || defaultLabel
|
||||
}
|
||||
|
||||
function handleToolbarButtonClick(action: ToolbarButtonConfig['action']) {
|
||||
const handler = toolbarActionMap[action]
|
||||
if (!handler) return
|
||||
safeInvoke(() => handler())
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
@ -64,7 +64,7 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { orderPendingOrder } from '@/api/order.pendingOrder/orderpendingOrder'
|
||||
import { orderPendingOrder } from '@/api/order.pendingorder/orderpendingOrder'
|
||||
|
||||
const visible = defineModel<boolean>({ default: false })
|
||||
|
||||
|
||||
@ -318,8 +318,8 @@ import { ElMessage } from 'element-plus'
|
||||
import type { FormInstance, FormRules } from 'element-plus'
|
||||
import * as indexApi from '@/api/index/index'
|
||||
import { stockWarehouse } from '@/api/stock/stock'
|
||||
import { orderPendingOrder } from '@/api/order.pendingOrder/orderpendingOrder'
|
||||
import type { PendingOrderCreateOrderParams } from '@/api/order.pendingOrder/orderpendingOrder'
|
||||
import { orderPendingOrder } from '@/api/order.pendingorder/orderpendingOrder'
|
||||
import type { PendingOrderCreateOrderParams } from '@/api/order.pendingorder/orderpendingOrder'
|
||||
import pcasCodeData from 'china-division/dist/pcas-code.json'
|
||||
|
||||
const visible = defineModel<boolean>({ default: false })
|
||||
|
||||
@ -52,7 +52,8 @@ const needTranslateFields = new Set([
|
||||
'print_status',
|
||||
'order_status',
|
||||
'intercept_status',
|
||||
'source_platform_code'
|
||||
'source_platform_code',
|
||||
'sys_platform_code'
|
||||
])
|
||||
|
||||
function displayValue(prop: string) {
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, watch } from 'vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { orderPendingOrder } from '@/api/order.pendingOrder/orderpendingOrder'
|
||||
import { orderPendingOrder } from '@/api/order.pendingorder/orderpendingOrder'
|
||||
|
||||
const props = defineProps<{
|
||||
row: Record<string, any> | null
|
||||
|
||||
@ -41,7 +41,7 @@
|
||||
<script setup lang="ts">
|
||||
import { reactive, ref } from 'vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { orderOutboundOrder } from '@/api/order.outboundOrder/orderoutboundOrder'
|
||||
import { orderOutboundOrder } from '@/api/order.outboundorder/orderoutboundOrder'
|
||||
|
||||
const emit = defineEmits<{
|
||||
(e: 'success', data: any): void
|
||||
|
||||
@ -80,7 +80,7 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, watch } from 'vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { orderPendingOrder } from '@/api/order.pendingOrder/orderpendingOrder'
|
||||
import { orderPendingOrder } from '@/api/order.pendingorder/orderpendingOrder'
|
||||
import { getTagType, translateOrderField } from '../config/order-common-config'
|
||||
|
||||
const props = defineProps<{
|
||||
|
||||
@ -78,8 +78,15 @@ export const COMMON_TRANSLATIONS: Record<string, Record<string, string>> = {
|
||||
'JD': '京东',
|
||||
'TAOBAO': '淘宝',
|
||||
'TB': '淘宝'
|
||||
}
|
||||
,
|
||||
},
|
||||
/** 与 list 接口 raw 行字段一致(同 source_platform_code 展示映射) */
|
||||
sys_platform_code: {
|
||||
'OFFLINE': '线下',
|
||||
'PDD': '拼多多',
|
||||
'JD': '京东',
|
||||
'TAOBAO': '淘宝',
|
||||
'TB': '淘宝'
|
||||
},
|
||||
inspection_status: {
|
||||
'none': '未审核',
|
||||
'pending': '待审核',
|
||||
@ -211,7 +218,25 @@ export const ORDER_TOOLBAR_BUTTONS: Record<string, ToolbarButtonConfig> = {
|
||||
cloneOrder: { key: 'cloneOrder', label: '克隆订单', size: 'small', type: 'warning', plain: true, loadingKey: 'cloneOrderLoading', disabledKey: 'notSingleSelection', action: 'openCloneOrderDialog' },
|
||||
syncOrderIds: { key: 'syncOrderIds', label: '同步订单', size: 'small', type: 'primary', plain: true, loadingKey: 'syncOrderIdsLoading', disabledKey: 'hasNoSelection', action: 'openSyncOrderIdsDialog' },
|
||||
cancelOrder: { key: 'cancelOrder', label: '取消订单', size: 'small', type: 'danger', loadingKey: 'actionLoading', disabledKey: 'hasNoSelection', action: 'handleCancelOrder' },
|
||||
batchReview: { key: 'batchReview', label: '批量审核通过', size: 'small', type: 'success', loadingKey: 'reviewSubmitting', disabledKey: 'hasNoSelection', action: 'handleBatchReview' }
|
||||
batchReview: { key: 'batchReview', label: '批量审核通过', size: 'small', type: 'success', loadingKey: 'reviewSubmitting', disabledKey: 'hasNoSelection', action: 'handleBatchReview' },
|
||||
manualOutboundMigrate: {
|
||||
key: 'manualOutboundMigrate',
|
||||
label: '手动出库迁移',
|
||||
size: 'small',
|
||||
type: 'warning',
|
||||
loadingKey: 'manualLoading',
|
||||
disabledKey: 'hasNoOutboundTarget',
|
||||
action: 'handleToolbarManualOutbound'
|
||||
},
|
||||
resolveException: {
|
||||
key: 'resolveException',
|
||||
label: '处理异常订单',
|
||||
size: 'small',
|
||||
type: 'warning',
|
||||
loadingKey: 'resolveExceptionLoading',
|
||||
disabledKey: 'hasNoSelection',
|
||||
action: 'openResolveExceptionDialog'
|
||||
}
|
||||
}
|
||||
|
||||
export function pickToolbarButtons(keys: string[]) {
|
||||
@ -350,12 +375,33 @@ export const ORDER_DETAIL_TIME_FIELDS = new Set([
|
||||
'operate_time'
|
||||
])
|
||||
|
||||
|
||||
/**
|
||||
* 仅列表基础能力:刷新 / 导出 / 字段设置 / 详情开关。
|
||||
*/
|
||||
export const simpleListToolbarButtonKeys = [
|
||||
'refresh',
|
||||
'export',
|
||||
'columnConfig',
|
||||
'toggleDetail'
|
||||
]
|
||||
export const simpleListToolbarButtons = pickToolbarButtons(simpleListToolbarButtonKeys)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// deliveryOrder相关配置
|
||||
export const deliveryAvailableFields = [
|
||||
{ label: '货主', value: 'store_id', type: 'select', multiple: true, options: [] },
|
||||
{ label: '订单号', value: 'delivery_order_code', type: 'text' },
|
||||
{ label: '店铺名称', value: 'shop_nick', type: 'text' },
|
||||
{ label: '来源平台', value: 'source_platform_name', type: 'select', options: [] },
|
||||
{ label: '来源平台', value: 'sys_platform_name', type: 'select', options: [] },
|
||||
{ label: '收货人', value: 'name', type: 'text' },
|
||||
{ label: '手机号', value: 'mobile', type: 'text' },
|
||||
{ label: '物流公司', value: 'logistics_name', type: 'select', options: [] },
|
||||
@ -381,7 +427,7 @@ export const deliveryAvailableFields = [
|
||||
export const deliveryColumns = [
|
||||
{ prop: 'shop_nick', label: '店铺名称', width: '140' },
|
||||
{ prop: 'delivery_order_code', label: '配送单号', width: '170' },
|
||||
{ prop: 'source_platform_code', label: '平台来源', width: '100' },
|
||||
{ prop: 'sys_platform_code', label: '平台来源', width: '100' },
|
||||
{ prop: 'name', label: '收货人', width: '100' },
|
||||
{ prop: 'mobile', label: '手机号', width: '120' },
|
||||
{ prop: 'status', label: '订单状态', width: '100' },
|
||||
@ -439,6 +485,13 @@ export const deliverybuttonList: any[] = [
|
||||
},
|
||||
]
|
||||
|
||||
/** deliveryOrder */
|
||||
export const deliveryOrderToolbarButtonKeys = simpleListToolbarButtonKeys
|
||||
export const deliveryOrderToolbarButtons = simpleListToolbarButtons
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// revieworder相关配置
|
||||
export const reviewAvailableFields = [
|
||||
@ -539,10 +592,7 @@ export const reviewOrderbuttonList: any[] = [
|
||||
]
|
||||
|
||||
export const reviewToolbarButtonKeys = [
|
||||
'refresh',
|
||||
'export',
|
||||
'columnConfig',
|
||||
'toggleDetail',
|
||||
...simpleListToolbarButtonKeys,
|
||||
'manualCreate',
|
||||
'batchReview'
|
||||
]
|
||||
@ -553,14 +603,33 @@ export const reviewToolbarButtons = pickToolbarButtons(reviewToolbarButtonKeys)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/** entrustWarehouse(委托外仓) */
|
||||
export const entrustWarehouseToolbarButtonKeys = simpleListToolbarButtonKeys
|
||||
export const entrustWarehouseToolbarButtons = simpleListToolbarButtons
|
||||
|
||||
/** deliveryException(配送异常) */
|
||||
export const deliveryExceptionToolbarButtonKeys = simpleListToolbarButtonKeys
|
||||
export const deliveryExceptionToolbarButtons = simpleListToolbarButtons
|
||||
|
||||
/** 待出库:在简单列表基础上增加手动出库迁移 */
|
||||
export const outboundToolbarButtonKeys = [
|
||||
...simpleListToolbarButtonKeys,
|
||||
'manualOutboundMigrate',
|
||||
]
|
||||
export const outboundToolbarButtons = pickToolbarButtons(outboundToolbarButtonKeys)
|
||||
|
||||
|
||||
|
||||
// pendingOrder相关配置
|
||||
export const pendingAvailableFields = [
|
||||
{ label: '货主', value: 'store_id', type: 'select', multiple: true, options: [] },
|
||||
{ label: '订单号', value: 'order_code', type: 'text' },
|
||||
{ label: '店铺名称', value: 'shop_nick', type: 'text' },
|
||||
{ label: '来源平台', value: 'source_platform_name', type: 'select', options: [] },
|
||||
{ label: '来源平台', value: 'sys_platform_name', type: 'select', options: [] },
|
||||
{ label: '物流公司', value: 'logistics_name', type: 'select', options: [] },
|
||||
{ label: '物流单号', value: 'waybill_codes', type: 'text' },
|
||||
{ label: '快递单号', value: 'waybill_codes', type: 'text' },
|
||||
{ label: '收货人', value: 'name', type: 'text' },
|
||||
{ label: '手机号', value: 'mobile', type: 'text' },
|
||||
{ label: '省份', value: 'province', type: 'text' },
|
||||
@ -584,6 +653,7 @@ export const pendingCloums = [
|
||||
{ prop: 'post_status', label: '快递', width: '100' },
|
||||
{ prop: 'pick_status', label: '拣货状态', width: '100' },
|
||||
{ prop: 'pack_status', label: '打包状态', width: '100' },
|
||||
{ prop: 'waybill_codes', label: '快递单号', width: '160', formatter: waybillCodesFormatter },
|
||||
{ prop: 'items_count', label: '商品种类', width: '100' },
|
||||
{ prop: 'items_total', label: '商品总数', width: '100' },
|
||||
{ prop: 'province', label: '省份', width: '100' },
|
||||
@ -592,7 +662,6 @@ export const pendingCloums = [
|
||||
{ prop: 'place_order_time', label: '时效', width: '165', formatter: orderTimeFormatter },
|
||||
{ prop: 'sys_platform_name', label: '来源', width: '120' },
|
||||
{ prop: 'logistics_name', label: '快递', width: '120' },
|
||||
{ prop: 'waybill_codes', label: '快递单号', width: '160', formatter: waybillCodesFormatter },
|
||||
{ prop: 'remark', label: '留言', width: '160' },
|
||||
]
|
||||
|
||||
@ -693,10 +762,7 @@ export const pendingOrderbuttonList: any[] = [
|
||||
]
|
||||
|
||||
export const pendingToolbarButtonKeys = [
|
||||
'refresh',
|
||||
'export',
|
||||
'columnConfig',
|
||||
'toggleDetail',
|
||||
...simpleListToolbarButtonKeys,
|
||||
'reverseReview',
|
||||
'markPendingOutbound',
|
||||
'allocateStorage',
|
||||
@ -714,6 +780,19 @@ export const pendingToolbarButtonKeys = [
|
||||
/** 页面级按钮列表:pendingOrder 直接消费,避免页面内重复拼装 */
|
||||
export const pendingToolbarButtons = pickToolbarButtons(pendingToolbarButtonKeys)
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 异常订单页:与 pendingToolbarButtonKeys 相同的一批接口按钮,去掉「同步订单」,末尾为处理异常订单
|
||||
*/
|
||||
export const exceptionToolbarButtonKeys = [
|
||||
...pendingToolbarButtonKeys.filter((key) => key !== 'syncOrderIds'),
|
||||
'resolveException'
|
||||
]
|
||||
export const exceptionToolbarButtons = pickToolbarButtons(exceptionToolbarButtonKeys)
|
||||
|
||||
|
||||
|
||||
export const outboundAvailableFields = pendingAvailableFields
|
||||
export const outboundColumns = pendingCloums
|
||||
|
||||
@ -735,7 +814,7 @@ export const workbenchAvailableFields = [
|
||||
|
||||
export const workbenchColumns = [
|
||||
{ prop: 'delivery_order_code', label: '订单号', minWidth: 160 },
|
||||
{ prop: 'source_platform_name', label: '平台', minWidth: 120 },
|
||||
{ prop: 'sys_platform_name', label: '平台', minWidth: 120 },
|
||||
{ prop: 'shop_nick', label: '店铺名称', minWidth: 140 },
|
||||
{ prop: 'buyer_nick', label: '买家昵称', minWidth: 140 },
|
||||
{ prop: 'name', label: '收货人', minWidth: 100 },
|
||||
@ -773,10 +852,10 @@ export const workbenchBadgeItems = [
|
||||
// expectionOrder相关配置
|
||||
export const expectionOrderAvailableFields = [
|
||||
{ label: '货主', value: 'store_id', type: 'select', multiple: true, options: [] },
|
||||
{ label: '订单号', value: 'order_code', type: 'input' },
|
||||
{ label: '发货单号', value: 'delivery_order_code', type: 'input' },
|
||||
{ label: '订单号', value: 'order_code', type: 'text' },
|
||||
{ label: '发货单号', value: 'delivery_order_code', type: 'text' },
|
||||
{ label: '物流公司', value: 'logistics_name', type: 'select', options: [] },
|
||||
{ label: '快递单号', value: 'express_code', type: 'input' },
|
||||
{ label: '快递单号', value: 'express_code', type: 'text' },
|
||||
{ label: '拦截状态', value: 'intercept_status', type: 'select', options: [
|
||||
{ label: '无', value: 'none' },
|
||||
{ label: '待拦截', value: 'pending' },
|
||||
@ -816,7 +895,7 @@ export const expectionOrderDetail = [
|
||||
{ prop: 'order_code', label: '订单号' },
|
||||
{ prop: 'order_type', label: '订单类型' },
|
||||
{ prop: 'shop_nick', label: '店铺名称' },
|
||||
{ prop: 'source_platform_name', label: '来源平台' },
|
||||
{ prop: 'sys_platform_name', label: '来源平台' },
|
||||
{ prop: 'status', label: '系统状态' },
|
||||
{ prop: 'intercept_status', label: '拦截状态' },
|
||||
|
||||
@ -865,11 +944,11 @@ export const expectionOrderbuttonList: any[] = [
|
||||
// archiveOrder相关配置
|
||||
export const archiveAvailableFields = [
|
||||
{ label: '货主', value: 'store_id', type: 'select', multiple: true, options: [] },
|
||||
{ label: '订单号', value: 'order_code', type: 'input' },
|
||||
{ label: '发货单号', value: 'delivery_order_code', type: 'input' },
|
||||
{ label: '店铺名称', value: 'shop_nick', type: 'input' },
|
||||
{ label: '收货人', value: 'name', type: 'input' },
|
||||
{ label: '手机号', value: 'mobile', type: 'input' },
|
||||
{ label: '订单号', value: 'order_code', type: 'text' },
|
||||
{ label: '发货单号', value: 'delivery_order_code', type: 'text' },
|
||||
{ label: '店铺名称', value: 'shop_nick', type: 'text' },
|
||||
{ label: '收货人', value: 'name', type: 'text' },
|
||||
{ label: '手机号', value: 'mobile', type: 'text' },
|
||||
{ label: '状态', value: 'status', type: 'select', options: [
|
||||
{ label: '已完成', value: 'finished' },
|
||||
{ label: '已作废', value: 'cancelled' },
|
||||
@ -898,7 +977,7 @@ export const archiveOrderDetail = [
|
||||
{ prop: 'order_code', label: '订单号' },
|
||||
{ prop: 'order_type', label: '订单类型' },
|
||||
{ prop: 'shop_nick', label: '店铺名称' },
|
||||
{ prop: 'source_platform_name', label: '来源平台' },
|
||||
{ prop: 'sys_platform_name', label: '来源平台' },
|
||||
{ prop: 'status', label: '系统状态' },
|
||||
|
||||
// 收货信息
|
||||
@ -926,4 +1005,6 @@ export const archiveOrderDetail = [
|
||||
{ prop: 'updated_at', label: '归档/更新时间' },
|
||||
]
|
||||
|
||||
|
||||
/** archiveOrder */
|
||||
export const archiveOrderToolbarButtonKeys = simpleListToolbarButtonKeys
|
||||
export const archiveOrderToolbarButtons = simpleListToolbarButtons
|
||||
@ -15,10 +15,18 @@
|
||||
<div class="main-content">
|
||||
<div class="toolbar">
|
||||
<div class="toolbar-left">
|
||||
<el-button size="small" type="primary" @click="loadData">刷新</el-button>
|
||||
<el-button size="small" :loading="exportLoading" @click="handleExport">导出</el-button>
|
||||
<el-button size="small" @click="openColumnConfigPanel">字段设置</el-button>
|
||||
<el-button size="small" @click="toggleDetailVisible">{{ detailVisible ? '隐藏详情' : '显示详情' }}</el-button>
|
||||
<el-button
|
||||
v-for="button in toolbarButtons"
|
||||
:key="button.key"
|
||||
:size="button.size || 'small'"
|
||||
:type="button.type"
|
||||
:plain="button.plain"
|
||||
:disabled="resolveButtonDisabled(button.disabledKey)"
|
||||
:loading="resolveButtonLoading(button.loadingKey)"
|
||||
@click="handleToolbarButtonClick(button.action)"
|
||||
>
|
||||
{{ resolveButtonLabel(button.label, button.dynamicLabelKey) }}
|
||||
</el-button>
|
||||
</div>
|
||||
|
||||
<div class="toolbar-right">
|
||||
@ -113,6 +121,8 @@ import { orderDeliveryExpectionOrder } from '@/api/order.deliveryexpectionorder/
|
||||
import {
|
||||
archiveAvailableFields,
|
||||
archiveColumns,
|
||||
deliveryExceptionToolbarButtons,
|
||||
type ToolbarButtonConfig,
|
||||
translateOrderField,
|
||||
getTagType
|
||||
} from './config/order-common-config'
|
||||
@ -120,6 +130,8 @@ import WorkbenchOrderDetail from './component/WorkbenchOrderDetail.vue'
|
||||
import log from './component/log.vue'
|
||||
import { exportUpperTableRows } from './utils/export'
|
||||
import { useVerticalSplitPane } from '@/composables/useVerticalSplitPane'
|
||||
import { createSimpleListToolbarController } from './utils/toolbar-actions'
|
||||
import { safeInvoke } from '@/utils/safe-invoke'
|
||||
|
||||
const scanBox = ref<any>(null)
|
||||
const upperTable = ref<any>(null)
|
||||
@ -145,6 +157,7 @@ const selectedOrderId = ref<number | string | null>(null)
|
||||
const detailVisible = ref(true)
|
||||
|
||||
const quickSearch = ref('')
|
||||
const toolbarButtons = deliveryExceptionToolbarButtons
|
||||
|
||||
const selectedRow = computed(() => {
|
||||
return list.value.find((i: any) => i.id === selectedOrderId.value) || null
|
||||
@ -320,6 +333,44 @@ async function handleExport() {
|
||||
function openColumnConfigPanel() {
|
||||
upperTable.value?.openColumnConfig?.()
|
||||
}
|
||||
|
||||
const buttonLoadingMap = computed<Record<string, boolean>>(() => ({
|
||||
exportLoading: exportLoading.value
|
||||
}))
|
||||
|
||||
const buttonDisabledMap = computed<Record<string, boolean>>(() => ({}))
|
||||
|
||||
const buttonLabelMap = computed<Record<string, string>>(() => ({
|
||||
detailToggleLabel: detailVisible.value ? '隐藏详情' : '显示详情'
|
||||
}))
|
||||
|
||||
const { actionMap: toolbarActionMap } = createSimpleListToolbarController({
|
||||
loadData,
|
||||
handleExport,
|
||||
openColumnConfigPanel,
|
||||
toggleDetailVisible
|
||||
})
|
||||
|
||||
function resolveButtonLoading(loadingKey?: string) {
|
||||
if (!loadingKey) return false
|
||||
return Boolean(buttonLoadingMap.value[loadingKey])
|
||||
}
|
||||
|
||||
function resolveButtonDisabled(disabledKey?: string) {
|
||||
if (!disabledKey) return false
|
||||
return Boolean(buttonDisabledMap.value[disabledKey])
|
||||
}
|
||||
|
||||
function resolveButtonLabel(defaultLabel: string, dynamicLabelKey?: string) {
|
||||
if (!dynamicLabelKey) return defaultLabel
|
||||
return buttonLabelMap.value[dynamicLabelKey] || defaultLabel
|
||||
}
|
||||
|
||||
function handleToolbarButtonClick(action: ToolbarButtonConfig['action']) {
|
||||
const handler = toolbarActionMap[action]
|
||||
if (!handler) return
|
||||
safeInvoke(() => handler())
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
@ -15,10 +15,18 @@
|
||||
<div class="main-content">
|
||||
<div class="toolbar">
|
||||
<div class="toolbar-left">
|
||||
<el-button size="small" type="primary" @click="loadData">刷新</el-button>
|
||||
<el-button size="small" :loading="exportLoading" @click="handleExport">导出</el-button>
|
||||
<el-button size="small" @click="openColumnConfigPanel">字段设置</el-button>
|
||||
<el-button size="small" @click="toggleDetailVisible">{{ detailVisible ? '隐藏详情' : '显示详情' }}</el-button>
|
||||
<el-button
|
||||
v-for="button in toolbarButtons"
|
||||
:key="button.key"
|
||||
:size="button.size || 'small'"
|
||||
:type="button.type"
|
||||
:plain="button.plain"
|
||||
:disabled="resolveButtonDisabled(button.disabledKey)"
|
||||
:loading="resolveButtonLoading(button.loadingKey)"
|
||||
@click="handleToolbarButtonClick(button.action)"
|
||||
>
|
||||
{{ resolveButtonLabel(button.label, button.dynamicLabelKey) }}
|
||||
</el-button>
|
||||
</div>
|
||||
|
||||
<div class="toolbar-right">
|
||||
@ -54,8 +62,8 @@
|
||||
@refresh="loadData"
|
||||
@selection-change="onSelectionChange"
|
||||
>
|
||||
<template #column-source_platform_code="{ row }">
|
||||
{{ translateOrderField('source_platform_code', row.source_platform_code) }}
|
||||
<template #column-sys_platform_code="{ row }">
|
||||
{{ translateOrderField('sys_platform_code', row.sys_platform_code) }}
|
||||
</template>
|
||||
|
||||
<template #column-status="{ row }">
|
||||
@ -158,11 +166,13 @@ import { ElMessage } from 'element-plus'
|
||||
import ScanBox from '@/components/ScanBox/index.vue'
|
||||
import UpperTable from '@/components/UpperTable/index.vue'
|
||||
import * as indexApi from '@/api/index/index'
|
||||
import { orderDeliveryOrder } from '@/api/order.deliveryOrder/orderdeliveryOrder'
|
||||
import { orderDeliveryOrder } from '@/api/order.deliveryorder/orderdeliveryOrder'
|
||||
|
||||
import {
|
||||
deliveryAvailableFields,
|
||||
deliveryColumns,
|
||||
deliveryOrderToolbarButtons,
|
||||
type ToolbarButtonConfig,
|
||||
translateOrderField,
|
||||
getTagType
|
||||
} from './config/order-common-config'
|
||||
@ -170,6 +180,8 @@ import WorkbenchOrderDetail from './component/WorkbenchOrderDetail.vue'
|
||||
import log from './component/log.vue'
|
||||
import { exportUpperTableRows } from './utils/export'
|
||||
import { useVerticalSplitPane } from '@/composables/useVerticalSplitPane'
|
||||
import { createSimpleListToolbarController } from './utils/toolbar-actions'
|
||||
import { safeInvoke } from '@/utils/safe-invoke'
|
||||
|
||||
const scanBox = ref<any>(null)
|
||||
const upperTable = ref<any>(null)
|
||||
@ -188,6 +200,7 @@ const selectionRows = ref<any[]>([])
|
||||
const selectedOrderId = ref<number | string | null>(null)
|
||||
const detailVisible = ref(true)
|
||||
const quickSearch = ref('')
|
||||
const toolbarButtons = deliveryOrderToolbarButtons
|
||||
|
||||
const selectedRow = computed(() => {
|
||||
return list.value.find((i: any) => i.id === selectedOrderId.value) || null
|
||||
@ -241,12 +254,12 @@ async function loadOrderMetaOptions() {
|
||||
|
||||
const logisticsField = availableFieldsRef.find((i: any) => i.value === 'logistics_name')
|
||||
if (logisticsField) logisticsField.options = mapNameOptions(expressRaw, ['name', 'logistics_name', 'express_name'])
|
||||
const platformField = availableFieldsRef.find((i: any) => i.value === 'source_platform_name')
|
||||
const platformField = availableFieldsRef.find((i: any) => i.value === 'sys_platform_name')
|
||||
if (platformField) platformField.options = mapNameOptions(platformRaw, ['name', 'platform_name'])
|
||||
} catch {
|
||||
const logisticsField = availableFieldsRef.find((i: any) => i.value === 'logistics_name')
|
||||
if (logisticsField) logisticsField.options = []
|
||||
const platformField = availableFieldsRef.find((i: any) => i.value === 'source_platform_name')
|
||||
const platformField = availableFieldsRef.find((i: any) => i.value === 'sys_platform_name')
|
||||
if (platformField) platformField.options = []
|
||||
}
|
||||
}
|
||||
@ -380,6 +393,44 @@ async function handleExport() {
|
||||
function openColumnConfigPanel() {
|
||||
upperTable.value?.openColumnConfig?.()
|
||||
}
|
||||
|
||||
const buttonLoadingMap = computed<Record<string, boolean>>(() => ({
|
||||
exportLoading: exportLoading.value
|
||||
}))
|
||||
|
||||
const buttonDisabledMap = computed<Record<string, boolean>>(() => ({}))
|
||||
|
||||
const buttonLabelMap = computed<Record<string, string>>(() => ({
|
||||
detailToggleLabel: detailVisible.value ? '隐藏详情' : '显示详情'
|
||||
}))
|
||||
|
||||
const { actionMap: toolbarActionMap } = createSimpleListToolbarController({
|
||||
loadData,
|
||||
handleExport,
|
||||
openColumnConfigPanel,
|
||||
toggleDetailVisible
|
||||
})
|
||||
|
||||
function resolveButtonLoading(loadingKey?: string) {
|
||||
if (!loadingKey) return false
|
||||
return Boolean(buttonLoadingMap.value[loadingKey])
|
||||
}
|
||||
|
||||
function resolveButtonDisabled(disabledKey?: string) {
|
||||
if (!disabledKey) return false
|
||||
return Boolean(buttonDisabledMap.value[disabledKey])
|
||||
}
|
||||
|
||||
function resolveButtonLabel(defaultLabel: string, dynamicLabelKey?: string) {
|
||||
if (!dynamicLabelKey) return defaultLabel
|
||||
return buttonLabelMap.value[dynamicLabelKey] || defaultLabel
|
||||
}
|
||||
|
||||
function handleToolbarButtonClick(action: ToolbarButtonConfig['action']) {
|
||||
const handler = toolbarActionMap[action]
|
||||
if (!handler) return
|
||||
safeInvoke(() => handler())
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
@ -15,10 +15,18 @@
|
||||
<div class="main-content">
|
||||
<div class="toolbar">
|
||||
<div class="toolbar-left">
|
||||
<el-button size="small" type="primary" @click="loadData">刷新</el-button>
|
||||
<el-button size="small" :loading="exportLoading" @click="handleExport">导出</el-button>
|
||||
<el-button size="small" @click="openColumnConfigPanel">字段设置</el-button>
|
||||
<el-button size="small" @click="toggleDetailVisible">{{ detailVisible ? '隐藏详情' : '显示详情' }}</el-button>
|
||||
<el-button
|
||||
v-for="button in toolbarButtons"
|
||||
:key="button.key"
|
||||
:size="button.size || 'small'"
|
||||
:type="button.type"
|
||||
:plain="button.plain"
|
||||
:disabled="resolveButtonDisabled(button.disabledKey)"
|
||||
:loading="resolveButtonLoading(button.loadingKey)"
|
||||
@click="handleToolbarButtonClick(button.action)"
|
||||
>
|
||||
{{ resolveButtonLabel(button.label, button.dynamicLabelKey) }}
|
||||
</el-button>
|
||||
</div>
|
||||
|
||||
<div class="toolbar-right">
|
||||
@ -113,6 +121,8 @@ import { orderEntrustOrder } from '@/api/order.entrustorder/orderentrustorder'
|
||||
import {
|
||||
archiveAvailableFields,
|
||||
archiveColumns,
|
||||
entrustWarehouseToolbarButtons,
|
||||
type ToolbarButtonConfig,
|
||||
translateOrderField,
|
||||
getTagType
|
||||
} from './config/order-common-config'
|
||||
@ -120,6 +130,8 @@ import WorkbenchOrderDetail from './component/WorkbenchOrderDetail.vue'
|
||||
import log from './component/log.vue'
|
||||
import { exportUpperTableRows } from './utils/export'
|
||||
import { useVerticalSplitPane } from '@/composables/useVerticalSplitPane'
|
||||
import { createSimpleListToolbarController } from './utils/toolbar-actions'
|
||||
import { safeInvoke } from '@/utils/safe-invoke'
|
||||
|
||||
const scanBox = ref<any>(null)
|
||||
const upperTable = ref<any>(null)
|
||||
@ -145,6 +157,7 @@ const selectedOrderId = ref<number | string | null>(null)
|
||||
const detailVisible = ref(true)
|
||||
|
||||
const quickSearch = ref('')
|
||||
const toolbarButtons = entrustWarehouseToolbarButtons
|
||||
|
||||
const selectedRow = computed(() => {
|
||||
return list.value.find((i: any) => i.id === selectedOrderId.value) || null
|
||||
@ -320,6 +333,44 @@ async function handleExport() {
|
||||
function openColumnConfigPanel() {
|
||||
upperTable.value?.openColumnConfig?.()
|
||||
}
|
||||
|
||||
const buttonLoadingMap = computed<Record<string, boolean>>(() => ({
|
||||
exportLoading: exportLoading.value
|
||||
}))
|
||||
|
||||
const buttonDisabledMap = computed<Record<string, boolean>>(() => ({}))
|
||||
|
||||
const buttonLabelMap = computed<Record<string, string>>(() => ({
|
||||
detailToggleLabel: detailVisible.value ? '隐藏详情' : '显示详情'
|
||||
}))
|
||||
|
||||
const { actionMap: toolbarActionMap } = createSimpleListToolbarController({
|
||||
loadData,
|
||||
handleExport,
|
||||
openColumnConfigPanel,
|
||||
toggleDetailVisible
|
||||
})
|
||||
|
||||
function resolveButtonLoading(loadingKey?: string) {
|
||||
if (!loadingKey) return false
|
||||
return Boolean(buttonLoadingMap.value[loadingKey])
|
||||
}
|
||||
|
||||
function resolveButtonDisabled(disabledKey?: string) {
|
||||
if (!disabledKey) return false
|
||||
return Boolean(buttonDisabledMap.value[disabledKey])
|
||||
}
|
||||
|
||||
function resolveButtonLabel(defaultLabel: string, dynamicLabelKey?: string) {
|
||||
if (!dynamicLabelKey) return defaultLabel
|
||||
return buttonLabelMap.value[dynamicLabelKey] || defaultLabel
|
||||
}
|
||||
|
||||
function handleToolbarButtonClick(action: ToolbarButtonConfig['action']) {
|
||||
const handler = toolbarActionMap[action]
|
||||
if (!handler) return
|
||||
safeInvoke(() => handler())
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
@ -23,80 +23,18 @@
|
||||
@mouseup="handleMouseUp"
|
||||
@mouseleave="handleMouseUp"
|
||||
>
|
||||
<el-button size="small" type="primary" @click="loadData">刷新</el-button>
|
||||
<el-button size="small" :loading="exportLoading" @click="handleExport">导出</el-button>
|
||||
<el-button size="small" @click="openColumnConfigPanel">字段设置</el-button>
|
||||
<el-button size="small" @click="toggleDetailVisible">{{ detailVisible ? '隐藏详情' : '显示详情' }}</el-button>
|
||||
<el-button size="small" :disabled="!hasSelection" :loading="actionLoading" @click="handleReverseReview">
|
||||
反审回待审核
|
||||
</el-button>
|
||||
<el-button size="small" type="warning" :disabled="!hasSelection" :loading="actionLoading" @click="handleMarkPendingOutbound">
|
||||
标记待出库
|
||||
</el-button>
|
||||
<el-button
|
||||
size="small"
|
||||
type="primary"
|
||||
plain
|
||||
:disabled="!hasSelection"
|
||||
:loading="storageAllocateLoading"
|
||||
@click="openStorageAllocateDialog"
|
||||
>
|
||||
分配储位
|
||||
</el-button>
|
||||
<el-button
|
||||
size="small"
|
||||
type="danger"
|
||||
plain
|
||||
:disabled="!hasSelection"
|
||||
:loading="storageAllocateLoading"
|
||||
@click="openStorageCancelDialog"
|
||||
>
|
||||
取消分配储位
|
||||
</el-button>
|
||||
<el-button
|
||||
size="small"
|
||||
type="success"
|
||||
:disabled="!hasSelection"
|
||||
:loading="allocateLoading"
|
||||
@click="openAllocateExpressDialog"
|
||||
>
|
||||
分配快递号
|
||||
</el-button>
|
||||
<el-button
|
||||
size="small"
|
||||
type="warning"
|
||||
plain
|
||||
:disabled="!hasSelection"
|
||||
:loading="updateOrderMetaLoading"
|
||||
@click="openUpdateOrderExpressDialog"
|
||||
>
|
||||
修改快递
|
||||
</el-button>
|
||||
<el-button
|
||||
size="small"
|
||||
type="info"
|
||||
plain
|
||||
:disabled="!hasSelection"
|
||||
:loading="updateOrderMetaLoading"
|
||||
@click="openUpdateOrderPlatformDialog"
|
||||
>
|
||||
修改平台
|
||||
</el-button>
|
||||
<el-button size="small" type="primary" plain @click="manualCreateDialogVisible = true">手动建单</el-button>
|
||||
<el-button size="small" type="success" plain @click="importOrderDialogVisible = true">Excel导入建单</el-button>
|
||||
<el-button
|
||||
size="small"
|
||||
type="warning"
|
||||
plain
|
||||
:disabled="selectionRows.length !== 1"
|
||||
:loading="cloneOrderLoading"
|
||||
@click="openCloneOrderDialog"
|
||||
>
|
||||
克隆订单
|
||||
</el-button>
|
||||
<el-button size="small" type="danger" :disabled="!hasSelection" :loading="actionLoading" @click="handleCancelOrder">
|
||||
取消订单
|
||||
</el-button>
|
||||
<el-button
|
||||
v-for="button in toolbarButtons"
|
||||
:key="button.key"
|
||||
:size="button.size || 'small'"
|
||||
:type="button.type"
|
||||
:plain="button.plain"
|
||||
:disabled="resolveButtonDisabled(button.disabledKey)"
|
||||
:loading="resolveButtonLoading(button.loadingKey)"
|
||||
@click="handleToolbarButtonClick(button.action)"
|
||||
>
|
||||
{{ resolveButtonLabel(button.label, button.dynamicLabelKey) }}
|
||||
</el-button>
|
||||
|
||||
<template v-for="(btn, index) in expectionOrderbuttonList" :key="index">
|
||||
<el-dropdown
|
||||
@ -131,16 +69,6 @@
|
||||
{{ btn.label }}
|
||||
</el-button>
|
||||
</template>
|
||||
|
||||
<el-button
|
||||
size="small"
|
||||
type="warning"
|
||||
:disabled="!hasSelection"
|
||||
:loading="resolveExceptionLoading"
|
||||
@click="openResolveExceptionDialog"
|
||||
>
|
||||
处理异常订单
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -256,65 +184,39 @@
|
||||
</template>
|
||||
</div>
|
||||
|
||||
<el-dialog
|
||||
<allocate-express-form
|
||||
v-model="allocateDialogVisible"
|
||||
title="批量分配快递号"
|
||||
width="420px"
|
||||
align-center
|
||||
destroy-on-close
|
||||
:loading="allocateLoading"
|
||||
@closed="resetAllocateDialog"
|
||||
>
|
||||
<p class="allocate-confirm-text">是否确认分配?</p>
|
||||
<template #footer>
|
||||
<el-button @click="allocateDialogVisible = false">取消</el-button>
|
||||
<el-button type="primary" :loading="allocateLoading" @click="submitAllocateExpress">
|
||||
确认
|
||||
</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog
|
||||
@submit="submitAllocateExpress"
|
||||
/>
|
||||
<storage-allocate-form
|
||||
v-model="storageDialogVisible"
|
||||
:title="storageDialogMode === 'cancel' ? '按订单批量取消分配储位' : '按订单批量分配储位'"
|
||||
width="520px"
|
||||
align-center
|
||||
destroy-on-close
|
||||
v-model:allow-storage-location="storageForm.allowStorageLocation"
|
||||
:mode="storageDialogMode"
|
||||
:order-count="storagePendingOrderIds.length"
|
||||
:loading="storageAllocateLoading"
|
||||
@closed="resetStorageAllocateDialog"
|
||||
>
|
||||
<el-form label-width="140px" class="storage-allocate-form">
|
||||
<el-form-item label="已选订单数">
|
||||
<span>{{ storagePendingOrderIds.length }} 条</span>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="storageDialogMode !== 'cancel'" label="允许存储储位">
|
||||
<el-switch v-model="storageForm.allowStorageLocation" active-text="是" inactive-text="否" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<el-button @click="storageDialogVisible = false">取消</el-button>
|
||||
<el-button type="primary" :loading="storageAllocateLoading" @click="submitStorageAllocate">
|
||||
{{ storageDialogMode === 'cancel' ? '确认取消' : '开始分配' }}
|
||||
</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog
|
||||
@submit="submitStorageAllocate"
|
||||
/>
|
||||
<update-order-meta-form
|
||||
v-model="updateOrderMetaDialogVisible"
|
||||
v-model:code="updateOrderMetaForm.code"
|
||||
:mode="updateOrderMetaDialogMode"
|
||||
:order-count="updateOrderMetaOrderIds.length"
|
||||
:loading="updateOrderMetaLoading"
|
||||
:options="updateOrderMetaOptions"
|
||||
@closed="resetUpdateOrderMetaDialog"
|
||||
@submit="submitUpdateOrderMeta"
|
||||
/>
|
||||
<clone-order-form
|
||||
v-model="cloneOrderDialogVisible"
|
||||
title="克隆待处理订单"
|
||||
width="480px"
|
||||
align-center
|
||||
destroy-on-close
|
||||
:loading="cloneOrderLoading"
|
||||
:source-order-id="cloneSourceOrderId"
|
||||
:source-order-code="cloneSourceOrderCode"
|
||||
@closed="resetCloneOrderDialog"
|
||||
>
|
||||
<el-alert type="warning" :closable="false" show-icon title="克隆会取消原订单并创建新订单,请确认后执行。" />
|
||||
<div class="clone-order-meta">
|
||||
<p>原订单ID:{{ cloneSourceOrderId || '-' }}</p>
|
||||
<p>订单号:{{ cloneSourceOrderCode || '-' }}</p>
|
||||
</div>
|
||||
<template #footer>
|
||||
<el-button @click="cloneOrderDialogVisible = false">取消</el-button>
|
||||
<el-button type="primary" :loading="cloneOrderLoading" @click="submitCloneOrder">确认克隆</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
@submit="submitCloneOrder"
|
||||
/>
|
||||
|
||||
<el-dialog
|
||||
v-model="resolveExceptionDialogVisible"
|
||||
@ -346,46 +248,6 @@
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog
|
||||
v-model="updateOrderMetaDialogVisible"
|
||||
:title="updateOrderMetaDialogMode === 'express' ? '批量修改快递信息' : '批量修改平台信息'"
|
||||
width="560px"
|
||||
align-center
|
||||
destroy-on-close
|
||||
@closed="resetUpdateOrderMetaDialog"
|
||||
>
|
||||
<el-form label-width="110px" class="storage-allocate-form">
|
||||
<el-form-item label="已选订单数">
|
||||
<span>{{ updateOrderMetaOrderIds.length }} 条</span>
|
||||
</el-form-item>
|
||||
<el-form-item :label="updateOrderMetaDialogMode === 'express' ? '快递编码' : '平台编码'" required>
|
||||
<el-select
|
||||
v-model="updateOrderMetaForm.code"
|
||||
filterable
|
||||
allow-create
|
||||
default-first-option
|
||||
:reserve-keyword="false"
|
||||
clearable
|
||||
placeholder="请选择或输入编码"
|
||||
style="width: 100%"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in updateOrderMetaOptions"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<el-button @click="updateOrderMetaDialogVisible = false">取消</el-button>
|
||||
<el-button type="primary" :loading="updateOrderMetaLoading" @click="submitUpdateOrderMeta">
|
||||
确认修改
|
||||
</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<manual-create-pending-order-dialog v-model="manualCreateDialogVisible" @success="loadData" />
|
||||
<excel-import-pending-order-dialog v-model="importOrderDialogVisible" @success="loadData" />
|
||||
</div>
|
||||
@ -401,12 +263,14 @@ import UpperTable from '@/components/UpperTable/index.vue'
|
||||
import * as indexApi from '@/api/index/index'
|
||||
import { orderQueryOrderLogs } from '@/api/order.index/orderindex'
|
||||
import { orderExpectionOrder } from '@/api/order.expectionorder/orderexpectionorder'
|
||||
import { orderPendingOrder } from '@/api/order.pendingOrder/orderpendingOrder'
|
||||
import { orderPendingOrder } from '@/api/order.pendingorder/orderpendingOrder'
|
||||
|
||||
import {
|
||||
expectionColumns,
|
||||
expectionOrderAvailableFields,
|
||||
expectionOrderbuttonList,
|
||||
exceptionToolbarButtons,
|
||||
type ToolbarButtonConfig,
|
||||
translateOrderField,
|
||||
formatOrderTime,
|
||||
getTagType
|
||||
@ -425,8 +289,14 @@ import ArchiveOrderPanel from './component/ArchiveOrderPanel.vue'
|
||||
import log from './component/log.vue'
|
||||
import ManualCreatePendingOrderDialog from './component/ManualCreatePendingOrderDialog.vue'
|
||||
import ExcelImportPendingOrderDialog from './component/ExcelImportPendingOrderDialog.vue'
|
||||
import AllocateExpressForm from './form/AllocateExpressForm.vue'
|
||||
import StorageAllocateForm from './form/StorageAllocateForm.vue'
|
||||
import UpdateOrderMetaForm from './form/UpdateOrderMetaForm.vue'
|
||||
import CloneOrderForm from './form/CloneOrderForm.vue'
|
||||
import { exportUpperTableRows } from './utils/export'
|
||||
import { useVerticalSplitPane } from '@/composables/useVerticalSplitPane'
|
||||
import { createPendingToolbarController } from './utils/toolbar-actions'
|
||||
import { safeInvoke } from '@/utils/safe-invoke'
|
||||
|
||||
const scanBox = ref<any>(null)
|
||||
const upperTable = ref<any>(null)
|
||||
@ -439,36 +309,14 @@ const activeTab = ref('items')
|
||||
const list = ref<any[]>([])
|
||||
const loading = ref(false)
|
||||
const exportLoading = ref(false)
|
||||
const allocateLoading = ref(false)
|
||||
const storageAllocateLoading = ref(false)
|
||||
const updateOrderMetaLoading = ref(false)
|
||||
const queryTime = ref(0)
|
||||
|
||||
const actionLoading = ref(false)
|
||||
const allocateDialogVisible = ref(false)
|
||||
const allocatePendingRows = ref<any[]>([])
|
||||
|
||||
const storageDialogVisible = ref(false)
|
||||
const storageDialogMode = ref<'allocate' | 'cancel'>('allocate')
|
||||
const storagePendingOrderIds = ref<Array<number | string>>([])
|
||||
const storageForm = reactive<{ allowStorageLocation: boolean }>({
|
||||
allowStorageLocation: false
|
||||
})
|
||||
const cloneOrderDialogVisible = ref(false)
|
||||
const cloneOrderLoading = ref(false)
|
||||
const cloneSourceOrderId = ref<number | null>(null)
|
||||
const cloneSourceOrderCode = ref('')
|
||||
const manualCreateDialogVisible = ref(false)
|
||||
const importOrderDialogVisible = ref(false)
|
||||
const resolveExceptionDialogVisible = ref(false)
|
||||
const resolveExceptionLoading = ref(false)
|
||||
const resolveExceptionOrderIds = ref<number[]>([])
|
||||
const updateOrderMetaDialogVisible = ref(false)
|
||||
const updateOrderMetaDialogMode = ref<'express' | 'platform'>('express')
|
||||
const updateOrderMetaOrderIds = ref<number[]>([])
|
||||
const updateOrderMetaForm = reactive({
|
||||
code: ''
|
||||
})
|
||||
const expressCodeOptions = ref<Array<{ label: string; value: string }>>([])
|
||||
const platformCodeOptions = ref<Array<{ label: string; value: string }>>([])
|
||||
|
||||
@ -483,6 +331,7 @@ const selectedOrderId = ref<number | string | null>(null)
|
||||
const detailVisible = ref(true)
|
||||
|
||||
const quickSearch = ref('')
|
||||
const toolbarButtons = exceptionToolbarButtons
|
||||
|
||||
const scrollContainerRef = ref<HTMLElement | null>(null)
|
||||
const isDragging = ref(false)
|
||||
@ -533,12 +382,6 @@ function toggleDetailVisible() {
|
||||
detailVisible.value = !detailVisible.value
|
||||
}
|
||||
|
||||
const updateOrderMetaOptions = computed(() => {
|
||||
return updateOrderMetaDialogMode.value === 'express'
|
||||
? expressCodeOptions.value
|
||||
: platformCodeOptions.value
|
||||
})
|
||||
|
||||
function orderFlagFullText(row: any): string {
|
||||
const v = row?.order_flag
|
||||
if (v == null) return ''
|
||||
@ -632,276 +475,6 @@ function getSelectedIds(): number[] {
|
||||
return ids
|
||||
}
|
||||
|
||||
function openStorageDialog(mode: 'allocate' | 'cancel') {
|
||||
if (!selectionRows.value.length) {
|
||||
ElMessage.warning(mode === 'cancel' ? '请先勾选需要取消分配储位的订单' : '请先勾选需要分配储位的订单')
|
||||
return
|
||||
}
|
||||
const ids = getSelectedIds()
|
||||
if (!ids.length) {
|
||||
ElMessage.error('选中行缺少订单 id,请刷新后重试')
|
||||
return
|
||||
}
|
||||
storageDialogMode.value = mode
|
||||
storagePendingOrderIds.value = [...ids]
|
||||
storageForm.allowStorageLocation = false
|
||||
storageDialogVisible.value = true
|
||||
}
|
||||
|
||||
function openStorageAllocateDialog() {
|
||||
openStorageDialog('allocate')
|
||||
}
|
||||
|
||||
function openStorageCancelDialog() {
|
||||
openStorageDialog('cancel')
|
||||
}
|
||||
|
||||
function resetStorageAllocateDialog() {
|
||||
storageDialogMode.value = 'allocate'
|
||||
storagePendingOrderIds.value = []
|
||||
storageForm.allowStorageLocation = false
|
||||
}
|
||||
|
||||
async function submitStorageAllocate() {
|
||||
const order_ids = [...storagePendingOrderIds.value]
|
||||
if (!order_ids.length || storageAllocateLoading.value) return
|
||||
|
||||
const isCancel = storageDialogMode.value === 'cancel'
|
||||
|
||||
storageAllocateLoading.value = true
|
||||
try {
|
||||
const payload: Record<string, any> = isCancel
|
||||
? { order_ids }
|
||||
: {
|
||||
order_ids,
|
||||
allow_storage_location: storageForm.allowStorageLocation
|
||||
}
|
||||
const res = isCancel
|
||||
? await orderPendingOrder.cancelAllocateStorage(payload)
|
||||
: await orderPendingOrder.allocateStorage(payload)
|
||||
const ok = res && (res.code === 1 || res.code === 200 || res.flag === 'success')
|
||||
if (ok) {
|
||||
ElMessage.success(res.message || (isCancel ? '取消分配储位已提交' : '储位分配已提交'))
|
||||
storageDialogVisible.value = false
|
||||
upperTable.value?.clearSelection?.()
|
||||
selectionRows.value = []
|
||||
hasSelection.value = false
|
||||
await loadData()
|
||||
} else {
|
||||
ElMessage.error(res?.message || (isCancel ? '取消分配储位失败' : '储位分配失败'))
|
||||
}
|
||||
} catch {
|
||||
ElMessage.error(isCancel ? '取消分配储位失败' : '储位分配失败')
|
||||
} finally {
|
||||
storageAllocateLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
async function callAction(title: string, action: () => Promise<any>, successText: string) {
|
||||
if (actionLoading.value) return
|
||||
actionLoading.value = true
|
||||
try {
|
||||
const res = await action()
|
||||
if (res && (res.code === 1 || res.code === 200 || res.flag === 'success')) {
|
||||
ElMessage.success(`${successText} ${res.data?.updated_count || 0} 条`)
|
||||
upperTable.value?.clearSelection?.()
|
||||
selectionRows.value = []
|
||||
hasSelection.value = false
|
||||
await loadData()
|
||||
} else {
|
||||
ElMessage.error(res?.message || `${title}失败`)
|
||||
}
|
||||
} catch {
|
||||
ElMessage.error(`${title}失败`)
|
||||
} finally {
|
||||
actionLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
async function handleReverseReview() {
|
||||
const ids = getSelectedIds()
|
||||
if (!ids.length) {
|
||||
ElMessage.warning('请先选择订单')
|
||||
return
|
||||
}
|
||||
try {
|
||||
await ElMessageBox.confirm(`确定将选中的 ${ids.length} 条订单反审回待审核吗?`, '确认', { type: 'warning' })
|
||||
await callAction('反审', () => orderPendingOrder.reverseReviewOrder({ ids }), '反审成功')
|
||||
} catch {}
|
||||
}
|
||||
|
||||
async function handleMarkPendingOutbound() {
|
||||
const ids = getSelectedIds()
|
||||
if (!ids.length) {
|
||||
ElMessage.warning('请先选择订单')
|
||||
return
|
||||
}
|
||||
try {
|
||||
await ElMessageBox.confirm(`确定将选中的 ${ids.length} 条订单标记为待出库吗?`, '确认', { type: 'warning' })
|
||||
await callAction(
|
||||
'标记待出库',
|
||||
() => orderPendingOrder.markPendingOutboundOrder({ ids }),
|
||||
'标记待出库成功'
|
||||
)
|
||||
} catch {}
|
||||
}
|
||||
|
||||
async function handleCancelOrder() {
|
||||
const ids = getSelectedIds()
|
||||
if (!ids.length) {
|
||||
ElMessage.warning('请先选择订单')
|
||||
return
|
||||
}
|
||||
try {
|
||||
await ElMessageBox.confirm(`确定取消选中的 ${ids.length} 条订单吗?`, '确认', { type: 'error' })
|
||||
await callAction('取消订单', () => orderPendingOrder.cancelOrder({ ids }), '取消订单成功')
|
||||
} catch {}
|
||||
}
|
||||
|
||||
function openCloneOrderDialog() {
|
||||
if (selectionRows.value.length !== 1) {
|
||||
ElMessage.warning('请选择 1 条订单进行克隆')
|
||||
return
|
||||
}
|
||||
const row = selectionRows.value[0] || {}
|
||||
const orderId = normalizePositiveIntId(row?.order_id ?? row?.id)
|
||||
if (!orderId) {
|
||||
ElMessage.error('未识别到有效订单ID')
|
||||
return
|
||||
}
|
||||
cloneSourceOrderId.value = orderId
|
||||
cloneSourceOrderCode.value = String(row?.delivery_order_code || '')
|
||||
cloneOrderDialogVisible.value = true
|
||||
}
|
||||
|
||||
function resetCloneOrderDialog() {
|
||||
cloneSourceOrderId.value = null
|
||||
cloneSourceOrderCode.value = ''
|
||||
}
|
||||
|
||||
async function submitCloneOrder() {
|
||||
if (!cloneSourceOrderId.value || cloneOrderLoading.value) return
|
||||
cloneOrderLoading.value = true
|
||||
try {
|
||||
const res = await orderPendingOrder.cloneOrder({ order_id: cloneSourceOrderId.value })
|
||||
const ok = res && (res.code === 1 || res.code === 200 || res.flag === 'success')
|
||||
if (!ok) {
|
||||
ElMessage.error(res?.message || '克隆订单失败')
|
||||
return
|
||||
}
|
||||
const data = res?.data || {}
|
||||
ElMessage.success(`克隆成功:原订单 ${data.source_order_id ?? cloneSourceOrderId.value} -> 新订单 ${data.new_order_id ?? '-'}`)
|
||||
cloneOrderDialogVisible.value = false
|
||||
upperTable.value?.clearSelection?.()
|
||||
selectionRows.value = []
|
||||
hasSelection.value = false
|
||||
await loadData()
|
||||
} catch {
|
||||
ElMessage.error('克隆订单失败')
|
||||
} finally {
|
||||
cloneOrderLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
function computeAvailableBusinessKeys(expressNumbers: any, count = 1): number[] {
|
||||
const used = new Set<number>()
|
||||
if (Array.isArray(expressNumbers)) {
|
||||
for (const item of expressNumbers) {
|
||||
const n = Number(item)
|
||||
if (Number.isFinite(n) && n > 0 && Number.isInteger(n)) {
|
||||
used.add(n)
|
||||
}
|
||||
}
|
||||
}
|
||||
const need = Math.max(1, Number(count) || 1)
|
||||
const result: number[] = []
|
||||
let cursor = 1
|
||||
while (result.length < need) {
|
||||
if (!used.has(cursor)) {
|
||||
result.push(cursor)
|
||||
}
|
||||
cursor += 1
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
function openAllocateExpressDialog() {
|
||||
if (!selectionRows.value.length) {
|
||||
ElMessage.warning('请先勾选需要分配快递号的订单')
|
||||
return
|
||||
}
|
||||
const invalid = selectionRows.value.filter((row: any) => {
|
||||
const oid = row?.order_id ?? row?.id
|
||||
return normalizePositiveIntId(oid) === null
|
||||
})
|
||||
if (invalid.length) {
|
||||
ElMessage.error('存在无法识别有效 order_id 的行,请刷新列表后重试')
|
||||
return
|
||||
}
|
||||
allocatePendingRows.value = selectionRows.value.map((row: any) => ({ ...row }))
|
||||
allocateDialogVisible.value = true
|
||||
}
|
||||
|
||||
function resetAllocateDialog() {
|
||||
allocatePendingRows.value = []
|
||||
}
|
||||
|
||||
function buildAllocateExpressPayload(rows: any[]): Array<Record<string, any>> {
|
||||
const out: Array<Record<string, any>> = []
|
||||
for (const row of rows) {
|
||||
const base = { ...row }
|
||||
const order_id = normalizePositiveIntId(base.order_id ?? base.id)
|
||||
if (order_id === null) continue
|
||||
const business_key = computeAvailableBusinessKeys(row.express_numbers, 1)
|
||||
out.push({
|
||||
...base,
|
||||
order_id,
|
||||
business_key
|
||||
})
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
async function submitAllocateExpress() {
|
||||
const rows = allocatePendingRows.value
|
||||
if (!rows.length || allocateLoading.value) return
|
||||
|
||||
allocateLoading.value = true
|
||||
try {
|
||||
const orders = buildAllocateExpressPayload(rows)
|
||||
if (!orders.length) {
|
||||
ElMessage.error('没有有效的订单 ID,无法分配快递号')
|
||||
return
|
||||
}
|
||||
const res = await orderPendingOrder.allocateExpressCode({ orders })
|
||||
const ok = res && (res.code === 1 || res.code === 200 || res.flag === 'success')
|
||||
if (ok) {
|
||||
const data = res.data || {}
|
||||
const summary = data.summary
|
||||
const successLen = Array.isArray(data.success) ? data.success.length : undefined
|
||||
const failedLen = Array.isArray(data.failed) ? data.failed.length : undefined
|
||||
let extra = ''
|
||||
if (summary && typeof summary === 'object') {
|
||||
extra = ` ${JSON.stringify(summary)}`
|
||||
} else if (successLen !== undefined || failedLen !== undefined) {
|
||||
extra = ` 成功 ${successLen ?? '—'} 条,失败 ${failedLen ?? '—'} 条`
|
||||
}
|
||||
ElMessage.success((res.message || '分配请求已提交') + extra)
|
||||
allocateDialogVisible.value = false
|
||||
upperTable.value?.clearSelection?.()
|
||||
selectionRows.value = []
|
||||
hasSelection.value = false
|
||||
await loadData()
|
||||
} else {
|
||||
ElMessage.error(res?.message || '分配快递号失败')
|
||||
}
|
||||
} catch {
|
||||
ElMessage.error('分配快递号失败')
|
||||
} finally {
|
||||
allocateLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
loadData()
|
||||
loadFilterData()
|
||||
@ -1107,78 +680,6 @@ async function submitResolveException() {
|
||||
}
|
||||
}
|
||||
|
||||
function openUpdateOrderMetaDialog(mode: 'express' | 'platform') {
|
||||
if (!selectionRows.value.length) {
|
||||
ElMessage.warning(mode === 'express' ? '请先勾选需要修改快递的订单' : '请先勾选需要修改平台的订单')
|
||||
return
|
||||
}
|
||||
const ids = getSelectedIds()
|
||||
if (!ids.length) {
|
||||
ElMessage.error('选中行缺少订单 id,请刷新后重试')
|
||||
return
|
||||
}
|
||||
updateOrderMetaDialogMode.value = mode
|
||||
updateOrderMetaOrderIds.value = [...ids]
|
||||
updateOrderMetaForm.code = ''
|
||||
updateOrderMetaDialogVisible.value = true
|
||||
}
|
||||
|
||||
function openUpdateOrderExpressDialog() {
|
||||
openUpdateOrderMetaDialog('express')
|
||||
}
|
||||
|
||||
function openUpdateOrderPlatformDialog() {
|
||||
openUpdateOrderMetaDialog('platform')
|
||||
}
|
||||
|
||||
function resetUpdateOrderMetaDialog() {
|
||||
updateOrderMetaDialogMode.value = 'express'
|
||||
updateOrderMetaOrderIds.value = []
|
||||
updateOrderMetaForm.code = ''
|
||||
}
|
||||
|
||||
async function submitUpdateOrderMeta() {
|
||||
if (updateOrderMetaLoading.value) return
|
||||
const order_ids = [...updateOrderMetaOrderIds.value]
|
||||
const code = normalizeCode(updateOrderMetaForm.code)
|
||||
if (!order_ids.length) {
|
||||
ElMessage.error('没有可提交的订单')
|
||||
return
|
||||
}
|
||||
if (!code) {
|
||||
ElMessage.warning(updateOrderMetaDialogMode.value === 'express' ? '请输入快递编码' : '请输入平台编码')
|
||||
return
|
||||
}
|
||||
|
||||
updateOrderMetaLoading.value = true
|
||||
try {
|
||||
const res =
|
||||
updateOrderMetaDialogMode.value === 'express'
|
||||
? await orderPendingOrder.updateOrderExpress({ order_ids, express_code: code })
|
||||
: await orderPendingOrder.updateOrderPlatform({ order_ids, code })
|
||||
|
||||
const ok = res && (res.code === 1 || res.code === 200 || res.flag === 'success')
|
||||
if (!ok) {
|
||||
ElMessage.error(res?.message || '批量修改失败')
|
||||
return
|
||||
}
|
||||
|
||||
const updatedCount = Number(res?.data?.updated_count ?? order_ids.length) || 0
|
||||
ElMessage.success(
|
||||
`${updateOrderMetaDialogMode.value === 'express' ? '快递信息' : '平台信息'}修改成功 ${updatedCount} 条`
|
||||
)
|
||||
updateOrderMetaDialogVisible.value = false
|
||||
upperTable.value?.clearSelection?.()
|
||||
selectionRows.value = []
|
||||
hasSelection.value = false
|
||||
await loadData()
|
||||
} catch {
|
||||
ElMessage.error(updateOrderMetaDialogMode.value === 'express' ? '修改快递失败' : '修改平台失败')
|
||||
} finally {
|
||||
updateOrderMetaLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
// 统一执行命令
|
||||
function handleCommand(commandName: string, subCommand?: string) {
|
||||
const handlers: Record<string, Function> = {
|
||||
@ -1230,6 +731,108 @@ async function handleExport() {
|
||||
function openColumnConfigPanel() {
|
||||
upperTable.value?.openColumnConfig?.()
|
||||
}
|
||||
|
||||
function openManualCreateDialog() {
|
||||
manualCreateDialogVisible.value = true
|
||||
}
|
||||
|
||||
function openImportOrderDialog() {
|
||||
importOrderDialogVisible.value = true
|
||||
}
|
||||
|
||||
const buttonDisabledMap = computed<Record<string, boolean>>(() => ({
|
||||
hasNoSelection: !hasSelection.value,
|
||||
notSingleSelection: selectionRows.value.length !== 1
|
||||
}))
|
||||
|
||||
const buttonLabelMap = computed<Record<string, string>>(() => ({
|
||||
detailToggleLabel: detailVisible.value ? '隐藏详情' : '显示详情'
|
||||
}))
|
||||
|
||||
const {
|
||||
actionMap: pendingToolbarActionMap,
|
||||
dialogState: {
|
||||
allocateDialogVisible,
|
||||
allocateLoading,
|
||||
storageDialogVisible,
|
||||
storageDialogMode,
|
||||
storagePendingOrderIds,
|
||||
storageAllocateLoading,
|
||||
storageForm,
|
||||
updateOrderMetaDialogVisible,
|
||||
updateOrderMetaDialogMode,
|
||||
updateOrderMetaOrderIds,
|
||||
updateOrderMetaForm,
|
||||
updateOrderMetaOptions,
|
||||
updateOrderMetaLoading,
|
||||
cloneOrderDialogVisible,
|
||||
cloneOrderLoading,
|
||||
cloneSourceOrderId,
|
||||
cloneSourceOrderCode
|
||||
},
|
||||
submitStorageAllocate,
|
||||
submitUpdateOrderMeta,
|
||||
submitCloneOrder,
|
||||
submitAllocateExpress,
|
||||
resetAllocateDialog,
|
||||
resetStorageAllocateDialog,
|
||||
resetUpdateOrderMetaDialog,
|
||||
resetCloneOrderDialog
|
||||
} = createPendingToolbarController({
|
||||
loadData,
|
||||
handleExport,
|
||||
openColumnConfigPanel,
|
||||
toggleDetailVisible,
|
||||
openManualCreateDialog,
|
||||
openImportOrderDialog,
|
||||
getSelectedRows: () => selectionRows.value,
|
||||
getSelectedIds,
|
||||
clearSelection: () => {
|
||||
upperTable.value?.clearSelection?.()
|
||||
selectionRows.value = []
|
||||
hasSelection.value = false
|
||||
},
|
||||
pendingApi: orderPendingOrder,
|
||||
actionLoading,
|
||||
expressCodeOptions,
|
||||
platformCodeOptions
|
||||
})
|
||||
|
||||
const toolbarActionMap: Record<string, () => void | Promise<void>> = {
|
||||
...pendingToolbarActionMap,
|
||||
openResolveExceptionDialog
|
||||
}
|
||||
|
||||
const buttonLoadingMap = computed<Record<string, boolean>>(() => ({
|
||||
exportLoading: exportLoading.value,
|
||||
actionLoading: actionLoading.value,
|
||||
storageAllocateLoading: storageAllocateLoading.value,
|
||||
allocateLoading: allocateLoading.value,
|
||||
updateOrderMetaLoading: updateOrderMetaLoading.value,
|
||||
cloneOrderLoading: cloneOrderLoading.value,
|
||||
resolveExceptionLoading: resolveExceptionLoading.value
|
||||
}))
|
||||
|
||||
function resolveButtonLoading(loadingKey?: string) {
|
||||
if (!loadingKey) return false
|
||||
return Boolean(buttonLoadingMap.value[loadingKey])
|
||||
}
|
||||
|
||||
function resolveButtonDisabled(disabledKey?: string) {
|
||||
if (!disabledKey) return false
|
||||
return Boolean(buttonDisabledMap.value[disabledKey])
|
||||
}
|
||||
|
||||
function resolveButtonLabel(defaultLabel: string, dynamicLabelKey?: string) {
|
||||
if (!dynamicLabelKey) return defaultLabel
|
||||
return buttonLabelMap.value[dynamicLabelKey] || defaultLabel
|
||||
}
|
||||
|
||||
function handleToolbarButtonClick(action: ToolbarButtonConfig['action']) {
|
||||
const handler = toolbarActionMap[action]
|
||||
if (!handler) return
|
||||
safeInvoke(() => handler())
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
<!-- 使用 keep-alive 强制保留所有标签 -->
|
||||
<el-tabs
|
||||
v-model="activeTab"
|
||||
@tab-click="handleTabClick"
|
||||
@tab-change="handleTabChange"
|
||||
tab-position="top"
|
||||
type="border-card"
|
||||
class="tab-container"
|
||||
@ -51,6 +51,7 @@ import DeliveryOrder from './deliveryOrder.vue'
|
||||
import EntrustWarehouse from './entrustWarehouse.vue'
|
||||
import DeliveryException from './deliveryException.vue'
|
||||
import ArchiveOrder from './archiveOrder.vue'
|
||||
import { safeInvoke } from '@/utils/safe-invoke'
|
||||
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
@ -139,14 +140,12 @@ async function loadBadgeCounts() {
|
||||
const res: any = await orderBadgeCount()
|
||||
if (!res || ![1, 200].includes(res.code) || !res.data) return
|
||||
const data = res.data as Record<string, number | string>
|
||||
tabs.value = tabs.value.map((tab) => {
|
||||
// 就地更新 count,避免整表替换导致 el-tabs 子项反复重建、事件重入
|
||||
for (const tab of tabs.value) {
|
||||
const badgeKey = Object.keys(badgeToTabMap).find((key) => badgeToTabMap[key] === tab.name)
|
||||
if (!badgeKey) return tab
|
||||
return {
|
||||
...tab,
|
||||
count: data[badgeKey] ?? 0
|
||||
}
|
||||
})
|
||||
if (!badgeKey) continue
|
||||
tab.count = data[badgeKey] ?? 0
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('order.badgeCount error:', error)
|
||||
} finally {
|
||||
@ -155,7 +154,7 @@ async function loadBadgeCounts() {
|
||||
}
|
||||
|
||||
function refreshBadgeCounts() {
|
||||
loadBadgeCounts()
|
||||
safeInvoke(() => loadBadgeCounts())
|
||||
}
|
||||
|
||||
// 初始化:从URL参数获取激活的标签
|
||||
@ -205,23 +204,21 @@ onMounted(() => {
|
||||
loadBadgeCounts()
|
||||
})
|
||||
|
||||
// 点击标签时处理
|
||||
const handleTabClick = (tab: any) => {
|
||||
const tabName = tab.paneName // Element Plus 中 tabs 的 tab-click 事件对象有 paneName
|
||||
|
||||
// 如果已经是当前激活的标签,不重复跳转
|
||||
if (activeTab.value === tabName && route.query.tab === tabName) {
|
||||
return
|
||||
}
|
||||
|
||||
// 更新URL参数(使用replace避免历史记录过多)
|
||||
router.replace({
|
||||
query: {
|
||||
...route.query,
|
||||
tab: tabName
|
||||
// 切换标签后同步 URL(使用 tab-change:在 v-model 更新之后触发,避免与 tab-click 重入)
|
||||
const handleTabChange = (tabName: string | number) => {
|
||||
safeInvoke(() => {
|
||||
const name = String(tabName)
|
||||
if (String(route.query.tab ?? '') === name) {
|
||||
return
|
||||
}
|
||||
router.replace({
|
||||
query: {
|
||||
...route.query,
|
||||
tab: name
|
||||
}
|
||||
})
|
||||
return loadBadgeCounts()
|
||||
})
|
||||
loadBadgeCounts()
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@ -15,13 +15,18 @@
|
||||
<div class="main-content">
|
||||
<div class="toolbar">
|
||||
<div class="toolbar-left">
|
||||
<el-button size="small" type="primary" @click="loadData">刷新</el-button>
|
||||
<el-button size="small" :loading="exportLoading" @click="handleExport">导出</el-button>
|
||||
<el-button size="small" type="warning" :loading="manualLoading" @click="handleToolbarManualOutbound">
|
||||
手动出库迁移
|
||||
<el-button
|
||||
v-for="button in toolbarButtons"
|
||||
:key="button.key"
|
||||
:size="button.size || 'small'"
|
||||
:type="button.type"
|
||||
:plain="button.plain"
|
||||
:disabled="resolveButtonDisabled(button.disabledKey)"
|
||||
:loading="resolveButtonLoading(button.loadingKey)"
|
||||
@click="handleToolbarButtonClick(button.action)"
|
||||
>
|
||||
{{ resolveButtonLabel(button.label, button.dynamicLabelKey) }}
|
||||
</el-button>
|
||||
<el-button size="small" @click="openColumnConfigPanel">字段设置</el-button>
|
||||
<el-button size="small" @click="toggleDetailVisible">{{ detailVisible ? '隐藏详情' : '显示详情' }}</el-button>
|
||||
</div>
|
||||
<div class="toolbar-right">
|
||||
<el-input
|
||||
@ -62,10 +67,6 @@
|
||||
</el-tag>
|
||||
</template>
|
||||
|
||||
<template #column-source_platform_code="{ row }">
|
||||
{{ translateOrderField('source_platform_code', row.source_platform_code) }}
|
||||
</template>
|
||||
|
||||
<template #column-post_status="{ row }">
|
||||
<el-tag :type="getTagType('post_status', row.post_status)" size="small">
|
||||
{{ translateOrderField('post_status', row.post_status) }}
|
||||
@ -170,10 +171,12 @@ import { ElMessage } from 'element-plus'
|
||||
import ScanBox from '@/components/ScanBox/index.vue'
|
||||
import UpperTable from '@/components/UpperTable/index.vue'
|
||||
import * as indexApi from '@/api/index/index'
|
||||
import { orderOutboundOrder } from '@/api/order.outboundOrder/orderoutboundOrder'
|
||||
import { orderOutboundOrder } from '@/api/order.outboundorder/orderoutboundOrder'
|
||||
import {
|
||||
outboundAvailableFields,
|
||||
outboundColumns,
|
||||
outboundToolbarButtons,
|
||||
type ToolbarButtonConfig,
|
||||
translateOrderField,
|
||||
getTagType
|
||||
} from './config/order-common-config'
|
||||
@ -182,6 +185,8 @@ import WorkbenchOrderDetail from './component/WorkbenchOrderDetail.vue'
|
||||
import OutboundManualOutboundForm from './component/OutboundManualOutboundForm.vue'
|
||||
import { exportUpperTableRows } from './utils/export'
|
||||
import { useVerticalSplitPane } from '@/composables/useVerticalSplitPane'
|
||||
import { createSimpleListToolbarController } from './utils/toolbar-actions'
|
||||
import { safeInvoke } from '@/utils/safe-invoke'
|
||||
|
||||
const scanBox = ref<any>(null)
|
||||
const upperTable = ref<any>(null)
|
||||
@ -202,6 +207,7 @@ const selectionRows = ref<any[]>([])
|
||||
const selectedOrderId = ref<number | string | null>(null)
|
||||
const detailVisible = ref(true)
|
||||
const quickSearch = ref('')
|
||||
const toolbarButtons = outboundToolbarButtons
|
||||
|
||||
const manualResult = ref<any>(null)
|
||||
|
||||
@ -418,15 +424,61 @@ async function loadOrderMetaOptions() {
|
||||
|
||||
const logisticsField = availableFieldsRef.find((i: any) => i.value === 'logistics_name')
|
||||
if (logisticsField) logisticsField.options = mapNameOptions(expressRaw, ['name', 'logistics_name', 'express_name'])
|
||||
const platformField = availableFieldsRef.find((i: any) => i.value === 'source_platform_name')
|
||||
const platformField = availableFieldsRef.find((i: any) => i.value === 'sys_platform_name')
|
||||
if (platformField) platformField.options = mapNameOptions(platformRaw, ['name', 'platform_name'])
|
||||
} catch {
|
||||
const logisticsField = availableFieldsRef.find((i: any) => i.value === 'logistics_name')
|
||||
if (logisticsField) logisticsField.options = []
|
||||
const platformField = availableFieldsRef.find((i: any) => i.value === 'source_platform_name')
|
||||
const platformField = availableFieldsRef.find((i: any) => i.value === 'sys_platform_name')
|
||||
if (platformField) platformField.options = []
|
||||
}
|
||||
}
|
||||
|
||||
const buttonLoadingMap = computed<Record<string, boolean>>(() => ({
|
||||
exportLoading: exportLoading.value,
|
||||
manualLoading: manualLoading.value
|
||||
}))
|
||||
|
||||
const buttonDisabledMap = computed<Record<string, boolean>>(() => ({
|
||||
hasNoOutboundTarget: selectedOrderId.value == null || selectedOrderId.value === ''
|
||||
}))
|
||||
|
||||
const buttonLabelMap = computed<Record<string, string>>(() => ({
|
||||
detailToggleLabel: detailVisible.value ? '隐藏详情' : '显示详情'
|
||||
}))
|
||||
|
||||
const { actionMap: baseToolbarActionMap } = createSimpleListToolbarController({
|
||||
loadData,
|
||||
handleExport,
|
||||
openColumnConfigPanel,
|
||||
toggleDetailVisible
|
||||
})
|
||||
|
||||
const toolbarActionMap: Record<string, () => void | Promise<void>> = {
|
||||
...baseToolbarActionMap,
|
||||
handleToolbarManualOutbound: () => handleToolbarManualOutbound()
|
||||
}
|
||||
|
||||
function resolveButtonLoading(loadingKey?: string) {
|
||||
if (!loadingKey) return false
|
||||
return Boolean(buttonLoadingMap.value[loadingKey])
|
||||
}
|
||||
|
||||
function resolveButtonDisabled(disabledKey?: string) {
|
||||
if (!disabledKey) return false
|
||||
return Boolean(buttonDisabledMap.value[disabledKey])
|
||||
}
|
||||
|
||||
function resolveButtonLabel(defaultLabel: string, dynamicLabelKey?: string) {
|
||||
if (!dynamicLabelKey) return defaultLabel
|
||||
return buttonLabelMap.value[dynamicLabelKey] || defaultLabel
|
||||
}
|
||||
|
||||
function handleToolbarButtonClick(action: ToolbarButtonConfig['action']) {
|
||||
const handler = toolbarActionMap[action]
|
||||
if (!handler) return
|
||||
safeInvoke(() => handler())
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
@ -71,10 +71,6 @@
|
||||
</el-tag>
|
||||
</template>
|
||||
|
||||
<template #column-source_platform_code="{ row }">
|
||||
{{ translateOrderField('source_platform_code', row.source_platform_code) }}
|
||||
</template>
|
||||
|
||||
<template #column-status="{ row }">
|
||||
<el-tag :type="getTagType('status', row.status)" size="small">
|
||||
{{ translateOrderField('status', row.status) }}
|
||||
@ -230,7 +226,7 @@ import { ref, reactive, onMounted, computed } from 'vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import ScanBox from '@/components/ScanBox/index.vue'
|
||||
import UpperTable from '@/components/UpperTable/index.vue'
|
||||
import { orderPendingOrder } from '@/api/order.pendingOrder/orderpendingOrder'
|
||||
import { orderPendingOrder } from '@/api/order.pendingorder/orderpendingOrder'
|
||||
import * as indexApi from '@/api/index/index'
|
||||
|
||||
import {
|
||||
@ -255,6 +251,7 @@ import SyncOrderIdsForm from './form/SyncOrderIdsForm.vue'
|
||||
import { exportUpperTableRows } from './utils/export'
|
||||
import { useVerticalSplitPane } from '@/composables/useVerticalSplitPane'
|
||||
import { createPendingToolbarController } from './utils/toolbar-actions'
|
||||
import { safeInvoke } from '@/utils/safe-invoke'
|
||||
|
||||
const scanBox = ref<any>(null)
|
||||
const upperTable = ref<any>(null)
|
||||
@ -570,7 +567,7 @@ function resolveButtonLabel(defaultLabel: string, dynamicLabelKey?: string) {
|
||||
function handleToolbarButtonClick(action: ToolbarButtonConfig['action']) {
|
||||
const handler = toolbarActionMap[action]
|
||||
if (!handler) return
|
||||
void handler()
|
||||
safeInvoke(() => handler())
|
||||
}
|
||||
|
||||
function normalizeCode(value: unknown) {
|
||||
@ -624,7 +621,7 @@ async function loadOrderMetaOptions() {
|
||||
if (logisticsField) {
|
||||
logisticsField.options = mapNameOptions(expressRaw, ['name', 'logistics_name', 'express_name'])
|
||||
}
|
||||
const platformField = availableFieldsRef.find((i: any) => i.value === 'source_platform_name')
|
||||
const platformField = availableFieldsRef.find((i: any) => i.value === 'sys_platform_name')
|
||||
if (platformField) {
|
||||
platformField.options = mapNameOptions(platformRaw, ['name', 'platform_name'])
|
||||
}
|
||||
@ -633,7 +630,7 @@ async function loadOrderMetaOptions() {
|
||||
platformCodeOptions.value = []
|
||||
const logisticsField = availableFieldsRef.find((i: any) => i.value === 'logistics_name')
|
||||
if (logisticsField) logisticsField.options = []
|
||||
const platformField = availableFieldsRef.find((i: any) => i.value === 'source_platform_name')
|
||||
const platformField = availableFieldsRef.find((i: any) => i.value === 'sys_platform_name')
|
||||
if (platformField) platformField.options = []
|
||||
}
|
||||
}
|
||||
|
||||
@ -58,7 +58,7 @@
|
||||
@selection-change="onSelectionChange"
|
||||
>
|
||||
<template #column-sys_platform_code="{ row }">
|
||||
{{ translateOrderField('source_platform_code', row.sys_platform_code) }}
|
||||
{{ translateOrderField('sys_platform_code', row.sys_platform_code) }}
|
||||
</template>
|
||||
|
||||
<template #column-status="{ row }">
|
||||
@ -145,7 +145,7 @@ import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import ScanBox from '@/components/ScanBox/index.vue'
|
||||
import UpperTable from '@/components/UpperTable/index.vue'
|
||||
import * as indexApi from '@/api/index/index'
|
||||
import { orderReviewOrder } from '@/api/order.reviewOrder/orderreviewOrder'
|
||||
import { orderReviewOrder } from '@/api/order.revieworder/orderreviewOrder'
|
||||
|
||||
import {
|
||||
reviewAvailableFields,
|
||||
@ -161,6 +161,7 @@ import log from './component/log.vue'
|
||||
import { exportUpperTableRows } from './utils/export'
|
||||
import { useVerticalSplitPane } from '@/composables/useVerticalSplitPane'
|
||||
import { createReviewToolbarController } from './utils/toolbar-actions'
|
||||
import { safeInvoke } from '@/utils/safe-invoke'
|
||||
|
||||
const scanBox = ref<any>(null)
|
||||
const upperTable = ref<any>(null)
|
||||
@ -412,7 +413,7 @@ function resolveButtonLabel(defaultLabel: string, dynamicLabelKey?: string) {
|
||||
function handleToolbarButtonClick(action: ToolbarButtonConfig['action']) {
|
||||
const handler = toolbarActionMap[action]
|
||||
if (!handler) return
|
||||
void handler()
|
||||
safeInvoke(() => handler())
|
||||
}
|
||||
|
||||
async function handleExport() {
|
||||
|
||||
@ -565,3 +565,19 @@ export function createPendingToolbarController(params: {
|
||||
resetSyncOrderIdsDialog
|
||||
}
|
||||
}
|
||||
|
||||
/** 无批量接口类操作的列表页:刷新、导出、列配置、详情显隐 */
|
||||
export function createSimpleListToolbarController(params: {
|
||||
loadData: () => Promise<void>
|
||||
handleExport: () => Promise<void>
|
||||
openColumnConfigPanel: () => void
|
||||
toggleDetailVisible: () => void
|
||||
}) {
|
||||
const actionMap: Record<string, () => void | Promise<void>> = {
|
||||
loadData: params.loadData,
|
||||
handleExport: params.handleExport,
|
||||
openColumnConfigPanel: params.openColumnConfigPanel,
|
||||
toggleDetailVisible: params.toggleDetailVisible
|
||||
}
|
||||
return { actionMap }
|
||||
}
|
||||
|
||||
@ -14,6 +14,9 @@
|
||||
:disabled="!hasSelection" class="toolbar-btn">
|
||||
入库单入库
|
||||
</el-button> -->
|
||||
<el-button size="small" :loading="exportLoading" @click="handleExport">导出</el-button>
|
||||
<el-button size="small" @click="openColumnConfigPanel">字段设置</el-button>
|
||||
<el-button size="small" @click="toggleDetailVisible">{{ detailVisible ? '隐藏详情' : '显示详情' }}</el-button>
|
||||
<el-button type="primary" size="small" icon="el-icon-delete" @click="confirmcomplete" title="一键入库"
|
||||
:disabled="!hasSelection" class="toolbar-btn">
|
||||
完成收货
|
||||
@ -21,18 +24,12 @@
|
||||
<el-button size="small" :disabled="!hasSelection" @click="confirmBatchCancel">批量作废</el-button>
|
||||
<el-button type="warning" size="small" :disabled="!hasSelection" @click="handleRejectReceiving">批量驳回</el-button>
|
||||
<el-button type="primary" size="small" :disabled="!hasSelection" :loading="reviewLoading" @click="handleReviewReceiving">批量审核</el-button>
|
||||
<el-button type="warning" size="small" :disabled="!hasSelection" @click="handleRejectReceiving">批量驳回</el-button>
|
||||
<el-button type="primary" size="small" :disabled="!hasSelection" :loading="reviewLoading" @click="handleReviewReceiving">批量审核</el-button>
|
||||
<el-button type="warning" size="small" :disabled="!hasSelection" @click="handleRejectReceiving">批量驳回</el-button>
|
||||
<el-button type="primary" size="small" :disabled="!hasSelection" :loading="reviewLoading" @click="handleReviewReceiving">批量审核</el-button>
|
||||
<el-button type="success" size="small" :disabled="selectionRows.length !== 1" :loading="quickPutawayLoading" @click="handleQuickPutaway">快捷入库</el-button>
|
||||
<el-button type="info" size="small" icon="el-icon-printer" @click="handleOpenPrintDialog" title="打印收货单"
|
||||
:disabled="!hasSelection" class="toolbar-btn">
|
||||
打印收货单
|
||||
</el-button>
|
||||
<el-button size="small" :loading="exportLoading" @click="handleExport">导出</el-button>
|
||||
<el-button size="small" @click="openColumnConfigPanel">字段设置</el-button>
|
||||
<el-button size="small" @click="toggleDetailVisible">{{ detailVisible ? '隐藏详情' : '显示详情' }}</el-button>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- <div class="toolbar-right">
|
||||
@ -315,7 +312,7 @@ import {
|
||||
printFormConfig,
|
||||
addReceivingFields
|
||||
} from './receiving-config'
|
||||
import * as templateApi from '@/api/setting.printTemplate/printTemplate'
|
||||
import * as templateApi from '@/api/setting.printtemplate/printTemplate'
|
||||
|
||||
import * as stationApi from '@/api/print/print'
|
||||
import JsBarcode from 'jsbarcode'
|
||||
@ -910,7 +907,7 @@ async function loadPrintFormData(index: number) {
|
||||
})
|
||||
|
||||
// 2. 清空旧明细字段
|
||||
const detailFields = ['product_name', 'barcode', 'box_quantity', 'boxes_per_pallet', 'actual_quantity', 'remark']
|
||||
const detailFields = ['product_name', 'barcode', 'box_quantity', 'boxes_per_pallet', 'weight', 'actual_quantity', 'remark']
|
||||
detailFields.forEach(f => formData[f] = '')
|
||||
|
||||
// 3. 获取详情填充第一个商品的明细(如果有的话)
|
||||
@ -1370,6 +1367,7 @@ async function handleExport() {
|
||||
'实收数量': item.actual_quantity ?? '',
|
||||
'箱数': item.box_quantity ?? '',
|
||||
'箱规': item.boxes_per_pallet ?? '',
|
||||
'重量': item.weight ?? '',
|
||||
'批次号': item.batch_number || '',
|
||||
'生产日期': item.production_date || '',
|
||||
'有效期': item.expiry_date || '',
|
||||
|
||||
@ -136,6 +136,16 @@ export const availableFields = [
|
||||
{ value: 'status', label: '收货状态', type: 'select', options: Object.entries(statusConfig).map(([v, c]) => ({ value: v, label: c.text })) },
|
||||
{ value: 'detail_status', label: '匹配状态', type: 'select', options: Object.entries(detailStatusConfig).map(([v, c]) => ({ value: v, label: c.text })) },
|
||||
{ value: 'storage_status', label: '入库状态', type: 'select', options: Object.entries(storageStatusConfig).map(([v, c]) => ({ value: v, label: c.text })) },
|
||||
{
|
||||
value: 'is_review',
|
||||
label: '审核状态',
|
||||
type: 'select',
|
||||
placeholder: '请选择审核状态',
|
||||
options: [
|
||||
{ value: 0, label: '未审核' },
|
||||
{ value: 1, label: '已审核' }
|
||||
]
|
||||
},
|
||||
{ value: 'store_id', label: '货主', type: 'select', multiple: true, filterable: true, options: [] },
|
||||
{ value: 'delivery_method', label: '来货方式', type: 'select', options: Object.entries(deliveryMethodConfig).map(([v, c]: [string, any]) => ({ value: v, label: c.text })) },
|
||||
{ value: 'loading_method',
|
||||
@ -296,6 +306,7 @@ export const productdetail = [
|
||||
{ prop: 'actual_quantity', label: '实际收货数量', width: '160' },
|
||||
{ prop: 'box_quantity', label: '箱数', width: '160' },
|
||||
{ prop: 'boxes_per_pallet', label: '箱规', width: '160' },
|
||||
{ prop: 'weight', label: '重量', width: '160' },
|
||||
{ prop: 'pallet_quantity', label: '托盘数', width: '160' },
|
||||
{ prop: 'receiving_time', label: '收货时间', width: '160' },
|
||||
{ prop: 'receiving_status', label: '收货状态', width: '160' },
|
||||
@ -308,7 +319,6 @@ export const productdetail = [
|
||||
{ prop: 'box_length', label: '箱长', width: '160' },
|
||||
{ prop: 'box_width', label: '箱宽', width: '160' },
|
||||
{ prop: 'box_height', label: '箱高', width: '160' },
|
||||
{ prop: 'weight', label: '重量', width: '160' },
|
||||
{ prop: 'space_id', label: '存放位置', width: '160' },
|
||||
{ prop: 'creator_id', label: '创建人ID', width: '160' },
|
||||
{ prop: 'updated_at', label: '更新时间', width: '160' },
|
||||
@ -323,6 +333,7 @@ export const productquick = [
|
||||
{ prop: 'actual_quantity', label: '收货数量', width: '100', align: 'right' },
|
||||
{ prop: 'box_quantity', label: '箱数', width: '100', align: 'right' },
|
||||
{ prop: 'boxes_per_pallet', label: '箱规', width: '100', align: 'right' },
|
||||
{ prop: 'weight', label: '重量', width: '100', align: 'right' },
|
||||
{ prop: 'batch_number', label: '批次号', width: '120' },
|
||||
{ prop: 'production_date', label: '生产日期', width: '120' },
|
||||
{ prop: 'expiry_date', label: '到期日期', width: '120' },
|
||||
@ -357,6 +368,7 @@ export const printFormConfig = [
|
||||
{ prop: 'barcode', label: '商品条码', type: 'input' },
|
||||
{ prop: 'box_quantity', label: '箱数', type: 'number' },
|
||||
{ prop: 'boxes_per_pallet', label: '箱规', type: 'number' },
|
||||
{ prop: 'weight', label: '重量', type: 'number' },
|
||||
{ prop: 'actual_quantity', label: '实际收货数量', type: 'number' },
|
||||
{ prop: 'remark', label: '明细备注', type: 'input' },
|
||||
]}
|
||||
|
||||
@ -776,7 +776,7 @@ import { storeWarehouseList, storeWarehouseSign, storeWarehouseUnbind,
|
||||
storeWarehouseRename, storeWarehouseGetPolicyConfig, storeWarehouseGetPolicyConfigFields,
|
||||
storeWarehouseSavePolicyConfig, saveApiConfig, storeWarehouseDeleteQimenConfig,
|
||||
storeWarehouseAdjustPrintQuantity, listApiConfig
|
||||
} from '@/api/storeWarehouse.store/storeWarehouse'
|
||||
} from '@/api/storewarehouse.store/storeWarehouse'
|
||||
import { listInterfaceTypes, getExpressList, getPlatformList } from '@/api/index/index'
|
||||
import ScanBox from '@/components/ScanBox/index.vue'
|
||||
import UpperTable from '@/components/UpperTable/index.vue'
|
||||
|
||||
@ -271,7 +271,7 @@ import {
|
||||
expressInterfaceList,
|
||||
expressInterfaceListByWarehousePlatformCode,
|
||||
expressInterfaceUpdate
|
||||
} from '@/api/setting.expressInterface/expressInterface'
|
||||
} from '@/api/setting.expressinterface/expressInterface'
|
||||
import { useUserStore } from '@/stores/modules/user'
|
||||
|
||||
type ExpressOption = { code: string; name: string; label?: string }
|
||||
|
||||
@ -53,7 +53,7 @@ import { ref, computed, onMounted } from 'vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { Document, Folder } from '@element-plus/icons-vue'
|
||||
import TemplateEditor from './components/TemplateEditor.vue'
|
||||
import * as TemplatesApi from '@/api/setting.printTemplate/printTemplate'
|
||||
import * as TemplatesApi from '@/api/setting.printtemplate/printTemplate'
|
||||
import { usePrintTemplateStore } from '@/stores/modules/printTemplate'
|
||||
import { storeToRefs } from 'pinia'
|
||||
|
||||
|
||||
@ -3,392 +3,23 @@
|
||||
{
|
||||
"接口": "user.login",
|
||||
"data": {
|
||||
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MywidXNlcm5hbWUiOiJ5am0iLCJyZWFsX25hbWUiOiJ5aW4iLCJwbGF0Zm9ybV9jb2RlIjoid2ViIiwiY3VycmVudF9yb2xlX2lkIjozMSwiY3VycmVudF9zdG9yZV9pZCI6MTAwMDAwLCJpYXQiOjE3Nzc1NDIyOTAsImV4cCI6MTc3NzU1NjY5MH0.WDBNzCpCdi3m7yH0W_yAJM3wAv2RMC2ykppCNKZtu7w"
|
||||
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MywidXNlcm5hbWUiOiJ5am0iLCJyZWFsX25hbWUiOiJ5aW4iLCJwbGF0Zm9ybV9jb2RlIjoid2ViIiwiY3VycmVudF9yb2xlX2lkIjozMSwiY3VycmVudF9zdG9yZV9pZCI6MTAwMDAwLCJpYXQiOjE3Nzc2MzA2ODgsImV4cCI6MTc3NzY0NTA4OH0.2FEpYiiNRuit-7zqB8CR-BqAUeFwpU8q_RSuF1HhqIA"
|
||||
}
|
||||
},
|
||||
{
|
||||
"接口": "index.getPlatformList",
|
||||
"data": [
|
||||
{
|
||||
"code": "1688",
|
||||
"name": "阿里巴巴",
|
||||
"default_express_interface": "cainiao",
|
||||
"value": "1688",
|
||||
"label": "阿里巴巴",
|
||||
"platform_code": "1688",
|
||||
"platform_name": "阿里巴巴",
|
||||
"is_system_setting": false
|
||||
"接口": "index.loginToIm",
|
||||
"data": {
|
||||
"code": "82fa24a74781d86d3a85dceadbcd0552e1cf5bd88949391cec203198d8df3730",
|
||||
"employees_id": "31",
|
||||
"employees_name": "殷建铭",
|
||||
"subject": {
|
||||
"id": "100000",
|
||||
"name": "测试仓",
|
||||
"type": "warehouse"
|
||||
},
|
||||
{
|
||||
"code": "DW",
|
||||
"name": "得物",
|
||||
"default_express_interface": "polyapi",
|
||||
"value": "DW",
|
||||
"label": "得物",
|
||||
"platform_code": "DW",
|
||||
"platform_name": "得物",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "DYCS",
|
||||
"name": "抖音超市",
|
||||
"default_express_interface": "polyapi",
|
||||
"value": "DYCS",
|
||||
"label": "抖音超市",
|
||||
"platform_code": "DYCS",
|
||||
"platform_name": "抖音超市",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "DYGX",
|
||||
"name": "抖音供销",
|
||||
"default_express_interface": "polyapi",
|
||||
"value": "DYGX",
|
||||
"label": "抖音供销",
|
||||
"platform_code": "DYGX",
|
||||
"platform_name": "抖音供销",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "DYXD",
|
||||
"name": "抖音小店",
|
||||
"default_express_interface": "polyapi",
|
||||
"value": "DYXD",
|
||||
"label": "抖音小店",
|
||||
"platform_code": "DYXD",
|
||||
"platform_name": "抖音小店",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "JD",
|
||||
"name": "京东",
|
||||
"default_express_interface": "polyapi",
|
||||
"value": "JD",
|
||||
"label": "京东",
|
||||
"platform_code": "JD",
|
||||
"platform_name": "京东",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "KS",
|
||||
"name": "快手",
|
||||
"default_express_interface": "polyapi",
|
||||
"value": "KS",
|
||||
"label": "快手",
|
||||
"platform_code": "KS",
|
||||
"platform_name": "快手",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "MAOCHAO",
|
||||
"name": "天猫超市",
|
||||
"default_express_interface": "cainiao",
|
||||
"value": "MAOCHAO",
|
||||
"label": "天猫超市",
|
||||
"platform_code": "MAOCHAO",
|
||||
"platform_name": "天猫超市",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "OFFLINE",
|
||||
"name": "线下",
|
||||
"default_express_interface": "cainiao",
|
||||
"value": "OFFLINE",
|
||||
"label": "线下",
|
||||
"platform_code": "OFFLINE",
|
||||
"platform_name": "线下",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "OTHER",
|
||||
"name": "其他",
|
||||
"default_express_interface": "cainiao",
|
||||
"value": "OTHER",
|
||||
"label": "其他",
|
||||
"platform_code": "OTHER",
|
||||
"platform_name": "其他",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "PDD",
|
||||
"name": "拼多多",
|
||||
"default_express_interface": "pdd",
|
||||
"value": "PDD",
|
||||
"label": "拼多多",
|
||||
"platform_code": "PDD",
|
||||
"platform_name": "拼多多",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "SPH",
|
||||
"name": "视频号",
|
||||
"default_express_interface": "polyapi",
|
||||
"value": "SPH",
|
||||
"label": "视频号",
|
||||
"platform_code": "SPH",
|
||||
"platform_name": "视频号",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "TB",
|
||||
"name": "淘宝",
|
||||
"default_express_interface": "cainiao",
|
||||
"value": "TB",
|
||||
"label": "淘宝",
|
||||
"platform_code": "TB",
|
||||
"platform_name": "淘宝",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "TGC",
|
||||
"name": "淘工厂",
|
||||
"default_express_interface": "cainiao",
|
||||
"value": "TGC",
|
||||
"label": "淘工厂",
|
||||
"platform_code": "TGC",
|
||||
"platform_name": "淘工厂",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "TM",
|
||||
"name": "天猫",
|
||||
"default_express_interface": "cainiao",
|
||||
"value": "TM",
|
||||
"label": "天猫",
|
||||
"platform_code": "TM",
|
||||
"platform_name": "天猫",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "XHS",
|
||||
"name": "小红书",
|
||||
"default_express_interface": "polyapi",
|
||||
"value": "XHS",
|
||||
"label": "小红书",
|
||||
"platform_code": "XHS",
|
||||
"platform_name": "小红书",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "CC1",
|
||||
"name": "CC1 (天猫超市)",
|
||||
"value": "CC1",
|
||||
"label": "CC1 (天猫超市)",
|
||||
"is_system_setting": true,
|
||||
"id": 4,
|
||||
"alias": "",
|
||||
"platform_code": "MAOCHAO",
|
||||
"platform_name": "天猫超市",
|
||||
"default_express_interface": "cainiao"
|
||||
},
|
||||
{
|
||||
"code": "DY",
|
||||
"name": "DY (抖音小店)",
|
||||
"value": "DY",
|
||||
"label": "DY (抖音小店)",
|
||||
"is_system_setting": true,
|
||||
"id": 2,
|
||||
"alias": "",
|
||||
"platform_code": "DYXD",
|
||||
"platform_name": "抖音小店",
|
||||
"default_express_interface": "polyapi"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"接口": "index.getExpressList",
|
||||
"data": [
|
||||
{
|
||||
"code": "ANKY",
|
||||
"name": "安能",
|
||||
"KS": "ANE",
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": "ANKY",
|
||||
"DYXD": null
|
||||
},
|
||||
{
|
||||
"code": "DBWL",
|
||||
"name": "德邦物流",
|
||||
"KS": "debangwuliu",
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": "DB",
|
||||
"DYXD": "debangkuaiyun"
|
||||
},
|
||||
{
|
||||
"code": "EMS",
|
||||
"name": "EMS",
|
||||
"KS": "EMS",
|
||||
"polyapi_extra_info": {
|
||||
"oneBillFeeType": "1"
|
||||
},
|
||||
"PDD": "EMS",
|
||||
"DYXD": "ems"
|
||||
},
|
||||
{
|
||||
"code": "FENGWANG",
|
||||
"name": "丰网速运",
|
||||
"KS": "FENGWANG",
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": "FENGWANG",
|
||||
"DYXD": "fengwang"
|
||||
},
|
||||
{
|
||||
"code": "HTKD",
|
||||
"name": "百世极兔",
|
||||
"KS": "huitongkuaidi",
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": "HT",
|
||||
"DYXD": "huitongkuaidi"
|
||||
},
|
||||
{
|
||||
"code": "HTKY",
|
||||
"name": "极兔速度",
|
||||
"KS": "JT",
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": "JTSD",
|
||||
"DYXD": "jtexpress"
|
||||
},
|
||||
{
|
||||
"code": "JD",
|
||||
"name": "京东配送",
|
||||
"KS": "JD",
|
||||
"polyapi_extra_info": {
|
||||
"temperatureRange": "2"
|
||||
},
|
||||
"PDD": "JD",
|
||||
"DYXD": "jd"
|
||||
},
|
||||
{
|
||||
"code": "KYE",
|
||||
"name": "跨越物流",
|
||||
"KS": "KYE",
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": null,
|
||||
"DYXD": null
|
||||
},
|
||||
{
|
||||
"code": "OTHER",
|
||||
"name": "其他",
|
||||
"KS": null,
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": null,
|
||||
"DYXD": null
|
||||
},
|
||||
{
|
||||
"code": "POSTB",
|
||||
"name": "邮政小包",
|
||||
"KS": "POSTB",
|
||||
"polyapi_extra_info": {
|
||||
"oneBillFeeType": "1"
|
||||
},
|
||||
"PDD": "YZXB",
|
||||
"DYXD": "youzhengguonei"
|
||||
},
|
||||
{
|
||||
"code": "POST_DSBK",
|
||||
"name": "邮政电商标快",
|
||||
"KS": "POST_DSBK",
|
||||
"polyapi_extra_info": {
|
||||
"oneBillFeeType": "1"
|
||||
},
|
||||
"PDD": "YZDSBK",
|
||||
"DYXD": "yzdsbk"
|
||||
},
|
||||
{
|
||||
"code": "SF",
|
||||
"name": "顺丰快递",
|
||||
"KS": "SF",
|
||||
"polyapi_extra_info": {
|
||||
"isvClientCode": "WYSJF_WDGJ"
|
||||
},
|
||||
"PDD": "SF",
|
||||
"DYXD": "shunfeng"
|
||||
},
|
||||
{
|
||||
"code": "SFKY",
|
||||
"name": "顺丰快运",
|
||||
"KS": "SFKY",
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": "SFKY",
|
||||
"DYXD": null
|
||||
},
|
||||
{
|
||||
"code": "STO",
|
||||
"name": "申通快递",
|
||||
"KS": "STO",
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": "STO",
|
||||
"DYXD": "shentong"
|
||||
},
|
||||
{
|
||||
"code": "SZKKE",
|
||||
"name": "京广快运",
|
||||
"KS": "SZKKE",
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": "SZKKE",
|
||||
"DYXD": null
|
||||
},
|
||||
{
|
||||
"code": "TTKDEX",
|
||||
"name": "天天快递",
|
||||
"KS": "TTKDEX",
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": "TTKDEX",
|
||||
"DYXD": "TTKDEX"
|
||||
},
|
||||
{
|
||||
"code": "YTO",
|
||||
"name": "圆通快递",
|
||||
"KS": "YTO",
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": "YTO",
|
||||
"DYXD": "yuantong"
|
||||
},
|
||||
{
|
||||
"code": "YUNDA",
|
||||
"name": "韵达快递",
|
||||
"KS": "YUNDA",
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": "YUNDA",
|
||||
"DYXD": "yunda"
|
||||
},
|
||||
{
|
||||
"code": "ZTKY",
|
||||
"name": "中通快运",
|
||||
"KS": "ZTKY",
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": null,
|
||||
"DYXD": null
|
||||
},
|
||||
{
|
||||
"code": "ZTO",
|
||||
"name": "中通快递",
|
||||
"KS": "ZTO",
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": "ZTO",
|
||||
"DYXD": "zhongtong"
|
||||
},
|
||||
{
|
||||
"code": "EMS.TEST",
|
||||
"name": "EMS.TEST (EMS)",
|
||||
"value": "EMS.TEST",
|
||||
"label": "EMS.TEST (EMS)",
|
||||
"is_system_setting": true,
|
||||
"id": 3,
|
||||
"alias": "EMS测试业务1",
|
||||
"express_code": "EMS"
|
||||
},
|
||||
{
|
||||
"code": "SF.KY",
|
||||
"name": "SF.KY (顺丰快递)",
|
||||
"value": "SF.KY",
|
||||
"label": "SF.KY (顺丰快递)",
|
||||
"is_system_setting": true,
|
||||
"id": 2,
|
||||
"alias": "顺丰空运产品",
|
||||
"express_code": "SF"
|
||||
}
|
||||
]
|
||||
"store_type": "warehouse",
|
||||
"avatar": ""
|
||||
}
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
# 接口
|
||||
|
||||
- 更新时间: 2026-04-30 16:21:16
|
||||
- 更新时间: 2026-05-01 10:32:58
|
||||
- 扫描目录: `src\api`
|
||||
- 模块数: 30
|
||||
- API 文件数: 30
|
||||
- 接口数: 242
|
||||
- 已启用: 213
|
||||
- 接口数: 244
|
||||
- 已启用: 215
|
||||
- 占位接口: 2
|
||||
|
||||
## 模块统计
|
||||
@ -14,7 +14,7 @@
|
||||
| --- | ---: | ---: | ---: | ---: |
|
||||
| config | 1 | 1 | 0 | 0 |
|
||||
| dashboard | 1 | 6 | 6 | 0 |
|
||||
| index | 1 | 17 | 15 | 1 |
|
||||
| index | 1 | 18 | 16 | 1 |
|
||||
| order.archiveorder | 1 | 2 | 2 | 0 |
|
||||
| order.deliveryexpectionorder | 1 | 2 | 2 | 0 |
|
||||
| order.deliveryorder | 1 | 2 | 2 | 0 |
|
||||
@ -34,7 +34,7 @@
|
||||
| setting.printtemplate | 1 | 13 | 13 | 0 |
|
||||
| setting.role | 1 | 5 | 5 | 0 |
|
||||
| stock | 1 | 26 | 25 | 0 |
|
||||
| storage_receiving | 1 | 21 | 11 | 0 |
|
||||
| storage_receiving | 1 | 22 | 12 | 0 |
|
||||
| storage.entry | 1 | 4 | 4 | 0 |
|
||||
| storage.inventory | 1 | 8 | 7 | 0 |
|
||||
| storage.stockout | 1 | 3 | 3 | 0 |
|
||||
@ -65,6 +65,7 @@
|
||||
| index | getPlatformList | index.getPlatformList | POST | 是 | 否 | index/index.ts | 表单用 |
|
||||
| index | listInterfaceTypes | index.listInterfaceTypes | POST | 是 | 否 | index/index.ts | |
|
||||
| index | loadStores | index.loadStores | POST | 是 | 否 | index/index.ts | |
|
||||
| index | loginToIm | index.loginToIm | POST | 是 | 否 | index/index.ts | |
|
||||
| index | putI18nCollect | index.putI18nCollect | POST | 是 | 否 | index/index.ts | |
|
||||
| index | recognizeLicensePlate | index.recognizeLicensePlate | POST | 否 | 否 | index/index.ts | |
|
||||
| index | ReferenceFile | index.ReferenceFile | POST | 是 | 否 | index/index.ts | |
|
||||
@ -220,6 +221,7 @@
|
||||
| storage_receiving | getReceivingDetail | storage.receiving.getReceivingDetail | POST | 是 | 否 | storage_receiving/receiving.ts | |
|
||||
| storage_receiving | getReceivingList | storage.receiving.getReceivingList | POST | 是 | 否 | storage_receiving/receiving.ts | |
|
||||
| storage_receiving | getReceivingProduct | storage.receiving.getReceivingProduct | POST | 否 | 否 | storage_receiving/receiving.ts | |
|
||||
| storage_receiving | queryReceivingLogs | storage.receiving.queryReceivingLogs | POST | 是 | 否 | storage_receiving/receiving.ts | |
|
||||
| storage_receiving | rejectReceiving | storage.receiving.rejectReceiving | POST | 是 | 否 | storage_receiving/receiving.ts | |
|
||||
| storage_receiving | removeItem | storage.receiving.removeItem | POST | 否 | 否 | storage_receiving/receiving.ts | |
|
||||
| storage_receiving | reviewReceiving | storage.receiving.reviewReceiving | POST | 是 | 否 | storage_receiving/receiving.ts | |
|
||||
|
||||
@ -8,11 +8,60 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "index.getPlatformList",
|
||||
"method": "index.loginToIm",
|
||||
"body": {
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "",
|
||||
"body": {}
|
||||
},
|
||||
{
|
||||
"method": "index.getExpressList",
|
||||
"method": "",
|
||||
"body": {}
|
||||
},
|
||||
{
|
||||
"method": "",
|
||||
"body": {}
|
||||
},
|
||||
{
|
||||
"method": "",
|
||||
"body": {}
|
||||
},
|
||||
{
|
||||
"method": "",
|
||||
"body": {}
|
||||
},
|
||||
{
|
||||
"method": "",
|
||||
"body": {}
|
||||
},
|
||||
{
|
||||
"method": "",
|
||||
"body": {}
|
||||
},
|
||||
{
|
||||
"method": "",
|
||||
"body": {}
|
||||
},
|
||||
{
|
||||
"method": "",
|
||||
"body": {}
|
||||
},
|
||||
{
|
||||
"method": "",
|
||||
"body": {}
|
||||
},
|
||||
{
|
||||
"method": "",
|
||||
"body": {}
|
||||
},
|
||||
{
|
||||
"method": "",
|
||||
"body": {}
|
||||
},
|
||||
{
|
||||
"method": "",
|
||||
"body": {}
|
||||
}
|
||||
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
{
|
||||
"数据一览": {
|
||||
"当前请求数": 3,
|
||||
"成功数": 3,
|
||||
"全部请求数": 3,
|
||||
"成功数与全部请求数": "3/3",
|
||||
"当前请求数": 2,
|
||||
"成功数": 2,
|
||||
"全部请求数": 2,
|
||||
"成功数与全部请求数": "2/2",
|
||||
"成功判定名单": [
|
||||
"ok",
|
||||
"成功",
|
||||
@ -21,396 +21,25 @@
|
||||
"message": "登录成功",
|
||||
"code": 200,
|
||||
"data": {
|
||||
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MywidXNlcm5hbWUiOiJ5am0iLCJyZWFsX25hbWUiOiJ5aW4iLCJwbGF0Zm9ybV9jb2RlIjoid2ViIiwiY3VycmVudF9yb2xlX2lkIjozMSwiY3VycmVudF9zdG9yZV9pZCI6MTAwMDAwLCJpYXQiOjE3Nzc1NDIyOTAsImV4cCI6MTc3NzU1NjY5MH0.WDBNzCpCdi3m7yH0W_yAJM3wAv2RMC2ykppCNKZtu7w"
|
||||
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MywidXNlcm5hbWUiOiJ5am0iLCJyZWFsX25hbWUiOiJ5aW4iLCJwbGF0Zm9ybV9jb2RlIjoid2ViIiwiY3VycmVudF9yb2xlX2lkIjozMSwiY3VycmVudF9zdG9yZV9pZCI6MTAwMDAwLCJpYXQiOjE3Nzc2MzA2ODgsImV4cCI6MTc3NzY0NTA4OH0.2FEpYiiNRuit-7zqB8CR-BqAUeFwpU8q_RSuF1HhqIA"
|
||||
}
|
||||
},
|
||||
{
|
||||
"接口": "index.getPlatformList",
|
||||
"接口": "index.loginToIm",
|
||||
"message": "ok",
|
||||
"code": 200,
|
||||
"data": [
|
||||
{
|
||||
"code": "1688",
|
||||
"name": "阿里巴巴",
|
||||
"default_express_interface": "cainiao",
|
||||
"value": "1688",
|
||||
"label": "阿里巴巴",
|
||||
"platform_code": "1688",
|
||||
"platform_name": "阿里巴巴",
|
||||
"is_system_setting": false
|
||||
"data": {
|
||||
"code": "82fa24a74781d86d3a85dceadbcd0552e1cf5bd88949391cec203198d8df3730",
|
||||
"employees_id": "31",
|
||||
"employees_name": "殷建铭",
|
||||
"subject": {
|
||||
"id": "100000",
|
||||
"name": "测试仓",
|
||||
"type": "warehouse"
|
||||
},
|
||||
{
|
||||
"code": "DW",
|
||||
"name": "得物",
|
||||
"default_express_interface": "polyapi",
|
||||
"value": "DW",
|
||||
"label": "得物",
|
||||
"platform_code": "DW",
|
||||
"platform_name": "得物",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "DYCS",
|
||||
"name": "抖音超市",
|
||||
"default_express_interface": "polyapi",
|
||||
"value": "DYCS",
|
||||
"label": "抖音超市",
|
||||
"platform_code": "DYCS",
|
||||
"platform_name": "抖音超市",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "DYGX",
|
||||
"name": "抖音供销",
|
||||
"default_express_interface": "polyapi",
|
||||
"value": "DYGX",
|
||||
"label": "抖音供销",
|
||||
"platform_code": "DYGX",
|
||||
"platform_name": "抖音供销",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "DYXD",
|
||||
"name": "抖音小店",
|
||||
"default_express_interface": "polyapi",
|
||||
"value": "DYXD",
|
||||
"label": "抖音小店",
|
||||
"platform_code": "DYXD",
|
||||
"platform_name": "抖音小店",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "JD",
|
||||
"name": "京东",
|
||||
"default_express_interface": "polyapi",
|
||||
"value": "JD",
|
||||
"label": "京东",
|
||||
"platform_code": "JD",
|
||||
"platform_name": "京东",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "KS",
|
||||
"name": "快手",
|
||||
"default_express_interface": "polyapi",
|
||||
"value": "KS",
|
||||
"label": "快手",
|
||||
"platform_code": "KS",
|
||||
"platform_name": "快手",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "MAOCHAO",
|
||||
"name": "天猫超市",
|
||||
"default_express_interface": "cainiao",
|
||||
"value": "MAOCHAO",
|
||||
"label": "天猫超市",
|
||||
"platform_code": "MAOCHAO",
|
||||
"platform_name": "天猫超市",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "OFFLINE",
|
||||
"name": "线下",
|
||||
"default_express_interface": "cainiao",
|
||||
"value": "OFFLINE",
|
||||
"label": "线下",
|
||||
"platform_code": "OFFLINE",
|
||||
"platform_name": "线下",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "OTHER",
|
||||
"name": "其他",
|
||||
"default_express_interface": "cainiao",
|
||||
"value": "OTHER",
|
||||
"label": "其他",
|
||||
"platform_code": "OTHER",
|
||||
"platform_name": "其他",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "PDD",
|
||||
"name": "拼多多",
|
||||
"default_express_interface": "pdd",
|
||||
"value": "PDD",
|
||||
"label": "拼多多",
|
||||
"platform_code": "PDD",
|
||||
"platform_name": "拼多多",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "SPH",
|
||||
"name": "视频号",
|
||||
"default_express_interface": "polyapi",
|
||||
"value": "SPH",
|
||||
"label": "视频号",
|
||||
"platform_code": "SPH",
|
||||
"platform_name": "视频号",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "TB",
|
||||
"name": "淘宝",
|
||||
"default_express_interface": "cainiao",
|
||||
"value": "TB",
|
||||
"label": "淘宝",
|
||||
"platform_code": "TB",
|
||||
"platform_name": "淘宝",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "TGC",
|
||||
"name": "淘工厂",
|
||||
"default_express_interface": "cainiao",
|
||||
"value": "TGC",
|
||||
"label": "淘工厂",
|
||||
"platform_code": "TGC",
|
||||
"platform_name": "淘工厂",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "TM",
|
||||
"name": "天猫",
|
||||
"default_express_interface": "cainiao",
|
||||
"value": "TM",
|
||||
"label": "天猫",
|
||||
"platform_code": "TM",
|
||||
"platform_name": "天猫",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "XHS",
|
||||
"name": "小红书",
|
||||
"default_express_interface": "polyapi",
|
||||
"value": "XHS",
|
||||
"label": "小红书",
|
||||
"platform_code": "XHS",
|
||||
"platform_name": "小红书",
|
||||
"is_system_setting": false
|
||||
},
|
||||
{
|
||||
"code": "CC1",
|
||||
"name": "CC1 (天猫超市)",
|
||||
"value": "CC1",
|
||||
"label": "CC1 (天猫超市)",
|
||||
"is_system_setting": true,
|
||||
"id": 4,
|
||||
"alias": "",
|
||||
"platform_code": "MAOCHAO",
|
||||
"platform_name": "天猫超市",
|
||||
"default_express_interface": "cainiao"
|
||||
},
|
||||
{
|
||||
"code": "DY",
|
||||
"name": "DY (抖音小店)",
|
||||
"value": "DY",
|
||||
"label": "DY (抖音小店)",
|
||||
"is_system_setting": true,
|
||||
"id": 2,
|
||||
"alias": "",
|
||||
"platform_code": "DYXD",
|
||||
"platform_name": "抖音小店",
|
||||
"default_express_interface": "polyapi"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"接口": "index.getExpressList",
|
||||
"message": "ok",
|
||||
"code": 200,
|
||||
"data": [
|
||||
{
|
||||
"code": "ANKY",
|
||||
"name": "安能",
|
||||
"KS": "ANE",
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": "ANKY",
|
||||
"DYXD": null
|
||||
},
|
||||
{
|
||||
"code": "DBWL",
|
||||
"name": "德邦物流",
|
||||
"KS": "debangwuliu",
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": "DB",
|
||||
"DYXD": "debangkuaiyun"
|
||||
},
|
||||
{
|
||||
"code": "EMS",
|
||||
"name": "EMS",
|
||||
"KS": "EMS",
|
||||
"polyapi_extra_info": {
|
||||
"oneBillFeeType": "1"
|
||||
},
|
||||
"PDD": "EMS",
|
||||
"DYXD": "ems"
|
||||
},
|
||||
{
|
||||
"code": "FENGWANG",
|
||||
"name": "丰网速运",
|
||||
"KS": "FENGWANG",
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": "FENGWANG",
|
||||
"DYXD": "fengwang"
|
||||
},
|
||||
{
|
||||
"code": "HTKD",
|
||||
"name": "百世极兔",
|
||||
"KS": "huitongkuaidi",
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": "HT",
|
||||
"DYXD": "huitongkuaidi"
|
||||
},
|
||||
{
|
||||
"code": "HTKY",
|
||||
"name": "极兔速度",
|
||||
"KS": "JT",
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": "JTSD",
|
||||
"DYXD": "jtexpress"
|
||||
},
|
||||
{
|
||||
"code": "JD",
|
||||
"name": "京东配送",
|
||||
"KS": "JD",
|
||||
"polyapi_extra_info": {
|
||||
"temperatureRange": "2"
|
||||
},
|
||||
"PDD": "JD",
|
||||
"DYXD": "jd"
|
||||
},
|
||||
{
|
||||
"code": "KYE",
|
||||
"name": "跨越物流",
|
||||
"KS": "KYE",
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": null,
|
||||
"DYXD": null
|
||||
},
|
||||
{
|
||||
"code": "OTHER",
|
||||
"name": "其他",
|
||||
"KS": null,
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": null,
|
||||
"DYXD": null
|
||||
},
|
||||
{
|
||||
"code": "POSTB",
|
||||
"name": "邮政小包",
|
||||
"KS": "POSTB",
|
||||
"polyapi_extra_info": {
|
||||
"oneBillFeeType": "1"
|
||||
},
|
||||
"PDD": "YZXB",
|
||||
"DYXD": "youzhengguonei"
|
||||
},
|
||||
{
|
||||
"code": "POST_DSBK",
|
||||
"name": "邮政电商标快",
|
||||
"KS": "POST_DSBK",
|
||||
"polyapi_extra_info": {
|
||||
"oneBillFeeType": "1"
|
||||
},
|
||||
"PDD": "YZDSBK",
|
||||
"DYXD": "yzdsbk"
|
||||
},
|
||||
{
|
||||
"code": "SF",
|
||||
"name": "顺丰快递",
|
||||
"KS": "SF",
|
||||
"polyapi_extra_info": {
|
||||
"isvClientCode": "WYSJF_WDGJ"
|
||||
},
|
||||
"PDD": "SF",
|
||||
"DYXD": "shunfeng"
|
||||
},
|
||||
{
|
||||
"code": "SFKY",
|
||||
"name": "顺丰快运",
|
||||
"KS": "SFKY",
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": "SFKY",
|
||||
"DYXD": null
|
||||
},
|
||||
{
|
||||
"code": "STO",
|
||||
"name": "申通快递",
|
||||
"KS": "STO",
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": "STO",
|
||||
"DYXD": "shentong"
|
||||
},
|
||||
{
|
||||
"code": "SZKKE",
|
||||
"name": "京广快运",
|
||||
"KS": "SZKKE",
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": "SZKKE",
|
||||
"DYXD": null
|
||||
},
|
||||
{
|
||||
"code": "TTKDEX",
|
||||
"name": "天天快递",
|
||||
"KS": "TTKDEX",
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": "TTKDEX",
|
||||
"DYXD": "TTKDEX"
|
||||
},
|
||||
{
|
||||
"code": "YTO",
|
||||
"name": "圆通快递",
|
||||
"KS": "YTO",
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": "YTO",
|
||||
"DYXD": "yuantong"
|
||||
},
|
||||
{
|
||||
"code": "YUNDA",
|
||||
"name": "韵达快递",
|
||||
"KS": "YUNDA",
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": "YUNDA",
|
||||
"DYXD": "yunda"
|
||||
},
|
||||
{
|
||||
"code": "ZTKY",
|
||||
"name": "中通快运",
|
||||
"KS": "ZTKY",
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": null,
|
||||
"DYXD": null
|
||||
},
|
||||
{
|
||||
"code": "ZTO",
|
||||
"name": "中通快递",
|
||||
"KS": "ZTO",
|
||||
"polyapi_extra_info": null,
|
||||
"PDD": "ZTO",
|
||||
"DYXD": "zhongtong"
|
||||
},
|
||||
{
|
||||
"code": "EMS.TEST",
|
||||
"name": "EMS.TEST (EMS)",
|
||||
"value": "EMS.TEST",
|
||||
"label": "EMS.TEST (EMS)",
|
||||
"is_system_setting": true,
|
||||
"id": 3,
|
||||
"alias": "EMS测试业务1",
|
||||
"express_code": "EMS"
|
||||
},
|
||||
{
|
||||
"code": "SF.KY",
|
||||
"name": "SF.KY (顺丰快递)",
|
||||
"value": "SF.KY",
|
||||
"label": "SF.KY (顺丰快递)",
|
||||
"is_system_setting": true,
|
||||
"id": 2,
|
||||
"alias": "顺丰空运产品",
|
||||
"express_code": "SF"
|
||||
}
|
||||
]
|
||||
"store_type": "warehouse",
|
||||
"avatar": ""
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
@ -12,27 +12,50 @@
|
||||
"label": "全部"
|
||||
}
|
||||
},
|
||||
"totalInterfaceCount": 209,
|
||||
"totalInterfaceCount": 211,
|
||||
"changes": {
|
||||
"summary": {
|
||||
"moduleAdded": 0,
|
||||
"moduleDeleted": 0,
|
||||
"moduleUpdated": 0,
|
||||
"moduleUpdated": 1,
|
||||
"interfaceAdded": 0,
|
||||
"interfaceDeleted": 0,
|
||||
"interfaceParamsUpdated": 0,
|
||||
"interfaceResponseUpdated": 0
|
||||
"interfaceResponseUpdated": 1
|
||||
},
|
||||
"moduleUpdates": {
|
||||
"added": [],
|
||||
"deleted": [],
|
||||
"updated": []
|
||||
"updated": [
|
||||
{
|
||||
"moduleName": "基础模块",
|
||||
"moduleKey": "index",
|
||||
"folder": "index",
|
||||
"previousModuleName": "基础模块",
|
||||
"previousModuleKey": "index",
|
||||
"interfaceChanges": {
|
||||
"addedMethods": [],
|
||||
"deletedMethods": [],
|
||||
"paramsUpdatedMethods": [],
|
||||
"responseUpdatedMethods": [
|
||||
"index.loginToIm"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"interfaceUpdates": {
|
||||
"added": [],
|
||||
"deleted": [],
|
||||
"paramsUpdated": [],
|
||||
"responseUpdated": []
|
||||
"responseUpdated": [
|
||||
{
|
||||
"moduleName": "基础模块",
|
||||
"moduleKey": "index",
|
||||
"folder": "index",
|
||||
"method": "index.loginToIm"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"interfaces": [
|
||||
@ -467,6 +490,68 @@
|
||||
"params": [],
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"moduleName": "基础模块",
|
||||
"moduleKey": "index",
|
||||
"moduleFolder": "index",
|
||||
"method": "index.loginToIm",
|
||||
"title": "生成 IM 单点登录一次性 code(有效期 5 分钟)",
|
||||
"description": "生成 IM 单点登录一次性 code(有效期 5 分钟)",
|
||||
"endpoint": "/system",
|
||||
"authRequired": true,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [],
|
||||
"response": [
|
||||
{
|
||||
"name": "data.code",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "一次性登录码,长度固定 64 位(hex)"
|
||||
},
|
||||
{
|
||||
"name": "data.employees_id",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "当前登录员工 ID"
|
||||
},
|
||||
{
|
||||
"name": "data.employees_name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "当前登录员工名称"
|
||||
},
|
||||
{
|
||||
"name": "data.subject",
|
||||
"type": "object",
|
||||
"required": false,
|
||||
"description": "当前登录主体信息"
|
||||
},
|
||||
{
|
||||
"name": "data.store_type",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "主体类型,取自 wms_store.project 字段"
|
||||
},
|
||||
{
|
||||
"name": "data.avatar",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "员工头像 URL,未设置时为空字符串"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"moduleName": "基础模块",
|
||||
"moduleKey": "index",
|
||||
@ -6486,8 +6571,8 @@
|
||||
"moduleKey": "storage.inventory",
|
||||
"moduleFolder": "storage.inventory",
|
||||
"method": "storage.inventory.quickPutaway",
|
||||
"title": "收货单快捷入库上架。从收货单直接生成入库单并写入库存表,要求收货单已完成、已审核且所有明细已匹配系统商品",
|
||||
"description": "收货单快捷入库上架。从收货单直接生成入库单并写入库存表,要求收货单已完成、已审核且所有明细已匹配系统商品",
|
||||
"title": "收货单快捷入库上架。从收货单直接生成入库单并写入库存表,要求收货单已完成、已审核、货主已开启快捷入库策略且所有明细已匹配系统商品",
|
||||
"description": "收货单快捷入库上架。从收货单直接生成入库单并写入库存表,要求收货单已完成、已审核、货主已开启快捷入库策略且所有明细已匹配系统商品",
|
||||
"endpoint": "/system",
|
||||
"authRequired": true,
|
||||
"loginRequired": true,
|
||||
@ -7280,6 +7365,57 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"moduleName": "收货单模块",
|
||||
"moduleKey": "storage_receiving",
|
||||
"moduleFolder": "storage_receiving",
|
||||
"method": "storage.receiving.queryReceivingLogs",
|
||||
"title": "按收货单ID查询操作日志列表(分页),仅返回当前仓库上下文数据",
|
||||
"description": "按收货单ID查询操作日志列表(分页),仅返回当前仓库上下文数据",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "receiving_id",
|
||||
"type": "number|string",
|
||||
"required": true,
|
||||
"description": "收货单ID"
|
||||
},
|
||||
{
|
||||
"name": "pagination",
|
||||
"type": "object",
|
||||
"required": false,
|
||||
"description": "分页参数,支持 page / pageSize"
|
||||
}
|
||||
],
|
||||
"response": [
|
||||
{
|
||||
"name": "list",
|
||||
"type": "array",
|
||||
"required": true,
|
||||
"description": "日志列表"
|
||||
},
|
||||
{
|
||||
"name": "pagination",
|
||||
"type": "object",
|
||||
"required": true,
|
||||
"description": "分页信息,包含 page、pageSize、total、totalPages"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"moduleName": "收货单模块",
|
||||
"moduleKey": "storage_receiving",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
@ -13,27 +13,50 @@
|
||||
}
|
||||
},
|
||||
"moduleCount": 30,
|
||||
"totalInterfaceCount": 209,
|
||||
"totalInterfaceCount": 211,
|
||||
"changes": {
|
||||
"summary": {
|
||||
"moduleAdded": 0,
|
||||
"moduleDeleted": 0,
|
||||
"moduleUpdated": 0,
|
||||
"moduleUpdated": 1,
|
||||
"interfaceAdded": 0,
|
||||
"interfaceDeleted": 0,
|
||||
"interfaceParamsUpdated": 0,
|
||||
"interfaceResponseUpdated": 0
|
||||
"interfaceResponseUpdated": 1
|
||||
},
|
||||
"moduleUpdates": {
|
||||
"added": [],
|
||||
"deleted": [],
|
||||
"updated": []
|
||||
"updated": [
|
||||
{
|
||||
"moduleName": "基础模块",
|
||||
"moduleKey": "index",
|
||||
"folder": "index",
|
||||
"previousModuleName": "基础模块",
|
||||
"previousModuleKey": "index",
|
||||
"interfaceChanges": {
|
||||
"addedMethods": [],
|
||||
"deletedMethods": [],
|
||||
"paramsUpdatedMethods": [],
|
||||
"responseUpdatedMethods": [
|
||||
"index.loginToIm"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"interfaceUpdates": {
|
||||
"added": [],
|
||||
"deleted": [],
|
||||
"paramsUpdated": [],
|
||||
"responseUpdated": []
|
||||
"responseUpdated": [
|
||||
{
|
||||
"moduleName": "基础模块",
|
||||
"moduleKey": "index",
|
||||
"folder": "index",
|
||||
"method": "index.loginToIm"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"modules": [
|
||||
@ -431,7 +454,7 @@
|
||||
"moduleName": "基础模块",
|
||||
"moduleKey": "index",
|
||||
"folder": "index",
|
||||
"interfaceCount": 14,
|
||||
"interfaceCount": 15,
|
||||
"interfaces": [
|
||||
{
|
||||
"method": "index.fastWhereTree"
|
||||
@ -454,6 +477,9 @@
|
||||
{
|
||||
"method": "index.getMessageDetail"
|
||||
},
|
||||
{
|
||||
"method": "index.loginToIm"
|
||||
},
|
||||
{
|
||||
"method": "index.recognizeLicensePlate"
|
||||
},
|
||||
@ -762,7 +788,7 @@
|
||||
"moduleName": "收货单模块",
|
||||
"moduleKey": "storage_receiving",
|
||||
"folder": "storage_receiving",
|
||||
"interfaceCount": 17,
|
||||
"interfaceCount": 18,
|
||||
"interfaces": [
|
||||
{
|
||||
"method": "storage.receiving.getReceivingList"
|
||||
@ -788,6 +814,9 @@
|
||||
{
|
||||
"method": "storage.receiving.bindDetailProduct"
|
||||
},
|
||||
{
|
||||
"method": "storage.receiving.queryReceivingLogs"
|
||||
},
|
||||
{
|
||||
"method": "storage.receiving.addItem"
|
||||
},
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
@ -16,7 +16,7 @@
|
||||
"name": "基础模块",
|
||||
"key": "index",
|
||||
"folder": "index",
|
||||
"interfaceCount": 14
|
||||
"interfaceCount": 15
|
||||
},
|
||||
"changes": {
|
||||
"fromPreviousSnapshot": {
|
||||
@ -26,7 +26,9 @@
|
||||
"addedMethods": [],
|
||||
"deletedMethods": [],
|
||||
"paramsUpdatedMethods": [],
|
||||
"responseUpdatedMethods": []
|
||||
"responseUpdatedMethods": [
|
||||
"index.loginToIm"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -199,6 +201,65 @@
|
||||
"params": [],
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"method": "index.loginToIm",
|
||||
"title": "生成 IM 单点登录一次性 code(有效期 5 分钟)",
|
||||
"description": "生成 IM 单点登录一次性 code(有效期 5 分钟)",
|
||||
"endpoint": "/system",
|
||||
"authRequired": true,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [],
|
||||
"response": [
|
||||
{
|
||||
"name": "data.code",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "一次性登录码,长度固定 64 位(hex)"
|
||||
},
|
||||
{
|
||||
"name": "data.employees_id",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "当前登录员工 ID"
|
||||
},
|
||||
{
|
||||
"name": "data.employees_name",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "当前登录员工名称"
|
||||
},
|
||||
{
|
||||
"name": "data.subject",
|
||||
"type": "object",
|
||||
"required": false,
|
||||
"description": "当前登录主体信息"
|
||||
},
|
||||
{
|
||||
"name": "data.store_type",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "主体类型,取自 wms_store.project 字段"
|
||||
},
|
||||
{
|
||||
"name": "data.avatar",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"description": "员工头像 URL,未设置时为空字符串"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"method": "index.recognizeLicensePlate",
|
||||
"title": "识别车牌号码(通过 base64 图片)",
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-17 19:37:49",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-17 20:21:27",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-17 19:16:50",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
@ -33,8 +33,8 @@
|
||||
"interfaces": [
|
||||
{
|
||||
"method": "storage.inventory.quickPutaway",
|
||||
"title": "收货单快捷入库上架。从收货单直接生成入库单并写入库存表,要求收货单已完成、已审核且所有明细已匹配系统商品",
|
||||
"description": "收货单快捷入库上架。从收货单直接生成入库单并写入库存表,要求收货单已完成、已审核且所有明细已匹配系统商品",
|
||||
"title": "收货单快捷入库上架。从收货单直接生成入库单并写入库存表,要求收货单已完成、已审核、货主已开启快捷入库策略且所有明细已匹配系统商品",
|
||||
"description": "收货单快捷入库上架。从收货单直接生成入库单并写入库存表,要求收货单已完成、已审核、货主已开启快捷入库策略且所有明细已匹配系统商品",
|
||||
"endpoint": "/system",
|
||||
"authRequired": true,
|
||||
"loginRequired": true,
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": "2026-04-17 19:16:50"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
@ -16,7 +16,7 @@
|
||||
"name": "收货单模块",
|
||||
"key": "storage_receiving",
|
||||
"folder": "storage_receiving",
|
||||
"interfaceCount": 17
|
||||
"interfaceCount": 18
|
||||
},
|
||||
"changes": {
|
||||
"fromPreviousSnapshot": {
|
||||
@ -445,6 +445,54 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"method": "storage.receiving.queryReceivingLogs",
|
||||
"title": "按收货单ID查询操作日志列表(分页),仅返回当前仓库上下文数据",
|
||||
"description": "按收货单ID查询操作日志列表(分页),仅返回当前仓库上下文数据",
|
||||
"endpoint": "/system",
|
||||
"authRequired": false,
|
||||
"loginRequired": true,
|
||||
"status": {
|
||||
"isUsed": false,
|
||||
"isPlaceholder": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Bearer token"
|
||||
}
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "receiving_id",
|
||||
"type": "number|string",
|
||||
"required": true,
|
||||
"description": "收货单ID"
|
||||
},
|
||||
{
|
||||
"name": "pagination",
|
||||
"type": "object",
|
||||
"required": false,
|
||||
"description": "分页参数,支持 page / pageSize"
|
||||
}
|
||||
],
|
||||
"response": [
|
||||
{
|
||||
"name": "list",
|
||||
"type": "array",
|
||||
"required": true,
|
||||
"description": "日志列表"
|
||||
},
|
||||
{
|
||||
"name": "pagination",
|
||||
"type": "object",
|
||||
"required": true,
|
||||
"description": "分页信息,包含 page、pageSize、total、totalPages"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"method": "storage.receiving.addItem",
|
||||
"title": "storage.receiving.addItem 接口",
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
},
|
||||
"status": "active",
|
||||
"createdAt": "2026-04-16 11:15:05",
|
||||
"updatedAt": "2026-04-30 17:11:56",
|
||||
"updatedAt": "2026-05-01 16:03:30",
|
||||
"deletedAt": null,
|
||||
"restoredAt": null
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"generatedAt": "2026-04-30 17:11:56",
|
||||
"generatedAtLocal": "2026-04-30 17:11:56",
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
|
||||
@ -1 +1,37 @@
|
||||
{}
|
||||
{
|
||||
"generatedAt": "2026-05-01 16:03:30",
|
||||
"generatedAtLocal": "2026-05-01 16:03:30",
|
||||
"source": "remote",
|
||||
"filter": {
|
||||
"platform": {
|
||||
"value": "web",
|
||||
"label": "网页端"
|
||||
},
|
||||
"project": {
|
||||
"value": "all",
|
||||
"label": "全部"
|
||||
}
|
||||
},
|
||||
"summary": {
|
||||
"moduleAdded": 0,
|
||||
"moduleDeleted": 0,
|
||||
"interfaceAdded": 0,
|
||||
"interfaceDeleted": 0,
|
||||
"interfaceParamsUpdated": 0,
|
||||
"interfaceResponseUpdated": 1,
|
||||
"totalChangedItems": 1
|
||||
},
|
||||
"interfaceUpdates": {
|
||||
"added": [],
|
||||
"deleted": [],
|
||||
"paramsUpdated": [],
|
||||
"responseUpdated": [
|
||||
{
|
||||
"moduleName": "基础模块",
|
||||
"moduleKey": "index",
|
||||
"folder": "index",
|
||||
"method": "index.loginToIm"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user