This commit is contained in:
yin 2026-03-21 18:19:55 +08:00
parent cbced86a1d
commit 2054018dda
12 changed files with 2075 additions and 3 deletions

28
src/api/order/order.ts Normal file
View File

@ -0,0 +1,28 @@
import request from '@/utils/request'
const v = "1.0"
export function getdeliveryOrderlist(data: any): Promise<any> {
return request({
url: '/system',
method: 'post',
params: {
method: 'order.deliveryOrder.getdeliveryOrderlist',
v,
timestamp: new Date().getTime()
},
data: data
})
}
// export const getdeliveryOrderDetail = (data: any): Promise<any> => {
// return request({
// url: '/system',
// method: 'post',
// params: {
// method: 'order.deliveryOrder.getdeliveryOrderDetail',
// v,
// timestamp: new Date().getTime()
// },
// data: data
// })
// }

View File

@ -0,0 +1,235 @@
<template>
<div class="order-sub-container">
<scan-box
ref="scanBox"
width="320px"
:tree-props="{ children: 'children', label: 'label' }"
:auto-submit="false"
:preset-tree="presetTree"
:available-fields="availableFieldsRef"
@condition-change="handleConditionChange"
@reset="handleConditionReset"
@condition-clear="handleConditionClear"
/>
<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>
</div>
<div class="toolbar-right">
<el-input size="small" placeholder="搜索订单号" v-model="quickSearch" style="width:220px" @keyup.enter.native="onQuickSearch" />
</div>
</div>
<div class="upper-wrapper">
<upper-table
ref="upperTable"
title="归档订单列表"
:data="list"
:columns="columns"
:table-size="tableSize"
:pagination="pagination"
:show-index="true"
:show-actions="true"
:show-selection="true"
:loading="loading"
:queryTime="queryTime"
@current-change="handleRowClick"
@page-change="handlePageChange"
@page-size-change="handlePageSizeChange"
@refresh="loadData"
@selection-change="onSelectionChange"
>
<template #column-order_status="{ row }">
<el-tag :type="getStatusType(row.order_status)" size="small">
{{ translateField('order_status', row.order_status) }}
</el-tag>
</template>
<template #empty>
<div class="empty-tip">暂无归档订单</div>
</template>
</upper-table>
</div>
<div class="lower-level" v-if="selectedOrderId" :class="tableSize">
<div class="detail-header">
<el-tabs v-model="activeTab" class="detail-tab">
<el-tab-pane label="订单详情" name="details" />
<el-tab-pane label="履约记录" name="fulfillment" />
<el-tab-pane label="操作日志" name="logs" />
</el-tabs>
</div>
<div class="detail-container">
<KeepAlive>
<div v-if="activeTab === 'details'">
<detail :data="selectedRow" :config="archiveOrderDetail" :column="3" />
</div>
<div v-else-if="activeTab === 'fulfillment'">
<p>履约历程加载中...</p>
</div>
<div v-else>
<log :data="selectedRow" />
</div>
</KeepAlive>
</div>
</div>
<div class="no-selection" v-else>
<div class="empty-tip">
<p>请从上方列表中选择一项查看详情</p>
</div>
</div>
</div>
</div>
</template>
<script setup lang="ts">
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 * as indexApi from '@/api/index'
import {
archiveAvailableFields,
orderColumns,
archiveOrderDetail
} 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(archiveAvailableFields)))
const activeTab = ref('details')
const list = ref<any[]>([])
const loading = ref(false)
const exportLoading = ref(false)
const queryTime = ref(0)
const pagination = reactive({ currentPage: 1, pageSize: 20, total: 0 })
const tableSize = ref('small')
const columns = ref(orderColumns)
const selectionRows = ref<any[]>([])
const hasSelection = ref(false)
const selectedOrderId = ref<number | string | null>(null)
const quickSearch = ref('')
const selectedRow = computed(() => {
return list.value.find((i: any) => i.id === selectedOrderId.value) || null
})
function translateField(fieldValue: string, value: any) {
const field = availableFieldsRef.find((f: any) => f.value === fieldValue)
if (field && field.options) {
const option = field.options.find((opt: any) => opt.value === value)
return option ? option.label : value
}
return value
}
function getStatusType(status: string) {
return 'info'
}
onMounted(() => {
loadData()
loadFilterData()
})
async function loadData() {
if (loading.value) return
loading.value = true
const start = Date.now()
try {
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' },
]
list.value = mockData
pagination.total = mockData.length
} catch (e) {
ElMessage.error('加载订单失败')
} finally {
loading.value = false
queryTime.value = Date.now() - start
}
}
async function loadFilterData() {
try {
const [storesRes]: any = await Promise.all([
indexApi.loadStores({ type: 'order' })
])
if (storesRes?.code === 200) {
const f = availableFieldsRef.find((i: any) => i.value === 'store_id')
if (f) f.options = storesRes.stores || []
}
} catch (e) {}
}
function handleConditionChange() {
pagination.currentPage = 1
loadData()
}
function handleConditionClear() {
pagination.currentPage = 1
loadData()
}
function handleConditionReset() {
pagination.currentPage = 1
scanBox.value?.reset?.()
loadData()
}
function onSelectionChange(rows: any[]) {
selectionRows.value = rows || []
hasSelection.value = selectionRows.value.length > 0
}
function handleRowClick(row: any) {
selectedOrderId.value = row?.id || null
}
function handlePageChange(page: number) {
pagination.currentPage = page
loadData()
}
function handlePageSizeChange(size: number) {
pagination.pageSize = size
pagination.currentPage = 1
loadData()
}
function onQuickSearch() {
pagination.currentPage = 1
loadData()
}
async function handleExport() {
exportLoading.value = true
setTimeout(() => {
exportLoading.value = false
ElMessage.success('导出成功')
}, 1000)
}
</script>
<style scoped lang="scss">
@import "./styles/order-sub.scss";
</style>

