diff --git a/app/Http/Controllers/Business/FinanceLedger.php b/app/Http/Controllers/Business/FinanceLedger.php index bdd38e32..f53a6fdd 100644 --- a/app/Http/Controllers/Business/FinanceLedger.php +++ b/app/Http/Controllers/Business/FinanceLedger.php @@ -24,6 +24,11 @@ use Symfony\Component\HttpFoundation\StreamedResponse; class FinanceLedger extends Controller { + private const UNRETAINED_OWNER_OPTIONS = [ + '玉兔', + '山时', + ]; + public function downloadAccountTemplate(FinanceLedgerAccountTemplate $template): StreamedResponse { return $template->download(); @@ -212,6 +217,28 @@ class FinanceLedger extends Controller 'keep_owner' => trim((string) $request->query('keep_owner', '')), 'keep_progress' => trim((string) $request->query('keep_progress', '')), ]; + $headerFilterValue = trim((string) $request->query('keep_filter_value', '')); + $headerFilterColumn = trim((string) $request->query('keep_filter_column', '')); + $headerFilterColumns = [ + 'company_name', + 'account_short', + 'legal_representative', + 'account_type', + 'account_status', + 'account_no', + 'bank_name', + 'bank_city_branch', + 'account_should_keep', + 'handling_method', + 'owner_name', + 'started_at', + 'completed_at', + 'current_progress', + ]; + if ($headerFilterValue === '' || ! in_array($headerFilterColumn, $headerFilterColumns, true)) { + $headerFilterColumn = ''; + $headerFilterValue = ''; + } $query = $connection->table('fin_accounts as accounts') ->leftJoin('fin_account_statuses as account_status', 'account_status.account_short', '=', 'accounts.account_short') @@ -287,6 +314,127 @@ class FinanceLedger extends Controller } } + $headerOptionRows = (clone $query) + ->reorder() + ->select([ + 'accounts.company_name', + 'accounts.account_short', + 'accounts.account_type', + 'accounts.account_no', + 'accounts.bank_name', + 'accounts.bank_city_branch', + 'account_status.status as effective_account_status', + 'type_override.id as type_override_id', + 'type_override.account_type as effective_account_type', + 'account_todo.handling_method as todo_handling_method', + 'account_todo.owner_name as todo_owner_name', + 'account_todo.started_at as todo_started_at', + 'account_todo.completed_at as todo_completed_at', + 'account_todo.current_progress as todo_current_progress', + ]) + ->get(); + $companyNames = $headerOptionRows + ->pluck('company_name') + ->map(static fn ($name): string => trim((string) $name)) + ->filter() + ->unique() + ->values() + ->all(); + $legalRepresentatives = $this->latestLegalRepresentatives($connection, $companyNames); + $effectiveAccountTypes = $headerOptionRows->map(static function ($row): string { + $type = $row->type_override_id !== null + ? $row->effective_account_type + : $row->account_type; + + return trim((string) $type); + }); + $typeOptions = FinanceLedgerAccountType::options($effectiveAccountTypes->all()); + + if ($headerFilterValue !== '') { + $textFilterColumns = [ + 'company_name' => 'accounts.company_name', + 'account_short' => 'accounts.account_short', + 'account_no' => 'accounts.account_no', + 'bank_name' => 'accounts.bank_name', + 'bank_city_branch' => 'accounts.bank_city_branch', + ]; + + if (isset($textFilterColumns[$headerFilterColumn])) { + $query->where($textFilterColumns[$headerFilterColumn], 'like', '%' . $headerFilterValue . '%'); + } elseif ($headerFilterColumn === 'legal_representative') { + $matchingCompanies = collect($legalRepresentatives) + ->filter(static fn ($name): bool => str_contains((string) $name, $headerFilterValue)) + ->keys() + ->all(); + if ($matchingCompanies === []) { + $query->whereRaw('1 = 0'); + } else { + $query->whereIn('accounts.company_name', $matchingCompanies); + } + } elseif ($headerFilterColumn === 'account_type') { + $query->where(function ($effectiveType) use ($headerFilterValue): void { + $effectiveType->where(function ($baseType) use ($headerFilterValue): void { + $baseType->whereNull('type_override.id'); + if ($headerFilterValue === '__empty__') { + $baseType->where(function ($blank): void { + $blank->whereNull('accounts.account_type')->orWhere('accounts.account_type', ''); + }); + } else { + $baseType->where('accounts.account_type', $headerFilterValue); + } + })->orWhere(function ($overrideType) use ($headerFilterValue): void { + $overrideType->whereNotNull('type_override.id'); + if ($headerFilterValue === '__empty__') { + $overrideType->where(function ($blank): void { + $blank->whereNull('type_override.account_type')->orWhere('type_override.account_type', ''); + }); + } else { + $overrideType->where('type_override.account_type', $headerFilterValue); + } + }); + }); + } elseif ($headerFilterColumn === 'account_status') { + $status = array_search($headerFilterValue, FinanceLedgerAccountStatus::OPTIONS, true); + if ($status === false) { + $query->whereRaw('1 = 0'); + } elseif ($status === FinanceLedgerAccountStatus::NORMAL) { + $query->where(function ($normalStatus): void { + $normalStatus->whereNull('account_status.status') + ->orWhere('account_status.status', FinanceLedgerAccountStatus::NORMAL); + }); + } else { + $query->where('account_status.status', $status); + } + } elseif ($headerFilterColumn === 'account_should_keep') { + if ($headerFilterValue !== FinanceLedgerAccountShouldKeep::NO) { + $query->whereRaw('1 = 0'); + } + } elseif ($headerFilterColumn === 'handling_method') { + $method = array_search($headerFilterValue, $handlingMethods, true); + if ($method === false) { + $query->whereRaw('1 = 0'); + } else { + $query->where('account_todo.handling_method', $method); + } + } elseif ($headerFilterColumn === 'owner_name') { + $query->where('account_todo.owner_name', 'like', '%' . $headerFilterValue . '%'); + } elseif ($headerFilterColumn === 'started_at' || $headerFilterColumn === 'completed_at') { + $query->where('account_todo.' . $headerFilterColumn, 'like', $headerFilterValue . '%'); + } elseif ($headerFilterColumn === 'current_progress') { + $progress = array_search($headerFilterValue, $completionStatuses, true); + if ($progress === false) { + $query->whereRaw('1 = 0'); + } elseif ($progress === 'not_started') { + $query->where(function ($notStarted): void { + $notStarted->whereNull('account_todo.current_progress') + ->orWhere('account_todo.current_progress', 'not_started'); + }); + } else { + $query->where('account_todo.current_progress', $progress); + } + } + } + $summaryQuery = clone $query; $summary = [ 'count' => (clone $query)->count(), @@ -317,27 +465,57 @@ class FinanceLedger extends Controller ])) ->withQueryString(); - $rows->getCollection()->transform(static function ($row) { + $rows->getCollection()->transform(static function ($row) use ($legalRepresentatives) { $row->account_status = FinanceLedgerAccountStatus::normalize($row->effective_account_status ?? null); if ($row->type_override_id !== null) { $row->account_type = (string) ($row->effective_account_type ?? ''); } $row->todo_current_progress = $row->todo_current_progress ?: 'not_started'; + $row->legal_representative = $legalRepresentatives[trim((string) $row->company_name)] ?? null; return $row; }); - $typeOptions = FinanceLedgerAccountType::options( - $connection->table('fin_accounts') - ->whereNotNull('account_type')->where('account_type', '<>', '') - ->distinct()->orderBy('account_type')->pluck('account_type')->all(), - $connection->table('fin_account_type_overrides') - ->whereNotNull('account_type')->where('account_type', '<>', '') - ->distinct()->orderBy('account_type')->pluck('account_type')->all(), - ); - $ownerOptions = $connection->table('fin_account_keep_todos') - ->whereNotNull('owner_name')->where('owner_name', '<>', '') - ->distinct()->orderBy('owner_name')->pluck('owner_name')->all(); + $ownerOptions = self::UNRETAINED_OWNER_OPTIONS; + $headerOptionValues = static function (iterable $values, bool $includeEmpty = false): array { + $normalized = collect($values) + ->map(static fn ($value): string => trim((string) $value)) + ->filter(static fn (string $value): bool => $value !== '') + ->unique() + ->sort(SORT_NATURAL | SORT_FLAG_CASE) + ->values() + ->all(); + $options = $normalized; + if ($includeEmpty) { + $options = array_merge(['__empty__' => '未填写'], $normalized); + } + + return $options; + }; + $hasEmpty = static fn (string $column): bool => $headerOptionRows + ->contains(static fn ($row): bool => trim((string) ($row->{$column} ?? '')) === ''); + $keepHeaderOptions = [ + 'company_name' => $headerOptionValues($headerOptionRows->pluck('company_name'), $hasEmpty('company_name')), + 'account_short' => $headerOptionValues($headerOptionRows->pluck('account_short'), $hasEmpty('account_short')), + 'legal_representative' => $headerOptionValues(array_values($legalRepresentatives), $headerOptionRows->contains( + static fn ($row): bool => trim((string) ($legalRepresentatives[trim((string) $row->company_name)] ?? '')) === '', + )), + 'account_type' => $headerOptionValues($typeOptions, true), + 'account_status' => $headerOptionValues(array_values(FinanceLedgerAccountStatus::OPTIONS)), + 'account_no' => $headerOptionValues($headerOptionRows->pluck('account_no'), $hasEmpty('account_no')), + 'bank_name' => $headerOptionValues($headerOptionRows->pluck('bank_name'), $hasEmpty('bank_name')), + 'bank_city_branch' => $headerOptionValues($headerOptionRows->pluck('bank_city_branch'), $hasEmpty('bank_city_branch')), + 'account_should_keep' => [FinanceLedgerAccountShouldKeep::NO], + 'handling_method' => $headerOptionValues(array_values($handlingMethods)), + 'owner_name' => $headerOptionValues($ownerOptions), + 'started_at' => [], + 'completed_at' => [], + 'current_progress' => $headerOptionValues(array_values($completionStatuses)), + ]; + $keepHeaderPreserve = collect($request->query()) + ->except(['page', 'keep_filter_column', 'keep_filter_value']) + ->filter(static fn ($value): bool => is_scalar($value) || $value === null) + ->all(); return view('business.pages.financial-ledger.unretained-account-tasks', [ 'rows' => $rows, @@ -355,6 +533,8 @@ class FinanceLedger extends Controller 'accountStatusOptions' => FinanceLedgerAccountStatus::OPTIONS, 'accountTypeOptions' => $typeOptions, 'ownerOptions' => $ownerOptions, + 'keepHeaderOptions' => $keepHeaderOptions, + 'keepHeaderPreserve' => $keepHeaderPreserve, ]); } @@ -365,7 +545,7 @@ class FinanceLedger extends Controller $data = $request->validate([ 'account_short' => ['required', 'string', 'max:100'], 'handling_method' => ['nullable', 'string', Rule::in(['online', 'offline'])], - 'owner_name' => ['nullable', 'string', 'max:100'], + 'owner_name' => ['nullable', 'string', Rule::in(self::UNRETAINED_OWNER_OPTIONS)], 'started_at' => ['nullable', 'date'], 'completed_at' => ['nullable', 'date'], 'current_progress' => ['required', 'string', Rule::in(['completed', 'in_progress', 'not_started'])], @@ -1074,4 +1254,29 @@ class FinanceLedger extends Controller 'missing' => $result['missing'], ], 200, ['Cache-Control' => 'private, no-store']); } + + private function latestLegalRepresentatives($connection, array $companyNames): array + { + if ($companyNames === [] || ! $connection->getSchemaBuilder()->hasTable('ops_fys_company_info')) { + return []; + } + + $latestCompanyIds = $connection->table('ops_fys_company_info') + ->selectRaw('businessLicenseName, MAX(Id) AS latest_id') + ->whereIn('businessLicenseName', $companyNames) + ->groupBy('businessLicenseName') + ->pluck('latest_id', 'businessLicenseName'); + + if ($latestCompanyIds->isEmpty()) { + return []; + } + + return $connection->table('ops_fys_company_info') + ->whereIn('Id', $latestCompanyIds->values()->all()) + ->get(['businessLicenseName', 'legalRepresentative']) + ->mapWithKeys(static fn ($company): array => [ + (string) $company->businessLicenseName => trim((string) $company->legalRepresentative), + ]) + ->all(); + } } diff --git a/resources/views/business/pages/financial-ledger/partials/table-header.blade.php b/resources/views/business/pages/financial-ledger/partials/table-header.blade.php index 6ff358f4..326370e7 100644 --- a/resources/views/business/pages/financial-ledger/partials/table-header.blade.php +++ b/resources/views/business/pages/financial-ledger/partials/table-header.blade.php @@ -5,11 +5,14 @@ $options = $options ?? []; $preserve = $preserve ?? []; $align = $align ?? 'start'; - $sortParameter = $tabKey . '_sort'; - $directionParameter = $tabKey . '_direction'; - $filterColumnParameter = $tabKey . '_filter_column'; - $filterValueParameter = $tabKey . '_filter_value'; - $pageParameter = $tabKey . '_page'; + $keepColumnKey = $keepColumnKey ?? null; + $showSort = $showSort ?? true; + $includeTabField = $includeTabField ?? true; + $sortParameter = $sortParameter ?? $tabKey . '_sort'; + $directionParameter = $directionParameter ?? $tabKey . '_direction'; + $filterColumnParameter = $filterColumnParameter ?? $tabKey . '_filter_column'; + $filterValueParameter = $filterValueParameter ?? $tabKey . '_filter_value'; + $pageParameter = $pageParameter ?? $tabKey . '_page'; $sortKey = (string) request($sortParameter, ''); $direction = strtolower((string) request($directionParameter, 'asc')); $isSorted = $sortKey === $column; @@ -18,9 +21,32 @@ $isFiltered = $activeFilterColumn === $column && $activeFilterValue !== ''; $icon = $isSorted ? ($direction === 'desc' ? 'arrow_downward' : 'arrow_upward') - : ($isFiltered ? 'filter_alt' : 'unfold_more'); + : ($isFiltered || ! $showSort ? 'filter_alt' : 'unfold_more'); $ariaSort = ! $isSorted ? 'none' : ($direction === 'desc' ? 'descending' : 'ascending'); + $menuLabel = $showSort ? '排序和筛选' : '筛选'; $filterListId = 'ledger-header-options-' . $tabKey . '-' . $column; + $clearQuery = [ + $filterColumnParameter => null, + $filterValueParameter => null, + $pageParameter => null, + ]; + if ($includeTabField) { + $clearQuery['tab'] = $tabKey; + } + $sortAscQuery = [ + $sortParameter => $column, + $directionParameter => 'asc', + $pageParameter => null, + ]; + $sortDescQuery = [ + $sortParameter => $column, + $directionParameter => 'desc', + $pageParameter => null, + ]; + if ($includeTabField) { + $sortAscQuery['tab'] = $tabKey; + $sortDescQuery['tab'] = $tabKey; + } $filterPlaceholder = match ($filterType) { 'date' => '选择日期', 'number' => '输入精确数值', @@ -39,12 +65,15 @@ 'is-filtered' => $isFiltered, ]) data-ledger-header-field="{{ $column }}" + @if ($keepColumnKey) + data-keep-column-key="{{ $keepColumnKey }}" + @endif aria-sort="{{ $ariaSort }}" >
{{ $label }}
- +
$align === 'end', ])>
- + @if ($includeTabField) + + @endif @foreach ($preserve as $preservedName => $preservedValue) @foreach ($options as $optionValue => $optionLabel) - + @php($resolvedOptionValue = is_int($optionValue) ? $optionLabel : $optionValue) + @endforeach @elseif ($options !== []) @else @@ -102,36 +135,23 @@
@if ($isFiltered) - 清除 + 清除 @endif
-
- 排序 - 升序 - 降序 -
+ @if ($showSort) +
+ 排序 + 升序 + 降序 +
+ @endif
diff --git a/resources/views/business/pages/financial-ledger/unretained-account-tasks.blade.php b/resources/views/business/pages/financial-ledger/unretained-account-tasks.blade.php index 109846a6..c372c878 100644 --- a/resources/views/business/pages/financial-ledger/unretained-account-tasks.blade.php +++ b/resources/views/business/pages/financial-ledger/unretained-account-tasks.blade.php @@ -1,7 +1,23 @@ @php - $dateTimeValue = static fn ($value): string => $value - ? \Illuminate\Support\Carbon::parse($value)->format('Y-m-d\TH:i') + $dateValue = static fn ($value): string => $value + ? \Illuminate\Support\Carbon::parse($value)->format('Y-m-d') : ''; + $keepHeaderColumns = [ + ['column' => 'company_name', 'label' => '公司名称', 'filterType' => 'searchable-enum'], + ['column' => 'account_short', 'label' => '账户简称', 'filterType' => 'searchable-enum'], + ['column' => 'legal_representative', 'label' => '法人名称', 'filterType' => 'searchable-enum'], + ['column' => 'account_type', 'label' => '账户类型', 'filterType' => 'searchable-enum'], + ['column' => 'account_status', 'label' => '账户状态', 'filterType' => 'searchable-enum'], + ['column' => 'account_no', 'label' => '账号', 'filterType' => 'searchable-enum'], + ['column' => 'bank_name', 'label' => '开户行', 'filterType' => 'searchable-enum'], + ['column' => 'bank_city_branch', 'label' => '开户城市/网点', 'filterType' => 'searchable-enum'], + ['column' => 'account_should_keep', 'label' => '账户是否保留', 'filterType' => 'searchable-enum'], + ['column' => 'handling_method', 'label' => '办理方式', 'filterType' => 'searchable-enum'], + ['column' => 'owner_name', 'label' => '责任人员', 'filterType' => 'searchable-enum'], + ['column' => 'started_at', 'label' => '开始时间', 'filterType' => 'date', 'showSort' => true], + ['column' => 'completed_at', 'label' => '完成时间', 'filterType' => 'date', 'showSort' => true], + ['column' => 'current_progress', 'label' => '当前进度', 'filterType' => 'searchable-enum'], + ]; @endphp @@ -42,12 +58,53 @@ .keep-task-table td:last-child { border-right:0; } .keep-task-table tbody tr:last-child td { border-bottom:0; } .keep-task-table tbody tr:hover td { background:#fcfaf4; } - .keep-task-sort { display:inline-flex; align-items:center; justify-content:center; gap:.2rem; color:inherit; text-decoration:none; } - .keep-task-sort:hover { color:var(--vip-content-accent-dark, #856632); } - .keep-task-sort .material-icons-outlined { font-size:.9rem; } + .keep-task-table thead th:has(details[open]) { z-index:20; } + .ledger-header-menu { position:relative; display:flex; width:100%; min-width:0; align-items:center; gap:.18rem; } + .keep-task-table th .ledger-header-menu { justify-content:center; } + .ledger-header-label { min-width:0; overflow:hidden; text-overflow:ellipsis; } + .ledger-header-menu > details { position:relative; flex:0 0 auto; } + .ledger-header-menu summary { display:inline-flex; width:1rem; height:1rem; align-items:center; justify-content:center; border-radius:.2rem; color:var(--vip-content-muted, #595959); cursor:pointer; list-style:none; } + .ledger-header-menu summary::-webkit-details-marker { display:none; } + .ledger-header-menu summary:hover, + .ledger-header-menu summary:focus-visible { color:var(--vip-content-accent-dark, #856632); outline:none; box-shadow:0 0 0 2px rgba(133,102,50,.16); } + .ledger-header-sort-icon { width:1rem; height:1rem; font-size:1rem; line-height:1; } + .ledger-header-cell.is-sorted .ledger-header-sort-icon, + .ledger-header-cell.is-filtered .ledger-header-sort-icon { color:var(--vip-content-accent-dark, #856632); } + .ledger-header-menu__panel { position:absolute; top:calc(100% + .38rem); left:0; z-index:24; display:grid; width:14rem; gap:.55rem; padding:.55rem; border:1px solid var(--vip-border, #D8D2C7); border-radius:.45rem; background:#fff; box-shadow:0 4px 8px rgba(23,23,23,.10); color:var(--vip-content-ink, #171717); font-weight:400; text-align:left; white-space:normal; } + .ledger-header-menu__panel--end { left:auto; right:0; } + .ledger-header-filter { display:grid; gap:.4rem; } + .ledger-header-filter__field { display:grid; gap:.25rem; color:var(--vip-content-muted, #595959); font-size:.68rem; line-height:1.35; } + .ledger-header-filter__field input, + .ledger-header-filter__field select { width:100%; min-width:0; height:1.9rem; padding:0 .45rem; border:1px solid var(--vip-border, #D8D2C7); border-radius:.35rem; background:#fff; color:var(--vip-content-ink, #171717); font:inherit; font-size:.7rem; } + .ledger-header-filter__field input:focus, + .ledger-header-filter__field select:focus { border-color:var(--vip-content-accent-dark, #856632); outline:none; box-shadow:0 0 0 2px rgba(133,102,50,.16); } + .ledger-header-filter__actions, + .ledger-header-sort { display:flex; align-items:center; gap:.35rem; } + .ledger-header-filter__actions button, + .ledger-header-filter__actions a, + .ledger-header-sort a { display:inline-flex; min-height:1.7rem; align-items:center; justify-content:center; padding:0 .48rem; border:1px solid var(--vip-border, #D8D2C7); border-radius:.3rem; background:#fff; color:var(--vip-content-accent-dark, #856632); font:inherit; font-size:.68rem; font-weight:600; text-decoration:none; cursor:pointer; } + .ledger-header-filter__actions button { border-color:var(--vip-content-accent-dark, #856632); background:var(--vip-content-accent-dark, #856632); color:#fff; } + .ledger-header-filter__actions button:hover, + .ledger-header-filter__actions a:hover, + .ledger-header-filter__actions a:focus-visible, + .ledger-header-sort a:hover, + .ledger-header-sort a:focus-visible { border-color:var(--vip-content-accent-dark, #856632); background:var(--vip-content-accent-soft, #F7F0DE); outline:none; } + .ledger-header-filter__actions button:hover { background:#6A5129; } + .ledger-header-sort { padding-top:.45rem; border-top:1px solid #e8e3da; } + .ledger-header-sort > span { margin-right:auto; color:var(--vip-content-muted, #595959); font-size:.68rem; } + .ledger-header-sort a[aria-current="true"] { border-color:var(--vip-content-accent-dark, #856632); background:var(--vip-content-accent-soft, #F7F0DE); } .keep-task-input { width:100%; min-width:0; height:1.75rem; padding:0 .42rem; border:1px solid var(--vip-border, #D8D2C7); border-radius:.35rem; background:#fff; color:var(--vip-content-ink, #171717); font:inherit; } .keep-task-input:focus { border-color:var(--vip-content-accent-dark, #856632); outline:none; box-shadow:0 0 0 3px rgba(133,102,50,.14); } .keep-task-input:disabled { background:#f6f4ef; color:var(--vip-content-muted, #595959); cursor:not-allowed; } + .keep-task-date-control { position:relative; display:flex; align-items:center; min-width:0; } + .keep-task-date-input { padding:0 1.55rem 0 .3rem; text-align:center; } + .keep-task-date-input::-webkit-calendar-picker-indicator { opacity:.72; } + .keep-task-date-trigger { position:absolute; right:.16rem; display:inline-grid; place-items:center; width:1.35rem; height:1.5rem; padding:0; border:0; border-radius:.25rem; background:transparent; color:var(--vip-content-accent-dark, #856632); cursor:pointer; } + .keep-task-date-trigger:hover { background:var(--vip-content-accent-soft, #F7F0DE); } + .keep-task-date-trigger:disabled { color:var(--vip-content-muted, #595959); cursor:not-allowed; } + .keep-task-date-trigger .material-icons-outlined { font-size:1rem; } + .keep-task-date-control.is-empty .keep-task-date-input { position:absolute; inset:0; width:100%; height:100%; opacity:0; pointer-events:none; } + .keep-task-date-control.is-empty .keep-task-date-trigger { position:static; margin:auto; } .keep-task-progress { display:flex; align-items:center; gap:.3rem; min-width:0; } .keep-task-save { display:inline-grid; flex:0 0 auto; place-items:center; width:1.75rem; height:1.75rem; padding:0; border:1px solid var(--vip-content-accent-dark, #856632); border-radius:.35rem; background:var(--vip-content-accent-dark, #856632); color:#fff; cursor:pointer; } .keep-task-save:hover { border-color:#6A5129; background:#6A5129; } @@ -116,6 +173,10 @@ @endif + @if (request('keep_filter_column') && request('keep_filter_value')) + + + @endif
- @php - $sortQuery = request()->query(); - unset($sortQuery['page']); - $sortUrl = static fn (string $field): string => route( - 'business.financial-ledger.unretained-accounts', - array_merge($sortQuery, [ - 'keep_sort' => $field, - 'keep_direction' => $sortField === $field && $sortDirection === 'asc' ? 'desc' : 'asc', - ]), - ); - @endphp -

拖动表头右侧边界可调整列宽,双击边界恢复默认

- - - - - - - - - - - - - + @foreach ($keepHeaderColumns as $header) + @include('business.pages.financial-ledger.partials.table-header', [ + 'tabKey' => 'keep', + 'column' => $header['column'], + 'label' => $header['label'], + 'filterType' => $header['filterType'], + 'showSort' => $header['showSort'] ?? false, + 'includeTabField' => false, + 'keepColumnKey' => $header['column'], + 'pageParameter' => 'page', + 'options' => $keepHeaderOptions[$header['column']] ?? [], + 'preserve' => $keepHeaderPreserve, + ]) + @endforeach @@ -233,6 +273,7 @@ {{ $row->company_name ?: '未填写' }} + @@ -247,9 +288,30 @@ @endforeach - - - + + + @empty - + @endforelse
公司名称账户简称账户类型账户状态账号开户行开户城市/网点账户是否保留办理方式责任人员 - - 开始时间 - - - - - 完成时间 - - - 当前进度
{{ $row->account_short ?: '未填写' }}{{ $row->legal_representative ?: '未填写' }} {{ $row->account_type ?: '未填写' }} {{ $accountStatusOptions[$row->account_status] ?? '正常' }} {{ $row->account_no ?: '未填写' }} + + +
+ + +
+
+
+ + +
+
当前没有需要处理的不保留账户
当前没有需要处理的不保留账户
@@ -295,12 +357,34 @@ @endif + +