From 4c17b528529b9857f253a038703bcdbb062db4a8 Mon Sep 17 00:00:00 2001 From: weiz <736250432@qq.com> Date: Tue, 21 May 2024 15:26:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E9=A1=B5=E5=B1=95=E7=A4=BA=E7=BB=91=E5=AE=9A=E7=9A=84=E9=93=B6?= =?UTF-8?q?=E8=A1=8C=E5=8D=A1=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/logic/supplier/SupplierLogic.php | 5 +++++ app/common/model/merchant/MerchantBank.php | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/app/admin/logic/supplier/SupplierLogic.php b/app/admin/logic/supplier/SupplierLogic.php index 9a5e865..24e0c6f 100644 --- a/app/admin/logic/supplier/SupplierLogic.php +++ b/app/admin/logic/supplier/SupplierLogic.php @@ -5,6 +5,7 @@ namespace app\admin\logic\supplier; use app\admin\logic\user\UserLogic; use app\admin\service\JgPushService; use app\common\model\goods\GoodsLabel; +use app\common\model\merchant\MerchantBank; use app\common\model\supplier\Supplier; use app\common\logic\BaseLogic; use think\facade\Db; @@ -238,6 +239,10 @@ class SupplierLogic extends BaseLogic }else{ $data['sys_labels_text'] = ''; } + $data['supplier_banks'] = MerchantBank::where('supplier_id',$params['id'])->select()->each(function($item){ + $item['is_check_text'] = $item->is_check_text; + $item['is_own_text'] = $item->is_own_text; + })->toArray(); return $data->toArray(); } diff --git a/app/common/model/merchant/MerchantBank.php b/app/common/model/merchant/MerchantBank.php index ef43d8a..b83c17f 100644 --- a/app/common/model/merchant/MerchantBank.php +++ b/app/common/model/merchant/MerchantBank.php @@ -22,4 +22,9 @@ class MerchantBank extends BaseModel $arr = [0=>'待审核', 1=>'审核通过', 2=>'审核未通过']; return $arr[$data['is_check']]; } + + public function getIsOwnTextAttr($value,$data){ + $arr = [0=>'个人账户', 1=>'对公账户']; + return $arr[$data['is_own']]; + } } \ No newline at end of file