From 6644cc1c58e01c3f8fb60cd4fe5eeb8832b7c4a6 Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Thu, 23 Oct 2025 11:27:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E6=AC=BE=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/controller/FinPaymentApplyController.php | 2 +- app/common/controller/FinReceiptController.php | 10 ++++++++++ app/common/service/FinReceiptService.php | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/app/common/controller/FinPaymentApplyController.php b/app/common/controller/FinPaymentApplyController.php index e916df4..57c4b75 100644 --- a/app/common/controller/FinPaymentApplyController.php +++ b/app/common/controller/FinPaymentApplyController.php @@ -75,7 +75,7 @@ class FinPaymentApplyController extends BaseController * @param array $data * @return array */ - protected function showFormat($data) + public function showFormat($data) { if (isset($data['doc_user_id'])) //内勤 $data['doc_user_name'] = User::where('id', $data['doc_user_id'])->value('name')??''; diff --git a/app/common/controller/FinReceiptController.php b/app/common/controller/FinReceiptController.php index ddddfac..c558d44 100644 --- a/app/common/controller/FinReceiptController.php +++ b/app/common/controller/FinReceiptController.php @@ -3,8 +3,12 @@ namespace app\common\controller; use app\common\controller\BaseController; use app\common\model\Country; +use app\common\model\FinPaymentApply; +use app\common\model\FinPaymentStock; use app\common\model\SysAccount; use app\common\model\SysCurrency; +use app\common\model\SysDictItem; +use app\common\model\User; use app\common\service\OssService; use app\common\traits\crud\CrudControllerTrait; use app\common\service\FinReceiptService; @@ -81,6 +85,12 @@ class FinReceiptController extends BaseController } elseif (isset($data['fx_receipt_file'])) { $data['fx_receipt_file_full'] = ''; } + + if (!empty($data['payment_apply_id'])) { + $paymentApply = FinPaymentApply::where('id', $data['payment_apply_id'])->first()->toArray(); + $paymentApply = (new FinPaymentApplyController())->showFormat($paymentApply); + $data['payment_apply'] = $paymentApply; + } return $data; } } \ No newline at end of file diff --git a/app/common/service/FinReceiptService.php b/app/common/service/FinReceiptService.php index 2f77af5..155aecd 100644 --- a/app/common/service/FinReceiptService.php +++ b/app/common/service/FinReceiptService.php @@ -70,7 +70,7 @@ class FinReceiptService } // 关键字 - if (isset($p['$query']) && $p['keyword']) { + if (isset($p['keyword']) && $p['keyword']) { $k = '%' . $p['keyword'] . '%'; $config['orWhere'][] = ['remitter', 'like', $k]; }