fix: remove installation summary block
This commit is contained in:
parent
df5e844b80
commit
c484573d24
@ -185,7 +185,6 @@ class Pages extends Controller
|
||||
$tabValue = null;
|
||||
$tabColumn = null;
|
||||
$upstreamError = null;
|
||||
$installationSummary = null;
|
||||
|
||||
if ($page && $content === null) {
|
||||
$descriptor = TableRegistry::describe(
|
||||
@ -202,9 +201,6 @@ class Pages extends Controller
|
||||
$page['slug'],
|
||||
50,
|
||||
);
|
||||
if ($section['slug'] === 'financial-operations' && $page['slug'] === 'installation-details') {
|
||||
$installationSummary = $this->installationDetails->summary();
|
||||
}
|
||||
} catch (ServiceUnavailableHttpException $exception) {
|
||||
// 首份快照尚未生成或某个来源暂时不可用时,保留页面、
|
||||
// 交代原因并允许后台刷新,而不是把整个业务页变成通用 503。
|
||||
@ -224,7 +220,6 @@ class Pages extends Controller
|
||||
'descriptor' => $descriptor,
|
||||
'rows' => $rows,
|
||||
'upstreamError' => $upstreamError,
|
||||
'installationSummary' => $installationSummary,
|
||||
'tabColumn' => null,
|
||||
'tabValue' => null,
|
||||
'edgeBanding' => $this->edgeBandingContent($page['slug']),
|
||||
@ -265,7 +260,6 @@ class Pages extends Controller
|
||||
'descriptor' => $descriptor,
|
||||
'rows' => $rows,
|
||||
'upstreamError' => $upstreamError,
|
||||
'installationSummary' => $installationSummary,
|
||||
'tabColumn' => $tabColumn,
|
||||
'tabValue' => $tabValue,
|
||||
'edgeBanding' => $page ? $this->edgeBandingContent($page['slug']) : null,
|
||||
|
||||
@ -640,15 +640,6 @@
|
||||
@endunless
|
||||
</div>
|
||||
|
||||
@if ($page['slug'] === 'installation-details' && is_array($installationSummary ?? null))
|
||||
<dl class="upstream-data-summary" aria-label="安装明细汇总">
|
||||
<div><dt>安装明细</dt><dd>{{ number_format((int) ($installationSummary['rows'] ?? 0)) }}</dd></div>
|
||||
<div><dt>申请总金额</dt><dd>{{ number_format((float) ($installationSummary['requested'] ?? 0), 2) }}</dd></div>
|
||||
<div><dt>结算总金额</dt><dd>{{ number_format((float) ($installationSummary['settled'] ?? 0), 2) }}</dd></div>
|
||||
<div><dt>收款金额</dt><dd>{{ number_format((float) ($installationSummary['paid'] ?? 0), 2) }}</dd></div>
|
||||
</dl>
|
||||
@endif
|
||||
|
||||
<div class="biz-table-wrap">
|
||||
<table class="biz-table">
|
||||
<thead>
|
||||
|
||||
@ -32,7 +32,6 @@ class ManagementCrudTest extends FeatureTestCase
|
||||
'related_guid' => 'guid-install-test',
|
||||
])],
|
||||
]);
|
||||
$mirror->shouldReceive('summary')->once()->andReturn(['rows' => 1, 'requested' => 120.50, 'settled' => 100.00, 'paid' => 0.0]);
|
||||
$this->app->instance(InstallationDetailMirrorRepository::class, $mirror);
|
||||
|
||||
$this->loginAs()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user