diff --git a/app/adminapi/lists/ApprovalIssuanceAchievementDocumentsLists.php b/app/adminapi/lists/ApprovalIssuanceAchievementDocumentsLists.php index 2bc9179b2..0e4dde767 100644 --- a/app/adminapi/lists/ApprovalIssuanceAchievementDocumentsLists.php +++ b/app/adminapi/lists/ApprovalIssuanceAchievementDocumentsLists.php @@ -16,6 +16,7 @@ namespace app\adminapi\lists; use app\adminapi\lists\BaseAdminDataLists; +use app\common\lists\ListsExcelInterface; use app\common\model\ApprovalIssuanceAchievementDocuments; use app\common\lists\ListsSearchInterface; @@ -25,7 +26,7 @@ use app\common\lists\ListsSearchInterface; * Class ApprovalIssuanceAchievementDocumentsLists * @package app\adminapi\lists */ -class ApprovalIssuanceAchievementDocumentsLists extends BaseAdminDataLists implements ListsSearchInterface +class ApprovalIssuanceAchievementDocumentsLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface { @@ -75,4 +76,29 @@ class ApprovalIssuanceAchievementDocumentsLists extends BaseAdminDataLists imple return ApprovalIssuanceAchievementDocuments::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', + 'num' => '单据编号', + 'project_id' => '项目id', + 'task' => '任务名称', + 'processes' => '工序', + 'number' => '资料份数', + 'apptime' => '登记日期', + 'person' => '登记人', + 'tips' => '备注', + ]; + } } \ No newline at end of file diff --git a/app/adminapi/lists/DataReceptionLists.php b/app/adminapi/lists/DataReceptionLists.php index 9b3e053dc..7d4c6ab1e 100644 --- a/app/adminapi/lists/DataReceptionLists.php +++ b/app/adminapi/lists/DataReceptionLists.php @@ -16,6 +16,7 @@ namespace app\adminapi\lists; use app\adminapi\lists\BaseAdminDataLists; +use app\common\lists\ListsExcelInterface; use app\common\model\DataReception; use app\common\lists\ListsSearchInterface; @@ -25,7 +26,7 @@ use app\common\lists\ListsSearchInterface; * Class DataReceptionLists * @package app\adminapi\lists */ -class DataReceptionLists extends BaseAdminDataLists implements ListsSearchInterface +class DataReceptionLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface { @@ -75,4 +76,28 @@ class DataReceptionLists extends BaseAdminDataLists implements ListsSearchInterf return DataReception::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', + 'num' => '单据编号', + 'project_id' => '项目id', + 'apptime' => '登记日期', + 'person' => '登记人', + 'number' => '资料份数', + 'position' => '存放位置', + 'tips' => '说明', + ]; + } } \ No newline at end of file diff --git a/app/adminapi/lists/ProjectCommissionLists.php b/app/adminapi/lists/ProjectCommissionLists.php index 55c741a92..11fab85fd 100644 --- a/app/adminapi/lists/ProjectCommissionLists.php +++ b/app/adminapi/lists/ProjectCommissionLists.php @@ -16,6 +16,7 @@ namespace app\adminapi\lists; use app\adminapi\lists\BaseAdminDataLists; +use app\common\lists\ListsExcelInterface; use app\common\model\ProjectCommission; use app\common\lists\ListsSearchInterface; use app\common\model\ProjectCommissionDetail; @@ -26,7 +27,7 @@ use app\common\model\ProjectCommissionDetail; * Class ProjectCommissionLists * @package app\adminapi\lists */ -class ProjectCommissionLists extends BaseAdminDataLists implements ListsSearchInterface +class ProjectCommissionLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface { @@ -81,4 +82,34 @@ class ProjectCommissionLists extends BaseAdminDataLists implements ListsSearchIn return ProjectCommission::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', + 'num' => '单据编号', + 'project_id' => '项目id', + 'affcontract' => '关联合同', + 'industry' => '行业', + 'hk' => '项目回款总额', + 'rate' => '提成比例(%)', + 'ticheng' => '应提成总金额', + 'paid_amount' => '已支付总额', + 'bczfze' => '本次支付总额', + 'djr' => '登记人', + 'apptime' => '登记日期', + 'remark' => '备注', + ]; + } + } \ No newline at end of file diff --git a/app/adminapi/lists/TaskHandlingThreeLevelReviewLists.php b/app/adminapi/lists/TaskHandlingThreeLevelReviewLists.php index d042ad117..f7e8fa731 100644 --- a/app/adminapi/lists/TaskHandlingThreeLevelReviewLists.php +++ b/app/adminapi/lists/TaskHandlingThreeLevelReviewLists.php @@ -16,6 +16,7 @@ namespace app\adminapi\lists; use app\adminapi\lists\BaseAdminDataLists; +use app\common\lists\ListsExcelInterface; use app\common\model\TaskHandlingThreeLevelReview; use app\common\lists\ListsSearchInterface; @@ -25,7 +26,7 @@ use app\common\lists\ListsSearchInterface; * Class TaskHandlingThreeLevelReviewLists * @package app\adminapi\lists */ -class TaskHandlingThreeLevelReviewLists extends BaseAdminDataLists implements ListsSearchInterface +class TaskHandlingThreeLevelReviewLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface { @@ -74,4 +75,53 @@ class TaskHandlingThreeLevelReviewLists extends BaseAdminDataLists implements Li return TaskHandlingThreeLevelReview::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', + 'num' => '单据编号', + 'project_id' => '项目id', + 'task' => '任务名称', + 'processes' => '工序', + 'rtype' => '任务类型', + 'zType' => '专业类型', + 'engineer' => '工程师', + 'head' => '项目负责人', + 'examine' => '审核流程', + 'one' => '一级审核人', + 'two' => '二级审核人', + 'three' => '三级审核人', + 'apptime' => '登记日期', + 'level' => '任务级次', + 'area' => '建筑面积', + 'type' => '建筑结构类型', + 'use' => '建筑用途', + 'construction' => '施工单位', + 'ask' => '编制要求', + 'according' => '造价依据', + 'clbc' => '材料补差', + 'ssje' => '送审金额', + 'gcshd' => '工程师核定价', + 'hzhj' => '核增/核减金额', + 'rg' => '人工单价', + 'xmhd' => '项目负责人核定价', + 'bmhd' => '部门负责人核定价', + 'shbhd' => '审核部核定价', + 'kaigong' => '开工日期', + 'jungong' => '竣工日期', + 'bz' => '备注', + ]; + } + } \ No newline at end of file diff --git a/app/adminapi/lists/cost_project/CostApprovedProjectLists.php b/app/adminapi/lists/cost_project/CostApprovedProjectLists.php index 6df192cdd..5cf6de07d 100644 --- a/app/adminapi/lists/cost_project/CostApprovedProjectLists.php +++ b/app/adminapi/lists/cost_project/CostApprovedProjectLists.php @@ -16,6 +16,7 @@ namespace app\adminapi\lists\cost_project; use app\adminapi\lists\BaseAdminDataLists; +use app\common\lists\ListsExcelInterface; use app\common\model\cost_project\CostApprovedProject; use app\common\lists\ListsSearchInterface; @@ -25,7 +26,7 @@ use app\common\lists\ListsSearchInterface; * Class CostApprovedProjectLists * @package app\adminapi\listscost_project */ -class CostApprovedProjectLists extends BaseAdminDataLists implements ListsSearchInterface +class CostApprovedProjectLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface { @@ -56,7 +57,6 @@ class CostApprovedProjectLists extends BaseAdminDataLists implements ListsSearch public function lists(): array { return CostApprovedProject::where($this->searchWhere) - ->field(['id', 'contract_name', 'contract_num', 'part_a', 'part_b', 'business_nature', 'industry_nature', 'fund_sources', 'const_area', 'project_money', 'start_date', 'end_date', 'dept', 'regulators', 'project_director']) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select()->each(function($data){ @@ -80,4 +80,59 @@ class CostApprovedProjectLists extends BaseAdminDataLists implements ListsSearch return CostApprovedProject::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', + 'contract_name' => '合同名称', + 'contract_num' => '合同编号', + 'part_a' => '甲方签约单位', + 'part_a_contract' => '甲方联系人', + 'part_a_address' => '业主地址', + 'part_b' => '乙方签约', + 'part_b_signatory' => '乙方签约人', + 'business_nature' => '业务性质', + 'fund_sources' => '资金来源', + 'const_area' => '建设区域', + 'project_money' => '工程总投资', + 'project_scale' => '工程规模及概况', + 'money' => '签订金额(元)', + 'rate' => '合同签订费率(%)', + 'contract_service' => '合同服务工期', + 'start_date' => '合同计划开始日期', + 'end_date' => '合同计划结束日期', + 'performance' => '合同履约金(元)', + 'due_time' => '履约金到期时间', + 'payment' => '合同付款方式', + 'content' => '合同主要内容', + 'founder' => '创建人', + 'create_date' => '创建日期', + 'dept' => '签订部门', + 'signing_person' => '签订负责人', + 'regulators' => '监管部门', + 'project_director' => '项目总监/经理', + 'way' => '实施方式', + 'seal_name' => '盖章名称', + 'limit' => '是否限制', + 'limit_num' => '限制次数', + 'file_type' => '文件类', + 'seal_num' => '盖章份数', + 'sealer' => '盖章人', + 'plance_seal' => '骑缝盖章', + 'send_date' => '发出日期', + 'number' => '邮寄编号', + ]; + } + } \ No newline at end of file diff --git a/app/adminapi/lists/cost_project/CostProjectLists.php b/app/adminapi/lists/cost_project/CostProjectLists.php index 376b9a4b0..e5c53050f 100644 --- a/app/adminapi/lists/cost_project/CostProjectLists.php +++ b/app/adminapi/lists/cost_project/CostProjectLists.php @@ -16,6 +16,7 @@ namespace app\adminapi\lists\cost_project; use app\adminapi\lists\BaseAdminDataLists; +use app\common\lists\ListsExcelInterface; use app\common\model\cost_project\CostProject; use app\common\lists\ListsSearchInterface; @@ -25,7 +26,7 @@ use app\common\lists\ListsSearchInterface; * Class CostProjectLists * @package app\adminapi\listscost_project */ -class CostProjectLists extends BaseAdminDataLists implements ListsSearchInterface +class CostProjectLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface { @@ -69,7 +70,6 @@ class CostProjectLists extends BaseAdminDataLists implements ListsSearchInterfac ->toArray(); } return CostProject::where($this->searchWhere) - ->field(['id', 'project_num', 'project_name', 'contract_id', 'types', 'industry', 'province', 'city', 'address', 'starting', 'endtime', 'jhgq', 'depar', 'principal', 'person', 'invest', 'budget', 'cost', 'approval', 'aunit', 'Acontact', 'acontactnum', 'date', 'generalize', 'note', 'remark', 'annex']) ->limit($this->limitOffset, $this->limitLength) ->with(['contract']) ->order(['id' => 'desc']) @@ -95,4 +95,47 @@ class CostProjectLists extends BaseAdminDataLists implements ListsSearchInterfac return CostProject::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', + 'project_num' => '项目编号', + 'project_name' => '项目名称', + 'contract_id' => '关联合同', + 'types' => '咨询类型', + 'industry' => '行业', + 'province' => '所在省份', + 'city' => '所在市区', + 'address' => '具体地址', + 'starting' => '计划开始日期', + 'endtime' => '计划结束日期', + 'jhgq' => '计划工期(天)', + 'org_id' => '组织id', + 'depar' => '项目所属部门', + 'principal' => '项目负责人', + 'person' => '项目相关人员', + 'invest' => '项目总投资(万元)', + 'budget' => '预算造价(万元)', + 'cost' => '送审造价(万元)', + 'approval' => '审定造价(万元)', + 'aunit' => '委托单位', + 'Acontact' => '委托方联系人', + 'acontactnum' => '联系电话', + 'generalize' => '登记日期', + 'note' => '项目规模及概括', + 'remark' => '注意事项' + ]; + } + } \ No newline at end of file diff --git a/app/adminapi/lists/project_process_management/ApplyWithSealLists.php b/app/adminapi/lists/project_process_management/ApplyWithSealLists.php index f3be7553f..c0338a21a 100644 --- a/app/adminapi/lists/project_process_management/ApplyWithSealLists.php +++ b/app/adminapi/lists/project_process_management/ApplyWithSealLists.php @@ -16,6 +16,7 @@ namespace app\adminapi\lists\project_process_management; use app\adminapi\lists\BaseAdminDataLists; +use app\common\lists\ListsExcelInterface; use app\common\model\project_process_management\ApplyWithSeal; use app\common\lists\ListsSearchInterface; @@ -25,7 +26,7 @@ use app\common\lists\ListsSearchInterface; * Class ApplyWithSealLists * @package app\adminapi\listsproject_process_management */ -class ApplyWithSealLists extends BaseAdminDataLists implements ListsSearchInterface +class ApplyWithSealLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface { @@ -74,4 +75,43 @@ class ApplyWithSealLists extends BaseAdminDataLists implements ListsSearchInterf return ApplyWithSeal::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', + 'num' => '单据编号', + 'project_id' => '项目id', + 'types' => '登记人', + 'filetype' => '登记人', + 'ridingseam' => '进度申报造价合计', + 'name' => '进度审核造价合计', + 'frequency' => '累计应付工程款合计', + 'limit' => '累计应付工程款合计', + 'org_id' => '累计应付工程款合计', + 'depar' => '累计应付工程款合计', + 'stampman' => '累计应付工程款合计', + 'content' => '累计应付工程款合计', + 'loan' => '累计应付工程款合计', + 'borrow' => '累计应付工程款合计', + 'returndate' => '累计应付工程款合计', + 'applicant' => '累计应付工程款合计', + 'date' => '累计应付工程款合计', + 'sjborrow' => '累计应付工程款合计', + 'sjborrower' => '累计应付工程款合计', + 'sjreturn' => '累计应付工程款合计', + 'returnee' => '累计应付工程款合计' + ]; + } + } \ No newline at end of file diff --git a/app/adminapi/lists/project_process_management/JianliProjectProgressReportLists.php b/app/adminapi/lists/project_process_management/JianliProjectProgressReportLists.php index 75a6705fb..9356ad704 100644 --- a/app/adminapi/lists/project_process_management/JianliProjectProgressReportLists.php +++ b/app/adminapi/lists/project_process_management/JianliProjectProgressReportLists.php @@ -16,6 +16,7 @@ namespace app\adminapi\lists\project_process_management; use app\adminapi\lists\BaseAdminDataLists; +use app\common\lists\ListsExcelInterface; use app\common\model\project_process_management\JianliProjectProgressReport; use app\common\lists\ListsSearchInterface; @@ -25,7 +26,7 @@ use app\common\lists\ListsSearchInterface; * Class JianliProjectProgressReportLists * @package app\adminapi\listsproject_process_management */ -class JianliProjectProgressReportLists extends BaseAdminDataLists implements ListsSearchInterface +class JianliProjectProgressReportLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface { @@ -74,4 +75,36 @@ class JianliProjectProgressReportLists extends BaseAdminDataLists implements Lis return JianliProjectProgressReport::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', + 'num' => '单据编号', + 'project_id' => '项目id', + 'bm_master' => '部门负责人', + 'wt_unit' => '委托单位', + 'xm_master' => '项目负责人', + 'start_date' => '实际开始日期', + 'end_date' => '实际结束日期', + 'duration' => '工期(天)', + 'working_hours' => '工时', + 'done_progress' => '累计已完成进度(%)', + 'bjd_progress' => '本阶段完成进度(%)', + 'djr' => '登记人', + 'apptime' => '登记时间', + 'jdms' => '形象进度描述' + ]; + } + } \ No newline at end of file diff --git a/app/adminapi/lists/project_process_management/ProjectChangeVisaLists.php b/app/adminapi/lists/project_process_management/ProjectChangeVisaLists.php index e06bb80f9..d0d761527 100644 --- a/app/adminapi/lists/project_process_management/ProjectChangeVisaLists.php +++ b/app/adminapi/lists/project_process_management/ProjectChangeVisaLists.php @@ -16,6 +16,7 @@ namespace app\adminapi\lists\project_process_management; use app\adminapi\lists\BaseAdminDataLists; +use app\common\lists\ListsExcelInterface; use app\common\model\project_process_management\ProjectChangeVisa; use app\common\lists\ListsSearchInterface; use app\common\model\project_process_management\ProjectChangeVisaContent; @@ -26,7 +27,7 @@ use app\common\model\project_process_management\ProjectChangeVisaContent; * Class ProjectChangeVisaLists * @package app\adminapi\listsproject_process_management */ -class ProjectChangeVisaLists extends BaseAdminDataLists implements ListsSearchInterface +class ProjectChangeVisaLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface { @@ -81,4 +82,26 @@ class ProjectChangeVisaLists extends BaseAdminDataLists implements ListsSearchIn return ProjectChangeVisa::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', + 'num' => '单据编号', + 'project_id' => '项目id', + 'djr' => '登记人', + 'apptime' => '登记日期', + ]; + } + } \ No newline at end of file diff --git a/app/adminapi/lists/project_process_management/ProjectProgressPaymentLists.php b/app/adminapi/lists/project_process_management/ProjectProgressPaymentLists.php index 924882a12..0feaeb6fd 100644 --- a/app/adminapi/lists/project_process_management/ProjectProgressPaymentLists.php +++ b/app/adminapi/lists/project_process_management/ProjectProgressPaymentLists.php @@ -16,6 +16,7 @@ namespace app\adminapi\lists\project_process_management; use app\adminapi\lists\BaseAdminDataLists; +use app\common\lists\ListsExcelInterface; use app\common\model\project_process_management\ProjectProgressPayment; use app\common\lists\ListsSearchInterface; use app\common\model\project_process_management\ProjectProgressPaymentDetail; @@ -26,7 +27,7 @@ use app\common\model\project_process_management\ProjectProgressPaymentDetail; * Class ProjectProgressPaymentLists * @package app\adminapi\listsproject_process_management */ -class ProjectProgressPaymentLists extends BaseAdminDataLists implements ListsSearchInterface +class ProjectProgressPaymentLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface { @@ -83,4 +84,28 @@ class ProjectProgressPaymentLists extends BaseAdminDataLists implements ListsSea return ProjectProgressPayment::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', + 'num' => '单据编号', + 'project_id' => '项目id', + 'djr' => '登记人', + 'djrq' => '登记人', + 'sbhj' => '进度申报造价合计', + 'shhj' => '进度审核造价合计', + 'ljhj' => '累计应付工程款合计' + ]; + } } \ No newline at end of file diff --git a/app/adminapi/lists/project_process_management/ProjectRectificationLists.php b/app/adminapi/lists/project_process_management/ProjectRectificationLists.php index 3a6bc99ad..872fbd21d 100644 --- a/app/adminapi/lists/project_process_management/ProjectRectificationLists.php +++ b/app/adminapi/lists/project_process_management/ProjectRectificationLists.php @@ -16,6 +16,7 @@ namespace app\adminapi\lists\project_process_management; use app\adminapi\lists\BaseAdminDataLists; +use app\common\lists\ListsExcelInterface; use app\common\model\project_process_management\ProjectRectification; use app\common\lists\ListsSearchInterface; @@ -25,7 +26,7 @@ use app\common\lists\ListsSearchInterface; * Class ProjectRectificationLists * @package app\adminapi\listsproject_process_management */ -class ProjectRectificationLists extends BaseAdminDataLists implements ListsSearchInterface +class ProjectRectificationLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface { @@ -75,4 +76,33 @@ class ProjectRectificationLists extends BaseAdminDataLists implements ListsSearc return ProjectRectification::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', + 'num' => '单据编号', + 'project_id' => '项目id', + 'wt_unit' => '委托单位', + 'jsdw' => '建设单位', + 'bmfz' => '部门负责人', + 'xmfz' => '项目负责人', + 'riqi' => '踏勘日期', + 'people' => '踏勘人员', + 'djr' => '登记人', + 'apptime' => '登记日期', + 'content' => '踏勘内容', + 'remark' => '核实结果', + ]; + } } \ No newline at end of file diff --git a/app/adminapi/lists/project_process_management/ProjectSurveySignatureLists.php b/app/adminapi/lists/project_process_management/ProjectSurveySignatureLists.php index 5baa7073f..33bf711e8 100644 --- a/app/adminapi/lists/project_process_management/ProjectSurveySignatureLists.php +++ b/app/adminapi/lists/project_process_management/ProjectSurveySignatureLists.php @@ -16,6 +16,7 @@ namespace app\adminapi\lists\project_process_management; use app\adminapi\lists\BaseAdminDataLists; +use app\common\lists\ListsExcelInterface; use app\common\model\project_process_management\ProjectSurveySignature; use app\common\lists\ListsSearchInterface; @@ -25,7 +26,7 @@ use app\common\lists\ListsSearchInterface; * Class ProjectSurveySignatureLists * @package app\adminapi\listsproject_process_management */ -class ProjectSurveySignatureLists extends BaseAdminDataLists implements ListsSearchInterface +class ProjectSurveySignatureLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface { @@ -75,4 +76,34 @@ class ProjectSurveySignatureLists extends BaseAdminDataLists implements ListsSea return ProjectSurveySignature::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', + 'num' => '单据编号', + 'project_id' => '项目id', + 'wt_unit' => '委托单位', + 'jsdw' => '建设单位', + 'bmfz' => '部门负责人', + 'xmfz' => '项目负责人', + 'riqi' => '踏勘日期', + 'people' => '踏勘人员', + 'djr' => '登记人', + 'apptime' => '登记日期', + 'content' => '踏勘内容', + 'remark' => '核实结果', + ]; + } + } \ No newline at end of file diff --git a/app/adminapi/lists/task/TaskAllocationLists.php b/app/adminapi/lists/task/TaskAllocationLists.php index c6672455d..069ae8067 100644 --- a/app/adminapi/lists/task/TaskAllocationLists.php +++ b/app/adminapi/lists/task/TaskAllocationLists.php @@ -16,6 +16,7 @@ namespace app\adminapi\lists\task; use app\adminapi\lists\BaseAdminDataLists; +use app\common\lists\ListsExcelInterface; use app\common\model\task\TaskAllocation; use app\common\lists\ListsSearchInterface; @@ -25,7 +26,7 @@ use app\common\lists\ListsSearchInterface; * Class TaskAllocationLists * @package app\adminapi\liststask */ -class TaskAllocationLists extends BaseAdminDataLists implements ListsSearchInterface +class TaskAllocationLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface { @@ -74,4 +75,25 @@ class TaskAllocationLists extends BaseAdminDataLists implements ListsSearchInter return TaskAllocation::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', + 'task_type_id' => '任务类别id', + 'cost_project_id' => '项目id', + 'num' => '单据编号', + 'apptime' => '登记日期', + ]; + } } \ No newline at end of file diff --git a/app/adminapi/lists/task/TaskTypeLists.php b/app/adminapi/lists/task/TaskTypeLists.php index 68a967603..3ce25d8a2 100644 --- a/app/adminapi/lists/task/TaskTypeLists.php +++ b/app/adminapi/lists/task/TaskTypeLists.php @@ -16,6 +16,7 @@ namespace app\adminapi\lists\task; use app\adminapi\lists\BaseAdminDataLists; +use app\common\lists\ListsExcelInterface; use app\common\model\task\TaskType; use app\common\lists\ListsSearchInterface; @@ -25,7 +26,7 @@ use app\common\lists\ListsSearchInterface; * Class TaskTypeLists * @package app\adminapi\liststask */ -class TaskTypeLists extends BaseAdminDataLists implements ListsSearchInterface +class TaskTypeLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface { @@ -62,7 +63,6 @@ class TaskTypeLists extends BaseAdminDataLists implements ListsSearchInterface if ($startTime && $endTime) { $query->whereBetweenTime('create_time', $startTime.' 00:00:00', $endTime.' 23:59:59'); }}) - ->field(['id', 'dataid', 'cost_project_id', 'num', 'name', 'superior_sort', 'level', 'remarks','create_time']) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select() @@ -80,5 +80,29 @@ class TaskTypeLists extends BaseAdminDataLists implements ListsSearchInterface { return TaskType::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', + 'cost_project_id' => '项目id', + 'num' => '任务编号', + 'name' => '任务名称', + 'superior_sort' => '上级类别', + 'level' => '任务级次', + 'remarks' => '备注' + ]; + } + } \ No newline at end of file