This commit is contained in:
weiz 2024-01-30 16:41:25 +08:00
parent 82886d2ba0
commit d614947894
2 changed files with 58 additions and 4 deletions

View File

@ -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" => "创建日期",
];
}
}

View File

@ -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" => "备注",
];
}
}