From ec257a246d0548b9e63c72f7a5871f0f4e9aee19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=85=E5=BF=B5?= Date: Wed, 17 Sep 2025 17:04:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E5=BC=B9=E6=A1=86?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/custom/OrderDetailContent.vue | 195 ++++++++++++------- 1 file changed, 123 insertions(+), 72 deletions(-) diff --git a/src/components/custom/OrderDetailContent.vue b/src/components/custom/OrderDetailContent.vue index 3440faa..7ef4121 100644 --- a/src/components/custom/OrderDetailContent.vue +++ b/src/components/custom/OrderDetailContent.vue @@ -44,79 +44,84 @@ - +
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
编号车型数量/台颜色/外内饰改装官方指导价/二手挂牌价优惠手续费改装费FOB运费港杂费海运费单价总价利润
{{ index + 1 }}{{ item.model_snapshot || item.model || '—' }} ({{ item.mileage }}km) {{ item.num ?? item.quantity ?? 1 }}{{ item.color_exterior_snapshot || item.exteriorColor || '—' }}{{ item.color_interior_snapshot || item.interiorColor || '—' }}{{ item.modify || item.modification || '—' }} - - {{ item.listing_price?.currency_info || item.listing_price?.amount || item.discount || '—' }} - - {{ item.official_price?.currency_info || item.official_price?.amount || item.discount || '—' }} - - - {{ item.reduction_price?.currency_info || item.reduction_price?.amount || item.discount || '—' }} - - {{ item.discount_price?.currency_info || item.discount_price?.amount || item.discount || '—' }} - {{ item.handling_fee?.currency_info || item.handling_fee?.amount || item.discount || '—' }}{{ item.retrofit_fee?.currency_info || item.retrofit_fee?.amount || item.discount || '—' }}{{ item.fob_transport_fee?.currency_info || item.fob_transport_fee?.amount || item.discount || '—' }}{{ item.port_misc_fee?.currency_info || item.port_misc_fee?.amount || item.discount || '—' }}{{ item.ocean_freight?.currency_info || item.ocean_freight?.amount || item.discount || '—' }}{{ item.unit_price?.currency_info || item.unit_price?.amount || item.discount || '—'}}{{ item.total_price?.currency_info || item.total_price?.amount || item.discount || '—' }}{{ item.profit?.currency_info || item.profit?.amount || item.discount || '—' }}
- 合同汇率: - {{ orderData.contract_exchange_rate || orderData.contractRate || '—' }} - - 合计到岸价: - ${{ formatPrice(Number(orderData.cif_total_amount?.amount ?? orderData.totalCif ?? 0)) }} - - 利润: - {{ orderData.profit_total?.currency_info || orderData.profit_total?.amount || '—' }} -
+ + + +
+
+ 合同汇率: + {{ orderData.contract_exchange_rate || orderData.contractRate || '—' }} +
+
+ 合计到岸价: + ${{ formatPrice(Number(orderData.cif_total_amount?.amount ?? orderData.totalCif ?? 0)) }} +
+
+ 利润: + {{ orderData.profit_total?.currency_info || orderData.profit_total?.amount || '—' }} +
@@ -223,8 +228,13 @@ }) } + const vehItems = computed(() => { + return (props.orderData as any).veh_list || (props.orderData as any).items || [] + }) + return { paymentTableData, + vehItems, formatPrice } } @@ -333,6 +343,47 @@ .payment-section { margin: 20px 0; } + + /* 订单底部汇总样式 */ + .order-summary { + display: flex; + justify-content: flex-end; + align-items: center; + gap: 12px; + padding: 8px 12px; + background: #f9fafb; + border: 1px solid #e5e7eb; + border-top: none; + border-radius: 0 0 4px 4px; + flex-wrap: wrap; + } + .order-summary .summary-item { + display: inline-flex; + align-items: center; + gap: 6px; + padding: 6px 10px; + // background: #fff; + // border: 1px solid #e5e7eb; + border-radius: 4px; + white-space: nowrap; + } + .order-summary .label { + color: #666; + } + .order-summary .value { + font-weight: 600; + color: #111; + } + + /* ArtTable 表头背景色 */ + .table-section :deep(.el-table__header th) { + background-color: #f5f7fa; + color: #333; + font-weight: 600; + } + .table-section :deep(.el-table__header .cell) { + padding: 12px 8px; + } .payment-table { width: 100%; border-collapse: collapse;