From 9044cccf8921c8275dcbe098c5b9580eda9719cf Mon Sep 17 00:00:00 2001 From: chenxi Date: Thu, 6 Aug 2026 16:46:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=20Alibaba=20=E6=B1=87?= =?UTF-8?q?=E6=80=BB=E9=87=91=E9=A2=9D=E4=B8=BA=E4=B8=87=E5=85=83?= 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)
-- 2.47.2