View File

@ -0,0 +1,43 @@
<template>
<div class="order-detail-view">
<el-descriptions :column="column || 3" border>
<el-descriptions-item
v-for="item in config"
:key="item.prop"
:label="item.label"
:span="item.span || 1"
>
<template v-if="item.prop === 'items'">
<!-- 商品清单特殊处理 -->
<div v-if="data?.[item.prop]">
{{ data[item.prop] }}
</div>
<span v-else>-</span>
</template>
<template v-else>
{{ data ? data[item.prop] : '-' }}
</template>
</el-descriptions-item>
</el-descriptions>
</div>
</template>
<script setup lang="ts">
interface ConfigItem {
label: string
prop: string
span?: number
}
defineProps<{
data: any
config: ConfigItem[]
column?: number
}>()
</script>
<style lang="scss" scoped>
.order-detail-view {
padding: 10px;
}
</style>

View File

@ -0,0 +1,7 @@
<template>
<div class="">日志</div>
</template>
<script setup lang="ts"></script>
<style lang="css" scoped></style>

View File

@ -0,0 +1,203 @@
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' },
]
// deliveryOrder相关配置
export const deliveryAvailableFields = [
{ label: '货主', value: 'store_id', type: 'select', options: [] },
{ label: '紧急订单', value: 'is_urgency', type: 'select', options: [
{ label: '是', value: 'Y' },
{ label: '否', value: 'N' },
]},
{ label: '快递', value: '', type: 'input' },
{ label: '来源平台', value: '', type: 'input' },
{ label: '同步状态', value: '', type: 'input' },
{ label: '出库单号', value: '', type: 'text' },
{ label: '前置单号', value: '', type: 'input' },
{ label: '物流单号', value: '', type: 'text' },
{ label: '移动电话', value: '', type: 'text' },
{ label: '固定电话', value: '', type: 'text' },
// { label: '', value: '', type: 'text' },
// { label: '', value: '', type: 'text' },
// { label: '', value: '', type: 'text' },
// { label: '', value: '', type: 'text' },
// { label: '', value: '', type: 'text' },
// { label: '', value: '', type: 'text' },
// { label: '', value: '', type: 'text' },
{ label: '审核时间', value: '', type: 'daterange' },
{ label: '系统创建时间', value: '', type: 'daterange' },
{ label: '下单时间', value: '', type: 'daterange' },
{ label: '支付时间', value: '', type: 'daterange' },
// { label: '', value: '', type: 'daterange' },
// { label: '', value: '', type: 'daterange' },
// { label: '', value: '', type: 'daterange' },
// { label: '', value: '', type: 'daterange' },
]
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' },
]
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' },
]
// 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: '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' },
]
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: 'order_flag', label: '订单标记' },
]
// 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' },
{ 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 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' },
]
// 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: 'create_time', type: 'daterange' },
]
export const archiveOrderDetail = [
{ 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: '创建时间' },
]

View File

