3月23日更新

This commit is contained in:
yin 2026-03-23 18:39:46 +08:00
parent 2054018dda
commit 0070f15944
15 changed files with 1168 additions and 304 deletions

View File

@ -1,6 +1,19 @@
import request from '@/utils/request'
const v = "1.0"
export const getreviewOrderlist = (data: any): Promise<any> => {
return request({
url: '/system',
method: 'post',
params: {
method: 'order.reviewOrder.getreviewOrderlist',
v,
timestamp: new Date().getTime()
},
data: data
})
}
export function getdeliveryOrderlist(data: any): Promise<any> {
return request({
url: '/system',
@ -25,4 +38,43 @@ export function getdeliveryOrderlist(data: any): Promise<any> {
// },
// data: data
// })
// }
// }
export const getpendingOrderlist = (data: any): Promise<any> => {
return request({
url: '/system',
method: 'post',
params: {
method: 'order.pendingOrder.getpendingOrderlist',
v,
timestamp: new Date().getTime()
},
data: data
})
}
export const getexpectionOrderlist = (data: any): Promise<any> => {
return request({
url: '/system',
method: 'post',
params: {
method: 'order.expectionOrder.getexpectionOrderlist',
v,
timestamp: new Date().getTime()
},
data: data
})
}
export const getarchiveOrderlist = (data: any): Promise<any> => {
return request({
url: '/system',
method: 'post',
params: {
method: 'order.archiveOrder.getarchiveOrderlist',
v,
timestamp: new Date().getTime()
},
data: data
})
}

View File

@ -396,7 +396,7 @@ const props = defineProps({
}
})
const emit = defineEmits(['condition-change', 'reset', 'condition-clear'])
const emit = defineEmits(['condition-change', 'reset', 'condition-clear', 'submit'])
// Data
const activeTab = ref('custom')
@ -659,6 +659,7 @@ function handleReset() {
function handleSubmit() {
submitting.value = true
buildAndEmitCustomCondition()
emit('submit', activeCondition.value)
setTimeout(() => {
submitting.value = false
}, 300)
@ -671,6 +672,13 @@ function clearActiveCondition() {
// 对外暴露的方法,供父组件调用
function getConditions() {
// 如果当前是自定义筛选,且没有已应用的 activeCondition,或者想要获取最新的输入值
// 我们可以根据 activeTab 来决定返回什么
if (activeTab.value === 'custom') {
const currentConditions = buildConditionsObject()
return currentConditions
}
if (!activeCondition.value) return {}
if (typeof activeCondition.value === 'string' || typeof activeCondition.value === 'number') {
@ -698,6 +706,29 @@ function getConditions() {
return {}
}
function buildConditionsObject() {
const conditions: any = {}
props.availableFields.forEach((field: any) => {
const condition = customConditions[field.value]
let conditionValue = condition.value
if (field.type === 'text' && condition.operator === 'contains' && conditionValue) {
const values = conditionValue.split(',').filter((v: string) => v.trim())
if (values.length > 0) {
conditionValue = values
}
}
if (conditionValue !== undefined &&
conditionValue !== null &&
conditionValue !== '' &&
!(Array.isArray(conditionValue) && conditionValue.length === 0)) {
conditions[field.value] = conditionValue
}
})
return conditions
}
function reset() {
handleReset()
}

View File

@ -201,7 +201,7 @@ onMounted(() => {
display: flex;
flex-direction: column;
// flex: 1;
width: 500px;
width: 100%;
height: 100%;
background-color: #fff;
overflow: hidden;

View File

@ -207,7 +207,7 @@ onMounted(() => {
height: 45px;
overflow: hidden;
position: relative;
background-color: #cab1f8;
background-color: #0C90FF;
//box-shadow: 0 1px 4px rgba(0, 21, 41, .08);
.logo {

View File

@ -69,5 +69,10 @@ defineProps({
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
max-width: 100%;
color: black;
}
.horizontal-item .menu-title {
color: white;
}
</style>

View File

@ -154,7 +154,7 @@ const handleClickOutside = () => {
}
.ai-container {
width: 500px;
width: 600px;
height: auto;
flex-shrink: 0;
background-color: #fff;

View File

@ -45,7 +45,13 @@
>
<template #column-order_status="{ row }">
<el-tag :type="getStatusType(row.order_status)" size="small">
{{ translateField('order_status', row.order_status) }}
{{ translateOrderField('order_status', row.order_status) }}
</el-tag>
</template>
<template #column-status="{ row }">
<el-tag :type="row.status === 'finished' ? 'success' : 'info'" size="small">
{{ translateOrderField('status', row.status) }}
</el-tag>
</template>
@ -94,11 +100,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'
import { getarchiveOrderlist } from '@/api/order/order'
import {
archiveAvailableFields,
orderColumns,
archiveOrderDetail
archiveColumns,
archiveOrderDetail,
translateOrderField
} from './config/order-common-config'
import detail from './component/detail.vue'
import log from './component/log.vue'
@ -118,7 +126,7 @@ const queryTime = ref(0)
const pagination = reactive({ currentPage: 1, pageSize: 20, total: 0 })
const tableSize = ref('small')
const columns = ref(orderColumns)
const columns = ref(archiveColumns)
const selectionRows = ref<any[]>([])
@ -154,13 +162,50 @@ async function loadData() {
loading.value = true
const start = Date.now()
try {
const params = {
page: pagination.currentPage,
limit: pagination.pageSize,
quickSearch: quickSearch.value,
...scanBox.value?.getConditions?.()
}
const res = await getarchiveOrderlist(params)
if (res.code === 200) {
list.value = res.data || []
pagination.total = res.total || 0
} else {
throw new Error(res.msg || '接口返回异常')
}
} catch (e) {
console.error('加载归档订单失败,使用模拟数据:', e)
const mockData = [
{ id: 401, order_code: 'SO20260321A01', store_name: '总仓', order_status: 'ARCHIVED', complete_time: '2026-03-20 18:00:00', create_time: '2026-03-20 10:00:00' },
{
id: 21,
delivery_order_code: 'JY2026011327233',
order_code: 'SO202601130005',
order_type: 'JYCK',
shop_nick: '火火家de小店',
source_platform_name: '拼多多',
status: 'finished',
name: '刘付明仁',
mobile: '18022440198',
province: '广东省',
city: '广州市',
area: '白云区',
detail_address: '广东省 广州市 白云区 太和镇 二路32号',
logistics_name: '顺丰空运',
express_code: 'SF666777888',
total_amount: 10.00,
item_amount: 10.00,
items_count: 1,
items_total: 10,
create_at: '2026-01-13 15:26:07',
updated_at: '2026-01-13 15:40:00',
place_order_time: '2026-01-13 15:22:03',
pay_time: '2026-01-13 15:22:03'
}
]
list.value = mockData
pagination.total = mockData.length
} catch (e) {
ElMessage.error('加载订单失败')
} finally {
loading.value = false
queryTime.value = Date.now() - start
@ -230,6 +275,6 @@ async function handleExport() {
</script>
<style scoped lang="scss">
@import "./styles/order-sub.scss";
@use "./styles/order-sub.scss";
</style>

View File

@ -1,19 +1,74 @@
export const commonFields = [
{ label: '货主', value: 'store_id', type: 'select', options: [] },
{ label: '订单号', value: 'order_code', type: 'input' },
{ label: '创建时间', value: 'create_time', type: 'daterange' },
]
export const orderColumns = [
{ prop: 'id', label: 'ID', width: '80' },
{ prop: 'order_code', label: '订单号', width: '180' },
{ prop: 'store_name', label: '货主', width: '140' },
{ prop: 'order_type', label: '订单类型', width: '120' },
{ prop: 'order_status', label: '状态', width: '120' },
{ prop: 'receiver_name', label: '收货人', width: '120' },
{ prop: 'create_time', label: '创建时间', width: '180' },
]
// 通用翻译映射
export const COMMON_TRANSLATIONS: Record<string, Record<string, string>> = {
is_urgency: {
'Y': '是',
'N': '否'
},
status: {
'pedding': '待审核',
'created': '已创建',
'cancel': '已取消',
'error': '错误',
'after-sales-error': '售后异常',
'finished': '已完成',
'cancelled': '已作废',
'archived': '已归档'
},
sync_status: {
'padding': '待同步',
'fin': '已完成',
'error': '错误',
'none': '未同步'
},
order_status: {
'WAIT_AUDIT': '待审核',
'AUDITED': '已审核'
},
storage_status: {
'none': '未分配',
'padding': '分配中',
'fin': '已完成'
},
print_status: {
'none': '未打印',
'padding': '打印中',
'fin': '已完成'
},
pick_status: {
'none': '未拣货',
'padding': '拣货中',
'fin': '已完成'
},
intercept_status: {
'none': '无',
'pending': '待拦截',
'success': '已拦截'
},
invoice_flag: {
'Y': '是',
'N': '否'
},
post_status: {
'padding': '分配中',
'fin': '已分配',
'timeout': '超时',
'error': '错误',
'none': '未分配'
},
source_platform_code: {
'OFFLINE': '线下',
'PDD': '拼多多',
'JD': '京东',
'TAOBAO': '淘宝'
}
}
export function translateOrderField(field: string, value: any) {
if (COMMON_TRANSLATIONS[field] && COMMON_TRANSLATIONS[field][value] !== undefined) {
return COMMON_TRANSLATIONS[field][value]
}
return value
}
// deliveryOrder相关配置
export const deliveryAvailableFields = [
@ -49,103 +104,110 @@ export const deliveryAvailableFields = [
export const deliveryColumns = [
{ prop: 'shop_nick', label: '店铺名称', width: '120' },
{ prop: 'name', label: '收件人姓名', width: '100' },
{ prop: 'express_code', label: '快递运单号', width: '160' },
{ prop: 'mobile', label: '收件人手机', width: '120' },
{ prop: 'province', label: '省份', width: '100' },
{ prop: 'is_urgency', label: '是否紧急', width: '100' },
{ prop: 'source_platform_name', label: '来源平台名称', width: '120' },
{ prop: 'logistics_name', label: '物流公司名称', width: '120' },
{ prop:'invoice_flag',label: '是否需要发票',width:'120' },
{ prop:'intercept_status',label: '拦截状态',width:'120' },
{ prop: 'create_at', label: '创建时间', width: '160' },
{ prop: 'sync_status', label: '同步状态', width: '100' },
{ prop: 'name', label: '收件人', width: '100' },
{ prop: 'mobile', label: '移动电话', width: '120' },
{ prop: 'tel', label: '固定电话', width: '120' },
{ prop: 'province', label: '省', width: '100' },
{ prop: 'create_at', label: '创建日期', width: '160' },
{ prop: 'delivery_time', label: '发货时间', width: '160' },
{ prop: 'source_platform_name', label: '订单来源', width: '120' },
{ prop: 'logistics_name', label: '快递', width: '120' },
{ prop: 'pre_delivery_order_code', label: '发货单号', width: '160' },
{ prop: 'sync_status', label: '同步', width: '100' },
]
export const deliverydetail = [
{ label: '订单编号', prop: 'id' },
{ label: '发货单号', prop: 'delivery_order_code' },
{ label: '预发货单号', prop: 'pre_delivery_order_code' },
{ label: '运单号', prop: 'express_code' },
{ label: '物流公司名称', prop: 'logistics_name' },
{ label: '配送方式', prop: 'delivery_type' },
{ label: '省/市/区', prop: 'province_city_area' },
{ label: '城镇/街道', prop: 'town' },
{ label: '详细地址', prop: 'detail_address' },
{ label: '邮编', prop: 'zip_code' },
{ label: '隐私号 ID', prop: 'oaid' },
{ label: '商品种类数', prop: 'items_count' },
{ label: '商品总件数', prop: 'items_total' },
{ label: '总重量', prop: 'items_weight' },
{ label: '订单总金额', prop: 'total_amount' },
{ label: '商品总价', prop: 'item_amount' },
{ label: '优惠金额', prop: 'discount_amount' },
{ label: '快递费用', prop: 'freight' },
{ label: '应收金额', prop: 'ar_amount' },
{ label: '实付金额', prop: 'got_amount' },
{ label: '服务费', prop: 'service_fee' },
{ label: '创建时间', prop: 'create_at' },
{ label: '更新时间', prop: 'updated_at' },
{ label: '删除时间', prop: 'delete_at' },
{ label: '下单时间', prop: 'place_order_time' },
{ label: '支付时间', prop: 'pay_time' },
{ label: 'ERP 审核时间', prop: 'operate_time' },
{ label: '商品总金额', prop: 'item_amount' },
{ label: '订单折扣金额', prop: 'discount_amount' },
{ label: '商品名称(预留位置)', prop: 'item_name' },
{ label: '商品SKU', prop: 'items' },
{ label: '商品种类数', prop: 'items_count' },
{ label: '商品总数', prop: 'items_total' },
{ label: '总重量', prop: 'items_weight' },
{ label: '货主', prop: 'store_id' },
{ label: '国家编码', prop: 'country_code' },
{ label: '详细地址', prop: 'detail_address' },
]
export const deliverybuttonList: any[] = [
{
label: 'EXCEL操作',
type: 'dropdown',
command: 'handleDeliveryOperation',
options: [
{ label: '导出配送单(不含明细)', value: 'export-delivery-nodetail' },
{ label: '快递号导入(含明细)', value: 'import-delivery-detail' },
]
},
{
label: '打印操作',
type: 'dropdown',
command: 'handleDeliveryPrintOperation',
options: [
{ label: '打印发货单', value: 'print-delivery' },
{ label: '打印拣货单', value: 'print-picking' },
{ label: '打印面单(菜鸟)', value: 'print-waybill-cainiao', divided: true },
{ label: '打印面单(拼多多)', value: 'print-waybill-pdd' },
]
},
]
// revieworder相关配置
export const reviewAvailableFields = [
{ label: '货主', value: 'store_id', type: 'select', options: [] },
{ label: '订单号', value: 'order_code', type: 'text' },
{ label: '出库单号', value: 'delivery_order_code', type: 'text' },
{ label: '发货单号', value: 'delivery_order_code', type: 'text' },
{ label: '店铺名称', value: 'shop_nick', type: 'text' },
{ label: '来源平台', value: 'source_platform_name', type: 'text' },
{ label: '物流公司', value: 'logistics_name', type: 'text' },
{ label: '物流单号', value: 'express_code', type: 'text' },
{ label: '收货人', value: 'name', type: 'text' },
{ label: '手机号', value: 'mobile', type: 'text' },
{ label: '省/市/区', value: 'province_city_area', type: 'text' },
{ label: '是否紧急', value: 'is_urgency', type: 'select', options: [ { label: '是', value: 'Y' }, { label: '否', value: 'N' } ] },
{ label: '同步状态', value: 'sync_status', type: 'select', options: [ { label: '待同步', value: 'padding' }, { label: '已同步', value: 'fin' }, { label: '错误', value: 'error' } ] },
{ label: '下单时间', value: 'place_order_time', type: 'daterange' },
{ label: '创建时间', value: 'create_at', type: 'daterange' },
]
export const reviewColums = [
{ prop: 'store_id', label: '货主id', width: '100' },
{ prop: 'source_platform_name', label: '来源平台名称', width: '120' },
{ prop: 'name', label: '收件人姓名', width: '120' },
{ prop: 'mobile', label: '收件人手机', width: '120' },
{ prop: 'create_at', label: '创建时间', width: '160' },
{ prop: 'shop_nick', label: '店铺名称', width: '140' },
{ prop: 'source_platform_code', label: '平台编码', width: '100' },
{ prop: 'status', label: '详情状态', width: '100' },
{ prop: 'operator_name', label: '审核人', width: '100' },
{ prop: 'is_urgency', label: '是否紧急', width: '100' },
{ prop: 'total_amount', label: '订单总金额', width: '120' },
{ prop: 'ar_amount', label: '应收金额', width: '120' },
{ prop: 'pay_time', label: '支付时间', width: '160' },
{ prop: 'items_total', label: '总数量', width: '90' },
{ prop: 'store_id', label: '货主', width: '100' },
]
export const reviewOrderDetail = [
// 基础信息
{ prop: 'store_id', label: '货主id' },
{ prop: 'source_platform_name', label: '来源平台名称' },
{ prop: 'name', label: '收件人姓名' },
{ prop: 'mobile', label: '收件人手机' },
{ prop: 'create_at', label: '创建时间' },
// 明细
{ prop: 'shop_nick', label: '店铺名称' },
{ prop: 'item_name', label: '商品名称(预留)' },
{ prop: 'order_type', label: '订单类型' },
{ prop: 'items', label: '商品详情' },
{ prop: 'items_weight', label: '总重量' },
{ prop: 'pay_no', label: '支付单号' },
{ prop: 'order_flag', label: '订单标记' },
{ prop: 'warehouse_id', label: '仓库ID' },
{ prop: 'warehouse_code', label: '仓库编码' },
{ prop: 'logistics_code', label: '物流编码' },
{ prop: 'invoice_flag', label: '发票标记' },
{ prop: 'delivery_type', label: '发货类型' },
]
export const reviewOrderbuttonList: any[] = [
{
label: '审核操作',
type: 'dropdown',
command: 'handleReviewOperation',
options: [
{ label: '审核通过', value: 'approve' },
{ label: '审核驳回', value: 'reject' },
]
}
]
// pendingOrder相关配置
export const pendingAvailableFields = [
{ label: '货主', value: 'store_id', type: 'select', options: [] },
{ label: '订单号', value: 'order_code', type: 'text' },
{ label: '出库单号', value: 'delivery_order_code', type: 'text' },
{ label: '店铺名称', value: 'shop_nick', type: 'text' },
{ label: '来源平台', value: 'source_platform_name', type: 'text' },
{ label: '物流公司', value: 'logistics_name', type: 'text' },
@ -160,19 +222,65 @@ export const pendingAvailableFields = [
]
export const pendingCloums = [
{ prop: 'id', label: 'ID', width: '80' },
{ prop: 'shop_nick', label: '店铺昵称', width: '160' },
{ prop: 'order_code', label: '订单号', width: '180' },
{ prop: 'delivery_order_code', label: '出库单号', width: '160' },
{ prop: 'name', label: '收货人', width: '160' },
{ prop: 'seller_nick', label: '卖家昵称', width: '160' },
{ prop: 'source_platform_name', label: '来源平台', width: '160' },
{ prop: 'is_urgency', label: '是否紧急', width: '100' },
{ prop: 'logistics_name', label: '物流公司', width: '160' },
{ prop: 'status', label: '系统状态', width: '100' },
{ prop: 'sync_status', label: '同步状态', width: '100' },
{ prop: 'province', label: '送达省份', width: '120' },
{ prop: 'create_at', label: '创建时间', width: '160' },
{ prop: 'wave_id', label: '波次ID', width: '100' },
{ prop: 'storage_status', label: '分配状态', width: '100' },
{ prop: 'post_status', label: '快递状态', width: '100' },
{ prop: 'logistics_name', label: '物流公司', width: '120' },
{ prop: 'express_code', label: '单号', width: '160' },
{ prop: 'is_urgency', label: '紧急', width: '80' },
{ prop: 'items_total', label: '商品总数', width: '100' },
{ prop: 'pay_time', label: '支付时间', width: '160' },
]
export const pendingOrderDetail = [
{ prop: 'warehouse_id', label: '仓库ID' },
{ prop: 'warehouse_code', label: '仓库编码' },
{ prop: 'items_weight', label: '总重量' },
{ prop: 'logistics_code', label: '物流编码' },
{ prop: 'delivery_type', label: '发货服务类型' },
{ prop: 'logistics_area_code', label: '快递区域编码' },
]
export const pendingOrderbuttonList: any[] = [
{
label: 'EXCEL操作',
type: 'dropdown',
command: 'handleExcelOperation',
options: [
{ label: '订单导入', value: 'import-order' },
{ label: '快递号导入', value: 'import-delivery' },
{ label: '地址导入', value: 'import-address' },
{ label: '导出订单(不含明细)', value: 'export-summary', divided: true },
{ label: '导出订单(含明细)', value: 'export-detail' },
]
},
{
label: '打印操作',
type: 'dropdown',
command: 'handlePrintOperation',
options: [
{ label: '打印发货单', value: 'print-delivery' },
{ label: '打印拣货单', value: 'print-picking' },
{ label: '打印面单(菜鸟)', value: 'print-waybill-cainiao', divided: true },
{ label: '打印面单(拼多多)', value: 'print-waybill-pdd' },
]
},
{
label: '分配快递号',
type: 'dropdown',
command: 'handleAssignDelivery',
options: [
{ label: '分配快递号', value: 'assign-delivery' },
]
},
{
label: '拆分',
type: 'dropdown',
command: 'handleSplitOrder',
options: [
{ label: '拆分', value: 'split' },
]
}
]
@ -180,24 +288,141 @@ export const pendingCloums = [
// expectionOrder相关配置
export const expectionOrderAvailableFields = [
{ label: '货主', value: 'store_id', type: 'select', options: [] },
{ label: '订单号', value: 'order_code', type: 'input' },
{ label: '发货单号', value: 'delivery_order_code', type: 'input' },
{ label: '物流公司', value: 'logistics_name', type: 'input' },
{ label: '快递单号', value: 'express_code', type: 'input' },
{ label: '拦截状态', value: 'intercept_status', type: 'select', options: [
{ label: '无', value: 'none' },
{ label: '待拦截', value: 'pending' },
{ label: '已拦截', value: 'success' }
]},
{ label: '创建时间', value: 'create_at', type: 'daterange' },
]
export const expectionColumns = [
{ prop: 'store_id', label: '货主', width: '100' },
{ prop: 'logistics_name', label: '快递', width: '120' },
{ prop: 'pre_delivery_order_code', label: '发货单号', width: '160' },
{ prop: 'create_at', label: '创建日期', width: '160' },
{ prop: 'status', label: '订单状态', width: '100' },
]
export const expectionOrderDetail = [
// 基础信息
{ prop: 'delivery_order_code', label: '发货单号' },
{ prop: 'order_code', label: '订单号' },
{ prop: 'order_type', label: '订单类型' },
{ prop: 'shop_nick', label: '店铺名称' },
{ prop: 'source_platform_name', label: '来源平台' },
{ prop: 'status', label: '系统状态' },
{ prop: 'intercept_status', label: '拦截状态' },
// 异常/状态标记
{ prop: 'lock_status', label: '锁定状态' },
{ prop: 'sync_status', label: '同步状态' },
{ prop: 'post_status', label: '投递状态' },
// 收货信息
{ prop: 'name', label: '收货人' },
{ prop: 'mobile', label: '手机号' },
{ prop: 'province', label: '省份' },
{ prop: 'city', label: '城市' },
{ prop: 'area', label: '区县' },
{ prop: 'detail_address', label: '详细地址' },
// 物流信息
{ prop: 'logistics_name', label: '物流公司' },
{ prop: 'express_code', label: '运单号' },
// 统计信息
{ prop: 'items_count', label: '商品种类' },
{ prop: 'items_total', label: '商品总数' },
{ prop: 'items_weight', label: '总重量' },
// 时间信息
{ prop: 'create_at', label: '创建时间' },
{ prop: 'updated_at', label: '更新时间' },
{ prop: 'operate_time', label: '操作时间' },
]
export const expectionOrderbuttonList: any[] = [
{
label: 'EXCEL操作',
type: 'dropdown',
command: 'handleExpectionOperation',
options: [
{ label: '异常跟踪单导入', value: 'import-exception-tracking' },
{ label: '导出异常跟踪单', value: 'export-exception-tracking' },
]
}
]
// archiveOrder相关配置
export const archiveAvailableFields = [
{ label: '货主', value: 'store_id', type: 'select', options: [] },
{ label: '订单号', value: 'order_code', type: 'input' },
{ label: '状态', value: 'order_status', type: 'select', options: [
{ label: '已完成', value: 'FINISHED' },
{ label: '已作废', value: 'CANCELLED' },
{ label: '已归档', value: 'ARCHIVED' },
{ 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: 'status', type: 'select', options: [
{ label: '已完成', value: 'finished' },
{ label: '已作废', value: 'cancelled' },
{ label: '已归档', value: 'archived' }
]},
{ label: '创建时间', value: 'create_time', type: 'daterange' },
{ label: '创建时间', value: 'create_at', type: 'daterange' },
{ label: '归档时间', value: 'updated_at', type: 'daterange' },
]
export const archiveColumns = [
{ prop: 'id', label: 'ID', width: '80' },
{ prop: 'order_code', label: '订单号', width: '180' },
{ prop: 'delivery_order_code', label: '发货单号', width: '160' },
{ prop: 'shop_nick', label: '店铺名称', width: '140' },
{ prop: 'name', label: '收货人', width: '120' },
{ prop: 'mobile', label: '手机号', width: '120' },
{ prop: 'logistics_name', label: '物流公司', width: '120' },
{ prop: 'status', label: '状态', width: '100' },
{ prop: 'create_at', label: '创建时间', width: '160' },
{ prop: 'updated_at', label: '归档时间', width: '160' },
]
export const archiveOrderDetail = [
// 基础信息
{ prop: 'delivery_order_code', label: '发货单号' },
{ prop: 'order_code', label: '订单号' },
{ prop: 'store_name', label: '货主' },
{ prop: 'order_type', label: '订单类型' },
{ prop: 'order_status', label: '状态' },
{ prop: 'receiver_name', label: '收货人' },
{ prop: 'complete_time', label: '完成时间' },
{ prop: 'create_time', label: '创建时间' },
{ prop: 'shop_nick', label: '店铺名称' },
{ prop: 'source_platform_name', label: '来源平台' },
{ prop: 'status', label: '系统状态' },
// 收货信息
{ prop: 'name', label: '收货人' },
{ prop: 'mobile', label: '手机号' },
{ prop: 'province', label: '省份' },
{ prop: 'city', label: '城市' },
{ prop: 'area', label: '区县' },
{ prop: 'detail_address', label: '详细地址' },
// 物流信息
{ prop: 'logistics_name', label: '物流公司' },
{ prop: 'express_code', label: '运单号' },
// 金额/统计
{ prop: 'total_amount', label: '总金额' },
{ prop: 'item_amount', label: '商品金额' },
{ prop: 'items_count', label: '商品种类' },
{ prop: 'items_total', label: '商品总数' },
// 时间信息
{ prop: 'place_order_time', label: '下单时间' },
{ prop: 'pay_time', label: '支付时间' },
{ prop: 'create_at', label: '创建时间' },
{ prop: 'updated_at', label: '归档/更新时间' },
]

View File

@ -16,6 +16,41 @@
<div class="toolbar">
<div class="toolbar-left">
<el-button size="small" type="primary" @click="loadData">刷新</el-button>
<template v-for="(btn, index) in deliverybuttonList" :key="index">
<el-dropdown
v-if="btn.type === 'dropdown'"
trigger="hover"
@command="(cmd:any) => handleCommand(btn.command, cmd)"
>
<el-button size="small" :loading="btn.loading">
{{ btn.label }}<el-icon class="el-icon--right"><arrow-down /></el-icon>
</el-button>
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item
v-for="opt in btn.options"
:key="opt.value"
:command="opt.value"
:divided="opt.divided"
>
{{ opt.label }}
</el-dropdown-item>
</el-dropdown-menu>
</template>
</el-dropdown>
<el-button
v-else
size="small"
:type="btn.btnType || 'default'"
:disabled="btn.needSelection && !hasSelection"
@click="handleCommand(btn.command)"
>
{{ btn.label }}
</el-button>
</template>
<el-button size="small" @click="handleCreate">新建配送单</el-button>
<el-button size="small" :disabled="!hasSelection" @click="confirmBatchCancel">批量作废</el-button>
<el-button size="small" :loading="exportLoading" @click="handleExport">导出</el-button>
@ -47,7 +82,13 @@
>
<template #column-order_status="{ row }">
<el-tag :type="getStatusType(row.order_status)" size="small">
{{ translateField('order_status', row.order_status) }}
{{ translateOrderField('order_status', row.order_status) }}
</el-tag>
</template>
<template #column-sync_status="{ row }">
<el-tag :type="row.sync_status === 'fin' ? 'success' : row.sync_status === 'error' ? 'danger' : 'info'" size="small">
{{ translateOrderField('sync_status', row.sync_status) }}
</el-tag>
</template>
@ -89,6 +130,7 @@
<script setup lang="ts">
import { ref, reactive, onMounted, computed } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { ArrowDown } from '@element-plus/icons-vue'
import ScanBox from '@/components/ScanBox/index.vue'
import UpperTable from '@/components/UpperTable/index.vue'
import * as indexApi from '@/api/index'
@ -97,7 +139,9 @@ import * as orderApi from '@/api/order/order'
import {
deliveryAvailableFields,
deliveryColumns,
deliverydetail
deliverydetail,
deliverybuttonList,
translateOrderField
} from './config/order-common-config'
import detail from './component/detail.vue'
import log from './component/log.vue'
@ -177,114 +221,78 @@ async function loadData() {
const mockData = [
{
id: 14,
delivery_order_code: '2885-831',
pre_delivery_order_code: '',
express_code: '',
logistics_name: '',
delivery_type: 'NORMAL',
shop_nick: '线下店铺',
name: '刘付明仁',
mobile: '18022440198',
tel: '18022440198',
province: '广东省',
city: '广州市',
area: '白云区',
province_city_area: '广东省 / 广州市 / 白云区',
town: '',
detail_address: '钟落潭良沙二路32号',
zip_code: '',
oaid: '',
items_count: 1,
items_total: 5,
items_weight: 0.00,
create_at: '2026-01-13 14:17:35',
delivery_time: '2026-01-13 15:00:00',
source_platform_name: '线下',
logistics_name: '顺丰',
pre_delivery_order_code: '2885-831',
sync_status: 'padding',
total_amount: 0.00,
item_amount: 0.00,
discount_amount: 0.00,
freight: 0.00,
ar_amount: 0.00,
got_amount: 0.00,
service_fee: 0.00,
create_at: '2026-01-13 14:17:35',
updated_at: '2026-01-13 14:17:35',
delete_at: null,
place_order_time: '2026-01-13 13:37:42',
pay_time: '2026-01-13 13:37:42',
operate_time: '2026-01-13 13:38:05',
order_type: 'JYCK',
shop_nick: '线下店铺',
mobile: '18022440198',
is_urgency: 'N',
sync_status: 'padding'
item_name: '示例商品A',
items: '101845+5',
items_count: 1,
items_total: 5,
items_weight: 0.00,
store_id: 1000016,
country_code: 'CN',
detail_address: '钟落潭良沙二路32号'
},
{
id: 21,
delivery_order_code: 'JY2026011327233',
pre_delivery_order_code: '',
express_code: '',
logistics_name: '顺丰空运',
delivery_type: 'EXPRESS',
shop_nick: '火火家de小店',
name: '刘付明仁',
mobile: '18022440198',
tel: '18022440198',
province: '广东省',
city: '广州市',
area: '白云区',
province_city_area: '广东省 / 广州市 / 白云区',
town: '太和镇',
detail_address: '广东省 广州市 白云区 太和镇 二路32号',
zip_code: '',
oaid: '',
items_count: 1,
items_total: 10,
items_weight: 0.00,
create_at: '2026-01-13 15:26:07',
delivery_time: '2026-01-13 16:00:00',
source_platform_name: '拼多多',
logistics_name: '顺丰空运',
pre_delivery_order_code: 'JY2026011327233',
sync_status: 'padding',
total_amount: 10.00,
item_amount: 10.00,
discount_amount: 0.00,
freight: 0.00,
ar_amount: 0.00,
got_amount: 0.00,
service_fee: 0.00,
create_at: '2026-01-13 15:26:07',
updated_at: '2026-01-13 15:26:07',
delete_at: null,
place_order_time: '2026-01-13 15:22:03',
pay_time: '2026-01-13 15:22:03',
operate_time: '2026-01-13 15:26:07',
order_type: 'JYCK',
shop_nick: '火火家de小店',
mobile: '18022440198',
is_urgency: 'N',
sync_status: 'padding'
item_name: '示例商品B',
items: '101384+10',
items_count: 1,
items_total: 10,
items_weight: 0.00,
store_id: 1000000,
country_code: 'CN',
detail_address: '广东省 广州市 白云区 太和镇 二路32号'
},
{
id: 29,
delivery_order_code: 'CK26012000894',
pre_delivery_order_code: '',
express_code: '',
logistics_name: '',
delivery_type: 'NORMAL',
shop_nick: 'af69a68',
name: '肖宇玄',
mobile: '18727038559',
tel: '18727038559',
province: '北京',
city: '北京市',
area: '西城区',
province_city_area: '北京 / 北京市 / 西城区',
town: '',
detail_address: '湖北省襄阳市宏泰越秀星汇城',
zip_code: '',
oaid: '',
items_count: 2,
items_total: 101,
items_weight: 2.00,
create_at: '2026-01-20 13:02:59',
delivery_time: '2026-01-20 14:00:00',
source_platform_name: '线下',
logistics_name: 'YTO',
pre_delivery_order_code: 'CK26012000894',
sync_status: 'padding',
total_amount: 12990.00,
item_amount: 0.00,
discount_amount: 0.00,
freight: 5.00,
ar_amount: 0.00,
got_amount: 12990.00,
service_fee: 0.00,
create_at: '2026-01-20 13:02:59',
updated_at: '2026-01-20 13:11:33',
delete_at: null,
place_order_time: '2026-01-20 13:02:59',
pay_time: '2026-01-20 13:02:59',
operate_time: '2026-01-20 13:11:33',
order_type: 'JYCK',
shop_nick: 'af69a68',
mobile: '18727038559',
is_urgency: 'N',
sync_status: 'padding'
item_name: '示例商品C',
items: '101874+100|101875+1@2',
items_count: 2,
items_total: 101,
items_weight: 2.00,
store_id: 1000016,
country_code: 'CN',
detail_address: '湖北省襄阳市宏泰越秀星汇城'
}
]
list.value = mockData
@ -373,6 +381,51 @@ async function handleExport() {
ElMessage.success('导出成功')
}, 1000)
}
// 统一执行命令
function handleCommand(commandName: string, subCommand?: string) {
const handlers: Record<string, Function> = {
handleDeliveryOperation,
handleDeliveryPrintOperation,
handleExport,
handleCreate,
confirmBatchCancel
}
const handler = handlers[commandName]
if (handler) {
handler(subCommand)
}
}
const deliveryCommandLabels: Record<string, string> = {
'export-delivery-nodetail': '导出配送单(不含明细)',
'import-delivery-detail': '快递号导入(含明细)'
}
async function handleDeliveryOperation(command: string) {
const label = deliveryCommandLabels[command] || '操作'
exportLoading.value = true
setTimeout(() => {
exportLoading.value = false
ElMessage.success(`${label}成功`)
}, 1000)
}
const deliveryPrintLabels: Record<string, string> = {
'print-delivery': '打印发货单',
'print-picking': '打印拣货单',
'print-waybill-cainiao': '打印面单(菜鸟)',
'print-waybill-pdd': '打印面单(拼多多)'
}
function handleDeliveryPrintOperation(command: string) {
const label = deliveryPrintLabels[command] || '打印操作'
if (!hasSelection.value) {
ElMessage.warning(`请先选择要${label}的订单`)
return
}
ElMessage.success(`正在执行: ${label} (选中 ${selectionRows.value.length} 个订单)`)
}
</script>
<style scoped lang="scss">

View File

@ -16,8 +16,42 @@
<div class="toolbar">
<div class="toolbar-left">
<el-button size="small" type="primary" @click="loadData">刷新</el-button>
<template v-for="(btn, index) in expectionOrderbuttonList" :key="index">
<el-dropdown
v-if="btn.type === 'dropdown'"
trigger="hover"
@command="(cmd:any) => handleCommand(btn.command, cmd)"
>
<el-button size="small" :loading="btn.loading">
{{ btn.label }}<el-icon class="el-icon--right"><arrow-down /></el-icon>
</el-button>
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item
v-for="opt in btn.options"
:key="opt.value"
:command="opt.value"
:divided="opt.divided"
>
{{ opt.label }}
</el-dropdown-item>
</el-dropdown-menu>
</template>
</el-dropdown>
<el-button
v-else
size="small"
:type="btn.btnType || 'primary'"
:disabled="btn.needSelection && !hasSelection"
@click="handleCommand(btn.command)"
>
{{ btn.label }}
</el-button>
</template>
<el-button size="small" type="warning" :disabled="!hasSelection" @click="handleBatchFix">批量重置状态</el-button>
<el-button size="small" :loading="exportLoading" @click="handleExport">导出</el-button>
</div>
<div class="toolbar-right">
@ -46,7 +80,13 @@
>
<template #column-order_status="{ row }">
<el-tag :type="getStatusType(row.order_status)" size="small">
{{ translateField('order_status', row.order_status) }}
{{ translateOrderField('order_status', row.order_status) }}
</el-tag>
</template>
<template #column-status="{ row }">
<el-tag :type="row.status === 'error' ? 'danger' : 'warning'" size="small">
{{ translateOrderField('status', row.status) }}
</el-tag>
</template>
@ -68,10 +108,7 @@
<div class="detail-container">
<KeepAlive>
<div v-if="activeTab === 'details'">
<el-descriptions :column="3" border>
<el-descriptions-item label="订单号">{{ selectedRow?.order_code }}</el-descriptions-item>
<el-descriptions-item label="原始单号">{{ selectedRow?.source_code }}</el-descriptions-item>
</el-descriptions>
<detail :data="selectedRow" :config="expectionOrderDetail" :column="3" />
</div>
<div v-else-if="activeTab === 'exceptions'">
<el-alert title="系统异常" type="error" :closable="false" description="库存不足或物流接口调用失败。" />
@ -95,20 +132,27 @@
<script setup lang="ts">
import { ref, reactive, onMounted, computed } from 'vue'
import { ElMessage } from 'element-plus'
import { ArrowDown } from '@element-plus/icons-vue'
import ScanBox from '@/components/ScanBox/index.vue'
import UpperTable from '@/components/UpperTable/index.vue'
import * as indexApi from '@/api/index'
import { getexpectionOrderlist } from '@/api/order/order'
import {
commonFields,
orderColumns,
expectionColumns,
expectionOrderDetail,
expectionOrderAvailableFields,
expectionOrderbuttonList,
translateOrderField
} from './config/order-common-config'
import detail from './component/detail.vue'
import log from './component/log.vue'
const scanBox = ref<any>(null)
const upperTable = ref<any>(null)
const presetTree = ref<any[]>([])
const availableFieldsRef = reactive(JSON.parse(JSON.stringify(commonFields)))
const availableFieldsRef = reactive(JSON.parse(JSON.stringify(expectionOrderAvailableFields)))
const activeTab = ref('details')
@ -119,7 +163,7 @@ const queryTime = ref(0)
const pagination = reactive({ currentPage: 1, pageSize: 20, total: 0 })
const tableSize = ref('small')
const columns = ref(orderColumns)
const columns = ref(expectionColumns)
const selectionRows = ref<any[]>([])
@ -155,13 +199,83 @@ async function loadData() {
loading.value = true
const start = Date.now()
try {
const params = {
page: pagination.currentPage,
limit: pagination.pageSize,
quickSearch: quickSearch.value,
...scanBox.value?.getConditions?.()
}
const res = await getexpectionOrderlist(params)
if (res.code === 200) {
list.value = res.data || []
pagination.total = res.total || 0
} else {
throw new Error(res.msg || '接口返回异常')
}
} catch (e) {
console.error('加载异常订单失败,使用模拟数据:', e)
const mockData = [
{ id: 301, order_code: 'SO20260321E01', store_name: '分仓B', order_type: 'B2C订单', order_status: 'EXCEPTION', create_time: '2026-03-21 14:00:00', source_code: 'EX999' },
{
id: 14,
store_id: '1000016',
logistics_name: '顺丰',
pre_delivery_order_code: 'PDO202601130001',
create_at: '2026-01-13 14:17:35',
status: 'pedding',
delivery_order_code: '2885-831',
order_code: 'SO202601130001',
order_type: 'JYCK',
shop_nick: '线下店铺',
source_platform_name: '线下',
intercept_status: 'none',
lock_status: 'none',
sync_status: 'padding',
post_status: 'none',
name: '刘付明仁',
mobile: '18022440198',
province: '广东省',
city: '广州市',
area: '白云区',
detail_address: '钟落潭良沙二路32号',
express_code: 'SF123456789',
items_count: 1,
items_total: 5,
items_weight: 0.00,
updated_at: '2026-01-13 14:17:35',
place_order_time: '2026-01-13 13:37:42'
},
{
id: 29,
store_id: '1000017',
logistics_name: 'YTO',
pre_delivery_order_code: 'PDO202601200001',
create_at: '2026-01-20 13:02:59',
status: 'pedding',
delivery_order_code: 'CK26012000894',
order_code: 'SO202601200001',
order_type: 'JYCK',
shop_nick: 'af69a68',
source_platform_name: '线下',
intercept_status: 'none',
lock_status: 'none',
sync_status: 'padding',
post_status: 'none',
name: '肖宇玄',
mobile: '18727038559',
province: '北京',
city: '北京市',
area: '西城区',
detail_address: '湖北省襄阳市宏泰越秀星汇城',
express_code: 'YTO99887766',
items_count: 2,
items_total: 101,
items_weight: 2.00,
updated_at: '2026-01-20 13:11:33',
place_order_time: '2026-01-20 13:02:59'
}
]
list.value = mockData
pagination.total = mockData.length
} catch (e) {
ElMessage.error('加载订单失败')
} finally {
loading.value = false
queryTime.value = Date.now() - start
@ -225,6 +339,32 @@ function handleBatchFix() {
ElMessage.warning(`正在修复 ${selectionRows.value.length} 个订单的状态`)
}
// 统一执行命令
function handleCommand(commandName: string, subCommand?: string) {
const handlers: Record<string, Function> = {
handleExpectionOperation,
handleExport
}
const handler = handlers[commandName]
if (handler) {
handler(subCommand)
}
}
const commandLabels: Record<string, string> = {
'import-exception-tracking': '异常跟踪单导入',
'export-exception-tracking': '导出异常跟踪单'
}
async function handleExpectionOperation(command: string) {
const label = commandLabels[command] || '操作'
exportLoading.value = true
setTimeout(() => {
exportLoading.value = false
ElMessage.success(`${label}成功`)
}, 1000)
}
async function handleExport() {
exportLoading.value = true
setTimeout(() => {

View File

@ -27,14 +27,9 @@
</span>
</template>
<!-- Vue 3 keep-alive 内部必须是单一根元素或动态组件 -->
<router-view v-if="activeTab === tab.name" v-slot="{ Component }">
<keep-alive>
<component :is="tab.component" v-if="activeTab === tab.name || forceRenderAll" />
</keep-alive>
</router-view>
<div v-else-if="forceRenderAll">
<component :is="tab.component" />
</div>
<keep-alive>
<component :is="tab.component" v-if="activeTab === tab.name" />
</keep-alive>
</el-tab-pane>
</el-tabs>
</div>
@ -53,7 +48,7 @@ const route = useRoute()
const router = useRouter()
const activeTab = ref('reviewOrder')
const forceRenderAll = ref(true) // 强制渲染所有组件
const forceRenderAll = ref(false) // 只有 activeTab 对应的组件会被渲染
const tabs = ref([
{
@ -134,10 +129,6 @@ watch(
onMounted(() => {
initFromRoute()
// 确保所有标签都被渲染
setTimeout(() => {
forceRenderAll.value = false
}, 100)
})
// 点击标签时处理

View File

@ -17,7 +17,39 @@
<div class="toolbar-left">
<el-button size="small" type="primary" @click="loadData">刷新</el-button>
<el-button size="small" type="primary" :disabled="!hasSelection" @click="handleBatchProcess">批量下发</el-button>
<el-button size="small" :loading="exportLoading" @click="handleExport">导出</el-button>
<template v-for="(btn, index) in pendingOrderbuttonList" :key="index">
<el-dropdown
v-if="btn.type === 'dropdown'"
trigger="hover"
@command="(cmd:any) => handleCommand(btn.command, cmd)"
>
<el-button size="small" :loading="btn.loading">
{{ btn.label }}<el-icon class="el-icon--right"><arrow-down /></el-icon>
</el-button>
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item
v-for="opt in btn.options"
:key="opt.value"
:command="opt.value"
:divided="opt.divided"
>
{{ opt.label }}
</el-dropdown-item>
</el-dropdown-menu>
</template>
</el-dropdown>
<el-button
v-else
size="small"
:type="btn.btnType"
@click="handleCommand(btn.command)"
>
{{ btn.label }}
</el-button>
</template>
</div>
<div class="toolbar-right">
@ -46,7 +78,35 @@
>
<template #column-order_status="{ row }">
<el-tag :type="getStatusType(row.order_status)" size="small">
{{ translateField('order_status', row.order_status) }}
{{ translateOrderField('order_status', row.order_status) }}
</el-tag>
</template>
<template #column-is_urgency="{ row }">
<el-tag :type="row.is_urgency === 'Y' ? 'danger' : 'info'" size="small">
{{ translateOrderField('is_urgency', row.is_urgency) }}
</el-tag>
</template>
<template #column-post_status="{ row }">
{{ translateOrderField('post_status', row.post_status) }}
</template>
<template #column-storage_status="{ row }">
{{ translateOrderField('storage_status', row.storage_status) }}
</template>
<template #column-print_status="{ row }">
{{ translateOrderField('print_status', row.print_status) }}
</template>
<template #column-pick_status="{ row }">
{{ translateOrderField('pick_status', row.pick_status) }}
</template>
<template #column-sync_status="{ row }">
<el-tag :type="row.sync_status === 'fin' ? 'success' : row.sync_status === 'error' ? 'danger' : 'info'" size="small">
{{ translateOrderField('sync_status', row.sync_status) }}
</el-tag>
</template>
@ -69,9 +129,13 @@
<KeepAlive>
<div v-if="activeTab === 'details'">
<el-descriptions :column="3" border>
<el-descriptions-item label="订单号">{{ selectedRow?.order_code }}</el-descriptions-item>
<el-descriptions-item label="货主">{{ selectedRow?.store_name }}</el-descriptions-item>
<el-descriptions-item label="处理优先级">{{ selectedRow?.priority || '普通' }}</el-descriptions-item>
<el-descriptions-item
v-for="field in pendingOrderDetail"
:key="field.prop"
:label="field.label"
>
{{ selectedRow?.[field.prop] ?? '-' }}
</el-descriptions-item>
</el-descriptions>
</div>
<div v-else-if="activeTab === 'picking'">
@ -96,15 +160,18 @@
<script setup lang="ts">
import { ref, reactive, onMounted, computed } from 'vue'
import { ElMessage } from 'element-plus'
import { ArrowDown } from '@element-plus/icons-vue'
import ScanBox from '@/components/ScanBox/index.vue'
import UpperTable from '@/components/UpperTable/index.vue'
import * as indexApi from '@/api/index'
import { getpendingOrderlist } from '@/api/order/order'
import {
commonFields,
orderColumns,
pendingCloums,
pendingAvailableFields,
pendingOrderDetail,
pendingOrderbuttonList,
translateOrderField
} from './config/order-common-config'
import detail from './component/detail.vue'
import log from './component/log.vue'
@ -159,43 +226,80 @@ async function loadData() {
if (loading.value) return
loading.value = true
const start = Date.now()
// 构造查询参数
const queryParams = {
page: pagination.currentPage,
limit: pagination.pageSize,
quick_search: quickSearch.value,
...scanBox.value?.getConditions?.()
}
try {
const res = await getpendingOrderlist(queryParams)
if (res && res.code === 200 && res.data) {
list.value = res.data.list || []
pagination.total = res.data.total || 0
} else {
throw new Error('接口返回异常')
}
} catch (e) {
console.warn('获取待处理订单列表失败,使用模拟数据:', e)
const mockData = [
{
id: 201,
order_code: 'SO20260321P01',
delivery_order_code: 'DO20260321P01',
shop_nick: '待处理店铺A',
name: '王五',
seller_nick: '卖家001',
source_platform_name: '拼多多',
id: 14,
wave_id: 0,
storage_status: 'none',
post_status: 'none',
logistics_name: '顺丰',
express_code: '',
is_urgency: 'N',
logistics_name: '顺丰快递',
status: 'WAIT_PROCESS',
sync_status: 'padding',
province: '浙江省',
create_at: '2026-03-21 11:00:00'
items_total: 5,
pay_time: '2026-01-13 13:37:42',
warehouse_id: 100000,
warehouse_code: 'khgj2025100902',
items_weight: 0.00,
logistics_code: 'SF',
delivery_type: 'JYCK',
logistics_area_code: '',
},
{
id: 202,
order_code: 'SO20260321P02',
delivery_order_code: 'DO20260321P02',
shop_nick: '待处理店铺B',
name: '赵六',
seller_nick: '卖家002',
source_platform_name: '抖音',
is_urgency: 'Y',
logistics_name: '中通快递',
status: 'WAIT_PROCESS',
sync_status: 'error',
province: '广东省',
create_at: '2026-03-21 12:30:00'
id: 21,
wave_id: 0,
storage_status: 'none',
post_status: 'none',
logistics_name: '顺丰空运',
express_code: '',
is_urgency: 'N',
items_total: 10,
pay_time: '2026-01-13 15:22:03',
warehouse_id: 100000,
warehouse_code: '100000',
items_weight: 0.00,
logistics_code: 'SFKY',
delivery_type: 'JYCK',
logistics_area_code: '',
},
{
id: 29,
wave_id: 0,
storage_status: 'none',
post_status: 'none',
logistics_name: '圆通',
express_code: '',
is_urgency: 'N',
items_total: 101,
pay_time: '2026-01-20 13:02:59',
warehouse_id: 100000,
warehouse_code: 'wdt02060120001',
items_weight: 2.00,
logistics_code: 'YTO',
delivery_type: 'JYCK',
logistics_area_code: '',
},
]
list.value = mockData
pagination.total = mockData.length
} catch (e) {
ElMessage.error('加载订单失败')
} finally {
loading.value = false
queryTime.value = Date.now() - start
@ -260,13 +364,50 @@ function handleBatchProcess() {
ElMessage.success(`成功并发下发 ${selectionRows.value.length} 个订单`)
}
async function handleExport() {
// 统一执行命令
function handleCommand(commandName: string, subCommand?: string) {
const handlers: Record<string, Function> = {
handleExcelOperation,
handlePrintOperation,
}
const handler = handlers[commandName]
if (handler) {
handler(subCommand)
}
}
const commandLabels: Record<string, string> = {
'import-order': '订单导入',
'import-delivery': '快递号导入',
'import-address': '地址导入',
'export-summary': '导出订单(不含明细)',
'export-detail': '导出订单(含明细)'
}
async function handleExcelOperation(command: string) {
const label = commandLabels[command] || 'EXCEL操作'
exportLoading.value = true
setTimeout(() => {
exportLoading.value = false
ElMessage.success('导出成功')
ElMessage.success(`${label}成功`)
}, 1000)
}
const printLabels: Record<string, string> = {
'print-delivery': '打印发货单',
'print-picking': '打印拣货单',
'print-waybill-cainiao': '打印面单(菜鸟)',
'print-waybill-pdd': '打印面单(拼多多)'
}
function handlePrintOperation(command: string) {
const label = printLabels[command] || '打印操作'
if (!hasSelection.value) {
ElMessage.warning(`请先选择要${label}的订单`)
return
}
ElMessage.success(`正在执行: ${label} (选中 ${selectionRows.value.length} 个订单)`)
}
</script>
<style scoped lang="scss">

View File

@ -10,6 +10,7 @@
@condition-change="handleConditionChange"
@reset="handleConditionReset"
@condition-clear="handleConditionClear"
@submit="handleConditionChange"
/>
<div class="main-content">
@ -45,9 +46,25 @@
@refresh="loadData"
@selection-change="onSelectionChange"
>
<template #column-source_platform_code="{ row }">
{{ translateOrderField('source_platform_code', row.source_platform_code) }}
</template>
<template #column-status="{ row }">
<el-tag :type="row.status === 'pedding' ? 'warning' : 'info'" size="small">
{{ translateOrderField('status', row.status) }}
</el-tag>
</template>
<template #column-order_status="{ row }">
<el-tag :type="getStatusType(row.order_status)" size="small">
{{ translateField('order_status', row.order_status) }}
{{ translateOrderField('order_status', row.order_status) }}
</el-tag>
</template>
<template #column-is_urgency="{ row }">
<el-tag :type="row.is_urgency === 'Y' ? 'danger' : 'info'" size="small">
{{ translateOrderField('is_urgency', row.is_urgency) }}
</el-tag>
</template>
@ -99,12 +116,13 @@ 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'
import { getreviewOrderlist } from '@/api/order/order'
import {
orderColumns,
reviewAvailableFields,
reviewColums,
reviewOrderDetail
reviewOrderDetail,
translateOrderField
} from './config/order-common-config'
import detail from './component/detail.vue'
import log from './component/log.vue'
@ -159,39 +177,74 @@ async function loadData() {
if (loading.value) return
loading.value = true
const start = Date.now()
try {
const queryParams = {
page: pagination.currentPage,
limit: pagination.pageSize,
quick_search: quickSearch.value,
...scanBox.value?.getConditions?.()
}
try {
const res = await getreviewOrderlist(queryParams)
if (res && res.code === 200 && res.data) {
list.value = res.data.list || []
pagination.total = res.data.total || 0
} else {
throw new Error('接口返回异常')
}
} catch (e) {
console.warn('获取待审核订单列表失败,使用模拟数据:', e)
const mockData = [
{
id: 101,
store_id: '1000016',
source_platform_name: '线下',
name: '刘付明仁',
mobile: '18022440198',
create_at: '2026-01-13 14:17:35',
id: 14,
shop_nick: '线下店铺',
item_name: '商品A(预留)',
order_type: 'JYCK',
order_flag: '普通订单',
source_platform_code: 'OFFLINE',
items: '101845+5',
status: 'pedding',
operator_name: '系统',
is_urgency: 'N',
total_amount: 0.00,
ar_amount: 0.00,
pay_time: '2026-01-13 13:37:42',
pay_no: '',
order_flag: '',
warehouse_id: 100000,
warehouse_code: 'khgj2025100902',
store_id: 1000016,
items_total: 5,
items_weight: 0.00,
logistics_code: 'SF',
invoice_flag: 'N',
delivery_type: '普通快递',
order_status: 'WAIT_AUDIT'
},
{
id: 102,
store_id: '1000016',
source_platform_name: '拼多多',
name: '刘付明仁',
mobile: '18022440198',
create_at: '2026-01-13 15:26:07',
id: 21,
shop_nick: '火火家de小店',
item_name: '商品B(预留)',
order_type: 'JYCK',
order_flag: '急单',
source_platform_code: 'PDD',
items: '101384+10',
status: 'pedding',
operator_name: '1',
is_urgency: 'N',
total_amount: 10.00,
ar_amount: 0.00,
pay_time: '2026-01-13 15:22:03',
pay_no: '',
order_flag: '',
warehouse_id: 100000,
warehouse_code: '100000',
store_id: 1000000,
items_total: 10,
items_weight: 0.00,
logistics_code: 'SFKY',
invoice_flag: 'N',
delivery_type: '顺丰空运',
order_status: 'WAIT_AUDIT'
}
]
list.value = mockData
pagination.total = mockData.length
} catch (e) {
ElMessage.error('加载订单失败')
} finally {
loading.value = false
queryTime.value = Date.now() - start

View File

@ -1,10 +1,122 @@
INSERT INTO `wms_order_delivery_100000`(`id`, `delivery_order_code`, `pre_delivery_order_code`, `pre_delivery_order_id`, `order_type`, `warehouse_code`, `order_flag`, `source_platform_code`, `source_platform_name`, `create_at`, `delete_at`, `updated_at`, `place_order_time`, `pay_time`, `pay_no`, `service_code`, `operator_name`, `operate_time`, `shop_nick`, `seller_nick`, `buyer_nick`, `total_amount`, `item_amount`, `discount_amount`, `freight`, `ar_amount`, `got_amount`, `service_fee`, `logistics_code`, `logistics_name`, `express_code`, `logistics_area_code`, `delivery_type`, `is_urgency`, `invoice_flag`, `status`, `name`, `zip_code`, `tel`, `mobile`, `email`, `country_code`, `province`, `city`, `area`, `town`, `detail_address`, `id_type`, `id_number`, `oaid`, `sync_status`, `store_id`, `warehouse_id`, `from_key`, `items`, `items_count`, `items_total`, `items_weight`, `items_hash`, `items_crc`, `wave_id`, `post_status`, `storage_status`, `pick_status`, `pack_status`, `inspection_status`, `print_status`, `claim_status`, `outbound_status`, `lock_status`, `intercept_status`) VALUES (14, '2885-831', '', '', 'JYCK', 'khgj2025100902', '', 'OFFLINE', '线下', '2026-01-13 14:17:35', NULL, '2026-01-13 14:17:35', '2026-01-13 13:37:42', '2026-01-13 13:37:42', '', NULL, NULL, '2026-01-13 13:38:05', '线下店铺', NULL, NULL, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 'SF', NULL, '', '', NULL, 'N', 'N', 'pedding', '刘付明仁', '', '', '18022440198', '', '', '广东省', '广州市', '白云区', '', '钟落潭良沙二路32号', NULL, NULL, NULL, 'padding', 1000016, 100000, 34597803, '101845+5', 1, 5, 0.00, 'cbb47c0389ebc6c930a4671a4ea5d3a3', 403, 0, 'none', 'none', 'none', 'none', 'none', 'none', 'none', 'none', 'none', 'none');
INSERT INTO `wms_order_delivery_100000`(`id`, `delivery_order_code`, `pre_delivery_order_code`, `pre_delivery_order_id`, `order_type`, `warehouse_code`, `order_flag`, `source_platform_code`, `source_platform_name`, `create_at`, `delete_at`, `updated_at`, `place_order_time`, `pay_time`, `pay_no`, `service_code`, `operator_name`, `operate_time`, `shop_nick`, `seller_nick`, `buyer_nick`, `total_amount`, `item_amount`, `discount_amount`, `freight`, `ar_amount`, `got_amount`, `service_fee`, `logistics_code`, `logistics_name`, `express_code`, `logistics_area_code`, `delivery_type`, `is_urgency`, `invoice_flag`, `status`, `name`, `zip_code`, `tel`, `mobile`, `email`, `country_code`, `province`, `city`, `area`, `town`, `detail_address`, `id_type`, `id_number`, `oaid`, `sync_status`, `store_id`, `warehouse_id`, `from_key`, `items`, `items_count`, `items_total`, `items_weight`, `items_hash`, `items_crc`, `wave_id`, `post_status`, `storage_status`, `pick_status`, `pack_status`, `inspection_status`, `print_status`, `claim_status`, `outbound_status`, `lock_status`, `intercept_status`) VALUES (17, '2885-832', '', '', 'JYCK', 'khgj2025100902', '', 'OFFLINE', '线下', '2026-01-13 14:46:22', NULL, '2026-01-13 14:46:22', '2026-01-13 14:36:37', '2026-01-13 14:36:37', '', NULL, NULL, '2026-01-13 14:40:48', '线下店铺', NULL, NULL, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 'SF', NULL, '', '', NULL, 'N', 'N', 'pedding', '刘付明仁', '', '', '18022440198', '', '', '广东省', '广州市', '白云区', '', '钟落潭良沙二路32号', NULL, NULL, NULL, 'padding', 1000016, 100000, 34597803, '101842+1|101845+1', 2, 2, 0.00, '78ebc40a9cfca92e44e69e4cc3828c3e', 919, 0, 'none', 'none', 'none', 'none', 'none', NULL, 'none', 'none', NULL, NULL);
INSERT INTO `wms_order_delivery_100000`(`id`, `delivery_order_code`, `pre_delivery_order_code`, `pre_delivery_order_id`, `order_type`, `warehouse_code`, `order_flag`, `source_platform_code`, `source_platform_name`, `create_at`, `delete_at`, `updated_at`, `place_order_time`, `pay_time`, `pay_no`, `service_code`, `operator_name`, `operate_time`, `shop_nick`, `seller_nick`, `buyer_nick`, `total_amount`, `item_amount`, `discount_amount`, `freight`, `ar_amount`, `got_amount`, `service_fee`, `logistics_code`, `logistics_name`, `express_code`, `logistics_area_code`, `delivery_type`, `is_urgency`, `invoice_flag`, `status`, `name`, `zip_code`, `tel`, `mobile`, `email`, `country_code`, `province`, `city`, `area`, `town`, `detail_address`, `id_type`, `id_number`, `oaid`, `sync_status`, `store_id`, `warehouse_id`, `from_key`, `items`, `items_count`, `items_total`, `items_weight`, `items_hash`, `items_crc`, `wave_id`, `post_status`, `storage_status`, `pick_status`, `pack_status`, `inspection_status`, `print_status`, `claim_status`, `outbound_status`, `lock_status`, `intercept_status`) VALUES (19, '935496', '', '', 'JYCK', '100000', '', 'OFFLINE', '线下', '2026-01-13 15:05:38', NULL, '2026-01-13 15:05:40', '2026-01-13 14:49:50', '2026-01-13 14:51:36', 'S20260113225136223', NULL, NULL, '2026-01-13 15:05:38', '{线下}', NULL, '刘付明仁', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 'SF', '顺丰', '', '', NULL, 'N', 'N', 'pedding', '刘付明仁', '', '', '18022440198', '', '', '广东省', '广州市', '白云区', '', '钟落潭良沙二路32号', NULL, NULL, NULL, 'padding', 1000000, 100000, 23060081, '101391+5', 1, 5, 0.00, '26939f46b9fb7d216a485c89b6bda980', 399, 0, 'none', 'none', 'none', 'none', 'none', NULL, 'none', 'none', NULL, NULL);
INSERT INTO `wms_order_delivery_100000`(`id`, `delivery_order_code`, `pre_delivery_order_code`, `pre_delivery_order_id`, `order_type`, `warehouse_code`, `order_flag`, `source_platform_code`, `source_platform_name`, `create_at`, `delete_at`, `updated_at`, `place_order_time`, `pay_time`, `pay_no`, `service_code`, `operator_name`, `operate_time`, `shop_nick`, `seller_nick`, `buyer_nick`, `total_amount`, `item_amount`, `discount_amount`, `freight`, `ar_amount`, `got_amount`, `service_fee`, `logistics_code`, `logistics_name`, `express_code`, `logistics_area_code`, `delivery_type`, `is_urgency`, `invoice_flag`, `status`, `name`, `zip_code`, `tel`, `mobile`, `email`, `country_code`, `province`, `city`, `area`, `town`, `detail_address`, `id_type`, `id_number`, `oaid`, `sync_status`, `store_id`, `warehouse_id`, `from_key`, `items`, `items_count`, `items_total`, `items_weight`, `items_hash`, `items_crc`, `wave_id`, `post_status`, `storage_status`, `pick_status`, `pack_status`, `inspection_status`, `print_status`, `claim_status`, `outbound_status`, `lock_status`, `intercept_status`) VALUES (20, '935502', '', '', 'JYCK', '100000', '', 'OFFLINE', '线下', '2026-01-13 15:09:37', NULL, '2026-01-13 15:09:40', '2026-01-13 14:49:50', '2026-01-13 14:51:36', 'S20260113225136223', NULL, NULL, '2026-01-13 15:09:37', '{线下}', NULL, '刘付明仁', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 'SF', '顺丰', '', '', NULL, 'N', 'N', 'pedding', '刘付明仁', '', '', '18022440198', '', '', '广东省', '广州市', '白云区', '', '钟落潭良沙二路32号', NULL, NULL, NULL, 'padding', 1000000, 100000, 23060081, '101391+5', 1, 5, 0.00, '26939f46b9fb7d216a485c89b6bda980', 399, 0, 'none', 'none', 'none', 'none', 'none', NULL, 'none', 'none', NULL, NULL);
INSERT INTO `wms_order_delivery_100000`(`id`, `delivery_order_code`, `pre_delivery_order_code`, `pre_delivery_order_id`, `order_type`, `warehouse_code`, `order_flag`, `source_platform_code`, `source_platform_name`, `create_at`, `delete_at`, `updated_at`, `place_order_time`, `pay_time`, `pay_no`, `service_code`, `operator_name`, `operate_time`, `shop_nick`, `seller_nick`, `buyer_nick`, `total_amount`, `item_amount`, `discount_amount`, `freight`, `ar_amount`, `got_amount`, `service_fee`, `logistics_code`, `logistics_name`, `express_code`, `logistics_area_code`, `delivery_type`, `is_urgency`, `invoice_flag`, `status`, `name`, `zip_code`, `tel`, `mobile`, `email`, `country_code`, `province`, `city`, `area`, `town`, `detail_address`, `id_type`, `id_number`, `oaid`, `sync_status`, `store_id`, `warehouse_id`, `from_key`, `items`, `items_count`, `items_total`, `items_weight`, `items_hash`, `items_crc`, `wave_id`, `post_status`, `storage_status`, `pick_status`, `pack_status`, `inspection_status`, `print_status`, `claim_status`, `outbound_status`, `lock_status`, `intercept_status`) VALUES (21, 'JY2026011327233', '', '', 'JYCK', '100000', '', 'PDD', '拼多多', '2026-01-13 15:26:07', NULL, '2026-01-13 15:26:07', '2026-01-13 15:22:03', '2026-01-13 15:22:03', '', NULL, '1', '2026-01-13 15:26:07', '火火家de小店', '1', '刘付明仁18022440198', 10.00, 10.00, 0.00, 0.00, 0.00, 0.00, NULL, 'SFKY', '顺丰空运', '', '', NULL, 'N', 'N', 'pedding', '刘付明仁', '', '', '18022440198', '', 'CN', '广东省', '广州市', '白云区', '太和镇', '广东省 广州市 白云区 太和镇 二路32号', NULL, NULL, NULL, 'padding', 1000000, 100000, 24869601, '101384+10', 1, 10, 0.00, '0043ebfd4f730160a5e9db969f1b856c', 445, 0, 'none', 'none', 'none', 'none', 'none', NULL, 'none', 'none', NULL, NULL);
INSERT INTO `wms_order_delivery_100000`(`id`, `delivery_order_code`, `pre_delivery_order_code`, `pre_delivery_order_id`, `order_type`, `warehouse_code`, `order_flag`, `source_platform_code`, `source_platform_name`, `create_at`, `delete_at`, `updated_at`, `place_order_time`, `pay_time`, `pay_no`, `service_code`, `operator_name`, `operate_time`, `shop_nick`, `seller_nick`, `buyer_nick`, `total_amount`, `item_amount`, `discount_amount`, `freight`, `ar_amount`, `got_amount`, `service_fee`, `logistics_code`, `logistics_name`, `express_code`, `logistics_area_code`, `delivery_type`, `is_urgency`, `invoice_flag`, `status`, `name`, `zip_code`, `tel`, `mobile`, `email`, `country_code`, `province`, `city`, `area`, `town`, `detail_address`, `id_type`, `id_number`, `oaid`, `sync_status`, `store_id`, `warehouse_id`, `from_key`, `items`, `items_count`, `items_total`, `items_weight`, `items_hash`, `items_crc`, `wave_id`, `post_status`, `storage_status`, `pick_status`, `pack_status`, `inspection_status`, `print_status`, `claim_status`, `outbound_status`, `lock_status`, `intercept_status`) VALUES (22, '935520', '', '', 'JYCK', '100000', '', 'OFFLINE', '线下', '2026-01-13 15:27:36', NULL, '2026-01-13 15:27:38', '2026-01-13 14:49:50', '2026-01-13 14:51:36', 'S20260113225136223', NULL, NULL, '2026-01-13 15:27:36', '{线下}', NULL, '刘付明仁', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 'SFKY', '顺丰速运_空运', '', '', NULL, 'N', 'N', 'pedding', '刘付明仁', '', '', '18022440198', '', '', '广东省', '广州市', '白云区', '', '钟落潭良沙二路32号', NULL, NULL, NULL, 'padding', 1000000, 100000, 23060081, '101391+5', 1, 5, 0.00, '26939f46b9fb7d216a485c89b6bda980', 399, 0, 'none', 'none', 'none', 'none', 'none', NULL, 'none', 'none', NULL, NULL);
INSERT INTO `wms_order_delivery_100000`(`id`, `delivery_order_code`, `pre_delivery_order_code`, `pre_delivery_order_id`, `order_type`, `warehouse_code`, `order_flag`, `source_platform_code`, `source_platform_name`, `create_at`, `delete_at`, `updated_at`, `place_order_time`, `pay_time`, `pay_no`, `service_code`, `operator_name`, `operate_time`, `shop_nick`, `seller_nick`, `buyer_nick`, `total_amount`, `item_amount`, `discount_amount`, `freight`, `ar_amount`, `got_amount`, `service_fee`, `logistics_code`, `logistics_name`, `express_code`, `logistics_area_code`, `delivery_type`, `is_urgency`, `invoice_flag`, `status`, `name`, `zip_code`, `tel`, `mobile`, `email`, `country_code`, `province`, `city`, `area`, `town`, `detail_address`, `id_type`, `id_number`, `oaid`, `sync_status`, `store_id`, `warehouse_id`, `from_key`, `items`, `items_count`, `items_total`, `items_weight`, `items_hash`, `items_crc`, `wave_id`, `post_status`, `storage_status`, `pick_status`, `pack_status`, `inspection_status`, `print_status`, `claim_status`, `outbound_status`, `lock_status`, `intercept_status`) VALUES (29, 'CK26012000894', '', '', 'JYCK', 'wdt02060120001', '', 'OFFLINE', '线下', '2026-01-20 13:02:59', NULL, '2026-01-20 13:11:33', '2026-01-20 13:02:59', '2026-01-20 13:02:59', '', NULL, NULL, '2026-01-20 13:11:33', 'af69a68', NULL, '肖宇玄', 12990.00, 0.00, 0.00, 5.00, 0.00, 12990.00, NULL, 'YTO', NULL, '', '', NULL, 'N', 'N', 'pedding', '肖宇玄', '', '18727038559', '18727038559', '', '', '北京', '北京市', '西城区', '', '湖北省襄阳市宏泰越秀星汇城', NULL, NULL, NULL, 'padding', 1000016, 100000, 21363512, '101874+100|101875+1@2', 2, 101, 2.00, '4dc8eceb86a6dfeb730321a6779bc360', 1137, 0, 'none', 'none', 'none', 'none', 'none', NULL, 'none', 'none', NULL, NULL);
INSERT INTO `wms_order_delivery_100000`(`id`, `delivery_order_code`, `pre_delivery_order_code`, `pre_delivery_order_id`, `order_type`, `warehouse_code`, `order_flag`, `source_platform_code`, `source_platform_name`, `create_at`, `delete_at`, `updated_at`, `place_order_time`, `pay_time`, `pay_no`, `service_code`, `operator_name`, `operate_time`, `shop_nick`, `seller_nick`, `buyer_nick`, `total_amount`, `item_amount`, `discount_amount`, `freight`, `ar_amount`, `got_amount`, `service_fee`, `logistics_code`, `logistics_name`, `express_code`, `logistics_area_code`, `delivery_type`, `is_urgency`, `invoice_flag`, `status`, `name`, `zip_code`, `tel`, `mobile`, `email`, `country_code`, `province`, `city`, `area`, `town`, `detail_address`, `id_type`, `id_number`, `oaid`, `sync_status`, `store_id`, `warehouse_id`, `from_key`, `items`, `items_count`, `items_total`, `items_weight`, `items_hash`, `items_crc`, `wave_id`, `post_status`, `storage_status`, `pick_status`, `pack_status`, `inspection_status`, `print_status`, `claim_status`, `outbound_status`, `lock_status`, `intercept_status`) VALUES (30, 'CK26012000895', '', '', 'JYCK', 'wdt02060120001', '', 'OFFLINE', '线下', '2026-01-20 13:00:40', NULL, '2026-01-20 13:11:37', '2026-01-20 13:00:41', '2026-01-20 13:00:41', '', NULL, NULL, '2026-01-20 13:11:37', 'af69a68', NULL, '测试', 6495.00, 0.00, 0.00, 5.00, 0.00, 6495.00, NULL, 'YTO', NULL, '', '', NULL, 'N', 'N', 'pedding', '测试', '', '11111111111', '11111111111', '', '', '北京', '北京市', '东城区', '', '测试', NULL, NULL, NULL, 'padding', 1000016, 100000, 21363512, '101874+50|101875+1@2', 2, 51, 2.00, 'e87473418ea8a893825a3b13c2663c10', 1093, 0, 'none', 'none', 'none', 'none', 'none', NULL, 'none', 'none', NULL, NULL);
INSERT INTO `wms_order_delivery_100000`(`id`, `delivery_order_code`, `pre_delivery_order_code`, `pre_delivery_order_id`, `order_type`, `warehouse_code`, `order_flag`, `source_platform_code`, `source_platform_name`, `create_at`, `delete_at`, `updated_at`, `place_order_time`, `pay_time`, `pay_no`, `service_code`, `operator_name`, `operate_time`, `shop_nick`, `seller_nick`, `buyer_nick`, `total_amount`, `item_amount`, `discount_amount`, `freight`, `ar_amount`, `got_amount`, `service_fee`, `logistics_code`, `logistics_name`, `express_code`, `logistics_area_code`, `delivery_type`, `is_urgency`, `invoice_flag`, `status`, `name`, `zip_code`, `tel`, `mobile`, `email`, `country_code`, `province`, `city`, `area`, `town`, `detail_address`, `id_type`, `id_number`, `oaid`, `sync_status`, `store_id`, `warehouse_id`, `from_key`, `items`, `items_count`, `items_total`, `items_weight`, `items_hash`, `items_crc`, `wave_id`, `post_status`, `storage_status`, `pick_status`, `pack_status`, `inspection_status`, `print_status`, `claim_status`, `outbound_status`, `lock_status`, `intercept_status`) VALUES (31, 'CK26012800003', '', '', 'JYCK', 'wdt02060120001', '', 'OFFLINE', '线下', '2026-01-20 13:02:59', NULL, '2026-01-28 02:33:35', '2026-01-20 13:02:59', '2026-01-20 13:02:59', '', NULL, NULL, '2026-01-28 02:33:35', 'af69a68', NULL, '肖宇玄', 12990.00, 0.00, 0.00, 5.00, 0.00, 12990.00, NULL, 'YTO', NULL, '', '', NULL, 'N', 'N', 'pedding', '肖宇玄', '', '18727038559', '18727038559', '', '', '北京', '北京市', '西城区', '', '湖北省襄阳市宏泰越秀星汇城', NULL, NULL, NULL, 'padding', 1000016, 100000, 21363512, '101874+100|101875+1@2', 2, 101, 2.00, '4dc8eceb86a6dfeb730321a6779bc360', 1137, 0, 'none', 'none', 'none', 'none', 'none', NULL, 'none', 'none', NULL, NULL);
INSERT INTO `wms_order_delivery_100000`(`id`, `delivery_order_code`, `pre_delivery_order_code`, `pre_delivery_order_id`, `order_type`, `warehouse_code`, `order_flag`, `source_platform_code`, `source_platform_name`, `create_at`, `delete_at`, `updated_at`, `place_order_time`, `pay_time`, `pay_no`, `service_code`, `operator_name`, `operate_time`, `shop_nick`, `seller_nick`, `buyer_nick`, `total_amount`, `item_amount`, `discount_amount`, `freight`, `ar_amount`, `got_amount`, `service_fee`, `logistics_code`, `logistics_name`, `express_code`, `logistics_area_code`, `delivery_type`, `is_urgency`, `invoice_flag`, `status`, `name`, `zip_code`, `tel`, `mobile`, `email`, `country_code`, `province`, `city`, `area`, `town`, `detail_address`, `id_type`, `id_number`, `oaid`, `sync_status`, `store_id`, `warehouse_id`, `from_key`, `items`, `items_count`, `items_total`, `items_weight`, `items_hash`, `items_crc`, `wave_id`, `post_status`, `storage_status`, `pick_status`, `pack_status`, `inspection_status`, `print_status`, `claim_status`, `outbound_status`, `lock_status`, `intercept_status`) VALUES (32, 'CK26013001179', '', '', 'JYCK', 'wdt02060120001', '', 'OFFLINE', '线下', '2026-01-20 13:02:59', NULL, '2026-01-30 02:42:45', '2026-01-20 13:02:59', '2026-01-20 13:02:59', '', NULL, NULL, '2026-01-30 02:42:44', 'af69a68', NULL, '肖宇玄', 12990.00, 0.00, 0.00, 5.00, 0.00, 12990.00, NULL, 'YTO', NULL, '', '', NULL, 'N', 'N', 'pedding', '肖宇玄', '', '18727038559', '18727038559', '', '', '北京', '北京市', '西城区', '', '湖北省襄阳市宏泰越秀星汇城', NULL, NULL, NULL, 'padding', 1000016, 100000, 21363512, '101874+100|101875+1@2', 2, 101, 2.00, '4dc8eceb86a6dfeb730321a6779bc360', 1137, 0, 'none', 'none', 'none', 'none', 'none', NULL, 'none', 'none', NULL, NULL);
/*
Navicat MySQL Data Transfer
Source Server : wms
Source Server Type : MySQL
Source Server Version : 50744
Source Host : 112.124.21.102:3306
Source Schema : wms
Target Server Type : MySQL
Target Server Version : 50744
File Encoding : 65001
Date: 23/03/2026 10:27:25
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for wms_order_delivery_100000
-- ----------------------------
DROP TABLE IF EXISTS `wms_order_delivery_100000`;
CREATE TABLE `wms_order_delivery_100000` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`delivery_order_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发货单号',
`pre_delivery_order_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '预发货单号',
`pre_delivery_order_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '预发货单ID',
`order_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '订单类型',
`warehouse_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '仓库编码',
`order_flag` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '订单标记',
`source_platform_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '来源平台编码',
`source_platform_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '来源平台名称',
`create_at` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`delete_at` datetime(0) NULL DEFAULT NULL COMMENT '删除时间',
`updated_at` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`place_order_time` datetime(0) NULL DEFAULT NULL COMMENT '店铺创建订单时间',
`pay_time` datetime(0) NULL DEFAULT NULL COMMENT '支付时间',
`pay_no` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付单号',
`service_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '集包服务编码',
`operator_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'ERP审核人',
`operate_time` datetime(0) NULL DEFAULT NULL COMMENT 'ERP审核时间',
`delivery_time` datetime(0) NULL DEFAULT NULL COMMENT '发货时间',
`shop_nick` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '店铺名称',
`seller_nick` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '卖家名称',
`buyer_nick` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '买家名称',
`total_amount` decimal(18, 2) NULL DEFAULT NULL COMMENT '订单总金额',
`item_amount` decimal(18, 2) NULL DEFAULT NULL COMMENT '商品总金额',
`discount_amount` decimal(18, 2) NULL DEFAULT NULL COMMENT '订单折扣金额',
`freight` decimal(18, 2) NULL DEFAULT NULL COMMENT '快递费用',
`ar_amount` decimal(18, 2) NULL DEFAULT NULL COMMENT '应收金额',
`got_amount` decimal(18, 2) NULL DEFAULT NULL COMMENT '已收金额',
`service_fee` decimal(18, 2) NULL DEFAULT NULL COMMENT 'COD服务费',
`logistics_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '物流公司编码',
`logistics_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '物流公司名称',
`express_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '面单号前置',
`logistics_area_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '快递区域编码, 大头笔信息',
`delivery_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发货服务类型',
`is_urgency` enum('Y','N') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'N' COMMENT '是否紧急',
`invoice_flag` enum('Y','N') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'N' COMMENT '是否需要发票',
`status` enum('pedding','created','cancel','error','after-sales-error') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'created' COMMENT '状态',
`name` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '收件人姓名',
`zip_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '收件人邮编',
`tel` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '收件人电话',
`mobile` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '收件人移动电话',
`email` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '收件人邮箱',
`country_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '国家编码',
`province` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '省份',
`city` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '城市',
`area` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '区',
`town` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '镇',
`detail_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '详细地址',
`id_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '证件类型',
`id_number` int(11) NULL DEFAULT NULL COMMENT '证件号码',
`oaid` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT 'OAID',
`sync_status` enum('padding','fin','error','none') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'padding' COMMENT '同步状态',
`store_id` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '货主id',
`warehouse_id` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '仓库id',
`from_key` int(11) NULL DEFAULT NULL COMMENT '来源键',
`items` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '商品结构字符串',
`items_count` smallint(5) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品种类数',
`items_total` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品总数',
`items_weight` decimal(10, 2) NOT NULL DEFAULT 0.00 COMMENT '总重量',
`items_hash` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '哈希值',
`items_crc` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '校验码',
`wave_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '波次ID,0表示未分配',
`post_status` enum('padding','fin','timeout','error','none') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'none' COMMENT '分配快递号状态机',
`storage_status` enum('padding','fin','error','none') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'none' COMMENT '分配储位状态机',
`pick_status` enum('padding','fin','error','none') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'none' COMMENT '拣货状态机',
`pack_status` enum('none','padding','fin','error') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'none' COMMENT '打包状态机',
`inspection_status` enum('none','padding','running','fin','error') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'none' COMMENT '检验状态机',
`print_status` enum('none','padding','fin','error') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'none' COMMENT '打印状态机',
`claim_status` enum('none','padding','fin','error') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'none' COMMENT '领取状态机',
`outbound_status` enum('none','padding','fin','error') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'none' COMMENT '出库状态机',
`lock_status` enum('none','warehouse','store') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'none' COMMENT '锁定状态机',
`intercept_status` enum('none','requesting','requested','intercepting','intercepted_in_transit','intercepted_at_warehouse','returning','returned','delivered_by_mistake','timeout','cancelled','failed','exception') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'none' COMMENT '拦截状态机',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `idx_100000_current_delivery_code`(`delivery_order_code`, `store_id`, `warehouse_id`) USING BTREE,
INDEX `idx_100000_current_store_id`(`store_id`) USING BTREE,
INDEX `idx_100000_current_warehouse_id`(`warehouse_id`) USING BTREE,
INDEX `idx_100000_current_items`(`items`(50)) USING BTREE,
INDEX `idx_100000_current_items_hash`(`items_hash`) USING BTREE,
INDEX `idx_100000_current_hash_crc`(`items_hash`, `items_crc`, `warehouse_id`) USING BTREE,
INDEX `idx_100000_current_wave`(`status`, `wave_id`) USING BTREE,
INDEX `idx_100000_current_statuses`(`status`, `post_status`, `pick_status`, `pack_status`, `outbound_status`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 33 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '仓库100000发货单常用表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of wms_order_delivery_100000
-- ----------------------------
INSERT INTO `wms_order_delivery_100000` VALUES (14, '2885-831', '', '', 'JYCK', 'khgj2025100902', '', 'OFFLINE', '线下', '2026-01-13 14:17:35', NULL, '2026-01-13 14:17:35', '2026-01-13 13:37:42', '2026-01-13 13:37:42', '', NULL, NULL, '2026-01-13 13:38:05', NULL, '线下店铺', NULL, NULL, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 'SF', NULL, '', '', NULL, 'N', 'N', 'pedding', '刘付明仁', '', '', '18022440198', '', '', '广东省', '广州市', '白云区', '', '钟落潭良沙二路32号', NULL, NULL, NULL, 'padding', 1000016, 100000, 34597803, '101845+5', 1, 5, 0.00, 'cbb47c0389ebc6c930a4671a4ea5d3a3', 403, 0, 'none', 'none', 'none', 'none', 'none', 'none', 'none', 'none', 'none', 'none');
INSERT INTO `wms_order_delivery_100000` VALUES (17, '2885-832', '', '', 'JYCK', 'khgj2025100902', '', 'OFFLINE', '线下', '2026-01-13 14:46:22', NULL, '2026-01-13 14:46:22', '2026-01-13 14:36:37', '2026-01-13 14:36:37', '', NULL, NULL, '2026-01-13 14:40:48', NULL, '线下店铺', NULL, NULL, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 'SF', NULL, '', '', NULL, 'N', 'N', 'pedding', '刘付明仁', '', '', '18022440198', '', '', '广东省', '广州市', '白云区', '', '钟落潭良沙二路32号', NULL, NULL, NULL, 'padding', 1000016, 100000, 34597803, '101842+1|101845+1', 2, 2, 0.00, '78ebc40a9cfca92e44e69e4cc3828c3e', 919, 0, 'none', 'none', 'none', 'none', 'none', NULL, 'none', 'none', NULL, NULL);
INSERT INTO `wms_order_delivery_100000` VALUES (19, '935496', '', '', 'JYCK', '100000', '', 'OFFLINE', '线下', '2026-01-13 15:05:38', NULL, '2026-01-13 15:05:40', '2026-01-13 14:49:50', '2026-01-13 14:51:36', 'S20260113225136223', NULL, NULL, '2026-01-13 15:05:38', NULL, '{线下}', NULL, '刘付明仁', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 'SF', '顺丰', '', '', NULL, 'N', 'N', 'pedding', '刘付明仁', '', '', '18022440198', '', '', '广东省', '广州市', '白云区', '', '钟落潭良沙二路32号', NULL, NULL, NULL, 'padding', 1000000, 100000, 23060081, '101391+5', 1, 5, 0.00, '26939f46b9fb7d216a485c89b6bda980', 399, 0, 'none', 'none', 'none', 'none', 'none', NULL, 'none', 'none', NULL, NULL);
INSERT INTO `wms_order_delivery_100000` VALUES (20, '935502', '', '', 'JYCK', '100000', '', 'OFFLINE', '线下', '2026-01-13 15:09:37', NULL, '2026-01-13 15:09:40', '2026-01-13 14:49:50', '2026-01-13 14:51:36', 'S20260113225136223', NULL, NULL, '2026-01-13 15:09:37', NULL, '{线下}', NULL, '刘付明仁', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 'SF', '顺丰', '', '', NULL, 'N', 'N', 'pedding', '刘付明仁', '', '', '18022440198', '', '', '广东省', '广州市', '白云区', '', '钟落潭良沙二路32号', NULL, NULL, NULL, 'padding', 1000000, 100000, 23060081, '101391+5', 1, 5, 0.00, '26939f46b9fb7d216a485c89b6bda980', 399, 0, 'none', 'none', 'none', 'none', 'none', NULL, 'none', 'none', NULL, NULL);
INSERT INTO `wms_order_delivery_100000` VALUES (21, 'JY2026011327233', '', '', 'JYCK', '100000', '', 'PDD', '拼多多', '2026-01-13 15:26:07', NULL, '2026-01-13 15:26:07', '2026-01-13 15:22:03', '2026-01-13 15:22:03', '', NULL, '1', '2026-01-13 15:26:07', NULL, '火火家de小店', '1', '刘付明仁18022440198', 10.00, 10.00, 0.00, 0.00, 0.00, 0.00, NULL, 'SFKY', '顺丰空运', '', '', NULL, 'N', 'N', 'pedding', '刘付明仁', '', '', '18022440198', '', 'CN', '广东省', '广州市', '白云区', '太和镇', '广东省 广州市 白云区 太和镇 二路32号', NULL, NULL, NULL, 'padding', 1000000, 100000, 24869601, '101384+10', 1, 10, 0.00, '0043ebfd4f730160a5e9db969f1b856c', 445, 0, 'none', 'none', 'none', 'none', 'none', NULL, 'none', 'none', NULL, NULL);
INSERT INTO `wms_order_delivery_100000` VALUES (22, '935520', '', '', 'JYCK', '100000', '', 'OFFLINE', '线下', '2026-01-13 15:27:36', NULL, '2026-01-13 15:27:38', '2026-01-13 14:49:50', '2026-01-13 14:51:36', 'S20260113225136223', NULL, NULL, '2026-01-13 15:27:36', NULL, '{线下}', NULL, '刘付明仁', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, 'SFKY', '顺丰速运_空运', '', '', NULL, 'N', 'N', 'pedding', '刘付明仁', '', '', '18022440198', '', '', '广东省', '广州市', '白云区', '', '钟落潭良沙二路32号', NULL, NULL, NULL, 'padding', 1000000, 100000, 23060081, '101391+5', 1, 5, 0.00, '26939f46b9fb7d216a485c89b6bda980', 399, 0, 'none', 'none', 'none', 'none', 'none', NULL, 'none', 'none', NULL, NULL);
INSERT INTO `wms_order_delivery_100000` VALUES (29, 'CK26012000894', '', '', 'JYCK', 'wdt02060120001', '', 'OFFLINE', '线下', '2026-01-20 13:02:59', NULL, '2026-01-20 13:11:33', '2026-01-20 13:02:59', '2026-01-20 13:02:59', '', NULL, NULL, '2026-01-20 13:11:33', NULL, 'af69a68', NULL, '肖宇玄', 12990.00, 0.00, 0.00, 5.00, 0.00, 12990.00, NULL, 'YTO', NULL, '', '', NULL, 'N', 'N', 'pedding', '肖宇玄', '', '18727038559', '18727038559', '', '', '北京', '北京市', '西城区', '', '湖北省襄阳市宏泰越秀星汇城', NULL, NULL, NULL, 'padding', 1000016, 100000, 21363512, '101874+100|101875+1@2', 2, 101, 2.00, '4dc8eceb86a6dfeb730321a6779bc360', 1137, 0, 'none', 'none', 'none', 'none', 'none', NULL, 'none', 'none', NULL, NULL);
INSERT INTO `wms_order_delivery_100000` VALUES (30, 'CK26012000895', '', '', 'JYCK', 'wdt02060120001', '', 'OFFLINE', '线下', '2026-01-20 13:00:40', NULL, '2026-01-20 13:11:37', '2026-01-20 13:00:41', '2026-01-20 13:00:41', '', NULL, NULL, '2026-01-20 13:11:37', NULL, 'af69a68', NULL, '测试', 6495.00, 0.00, 0.00, 5.00, 0.00, 6495.00, NULL, 'YTO', NULL, '', '', NULL, 'N', 'N', 'pedding', '测试', '', '11111111111', '11111111111', '', '', '北京', '北京市', '东城区', '', '测试', NULL, NULL, NULL, 'padding', 1000016, 100000, 21363512, '101874+50|101875+1@2', 2, 51, 2.00, 'e87473418ea8a893825a3b13c2663c10', 1093, 0, 'none', 'none', 'none', 'none', 'none', NULL, 'none', 'none', NULL, NULL);
INSERT INTO `wms_order_delivery_100000` VALUES (31, 'CK26012800003', '', '', 'JYCK', 'wdt02060120001', '', 'OFFLINE', '线下', '2026-01-20 13:02:59', NULL, '2026-01-28 02:33:35', '2026-01-20 13:02:59', '2026-01-20 13:02:59', '', NULL, NULL, '2026-01-28 02:33:35', NULL, 'af69a68', NULL, '肖宇玄', 12990.00, 0.00, 0.00, 5.00, 0.00, 12990.00, NULL, 'YTO', NULL, '', '', NULL, 'N', 'N', 'pedding', '肖宇玄', '', '18727038559', '18727038559', '', '', '北京', '北京市', '西城区', '', '湖北省襄阳市宏泰越秀星汇城', NULL, NULL, NULL, 'padding', 1000016, 100000, 21363512, '101874+100|101875+1@2', 2, 101, 2.00, '4dc8eceb86a6dfeb730321a6779bc360', 1137, 0, 'none', 'none', 'none', 'none', 'none', NULL, 'none', 'none', NULL, NULL);
INSERT INTO `wms_order_delivery_100000` VALUES (32, 'CK26013001179', '', '', 'JYCK', 'wdt02060120001', '', 'OFFLINE', '线下', '2026-01-20 13:02:59', NULL, '2026-01-30 02:42:45', '2026-01-20 13:02:59', '2026-01-20 13:02:59', '', NULL, NULL, '2026-01-30 02:42:44', NULL, 'af69a68', NULL, '肖宇玄', 12990.00, 0.00, 0.00, 5.00, 0.00, 12990.00, NULL, 'YTO', NULL, '', '', NULL, 'N', 'N', 'pedding', '肖宇玄', '', '18727038559', '18727038559', '', '', '北京', '北京市', '西城区', '', '湖北省襄阳市宏泰越秀星汇城', NULL, NULL, NULL, 'padding', 1000016, 100000, 21363512, '101874+100|101875+1@2', 2, 101, 2.00, '4dc8eceb86a6dfeb730321a6779bc360', 1137, 0, 'none', 'none', 'none', 'none', 'none', NULL, 'none', 'none', NULL, NULL);
SET FOREIGN_KEY_CHECKS = 1;

16
日志.md Normal file
View File

@ -0,0 +1,16 @@
2026.3.23
一、今日完成
-搭建orderManagement页面框架,整合并构建建"待审核订单"、"待处理订单"、"异常订单"、"配送订单"、"归档订单"五个页面。
-设计order-common-config.tsorderManagement页面组件配置,包括scan-box筛选组件、通用快捷操作按钮、各组件upper-table自定义表格配置,解耦整合orderManagement各页面通用组件,精简多余代码,提升可维护性。
-更新"待审核订单"、"待处理订单"字段,更符合上述页面的实际工作需要,提升工作效率。
-找到数据库wms_order_delivery_100000.sql缺失字段,补全逻辑。
-新增orderManagement各页面的api接口,等待后端完成api接口orderManagement页面即可显示后端数据。
二、问题记录
后端的Order订单表部分字段缺失。
后端Order页面接口暂未完成开发,返回空数据。
三、后续计划
开发"收货单"的打印收货单功能
根据需要更新完善orderManagement的"待审核订单"、"待处理订单"、"异常订单"、"配送订单"、"归档订单"五个页面的字段明细、筛选条件
根据情况设计新增其他页面、新增操作功能或修复已有问题。