fix: move installation platform summary above detail table

This commit is contained in:
qiuxiang 2026-10-26 18:26:59 +08:00
parent fa53dadab1
commit b4c200688b
2 changed files with 20 additions and 13 deletions

View File

@ -470,18 +470,6 @@
</label>
</div>
<div class="installation-fee-dialog__scroll">
<table class="installation-fee-table">
<thead>
<tr>
<th scope="col">店铺名称</th>
<th scope="col">安装公司</th>
<th scope="col">收款渠道</th>
<th scope="col" class="is-number">结算明细金额</th>
</tr>
</thead>
<tbody data-installation-fee-rows></tbody>
</table>
<div class="installation-fee-empty" data-installation-fee-empty>请选择客服审核日期后查看明细</div>
<section class="installation-fee-platform-summary" aria-label="安装费平台汇总">
<h3>平台汇总</h3>
<table>
@ -494,6 +482,18 @@
<tbody data-installation-fee-platform-rows></tbody>
</table>
</section>
<table class="installation-fee-table">
<thead>
<tr>
<th scope="col">店铺名称</th>
<th scope="col">安装公司</th>
<th scope="col">收款渠道</th>
<th scope="col" class="is-number">结算明细金额</th>
</tr>
</thead>
<tbody data-installation-fee-rows></tbody>
</table>
<div class="installation-fee-empty" data-installation-fee-empty>请选择客服审核日期后查看明细</div>
</div>
<div class="installation-fee-dialog__foot">
<span data-installation-fee-count>共 0 条明细汇总</span>

View File

@ -234,7 +234,7 @@ class ManagementCrudTest extends FeatureTestCase
]);
$this->app->instance(InstallationDetailMirrorRepository::class, $mirror);
$this->loginAs()
$response = $this->loginAs()
->get(route('business.pages.show', [
'section' => 'financial-operations',
'page' => 'installation-details',
@ -313,6 +313,13 @@ class ManagementCrudTest extends FeatureTestCase
->assertSeeText('测试安装公司')
->assertSeeText('120.50')
->assertSeeText('共 1 条');
$html = $response->getContent();
$platformSummaryPosition = strpos($html, 'class="installation-fee-platform-summary"');
$detailTablePosition = strpos($html, '<th scope="col">店铺名称</th>');
$this->assertNotFalse($platformSummaryPosition);
$this->assertNotFalse($detailTablePosition);
$this->assertLessThan($detailTablePosition, $platformSummaryPosition);
}
public function testInstallationDetailsExportUsesFiltersAndMirrorRows(): void