@ -0,0 +1,463 @@
<template>
<div class="delivery-order-container">
<scan-box
ref="scanBox"
width="320px"
:tree-props="{ children: 'children', label: 'label' }"
:auto-submit="false"
:preset-tree="presetTree"
:available-fields="availableFieldsRef"
@condition-change="handleConditionChange"
@reset="handleConditionReset"
@condition-clear="handleConditionClear"
/>
<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" @click="handleCreate">新建配送单</el-button>
<el-button size="small" :disabled="!hasSelection" @click="confirmBatchCancel">批量作废</el-button>
<el-button size="small" :loading="exportLoading" @click="handleExport">导出</el-button>
</div>
<div class="toolbar-right">
<el-input size="small" placeholder="搜索配送单号" v-model="quickSearch" style="width:220px" @keyup.enter.native="onQuickSearch" />
</div>
</div>
<div class="upper-wrapper">
<upper-table
ref="upperTable"
title="配送订单列表"
:data="list"
:columns="columns"
:table-size="tableSize"
:pagination="pagination"
:show-index="true"
:show-actions="true"
:show-selection="true"
:loading="loading"
:queryTime="queryTime"
@current-change="handleRowClick"
@page-change="handlePageChange"
@page-size-change="handlePageSizeChange"
@refresh="loadData"
@selection-change="onSelectionChange"
>
<template #column-order_status="{ row }">
<el-tag :type="getStatusType(row.order_status)" size="small">
{{ translateField('order_status', row.order_status) }}
</el-tag>
</template>
<template #empty>
<div class="empty-tip">暂无订单</div>
</template>
</upper-table>
</div>
<div class="lower-level" v-if="selectedOrderId" :class="tableSize">
<div class="detail-header">
<el-tabs v-model="activeTab" class="detail-tab">
<el-tab-pane label="订单明细" name="details" />
<el-tab-pane label="操作日志" name="logs" />
</el-tabs>
</div>
<div class="detail-container">
<KeepAlive>
<div v-if="activeTab === 'details'">
<detail :data="selectedRow" :config="deliverydetail" :column="3" />
</div>
<div v-else>
<log :data="selectedRow" />
</div>
</KeepAlive>
</div>
</div>
<div class="no-selection" v-else>
<div class="empty-tip">
<p>请从上方列表中选择一项查看详情</p>
</div>
</div>
</div>
</div>
</template>
<script setup lang="ts">
import { ref, reactive, onMounted, computed } from 'vue'
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 * as orderApi from '@/api/order/order'
import {
deliveryAvailableFields,
deliveryColumns,
deliverydetail
} 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(deliveryAvailableFields)))
const activeTab = ref('details')
const list = ref<any[]>([])
const loading = ref(false)
const exportLoading = ref(false)
const queryTime = ref(0)
const pagination = reactive({ currentPage: 1, pageSize: 20, total: 0 })
const tableSize = ref('small')
const columns = ref(deliveryColumns)
const selectionRows = ref<any[]>([])
const hasSelection = ref(false)
const selectedOrderId = ref<number | string | null>(null)
const quickSearch = ref('')
const selectedRow = computed(() => {
return list.value.find((i: any) => i.id === selectedOrderId.value) || null
})
function translateField(fieldValue: string, value: any) {
const field = availableFieldsRef.find((f: any) => f.value === fieldValue)
if (field && field.options) {
const option = field.options.find((opt: any) => opt.value === value)
return option ? option.label : value
}
return value
}
function getStatusType(status: string) {
const map: Record<string, string> = {
'PENDING': 'info',
'SYNCING': 'primary',
'SUCCESS': 'success',
'FAIL': 'danger'
}
return map[status] || ''
}
onMounted(() => {
loadData()
loadFilterData()
})
async function loadData() {
if (loading.value) return
loading.value = true
const start = Date.now()
try {
const params = {
page: pagination.currentPage,
pageSize: pagination.pageSize,
quickSearch: quickSearch.value,
condition: scanBox.value?.getCondition ? scanBox.value.getCondition() : {}
}
const res: any = await orderApi.getdeliveryOrderlist(params)
if (res && res.code === 200 && res.list) {
list.value = res.list
pagination.total = res.total || 0
} else {
throw new Error('Fallback to mock data')
}
} catch (e) {
// 模拟基于数据库结构扩展后的数据
const mockData = [
{
id: 14,
delivery_order_code: '2885-831',
pre_delivery_order_code: '',
express_code: '',
logistics_name: '',
delivery_type: 'NORMAL',
province: '广东省',
city: '广州市',
area: '白云区',
province_city_area: '广东省 / 广州市 / 白云区',
town: '',
detail_address: '钟落潭良沙二路32号',
zip_code: '',
oaid: '',
items_count: 1,
items_total: 5,
items_weight: 0.00,
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'
},
{
id: 21,
delivery_order_code: 'JY2026011327233',
pre_delivery_order_code: '',
express_code: '',
logistics_name: '顺丰空运',
delivery_type: 'EXPRESS',
province: '广东省',
city: '广州市',
area: '白云区',
province_city_area: '广东省 / 广州市 / 白云区',
town: '太和镇',
detail_address: '广东省 广州市 白云区 太和镇 二路32号',
zip_code: '',
oaid: '',
items_count: 1,
items_total: 10,
items_weight: 0.00,
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'
},
{
id: 29,
delivery_order_code: 'CK26012000894',
pre_delivery_order_code: '',
express_code: '',
logistics_name: '',
delivery_type: 'NORMAL',
province: '北京',
city: '北京市',
area: '西城区',
province_city_area: '北京 / 北京市 / 西城区',
town: '',
detail_address: '湖北省襄阳市宏泰越秀星汇城',
zip_code: '',
oaid: '',
items_count: 2,
items_total: 101,
items_weight: 2.00,
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'
}
]
list.value = mockData
pagination.total = mockData.length
} finally {
loading.value = false
queryTime.value = Date.now() - start
}
}
async function loadFilterData() {
try {
const [storesRes, presetRes]: any = await Promise.all([
indexApi.loadStores({ type: 'delivery' }),
indexApi.fastWhereTree('delivery')
])
if (storesRes && storesRes.code === 200) {
const f = availableFieldsRef.find((i: any) => i.value === 'store_id')
if (f) f.options = storesRes.stores || []
}
if (presetRes && presetRes.code === 200) {
presetTree.value = presetRes.presetTree || []
}
} catch (e) {}
}
function handleConditionChange(condition: any) {
pagination.currentPage = 1
loadData()
}
const handleConditionClear = () => {
pagination.currentPage = 1
loadData()
}
function handleConditionReset() {
pagination.currentPage = 1
if (scanBox.value?.reset) {
scanBox.value.reset()
}
loadData()
}
function onSelectionChange(rows: any[]) {
selectionRows.value = rows || []
hasSelection.value = selectionRows.value.length > 0
}
function handleRowClick(row: any) {
selectedOrderId.value = row?.id || null
}
function handlePageChange(page: number) {
pagination.currentPage = page
loadData()
}
function handlePageSizeChange(size: number) {
pagination.pageSize = size
pagination.currentPage = 1
loadData()
}
function onQuickSearch() {
pagination.currentPage = 1
loadData()
}
function handleCreate() {
ElMessage.info('新建配送单')
}
async function confirmBatchCancel() {
try {
await ElMessageBox.confirm(`确定要批量作废选中的配送单吗?`, '确认', { type: 'warning' })
ElMessage.success('操作成功')
loadData()
} catch (e) {}
}
async function handleExport() {
exportLoading.value = true
setTimeout(() => {
exportLoading.value = false
ElMessage.success('导出成功')
}, 1000)
}
</script>
<style scoped lang="scss">
.delivery-order-container {
display: flex;
height: 100%;
width: 100%;
background-color: #f0f2f5;
.main-content {
flex: 1;
display: flex;
flex-direction: column;
padding: 10px;
overflow: hidden;
.toolbar {
padding: 10px;
border-bottom: 1px solid #ebeef5;
display: flex;
justify-content: space-between;
align-items: center;
background-color: #fff;
}
.toolbar-right {
display: flex;
gap: 15px;
align-items: center;
}
.upper-wrapper {
flex: 1;
min-height: 0;
overflow: hidden;
}
.upper-wrapper :deep(.upper-table-container) {
height: 100%;
display: flex;
flex-direction: column;
}
.upper-wrapper :deep(.table-container) {
height: auto !important;
flex: 1 1 auto;
min-height: 0;
overflow: hidden;
}
.upper-wrapper :deep(.el-table__body-wrapper) {
overflow: auto;
}
.lower-level {
flex: 1;
display: flex;
flex-direction: column;
border-top: 1px solid #ebeef5;
overflow: hidden;
background-color: #fff;
.detail-header {
padding: 0 10px;
border-bottom: 1px solid #ebeef5;
.detail-tab { margin-bottom: -1px; }
}
.detail-container {
flex: 1;
overflow: auto;
padding: 10px;
}
}
.no-selection {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
color: #909399;
background-color: #fff;
.empty-tip { text-align: center; }
}
}
}
</style>

