@php $tab = $courierTab ?? 'express'; $filters = $courierFilters ?? []; $rows = $courierRows ?? null; $sync = $courierSyncStatus ?? ['code' => 'unavailable', 'lag_minutes' => null]; $state = $courierState ?? null; $statusLabels = [ 'healthy' => '同步正常', 'delayed' => '同步延迟', 'syncing' => '增量同步中', 'reconciling' => '全量校准中', 'initializing' => '首次同步中', 'initial_failed' => '首次同步失败', 'failed' => '同步失败', 'pending' => '等待首次同步', 'unavailable' => '镜像未建立', ]; $statusClass = in_array($sync['code'] ?? '', ['healthy'], true) ? 'is-success' : (in_array($sync['code'] ?? '', ['failed', 'initial_failed', 'unavailable'], true) ? 'is-danger' : 'is-warning'); $date = static function ($value): string { if ($value === null || $value === '') { return '-'; } try { return \Illuminate\Support\Carbon::parse((string) $value)->format('Y-m-d'); } catch (\Throwable) { return (string) $value; } }; $datetime = static function ($value): string { if ($value === null || $value === '') { return '-'; } try { return \Illuminate\Support\Carbon::parse((string) $value)->format('Y-m-d H:i'); } catch (\Throwable) { return (string) $value; } }; $bool = static function ($value): string { return in_array(strtolower((string) $value), ['1', 'true', 'yes', 'y'], true) || $value === true ? '是' : '否'; }; $tabUrl = static function (string $targetTab) use ($filters): string { return route('business.pages.show', array_merge( ['section' => 'courier-payables', 'page' => 'courier-information', 'courier_tab' => $targetTab], array_filter($filters, static fn ($value) => $value !== '' && $value !== null), )); }; $displayRows = $courierDisplayRows ?? []; $detail = $courierDetail ?? null; $selectedCode = (string) ($detail['code'] ?? ''); $selectedRow = $detail['row'] ?? null; $selectUrl = static function (string $code, array $extra = []) use ($filters): string { $page = (int) request('page', 1); return route('business.pages.show', array_merge( ['section' => 'courier-payables', 'page' => 'courier-information', 'courier_tab' => 'express'], array_filter($filters, static fn ($value) => $value !== '' && $value !== null), $page > 1 ? ['page' => $page] : [], ['selected' => $code], $extra, )); }; @endphp
| ID | 快递公司代码 | 快递公司名称 | 外部编码 | 杉橙快递代码 | 运费打款方式 | 是否启用 | 可达服务 | 是否快运 | 自动寻号 | 配货单号寻号 | 数量拆单 | 重量0寻号 | 停运时间 | 合同开始时间 | 合同结束时间 | 联系人 | 联系电话 | 自定义1 | 自定义2 | 自定义3 | 体积0寻号 | 手工单号 | 解密 | 电子签章经办人 | 最后修改 | 入驻单号 | 入驻状态 | ERP 开通 | 入驻主体 | 证照 | 生效报价 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $row->Id ?? '-' }} | @if ($code !== '') {{ $code }} @else 未填代码 @endif | {{ $row->expname ?? '-' }} | {{ $row->outcode ?? '-' }} | {{ $row->scexpcode ?? '-' }} | {{ $row->paymethod ?? '-' }} | {{ $enabled ? '是' : '否' }} | {{ $onlyOnboarding ? '-' : $bool($row->addvalidsgn ?? null) }} | {{ $bool($row->kuaiyunsgn ?? null) }} | {{ $onlyOnboarding ? '-' : $bool($row->autonosgn ?? null) }} | {{ $onlyOnboarding ? '-' : $bool($row->packnosgn ?? null) }} | {{ $onlyOnboarding ? '-' : $bool($row->skucountsplitsgn ?? null) }} | {{ $onlyOnboarding ? '-' : $bool($row->weight0sgn ?? null) }} | {{ $date($row->stopdate ?? null) }} | {{ $date($row->tradebtime ?? null) }} | {{ $date($row->tradeetime ?? null) }} | {{ $row->linker ?? '-' }} | {{ $row->linkmobile ?? '-' }} | {{ $row->undefined1 ?? '-' }} | {{ $row->undefined2 ?? '-' }} | {{ $row->undefined3 ?? '-' }} | {{ $onlyOnboarding ? '-' : $bool($row->volume0sgn ?? null) }} | {{ $onlyOnboarding ? '-' : $bool($row->handnosgn ?? null) }} | {{ $onlyOnboarding ? '-' : $bool($row->decryptsgn ?? null) }} | {{ $row->dzqzjbr ?? '-' }} | {{ $datetime($row->modified ?? null) }} | @include('business.pages.courier-payables.partials.courier-onboarding-cells', ['info' => $row->_info ?? null, 'platformName' => $row->expname ?? null, 'platformCode' => $row->expcode ?? null])||||||
| {{ $courierError ? '数据暂时不可用。' : '当前筛选条件下没有快递资料。' }} | |||||||||||||||||||||||||||||||