From d2b3dc3f609e740577c317992e02af0c7e7f2312 Mon Sep 17 00:00:00 2001 From: shanshi <3316401569@qq.com> Date: Fri, 13 Nov 2026 18:56:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=94=AF=E4=BB=98=E5=AE=9D=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E4=BB=85=E4=BF=9D=E7=95=99=E5=AF=BC=E5=85=A5=E8=A1=A8?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=20(#1166)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 支付宝基本信息表仅展示导入表对应字段。 --- .../View/FinanceLedgerPageData.php | 4 + .../pages/financial-ledger/ledger.blade.php | 78 +++++++++++++------ .../FinanceLedgerAlipayBasicImportTest.php | 28 ++++++- .../FinanceLedgerHeaderControlsTest.php | 2 +- 4 files changed, 85 insertions(+), 27 deletions(-) diff --git a/modules/EcommerceFinance/View/FinanceLedgerPageData.php b/modules/EcommerceFinance/View/FinanceLedgerPageData.php index 8d197c1f..ce52cdf8 100644 --- a/modules/EcommerceFinance/View/FinanceLedgerPageData.php +++ b/modules/EcommerceFinance/View/FinanceLedgerPageData.php @@ -222,6 +222,10 @@ class FinanceLedgerPageData 'a.account_no', 'a.bank_name', 'a.bound_alipay', + 'a.alipay_merchant_no', + 'a.alipay_account_kind', + 'a.alipay_store_name', + 'a.remark', 'a.owner', ] as $column) { $builder->orWhere($column, 'like', '%' . $keyword . '%'); diff --git a/resources/views/business/pages/financial-ledger/ledger.blade.php b/resources/views/business/pages/financial-ledger/ledger.blade.php index 1b014fc3..e9f0881f 100644 --- a/resources/views/business/pages/financial-ledger/ledger.blade.php +++ b/resources/views/business/pages/financial-ledger/ledger.blade.php @@ -294,21 +294,18 @@ ]; } if ($standaloneAccountView === 'non_store') { - array_splice($ledgerTableHeaders['accounts'], 2, 0, [ + $ledgerTableHeaders['accounts'] = [ + ['company_name', '公司名称', 'text'], + ['account_short', '账户简称', 'text'], ['legal_representative', '法人', 'text'], ['alipay_account_kind', '账户类型', 'text'], ['alipay_merchant_no', '商户号', 'text'], - ]); - $bankCityBranchIndex = array_search( - 'bank_city_branch', - array_column($ledgerTableHeaders['accounts'], 0), - true, - ); - if ($bankCityBranchIndex !== false) { - array_splice($ledgerTableHeaders['accounts'], $bankCityBranchIndex + 1, 0, [ - ['alipay_store_name', '店铺', 'text'], - ]); - } + ['account_no', '支付宝账号', 'text'], + ['account_status', '账户状态', 'enum', ['options' => $accountStatusOptions, 'headerClass' => 'ledger-status-column']], + ['account_should_keep', '是否保留', 'enum', ['options' => $optionMap($accountKeepOptions), 'headerClass' => 'ledger-keep-column']], + ['alipay_store_name', '店铺', 'text'], + ['remark', '备注', 'text'], + ]; } $accountTableColumnCount = count($ledgerTableHeaders['accounts']); @endphp @@ -819,13 +816,15 @@ @endif -
+
@if ($standaloneAccountView !== 'wangshang')
-
-
-
+ @if ($standaloneAccountView !== 'non_store') +
+
+
+ @endif @endif @if ($activeAccountFilterCount > 0) 筛选中{{ $activeAccountFilterCount }} @@ -841,7 +840,7 @@ 新增公司/账户 @endif -
+