View File

@ -0,0 +1,240 @@
<template>
<div class="order-sub-container">
<scan-box
ref="scanBox"
width="320px"
:tree-props="{ children: 'children', label: 'label' }"
:auto-submit="false"
:preset-tree="presetTree"
:available-fields="availableFieldsRef"
@condition-change="handleConditionChange"
@reset="handleConditionReset"
@condition-clear="handleConditionClear"
/>
<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" type="warning" :disabled="!hasSelection" @click="handleBatchFix">批量重置状态</el-button>
<el-button size="small" :loading="exportLoading" @click="handleExport">导出</el-button>
</div>
<div class="toolbar-right">
<el-input size="small" placeholder="搜索订单号" v-model="quickSearch" style="width:220px" @keyup.enter.native="onQuickSearch" />
</div>
</div>
<div class="upper-wrapper">
<upper-table
ref="upperTable"
title="异常订单列表"
:data="list"
:columns="columns"
:table-size="tableSize"
:pagination="pagination"
:show-index="true"
:show-actions="true"
:show-selection="true"
:loading="loading"
:queryTime="queryTime"
@current-change="handleRowClick"
@page-change="handlePageChange"
@page-size-change="handlePageSizeChange"
@refresh="loadData"
@selection-change="onSelectionChange"
>
<template #column-order_status="{ row }">
<el-tag :type="getStatusType(row.order_status)" size="small">
{{ translateField('order_status', row.order_status) }}
</el-tag>
</template>
<template #empty>
<div class="empty-tip">暂无异常订单</div>
</template>
</upper-table>
</div>
<div class="lower-level" v-if="selectedOrderId" :class="tableSize">
<div class="detail-header">
<el-tabs v-model="activeTab" class="detail-tab">
<el-tab-pane label="订单详情" name="details" />
<el-tab-pane label="异常记录" name="exceptions" />
<el-tab-pane label="操作日志" name="logs" />
</el-tabs>
</div>
<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>
</div>
<div v-else-if="activeTab === 'exceptions'">
<el-alert title="系统异常" type="error" :closable="false" description="库存不足或物流接口调用失败。" />
</div>
<div v-else>
<p>操作日志暂无</p>
</div>
</KeepAlive>
</div>
</div>
<div class="no-selection" v-else>
<div class="empty-tip">
<p>请从上方列表中选择一项查看详情</p>
</div>
</div>
</div>
</div>
</template>
<script setup lang="ts">
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 * as indexApi from '@/api/index'
import {
commonFields,
orderColumns,
} from './config/order-common-config'
const scanBox = ref<any>(null)
const upperTable = ref<any>(null)
const presetTree = ref<any[]>([])
const availableFieldsRef = reactive(JSON.parse(JSON.stringify(commonFields)))
const activeTab = ref('details')
const list = ref<any[]>([])
const loading = ref(false)
const exportLoading = ref(false)
const queryTime = ref(0)
const pagination = reactive({ currentPage: 1, pageSize: 20, total: 0 })
const tableSize = ref('small')
const columns = ref(orderColumns)
const selectionRows = ref<any[]>([])
const hasSelection = ref(false)
const selectedOrderId = ref<number | string | null>(null)
const quickSearch = ref('')
const selectedRow = computed(() => {
return list.value.find((i: any) => i.id === selectedOrderId.value) || null
})
function translateField(fieldValue: string, value: any) {
const field = availableFieldsRef.find((f: any) => f.value === fieldValue)
if (field && field.options) {
const option = field.options.find((opt: any) => opt.value === value)
return option ? option.label : value
}
return value
}
function getStatusType(status: string) {
return 'danger'
}
onMounted(() => {
loadData()
loadFilterData()
})
async function loadData() {
if (loading.value) return
loading.value = true
const start = Date.now()
try {
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' },
]
list.value = mockData
pagination.total = mockData.length
} catch (e) {
ElMessage.error('加载订单失败')
} finally {
loading.value = false
queryTime.value = Date.now() - start
}
}
async function loadFilterData() {
try {
const [storesRes]: any = await Promise.all([
indexApi.loadStores({ type: 'order' })
])
if (storesRes?.code === 200) {
const f = availableFieldsRef.find((i: any) => i.value === 'store_id')
if (f) f.options = storesRes.stores || []
}
} catch (e) {}
}
function handleConditionChange() {
pagination.currentPage = 1
loadData()
}
const handleConditionClear = () => {
pagination.currentPage = 1
loadData()
}
function handleConditionReset() {
pagination.currentPage = 1
scanBox.value?.reset?.()
loadData()
}
function onSelectionChange(rows: any[]) {
selectionRows.value = rows || []
hasSelection.value = selectionRows.value.length > 0
}
function handleRowClick(row: any) {
selectedOrderId.value = row?.id || null
}
function handlePageChange(page: number) {
pagination.currentPage = page
loadData()
}
function handlePageSizeChange(size: number) {
pagination.pageSize = size
pagination.currentPage = 1
loadData()
}
function onQuickSearch() {
pagination.currentPage = 1
loadData()
}
function handleBatchFix() {
ElMessage.warning(`正在修复 ${selectionRows.value.length} 个订单的状态`)
}
async function handleExport() {
exportLoading.value = true
setTimeout(() => {
exportLoading.value = false
ElMessage.success('导出成功')
}, 1000)
}
</script>
<style scoped lang="scss">
@use "./styles/order-sub.scss";
</style>

