This commit is contained in:
weiz 2024-01-30 14:03:55 +08:00
parent 87b4600901
commit b0ec7e2ae9
2 changed files with 63 additions and 2 deletions

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\bid\BidDocumentExamination;
use app\common\model\bid\BidDocumentExaminationDetail;
use app\common\lists\ListsSearchInterface;
@ -29,7 +30,7 @@ use app\common\model\project\Project;
* Class BidDocumentExaminationDetailLists
* @package app\adminapi\listsbid
*/
class BidDocumentExaminationDetailLists extends BaseAdminDataLists implements ListsSearchInterface
class BidDocumentExaminationDetailLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface
{
@ -109,5 +110,36 @@ class BidDocumentExaminationDetailLists extends BaseAdminDataLists implements Li
}
return BidDocumentExaminationDetail::where($this->searchWhere)->where($where)->count();
}
public function setFileName(): string
{
return '报价明细列表';
}
/**
* @notes 导出字段
* @return string[]
* @author 段誉
* @date 2022/11/24 16:17
*/
public function setExcelFields(): array
{
return [
'id' => 'id',
'bid_document_examination_code' => '标书审查编号',
'custom_name' => '客户名称',
'project_name' => '项目名称',
'project_code' => '项目编码',
'product_name' => '产品名称',
'product_specs' => '型号规格',
'product_unit' => '单位',
'num' => '数量',
'cost_price' => '成本单价',
'cost_amount' => '金额',
'points' => '点数',
'sale_price' => '报价单价',
'sale_amount' => '报价金额',
];
}
}

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\bid\BidBiddingDecision;
use app\common\model\bid\BidBuyBiddingDocument;
use app\common\model\bid\BidDocumentExamination;
@ -30,7 +31,7 @@ use app\common\model\project\Project;
* Class BidResultLists
* @package app\adminapi\listsbid
*/
class BidResultLists extends BaseAdminDataLists implements ListsSearchInterface
class BidResultLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface
{
@ -111,5 +112,33 @@ class BidResultLists extends BaseAdminDataLists implements ListsSearchInterface
}
return BidResult::where($this->searchWhere)->where($where)->count();
}
public function setFileName(): string
{
return '投标结果列表';
}
/**
* @notes 导出字段
* @return string[]
* @author 段誉
* @date 2022/11/24 16:17
*/
public function setExcelFields(): array
{
return [
'id' => 'id',
'bid_document_examination_code' => '标书审查编号',
'custom_name' => '客户名称',
'project_name' => '项目名称',
'project_code' => '项目编码',
'bidding_time' => '投标时间',
'bid_opening_date' => '开标日期',
'is_successful_text' => '是否中标',
'bidder_company' => '中标单位',
'bidder_amount' => '中标金额',
];
}
}