fix: 订单重量标签 kg→g + 订单状态/来源中文翻译
This commit is contained in:
parent
1137f75cd2
commit
01d26f6649
@ -142,6 +142,13 @@ export const COMMON_TRANSLATIONS: Record<string, Record<string, string>> = {
|
||||
'1': '轻货',
|
||||
'2': '重货',
|
||||
'3': '冷链'
|
||||
},
|
||||
create_channel: {
|
||||
'QM': '奇门',
|
||||
'API': 'API',
|
||||
'IMPORT': '导入',
|
||||
'MANUAL': '手动',
|
||||
'PLATFORM': '平台'
|
||||
}
|
||||
}
|
||||
|
||||
@ -760,7 +767,7 @@ export const orderDetailFullSections: OrderDetailSectionConfig[] = [
|
||||
title: '流程与状态',
|
||||
column: 4,
|
||||
fields: [
|
||||
{ prop: 'status', label: '订单状态', tag: true },
|
||||
{ prop: 'status', label: '订单状态', tag: true, formatter: (row: any) => translateOrderField('status', row.status) },
|
||||
{ prop: 'step', label: '流程步骤' },
|
||||
{ prop: 'sync_status', label: '同步状态', tag: true },
|
||||
{ prop: 'inspection_status', label: '审核状态', tag: true },
|
||||
@ -825,7 +832,7 @@ export const orderDetailFullSections: OrderDetailSectionConfig[] = [
|
||||
{ prop: 'items', label: '商品明细摘要', span: 4 },
|
||||
{ prop: 'items_count', label: '商品种类' },
|
||||
{ prop: 'items_total', label: '商品总数' },
|
||||
{ prop: 'items_weight', label: '商品重量kg' },
|
||||
{ prop: 'items_weight', label: '商品重量(g)' },
|
||||
{ prop: 'items_hash', label: '商品哈希', span: 2 },
|
||||
{ prop: 'items_crc', label: '商品CRC' }
|
||||
]
|
||||
@ -859,7 +866,7 @@ export const orderDetailCompactSections: OrderDetailSectionConfig[] = [
|
||||
{ prop: 'create_channel', label: '来源' },
|
||||
{ prop: 'shop_nick', label: '店铺名称' },
|
||||
{ prop: 'buyer_nick', label: '买家昵称' },
|
||||
{ prop: 'status', label: '订单状态', tag: true },
|
||||
{ prop: 'status', label: '订单状态', tag: true, formatter: (row: any) => translateOrderField('status', row.status) },
|
||||
{ prop: 'source_order_codes', label: '平台交易单号' },
|
||||
{ prop: 'is_urgency', label: '是否紧急', tag: true },
|
||||
{ prop: 'seller_nick', label: '卖家昵称' },
|
||||
@ -907,7 +914,7 @@ export const orderDetailCompactSections: OrderDetailSectionConfig[] = [
|
||||
{ prop: 'freight', label: '运费', amount: true },
|
||||
{ prop: 'items_count', label: '商品种类' },
|
||||
{ prop: 'items_total', label: '商品总数' },
|
||||
{ prop: 'items_weight', label: '商品重量kg' }
|
||||
{ prop: 'items_weight', label: '商品重量(g)' }
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -1389,7 +1396,7 @@ export const deliveryColumns = applyOrderListCopyActions([
|
||||
{ prop: 'province', label: '省份', width: '90' },
|
||||
{ prop: 'city', label: '城市', width: '90' },
|
||||
{ prop: 'area', label: '区/县', width: '90' },
|
||||
{ prop: 'status', label: '订单状态', width: '100' },
|
||||
{ prop: 'status', label: '订单状态', width: '100', formatter: (row: any) => translateOrderField('status', row.status) },
|
||||
{ prop: 'outbound_status', label: '数据归档', width: '100' },
|
||||
{ prop: 'sync_status', label: '同步状态', width: '100' },
|
||||
{ prop: 'inspection_status', label: '审核状态', width: '100' },
|
||||
@ -1414,7 +1421,7 @@ export const deliveryColumns = applyOrderListCopyActions([
|
||||
{ prop: 'basket_number', label: '篮号', width: '90' },
|
||||
{ prop: 'items_count', label: '商品种类', width: '90' },
|
||||
{ prop: 'items_total', label: '商品总数', width: '90' },
|
||||
{ prop: 'items_weight', label: '商品重量kg', width: '90' },
|
||||
{ prop: 'items_weight', label: '商品重量(g)', width: '90' },
|
||||
{ prop: 'total_amount', label: '订单金额', width: '100' },
|
||||
{ prop: 'item_amount', label: '商品金额', width: '100' },
|
||||
{ prop: 'freight', label: '运费', width: '90' },
|
||||
@ -1438,7 +1445,7 @@ export const deliverydetail = [
|
||||
{ label: '商品SKU', prop: 'items' },
|
||||
{ label: '商品种类数', prop: 'items_count' },
|
||||
{ label: '商品总数', prop: 'items_total' },
|
||||
{ label: '商品重量kg', prop: 'items_weight' },
|
||||
{ label: '商品重量(g)', prop: 'items_weight' },
|
||||
{ label: '货主', prop: 'store_id' },
|
||||
{ label: '国家编码', prop: 'country_code' },
|
||||
{ label: '详细地址', prop: 'detail_address' },
|
||||
@ -1514,7 +1521,7 @@ export const reviewColums = applyOrderListCopyActions([
|
||||
{ prop: 'logistics_name', label: '快递', width: '120' },
|
||||
{ prop: 'items_total', label: '商品总数', width: '100' },
|
||||
{ prop: 'items_count', label: '商品种类', width: '100' },
|
||||
{ prop: 'items_weight', label: '商品重量kg', width: '110' },
|
||||
{ prop: 'items_weight', label: '商品重量(g)', width: '110' },
|
||||
{ prop: 'total_amount', label: '订单金额', width: '110' },
|
||||
{ prop: 'pay_time', label: '支付时间', width: '165', formatter: orderTimeFormatter },
|
||||
{ prop: 'operator_name', label: '审核人', width: '100' },
|
||||
@ -1534,7 +1541,7 @@ export const reviewOrderDetail = [
|
||||
{ prop: 'shop_nick', label: '店铺名称' },
|
||||
{ prop: 'buyer_nick', label: '买家昵称' },
|
||||
{ prop: 'seller_nick', label: '卖家昵称' },
|
||||
{ prop: 'status', label: '订单状态' },
|
||||
{ prop: 'status', label: '订单状态', formatter: (row: any) => translateOrderField('status', row.status) },
|
||||
{ prop: 'is_urgency', label: '是否紧急' },
|
||||
{ prop: 'invoice_flag', label: '发票标记' },
|
||||
{ prop: 'sync_status', label: '同步状态' },
|
||||
@ -1552,7 +1559,7 @@ export const reviewOrderDetail = [
|
||||
{ prop: 'items', label: '商品清单', span: 3 },
|
||||
{ prop: 'items_count', label: '商品种类' },
|
||||
{ prop: 'items_total', label: '商品总数' },
|
||||
{ prop: 'items_weight', label: '商品重量kg' },
|
||||
{ prop: 'items_weight', label: '商品重量(g)' },
|
||||
|
||||
// 收货与物流
|
||||
{ prop: 'name', label: '收件人' },
|
||||
@ -1681,7 +1688,7 @@ export const pendingCloums = [
|
||||
{ prop: 'express_numbers', label: '运单号', width: '160', formatter: waybillCodesFormatter },
|
||||
{ prop: 'items_count', label: '商品种类', width: '100' },
|
||||
{ prop: 'items_total', label: '商品总数', width: '100' },
|
||||
{ prop: 'items_weight', label: '商品重量kg', width: '110' },
|
||||
{ prop: 'items_weight', label: '商品重量(g)', width: '110' },
|
||||
{ prop: 'province', label: '省份', width: '100' },
|
||||
{ prop: 'create_at', label: '创建时间', width: '165', formatter: orderTimeFormatter },
|
||||
{ prop: 'pay_time', label: '支付时间', width: '160', formatter: orderTimeFormatter },
|
||||
@ -1707,7 +1714,7 @@ export const ORDER_LIST_FIELD_LABELS: Record<string, string> = {
|
||||
buyer_message: '买家留言',
|
||||
pre_delivery_order_code: '前置单号',
|
||||
delivery_time: '配送时间',
|
||||
items_weight: '商品重量kg',
|
||||
items_weight: '商品重量(g)',
|
||||
waybill_codes: '运单号',
|
||||
weight_type: '重量类型',
|
||||
}
|
||||
@ -1754,7 +1761,7 @@ export const pendingOrderDetail = [
|
||||
{ prop: 'shop_nick', label: '店铺名称' },
|
||||
{ prop: 'buyer_nick', label: '买家昵称' },
|
||||
{ prop: 'seller_nick', label: '卖家昵称' },
|
||||
{ prop: 'status', label: '订单状态' },
|
||||
{ prop: 'status', label: '订单状态', formatter: (row: any) => translateOrderField('status', row.status) },
|
||||
{ prop: 'sync_status', label: '同步状态' },
|
||||
{ prop: 'is_urgency', label: '是否紧急' },
|
||||
{ prop: 'invoice_flag', label: '发票标记' },
|
||||
@ -1771,7 +1778,7 @@ export const pendingOrderDetail = [
|
||||
{ prop: 'items', label: '商品清单', span: 3 },
|
||||
{ prop: 'items_count', label: '商品种类' },
|
||||
{ prop: 'items_total', label: '商品总数' },
|
||||
{ prop: 'items_weight', label: '商品重量kg' },
|
||||
{ prop: 'items_weight', label: '商品重量(g)' },
|
||||
|
||||
// 收货与物流
|
||||
{ prop: 'name', label: '收件人' },
|
||||
@ -1921,14 +1928,14 @@ export const workbenchColumns = applyOrderListCopyActions([
|
||||
{ prop: 'mobile', label: '电话', minWidth: 120 },
|
||||
{ prop: 'buyer_message', label: '买家留言', minWidth: 180 },
|
||||
{ prop: 'is_urgency', label: '是否紧急', minWidth: 100 },
|
||||
{ prop: 'status', label: '订单状态', minWidth: 120 },
|
||||
{ prop: 'status', label: '订单状态', minWidth: 120, formatter: (row: any) => translateOrderField('status', row.status) },
|
||||
{ prop: 'sync_status', label: '同步状态', minWidth: 110 },
|
||||
{ prop: 'inspection_status', label: '审核状态', minWidth: 110 },
|
||||
{ prop: 'outbound_status', label: '数据归档', minWidth: 120 },
|
||||
{ prop: 'logistics_name', label: '快递', minWidth: 120 },
|
||||
{ prop: 'waybill_codes', label: '运单号', minWidth: 140, formatter: waybillCodesFormatter },
|
||||
{ prop: 'items_total', label: '商品总数', minWidth: 100 },
|
||||
{ prop: 'items_weight', label: '商品重量kg', minWidth: 110 },
|
||||
{ prop: 'items_weight', label: '商品重量(g)', minWidth: 110 },
|
||||
{ prop: 'total_amount', label: '订单金额', minWidth: 110 },
|
||||
{ prop: 'create_at', label: '创建时间', minWidth: 170, formatter: orderTimeFormatter },
|
||||
{ prop: 'updated_at', label: '更新时间', minWidth: 170, formatter: orderTimeFormatter }
|
||||
@ -2005,7 +2012,7 @@ export const expectionColumns = [
|
||||
{ prop: 'pre_delivery_order_code', label: '前置单号', width: '140' },
|
||||
{ prop: 'order_flag', label: '订单标记', minWidth: '260' },
|
||||
{ prop: 'items_total', label: '商品总数', width: '100' },
|
||||
{ prop: 'items_weight', label: '商品重量kg', width: '110' },
|
||||
{ prop: 'items_weight', label: '商品重量(g)', width: '110' },
|
||||
{ prop: 'total_amount', label: '订单金额', width: '110' },
|
||||
{ prop: 'pay_time', label: '支付时间', width: '165', formatter: orderTimeFormatter },
|
||||
{ prop: 'create_at', label: '创建时间', width: '165', formatter: orderTimeFormatter },
|
||||
@ -2019,7 +2026,7 @@ export const expectionOrderDetail = [
|
||||
{ prop: 'shop_nick', label: '店铺名称' },
|
||||
{ prop: 'sys_platform_name', label: '平台' },
|
||||
{ prop: 'create_channel', label: '来源' },
|
||||
{ prop: 'status', label: '订单状态' },
|
||||
{ prop: 'status', label: '订单状态', formatter: (row: any) => translateOrderField('status', row.status) },
|
||||
{ prop: 'intercept_status', label: '拦截状态' },
|
||||
|
||||
// 异常/状态标记
|
||||
@ -2043,7 +2050,7 @@ export const expectionOrderDetail = [
|
||||
// 统计信息
|
||||
{ prop: 'items_count', label: '商品种类' },
|
||||
{ prop: 'items_total', label: '商品总数' },
|
||||
{ prop: 'items_weight', label: '商品重量kg' },
|
||||
{ prop: 'items_weight', label: '商品重量(g)' },
|
||||
|
||||
// 时间信息
|
||||
{ prop: 'create_at', label: '创建时间' },
|
||||
@ -2102,9 +2109,9 @@ export const archiveColumns = applyOrderListCopyActions([
|
||||
{ prop: 'name', label: '收件人', width: '120' },
|
||||
{ prop: 'mobile', label: '电话', width: '120' },
|
||||
{ prop: 'buyer_message', label: '买家留言', minWidth: '180' },
|
||||
{ prop: 'items_weight', label: '商品重量kg', width: '110' },
|
||||
{ prop: 'items_weight', label: '商品重量(g)', width: '110' },
|
||||
{ prop: 'logistics_name', label: '快递', width: '120' },
|
||||
{ prop: 'status', label: '订单状态', width: '100' },
|
||||
{ prop: 'status', label: '订单状态', width: '100', formatter: (row: any) => translateOrderField('status', row.status) },
|
||||
{ prop: 'create_at', label: '创建时间', width: '160' },
|
||||
{ prop: 'updated_at', label: '归档时间', width: '160' },
|
||||
])
|
||||
@ -2117,7 +2124,7 @@ export const archiveOrderDetail = [
|
||||
{ prop: 'shop_nick', label: '店铺名称' },
|
||||
{ prop: 'sys_platform_name', label: '平台' },
|
||||
{ prop: 'create_channel', label: '来源' },
|
||||
{ prop: 'status', label: '订单状态' },
|
||||
{ prop: 'status', label: '订单状态', formatter: (row: any) => translateOrderField('status', row.status) },
|
||||
|
||||
// 收货信息
|
||||
{ prop: 'name', label: '收件人' },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user