View File

@ -1,8 +1,210 @@
<template>
<div class="order-container">
<h1>订单管理</h1>
<div style="width:100%;padding:10px;height: 100%;">
<!-- 使用 keep-alive 强制保留所有标签 -->
<el-tabs
v-model="activeTab"
@tab-click="handleTabClick"
tab-position="top"
type="border-card"
class="tab-container"
>
<!-- 使用 v-for 动态生成,确保每个标签都被创建 -->
<el-tab-pane
v-for="tab in tabs"
:key="tab.name"
:name="tab.name"
:lazy="false"
>
<template #label>
<span class="custom-tab-label">
{{ tab.label }}
<el-badge
:value="tab.count"
:max="99"
:hidden="tab.count === 0"
class="tab-badge"
/>
</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>
</el-tab-pane>
</el-tabs>
</div>
</template>
<script setup lang="ts">
</script>
import { ref, watch, onMounted } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import ReviewOrder from './reviewOrder.vue'
import PendingOrder from './pendingOrder.vue'
import ExceptionOrder from './exceptionOrder.vue'
import DeliveryOrder from './deliveryOrder.vue'
import ArchiveOrder from './archiveOrder.vue'
const route = useRoute()
const router = useRouter()
const activeTab = ref('reviewOrder')
const forceRenderAll = ref(true) // 强制渲染所有组件
const tabs = ref([
{
name: 'reviewOrder',
label: '待审核订单',
count: 5,
component: ReviewOrder
},
{
name: 'pendingOrder',
label: '待处理订单',
count: 10,
component: PendingOrder
},
{
name: 'exceptionOrder',
label: '异常订单',
count: 3,
component: ExceptionOrder
},
{
name: 'deliveryOrder',
label: '配送订单',
count: 0,
component: DeliveryOrder
},
{
name: 'archiveOrder',
label: '归档订单',
count: 0,
component: ArchiveOrder
}
])
// 初始化:从URL参数获取激活的标签
const initFromRoute = () => {
const tabFromUrl = route.query.tab as string
const validTabs = tabs.value.map(tab => tab.name)
if (tabFromUrl && validTabs.includes(tabFromUrl)) {
activeTab.value = tabFromUrl
} else {
// 如果没有tab参数或参数无效,设置默认值
activeTab.value = 'reviewOrder'
// 更新URL参数
if (!route.query.tab) {
router.replace({
query: {
...route.query,
tab: 'reviewOrder'
}
})
}
}
}
// 监听URL参数变化
watch(
() => route.query.tab,
(newTab) => {
const validTabs = tabs.value.map(tab => tab.name)
if (newTab && validTabs.includes(newTab as string)) {
activeTab.value = newTab as string
} else {
activeTab.value = 'reviewOrder'
if (!newTab) {
router.replace({
query: {
...route.query,
tab: 'reviewOrder'
}
})
}
}
},
{ immediate: true }
)
onMounted(() => {
initFromRoute()
// 确保所有标签都被渲染
setTimeout(() => {
forceRenderAll.value = false
}, 100)
})
// 点击标签时处理
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
}
})
}
</script>
<style lang="scss" scoped>
.tab-container {
display: flex;
flex-direction: column;
height: 100%;
:deep(.el-tabs__header) {
margin-bottom: 0;
flex-shrink: 0;
}
:deep(.el-tabs__content) {
flex: 1;
overflow: auto;
position: relative;
.el-tab-pane {
height: 100%;
}
}
}
.custom-tab-label {
display: inline-flex;
align-items: center;
gap: 6px;
}
.tab-badge {
:deep(.el-badge__content) {
font-size: 12px;
height: 18px;
line-height: 18px;
padding: 0 6px;
&.is-fixed {
top: -2px;
right: -8px;
}
}
}
// 当数量很大时显示为红色
:deep(.el-badge__content) {
&.is-danger {
background-color: #f56c6c;
}
}
</style>

