{{-- 「终版」目录的按表页面:保留原有的导入、导出、查询、重置、编辑按钮、 导入模板和列头,数据来自该目录自己的独立数据。 --}} @php $finalDataset = $payablesFinal['dataset'] ?? ($page['slug'] ?? ''); $finalFields = $payablesFinal['fields'] ?? []; $finalRows = $payablesFinal['rows'] ?? null; $finalKeyword = $payablesFinal['keyword'] ?? ''; $finalSummary = $payablesFinal['summary'] ?? null; $finalActions = $payablesFinal['actions'] ?? ''; $finalMaintenance = ['dataset' => $finalDataset, 'fields' => $finalFields]; $freezeThroughSupplier = $finalDataset === 'supplier-payables-report'; $freezeThroughSupplierFields = ['summary_month', 'checker', 'settlement_method', 'company', 'supplier']; @endphp
@if ($finalSummary !== null)
件数 {{ number_format((float) $finalSummary['quantity'], 2) }} 预估金额 ¥{{ number_format((float) $finalSummary['estimated_amount'], 2) }}
@endif
导出 重置
@include('business.pages.supplier-payables.maintenance-import-modal', [ 'supplierImportAction' => $finalActions . '/import', 'supplierTemplateUrl' => $finalActions . '/template', 'supplierImportUploadUrl' => $finalActions . '/import-upload', 'supplierImportChunkUrl' => $finalActions . '/import-chunk', ])
$freezeThroughSupplier, ])> @foreach ($finalFields as $field) @php $freezeField = $freezeThroughSupplier && in_array($field['name'], $freezeThroughSupplierFields, true); @endphp @endforeach @forelse ($finalRows ?? [] as $index => $row) @foreach ($finalFields as $field) @php $value = $row[$field['name']] ?? null; @endphp @php $freezeField = $freezeThroughSupplier && in_array($field['name'], $freezeThroughSupplierFields, true); @endphp @endforeach @empty @endforelse
$freezeThroughSupplier]) >序号 $field['type'] === 'number', 'payables-final-freeze-column' => $freezeField, 'payables-final-freeze-edge' => $freezeThroughSupplier && $field['name'] === 'supplier', ]) >{{ $field['label'] }}
$freezeThroughSupplier]) >{{ ($finalRows->firstItem() ?? 1) + $index }} $field['type'] === 'number', 'payables-final-freeze-column' => $freezeField, 'payables-final-freeze-edge' => $freezeThroughSupplier && $field['name'] === 'supplier', ]) > @if ($value === null || $value === '') - @elseif ($field['type'] === 'number' && is_numeric($value)) {{ number_format((float) $value, 2) }} @else {{ $value }} @endif
暂无数据,请点击“导入”上传本表数据。
共 {{ $finalRows?->total() ?? 0 }} 条 @if ($finalRows && ! $finalRows->onFirstPage()) 上一页 @endif 第 {{ $finalRows?->currentPage() ?? 1 }} 页 / 共 {{ $finalRows?->lastPage() ?? 1 }} 页 · 每页 {{ $finalRows?->perPage() ?? (in_array($finalDataset, ['payment-reconciliation', 'return-reconciliation', 'supplier-payables-report'], true) ? 15 : 50) }} 条 @if ($finalRows?->hasMorePages()) 下一页 @endif
@if ($freezeThroughSupplier) @endif @include('business.pages.supplier-payables.maintenance-blade-modal', [ 'content' => ['supplierPayableMaintenance' => $finalMaintenance], 'supplierMaintenanceAction' => $finalActions, ])