From d6149478945a1d9da97b507102493700db2b3c1d Mon Sep 17 00:00:00 2001 From: weiz <736250432@qq.com> Date: Tue, 30 Jan 2024 16:41:25 +0800 Subject: [PATCH] update --- .../lists/bid/BidSecurityApplyLists.php | 32 +++++++++++++++++-- .../lists/bid/BidSecurityRefundLists.php | 30 +++++++++++++++-- 2 files changed, 58 insertions(+), 4 deletions(-) diff --git a/app/adminapi/lists/bid/BidSecurityApplyLists.php b/app/adminapi/lists/bid/BidSecurityApplyLists.php index 620d56370..499334b74 100644 --- a/app/adminapi/lists/bid/BidSecurityApplyLists.php +++ b/app/adminapi/lists/bid/BidSecurityApplyLists.php @@ -16,20 +16,20 @@ namespace app\adminapi\lists\bid; use app\adminapi\lists\BaseAdminDataLists; +use app\common\lists\ListsExcelInterface; use app\common\model\bid\BidBiddingDecision; use app\common\model\bid\BidSecurityApply; use app\common\lists\ListsSearchInterface; use app\common\model\bid\BidSecurityRefund; use app\common\model\custom\Custom; use app\common\model\project\Project; -use think\facade\Db; /** * BidSecurityApply列表 * Class BidSecurityApplyLists * @package app\adminapi\listsbid */ -class BidSecurityApplyLists extends BaseAdminDataLists implements ListsSearchInterface +class BidSecurityApplyLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface { @@ -94,5 +94,33 @@ class BidSecurityApplyLists extends BaseAdminDataLists implements ListsSearchInt { return BidSecurityApply::where($this->searchWhere)->count(); } + + public function setFileName(): string + { + return '投标保证金列表'; + } + + /** + * @notes 导出字段 + * @return string[] + * @author 段誉 + * @date 2022/11/24 16:17 + */ + public function setExcelFields(): array + { + return [ + "id" => "id", + "security_apply_code" => "投标编号", + "custom_name" => "客户名称", + "project_name" => "项目名称", + "bidding_time" => "投标时间", + "refund_date" => "预计退还时间", + "margin_amount" => "保证金金额", + "applier" => "申请人", + "has_refund_amount" => "已退金额", + "not_refund_amount" => "未退金额", + "create_time" => "创建日期", + ]; + } } \ No newline at end of file diff --git a/app/adminapi/lists/bid/BidSecurityRefundLists.php b/app/adminapi/lists/bid/BidSecurityRefundLists.php index e2161b6a3..b12a58722 100644 --- a/app/adminapi/lists/bid/BidSecurityRefundLists.php +++ b/app/adminapi/lists/bid/BidSecurityRefundLists.php @@ -16,6 +16,7 @@ namespace app\adminapi\lists\bid; use app\adminapi\lists\BaseAdminDataLists; +use app\common\lists\ListsExcelInterface; use app\common\model\bank\BankAccount; use app\common\model\bid\BidBiddingDecision; use app\common\model\bid\BidSecurityApply; @@ -30,7 +31,7 @@ use think\facade\Db; * Class BidSecurityRefundLists * @package app\adminapi\listsbid */ -class BidSecurityRefundLists extends BaseAdminDataLists implements ListsSearchInterface +class BidSecurityRefundLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface { @@ -90,5 +91,30 @@ class BidSecurityRefundLists extends BaseAdminDataLists implements ListsSearchIn { return BidSecurityRefund::where($this->searchWhere)->count(); } - + + public function setFileName(): string + { + return '投标保证金退还列表'; + } + + /** + * @notes 导出字段 + * @return string[] + * @author 段誉 + * @date 2022/11/24 16:17 + */ + public function setExcelFields(): array + { + return [ + "id" => "id", + "bidding_decision_code" => "投标编号", + "custom_name" => "客户名称", + "project_code" => "项目编码", + "project_name" => "项目名称", + "bidding_time" => "投标时间", + "refund_amount" => "退款金额", + "refund_date" => "退款日期", + "remark" => "备注", + ]; + } } \ No newline at end of file