View File

@ -0,0 +1,275 @@
<template>
<div class="order-sub-container">
<scan-box
ref="scanBox"
width="320px"
:tree-props="{ children: 'children', label: 'label' }"
:auto-submit="false"
:preset-tree="presetTree"
:available-fields="availableFieldsRef"
@condition-change="handleConditionChange"
@reset="handleConditionReset"
@condition-clear="handleConditionClear"
/>
<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" type="primary" :disabled="!hasSelection" @click="handleBatchProcess">批量下发</el-button>
<el-button size="small" :loading="exportLoading" @click="handleExport">导出</el-button>
</div>
<div class="toolbar-right">
<el-input size="small" placeholder="搜索订单号" v-model="quickSearch" style="width:220px" @keyup.enter.native="onQuickSearch" />
</div>
</div>
<div class="upper-wrapper">
<upper-table
ref="upperTable"
title="待处理订单列表"
:data="list"
:columns="columns"
:table-size="tableSize"
:pagination="pagination"
:show-index="true"
:show-actions="true"
:show-selection="true"
:loading="loading"
:queryTime="queryTime"
@current-change="handleRowClick"
@page-change="handlePageChange"
@page-size-change="handlePageSizeChange"
@refresh="loadData"
@selection-change="onSelectionChange"
>
<template #column-order_status="{ row }">
<el-tag :type="getStatusType(row.order_status)" size="small">
{{ translateField('order_status', row.order_status) }}
</el-tag>
</template>
<template #empty>
<div class="empty-tip">暂无待处理订单</div>
</template>
</upper-table>
</div>
<div class="lower-level" v-if="selectedOrderId" :class="tableSize">
<div class="detail-header">
<el-tabs v-model="activeTab" class="detail-tab">
<el-tab-pane label="订单详情" name="details" />
<el-tab-pane label="配货信息" name="picking" />
<el-tab-pane label="操作日志" name="logs" />
</el-tabs>
</div>
<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?.store_name }}</el-descriptions-item>
<el-descriptions-item label="处理优先级">{{ selectedRow?.priority || '普通' }}</el-descriptions-item>
</el-descriptions>
</div>
<div v-else-if="activeTab === 'picking'">
<p>配货明细加载中...</p>
</div>
<div v-else>
<p>操作日志暂无</p>
</div>
</KeepAlive>
</div>
</div>
<div class="no-selection" v-else>
<div class="empty-tip">
<p>请从上方列表中选择一项查看详情</p>
</div>
</div>
</div>
</div>
</template>
<script setup lang="ts">
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 * as indexApi from '@/api/index'
import {
commonFields,
orderColumns,
pendingCloums,
pendingAvailableFields,
} 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(pendingAvailableFields)))
const activeTab = ref('details')
const list = ref<any[]>([])
const loading = ref(false)
const exportLoading = ref(false)
const queryTime = ref(0)
const pagination = reactive({ currentPage: 1, pageSize: 20, total: 0 })
const tableSize = ref('small')
const columns = ref(pendingCloums)
const selectionRows = ref<any[]>([])
const hasSelection = ref(false)
const selectedOrderId = ref<number | string | null>(null)
const quickSearch = ref('')
const selectedRow = computed(() => {
return list.value.find((i: any) => i.id === selectedOrderId.value) || null
})
function translateField(fieldValue: string, value: any) {
const field = availableFieldsRef.find((f: any) => f.value === fieldValue)
if (field && field.options) {
const option = field.options.find((opt: any) => opt.value === value)
return option ? option.label : value
}
return value
}
function getStatusType(status: string) {
return 'primary'
}
onMounted(() => {
loadData()
loadFilterData()
})
async function loadData() {
if (loading.value) return
loading.value = true
const start = Date.now()
try {
const mockData = [
{
id: 201,
order_code: 'SO20260321P01',
delivery_order_code: 'DO20260321P01',
shop_nick: '待处理店铺A',
name: '王五',
seller_nick: '卖家001',
source_platform_name: '拼多多',
is_urgency: 'N',
logistics_name: '顺丰快递',
status: 'WAIT_PROCESS',
sync_status: 'padding',
province: '浙江省',
create_at: '2026-03-21 11:00:00'
},
{
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'
},
]
list.value = mockData
pagination.total = mockData.length
} catch (e) {
ElMessage.error('加载订单失败')
} finally {
loading.value = false
queryTime.value = Date.now() - start
}
}
async function loadFilterData() {
try {
const [storesRes, presetRes]: any = await Promise.all([
indexApi.loadStores({ type: 'order' }),
indexApi.fastWhereTree('order')
])
if (storesRes?.code === 200) {
const f = availableFieldsRef.find((i: any) => i.value === 'store_id')
if (f) f.options = storesRes.stores || []
}
} catch (e) {}
}
function handleConditionChange() {
pagination.currentPage = 1
loadData()
}
const handleConditionClear = () => {
pagination.currentPage = 1
loadData()
}
function handleConditionReset() {
pagination.currentPage = 1
scanBox.value?.reset?.()
loadData()
}
function onSelectionChange(rows: any[]) {
selectionRows.value = rows || []
hasSelection.value = selectionRows.value.length > 0
}
function handleRowClick(row: any) {
selectedOrderId.value = row?.id || null
}
function handlePageChange(page: number) {
pagination.currentPage = page
loadData()
}
function handlePageSizeChange(size: number) {
pagination.pageSize = size
pagination.currentPage = 1
loadData()
}
function onQuickSearch() {
pagination.currentPage = 1
loadData()
}
function handleBatchProcess() {
ElMessage.success(`成功并发下发 ${selectionRows.value.length} 个订单`)
}
async function handleExport() {
exportLoading.value = true
setTimeout(() => {
exportLoading.value = false
ElMessage.success('导出成功')
}, 1000)
}
</script>
<style scoped lang="scss">
@use "./styles/order-sub.scss";
</style>

