From bb316015d01beab18eef2a7038d1b057b4ea461c Mon Sep 17 00:00:00 2001
From: limeng <1131177064@qq.com>
Date: Mon, 30 Nov 2026 15:05:01 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BF=AB=E9=80=92=E5=AF=B9=E8=B4=A6=E5=B0=8F?=
=?UTF-8?q?=E6=B1=87=E6=80=BB=E5=8E=BB=E6=8E=89=E5=9B=9E=E5=A1=AB=E6=A1=86?=
=?UTF-8?q?=20(#1571)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../courier-bills/statement.blade.php | 24 ++-----------------
.../Feature/Business/CourierBillPagesTest.php | 4 ++--
2 files changed, 4 insertions(+), 24 deletions(-)
diff --git a/resources/views/business/pages/courier-payables/courier-bills/statement.blade.php b/resources/views/business/pages/courier-payables/courier-bills/statement.blade.php
index aa799a5d..e411918d 100644
--- a/resources/views/business/pages/courier-payables/courier-bills/statement.blade.php
+++ b/resources/views/business/pages/courier-payables/courier-bills/statement.blade.php
@@ -44,28 +44,8 @@
@php($target = \App\Support\CourierBills\SummaryMapper::classify($item->label))
| {{ $item->label }} @if ($item->manual)手工@endif |
- @php($blankRow = ! $item->manual && $item->bill_amount === null && $item->self_amount === null)
- @if ($open && $blankRow)
-
-
- |
- @else
{{ $billMoney($item->bill_amount) }} |
-
- @if ($open && ($item->manual || (in_array(preg_replace('/\s+/u', '', $item->label), $cbFeeLabels ?? [], true) && $item->bill_amount !== null)))
-
- @else
- {{ $money($item->self_amount) }}
- @endif
- |
- @endif
+ {{ $money($item->self_amount) }} |
{{ $item->bill_amount === null && $item->self_amount === null ? '' : $money((float) $item->bill_amount - (float) $item->self_amount) }} |
{{ ['supplement' => '补给快递', 'waybill' => '面单'][$target] ?? \App\Support\CourierBills\SummaryMapper::DIFF_COLUMNS[$target] }} |
@@ -86,7 +66,7 @@
- 项目名称决定归到汇总哪一列,按平时手工汇总的叫法写。附加费(一张附加费表一行,名字就是账单里的表名)只读了快递金额,自算先是 0,手工核对后在上面直接回填;回填后变成手工行,删掉就恢复原样。
+ 项目名称决定归到汇总哪一列,按平时手工汇总的叫法写。类目照上月小汇总排;系统还没有数据的类目先空着(以后接上记账、违约金等数据后自动带入,和配件补发扣款一样)。要手工改某一类目,在这里加一行同名项目,手工行优先,删掉就恢复系统的数。
@endif
diff --git a/tests/Feature/Business/CourierBillPagesTest.php b/tests/Feature/Business/CourierBillPagesTest.php
index 9e0adff8..743c653a 100644
--- a/tests/Feature/Business/CourierBillPagesTest.php
+++ b/tests/Feature/Business/CourierBillPagesTest.php
@@ -49,7 +49,7 @@ final class CourierBillPagesTest extends FeatureTestCase
$this->get($statementUrl)->assertOk()->assertSeeText('8.0040')->assertSeeText('13.0040');
$this->post(route("business.$section.courier-bills.add-item", ['statement' => $statement->id]), ['label' => '上楼费', 'bill' => 20, 'self' => 15])->assertRedirect();
$manual = $db->table('courier_bill_summary_items')->where('statement_id', $statement->id)->where('label', '上楼费')->value('id');
- $this->get($statementUrl)->assertOk()->assertSee('回填');
+ $this->get($statementUrl)->assertOk()->assertDontSee('>回填', false);
$this->from($statementUrl)->post(route("business.$section.courier-bills.fill-item", ['statement' => $statement->id, 'item' => $manual]), ['self' => 15])
->assertRedirect($statementUrl)->assertSessionHas('courier_bills_message');
// 导入手工小汇总类目:本月小汇总照它排,空行能回填快递金额和自算金额
@@ -57,7 +57,7 @@ final class CourierBillPagesTest extends FeatureTestCase
['运费10月', 1, 1, 0], ['快递记账', null, -3, 3], ['匹配不到', 1, null, 1], ['总计', 2, -2, 4]]]), '河北中通10月发送版.xlsx', null, null, true);
$this->post(route("business.$section.courier-bills.import-summary-templates"), ['month' => '2026-10', 'files' => [$template]])
->assertRedirect()->assertSessionHas('courier_bills_message', fn ($m) => str_contains($m, '记下 1 家'));
- $this->get($statementUrl)->assertOk()->assertSeeText('运费10月')->assertSeeText('快递记账')->assertSee('placeholder="快递提供"', false);
+ $this->get($statementUrl)->assertOk()->assertSeeText('运费10月')->assertSeeText('快递记账')->assertDontSee('placeholder="快递提供"', false);
$this->get(route('business.pages.show', ['section' => $section, 'page' => 'courier-bill-reconciliation', 'cb_view' => 'upload', 'month' => '2026-10']))
->assertOk()->assertSeeText('导入手工小汇总');
$line = $db->table('courier_bill_lines')->where('waybill_no', 'ZT999')->first();
|