From 15a9e3f475265c21ec271d1df05d00a09b0fc09e Mon Sep 17 00:00:00 2001 From: chenxi Date: Thu, 6 Aug 2026 16:47:39 +0800 Subject: [PATCH] =?UTF-8?q?Alibaba=E6=B1=87=E6=80=BB=E9=87=91=E9=A2=9D?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E4=B8=87=E5=85=83=20(#14)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 仅在展示层将三项金额汇总从元换算为万元,其余功能保持不变。 --- .../partials/embedded-table.blade.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/resources/views/banking/marketing_alibaba_bills/partials/embedded-table.blade.php b/resources/views/banking/marketing_alibaba_bills/partials/embedded-table.blade.php index 3fae69b5..cd5983c7 100644 --- a/resources/views/banking/marketing_alibaba_bills/partials/embedded-table.blade.php +++ b/resources/views/banking/marketing_alibaba_bills/partials/embedded-table.blade.php @@ -32,6 +32,9 @@ $options = $options ?? ['shops' => [], 'product_types' => []]; $shops = is_array($options['shops'] ?? null) ? $options['shops'] : []; $productTypes = is_array($options['product_types'] ?? null) ? $options['product_types'] : []; + $incomeWan = ((float) ($summary['income_total'] ?? 0)) / 10000; + $expenseWan = ((float) ($summary['expense_total'] ?? 0)) / 10000; + $netWan = ((float) ($summary['net'] ?? 0)) / 10000; @endphp
@@ -43,9 +46,9 @@
@foreach ([ - ['label' => '入账合计(元)', 'value' => (float) ($summary['income_total'] ?? 0), 'class' => 'alibaba-bill-income', 'prefix' => '+ '], - ['label' => '出帐合计(元)', 'value' => (float) ($summary['expense_total'] ?? 0), 'class' => 'alibaba-bill-expense', 'prefix' => '- '], - ['label' => '净额(入账 - 出帐,元)', 'value' => (float) ($summary['net'] ?? 0), 'class' => ((float) ($summary['net'] ?? 0) >= 0 ? 'text-gray-900' : 'alibaba-bill-expense'), 'prefix' => ((float) ($summary['net'] ?? 0) >= 0 ? '+ ' : '')], + ['label' => '入账合计(万元)', 'value' => $incomeWan, 'class' => 'alibaba-bill-income', 'prefix' => '+ '], + ['label' => '出帐合计(万元)', 'value' => $expenseWan, 'class' => 'alibaba-bill-expense', 'prefix' => '- '], + ['label' => '净额(入账 - 出帐,万元)', 'value' => $netWan, 'class' => ($netWan >= 0 ? 'text-gray-900' : 'alibaba-bill-expense'), 'prefix' => ($netWan >= 0 ? '+ ' : '')], ['label' => '流水笔数', 'value' => (int) ($summary['count'] ?? 0), 'class' => 'text-gray-900', 'prefix' => ''], ] as $metric)