View File

@ -0,0 +1,283 @@
<template>
<div class="order-sub-container">
<scan-box
ref="scanBox"
width="320px"
:tree-props="{ children: 'children', label: 'label' }"
:auto-submit="false"
:preset-tree="presetTree"
:available-fields="availableFieldsRef"
@condition-change="handleConditionChange"
@reset="handleConditionReset"
@condition-clear="handleConditionClear"
/>
<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" type="success" :disabled="!hasSelection" @click="handleBatchAudit">批量审核</el-button>
<el-button size="small" type="danger" :disabled="!hasSelection" @click="confirmBatchCancel">批量拦截</el-button>
<el-button size="small" :loading="exportLoading" @click="handleExport">导出</el-button>
</div>
<div class="toolbar-right">
<el-input size="small" placeholder="搜索订单号" v-model="quickSearch" style="width:220px" @keyup.enter.native="onQuickSearch" />
</div>
</div>
<div class="upper-wrapper">
<upper-table
ref="upperTable"
title="待审核订单列表"
:data="list"
:columns="columns"
:table-size="tableSize"
:pagination="pagination"
:show-index="true"
:show-actions="true"
:show-selection="true"
:loading="loading"
:queryTime="queryTime"
@current-change="handleRowClick"
@page-change="handlePageChange"
@page-size-change="handlePageSizeChange"
@refresh="loadData"
@selection-change="onSelectionChange"
>
<template #column-order_status="{ row }">
<el-tag :type="getStatusType(row.order_status)" size="small">
{{ translateField('order_status', row.order_status) }}
</el-tag>
</template>
<template #empty>
<div class="empty-tip">暂无待审核订单</div>
</template>
</upper-table>
</div>
<div class="lower-level" v-if="selectedOrderId" :class="tableSize">
<div class="detail-header">
<el-tabs v-model="activeTab" class="detail-tab">
<el-tab-pane label="订单详情" name="details" />
<el-tab-pane label="收货信息" name="receiver" />
<el-tab-pane label="操作日志" name="logs" />
</el-tabs>
</div>
<div class="detail-container">
<KeepAlive>
<div v-if="activeTab === 'details'">
<detail :data="selectedRow" :config="reviewOrderDetail" :column="3" />
</div>
<div v-else-if="activeTab === 'receiver'">
<el-descriptions :column="2" border>
<el-descriptions-item label="收货人">{{ selectedRow?.name }}</el-descriptions-item>
<el-descriptions-item label="手机">{{ selectedRow?.mobile }}</el-descriptions-item>
</el-descriptions>
</div>
<div v-else>
<log :data="selectedRow" />
</div>
</KeepAlive>
</div>
</div>
<div class="no-selection" v-else>
<div class="empty-tip">
<p>请从上方列表中选择一项查看详情</p>
</div>
</div>
</div>
</div>
</template>
<script setup lang="ts">
import { ref, reactive, onMounted, computed } from 'vue'
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 {
orderColumns,
reviewAvailableFields,
reviewColums,
reviewOrderDetail
} 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(reviewAvailableFields)))
const activeTab = ref('details')
const list = ref<any[]>([])
const loading = ref(false)
const exportLoading = ref(false)
const queryTime = ref(0)
const pagination = reactive({ currentPage: 1, pageSize: 20, total: 0 })
const tableSize = ref('small')
const columns = ref(reviewColums)
const selectionRows = ref<any[]>([])
const hasSelection = ref(false)
const selectedOrderId = ref<number | string | null>(null)
const quickSearch = ref('')
const selectedRow = computed(() => {
return list.value.find((i: any) => i.id === selectedOrderId.value) || null
})
function translateField(fieldValue: string, value: any) {
const field = availableFieldsRef.find((f: any) => f.value === fieldValue)
if (field && field.options) {
const option = field.options.find((opt: any) => opt.value === value)
return option ? option.label : value
}
return value
}
function getStatusType(status: string) {
return status === 'AUDITED' ? 'success' : 'warning'
}
onMounted(() => {
loadData()
loadFilterData()
})
async function loadData() {
if (loading.value) return
loading.value = true
const start = Date.now()
try {
const mockData = [
{
id: 101,
store_id: '1000016',
source_platform_name: '线下',
name: '刘付明仁',
mobile: '18022440198',
create_at: '2026-01-13 14:17:35',
shop_nick: '线下店铺',
item_name: '商品A(预留)',
order_type: 'JYCK',
order_flag: '普通订单',
order_status: 'WAIT_AUDIT'
},
{
id: 102,
store_id: '1000016',
source_platform_name: '拼多多',
name: '刘付明仁',
mobile: '18022440198',
create_at: '2026-01-13 15:26:07',
shop_nick: '火火家de小店',
item_name: '商品B(预留)',
order_type: 'JYCK',
order_flag: '急单',
order_status: 'WAIT_AUDIT'
}
]
list.value = mockData
pagination.total = mockData.length
} catch (e) {
ElMessage.error('加载订单失败')
} finally {
loading.value = false
queryTime.value = Date.now() - start
}
}
async function loadFilterData() {
try {
const [storesRes, presetRes]: any = await Promise.all([
indexApi.loadStores({ type: 'order' }),
indexApi.fastWhereTree('order')
])
if (storesRes?.code === 200) {
const f = availableFieldsRef.find((i: any) => i.value === 'store_id')
if (f) f.options = storesRes.stores || []
}
if (presetRes?.code === 200) {
presetTree.value = presetRes.presetTree || []
}
} catch (e) {}
}
function handleConditionChange() {
pagination.currentPage = 1
loadData()
}
const handleConditionClear = () => {
pagination.currentPage = 1
loadData()
}
function handleConditionReset() {
pagination.currentPage = 1
scanBox.value?.reset?.()
loadData()
}
function onSelectionChange(rows: any[]) {
selectionRows.value = rows || []
hasSelection.value = selectionRows.value.length > 0
}
function handleRowClick(row: any) {
selectedOrderId.value = row?.id || null
}
function handlePageChange(page: number) {
pagination.currentPage = page
loadData()
}
function handlePageSizeChange(size: number) {
pagination.pageSize = size
pagination.currentPage = 1
loadData()
}
function onQuickSearch() {
pagination.currentPage = 1
loadData()
}
function handleBatchAudit() {
ElMessage.success(`成功审核 ${selectionRows.value.length} 个订单`)
loadData()
}
async function confirmBatchCancel() {
try {
await ElMessageBox.confirm(`确定要拦截选中的订单吗?`, '警告', { type: 'error' })
ElMessage.success('操作成功')
loadData()
} catch (e) {}
}
async function handleExport() {
exportLoading.value = true
setTimeout(() => {
exportLoading.value = false
ElMessage.success('导出成功')
}, 1000)
}
</script>
<style scoped lang="scss">
@use "./styles/order-sub.scss";
</style>

View File

@ -0,0 +1,83 @@
.order-sub-container {
display: flex;
height: 100%;
width: 100%;
background-color: #f0f2f5;
.main-content {
flex: 1;
display: flex;
flex-direction: column;
padding: 10px;
overflow: hidden;
.toolbar {
padding: 10px;
border-bottom: 1px solid #ebeef5;
display: flex;
justify-content: space-between;
align-items: center;
background-color: #fff;
}
.toolbar-right {
display: flex;
gap: 15px;
align-items: center;
}
.upper-wrapper {
flex: 1;
min-height: 0;
overflow: hidden;
}
.upper-wrapper :deep(.upper-table-container) {
height: 100%;
display: flex;
flex-direction: column;
}
.upper-wrapper :deep(.table-container) {
height: auto !important;
flex: 1 1 auto;
min-height: 0;
overflow: hidden;
}
.upper-wrapper :deep(.el-table__body-wrapper) {
overflow: auto;
}
.lower-level {
flex: 1;
display: flex;
flex-direction: column;
border-top: 1px solid #ebeef5;
overflow: hidden;
background-color: #fff;
.detail-header {
padding: 0 10px;
border-bottom: 1px solid #ebeef5;
.detail-tab { margin-bottom: -1px; }
}
.detail-container {
flex: 1;
overflow: auto;
padding: 10px;
}
}
.no-selection {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
color: #909399;
background-color: #fff;
.empty-tip { text-align: center; }
}
}
}

View File

@ -0,0 +1,10 @@
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);