This commit is contained in:
weiz 2024-01-30 17:34:03 +08:00
parent d614947894
commit baf26600ae
13 changed files with 382 additions and 14 deletions

View File

@ -16,6 +16,7 @@ namespace app\adminapi\lists\project;
use app\adminapi\lists\BaseAdminDataLists;
use app\common\lists\ListsExcelInterface;
use app\common\model\project\Project;
use app\common\model\project\ProjectCostBudget;
use app\common\model\project\ProjectCostBudgetDetail;
@ -28,7 +29,7 @@ use app\common\model\project\ProjectCostTempSet;
* Class ProjectCostBudgetDetailLists
* @package app\adminapi\listsproject
*/
class ProjectCostBudgetDetailLists extends BaseAdminDataLists implements ListsSearchInterface
class ProjectCostBudgetDetailLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface
{
@ -89,5 +90,32 @@ class ProjectCostBudgetDetailLists extends BaseAdminDataLists implements ListsSe
{
return ProjectCostBudgetDetail::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_name" => "项目名称",
"cost_budget_code" => "费用预算单号",
"first_level_subject" => "一级科目",
"second_level_subject" => "二级科目",
"third_level_subject" => "三级科目",
"is_travel_text" => "是否差旅科目",
"unit" => "单位",
"amount" => "预算金额",
"standard" => "编制标准",
];
}
}

View File

@ -16,6 +16,7 @@ namespace app\adminapi\lists\project;
use app\adminapi\lists\BaseAdminDataLists;
use app\common\lists\ListsExcelInterface;
use app\common\model\project\Project;
use app\common\model\project\ProjectCostBudget;
use app\common\lists\ListsSearchInterface;
@ -27,7 +28,7 @@ use app\common\model\project\ProjectCostBudgetDetail;
* Class ProjectCostBudgetLists
* @package app\adminapi\listsproject
*/
class ProjectCostBudgetLists extends BaseAdminDataLists implements ListsSearchInterface
class ProjectCostBudgetLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface
{
@ -83,5 +84,27 @@ class ProjectCostBudgetLists extends BaseAdminDataLists implements ListsSearchIn
{
return ProjectCostBudget::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_name" => "项目名称",
"cost_budget_code" => "费用预算单号",
"total_amount" => "金额",
"remark" => "备注",
];
}
}

View File

@ -16,6 +16,7 @@ namespace app\adminapi\lists\project;
use app\adminapi\lists\BaseAdminDataLists;
use app\common\lists\ListsExcelInterface;
use app\common\model\project\Project;
use app\common\model\project\ProjectEquipmentBudget;
use app\common\model\project\ProjectEquipmentBudgetDetail;
@ -27,7 +28,7 @@ use app\common\lists\ListsSearchInterface;
* Class ProjectEquipmentBudgetDetailLists
* @package app\adminapi\listsproject
*/
class ProjectEquipmentBudgetDetailLists extends BaseAdminDataLists implements ListsSearchInterface
class ProjectEquipmentBudgetDetailLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface
{
@ -83,5 +84,33 @@ class ProjectEquipmentBudgetDetailLists extends BaseAdminDataLists implements Li
{
return ProjectEquipmentBudgetDetail::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_name" => "项目名称",
"equipment_budget_code" => "机具预算单号",
"type" => "机具类别",
"name" => "机具名称",
"spec" => "规格型号",
"unit" => "单位",
"num" => "数量",
"price" => "单价",
"amount" => "金额",
"remark" => "备注",
];
}
}

View File

@ -16,6 +16,7 @@ namespace app\adminapi\lists\project;
use app\adminapi\lists\BaseAdminDataLists;
use app\common\lists\ListsExcelInterface;
use app\common\model\project\Project;
use app\common\model\project\ProjectEquipmentBudget;
use app\common\lists\ListsSearchInterface;
@ -27,7 +28,7 @@ use app\common\model\project\ProjectEquipmentBudgetDetail;
* Class ProjectEquipmentBudgetLists
* @package app\adminapi\listsproject
*/
class ProjectEquipmentBudgetLists extends BaseAdminDataLists implements ListsSearchInterface
class ProjectEquipmentBudgetLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface
{
@ -85,5 +86,27 @@ class ProjectEquipmentBudgetLists extends BaseAdminDataLists implements ListsSea
{
return ProjectEquipmentBudget::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_name" => "项目名称",
"equipment_budget_code" => "机具预算单号",
"total_amount" => "金额",
"remark" => "备注",
];
}
}

View File

@ -16,6 +16,7 @@ namespace app\adminapi\lists\project;
use app\adminapi\lists\BaseAdminDataLists;
use app\common\lists\ListsExcelInterface;
use app\common\model\project\Project;
use app\common\model\project\ProjectJobType;
use app\common\model\project\ProjectLaborBudget;
@ -28,7 +29,7 @@ use app\common\lists\ListsSearchInterface;
* Class ProjectLaborBudgetDetailLists
* @package app\adminapi\listsproject
*/
class ProjectLaborBudgetDetailLists extends BaseAdminDataLists implements ListsSearchInterface
class ProjectLaborBudgetDetailLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface
{
@ -85,5 +86,29 @@ class ProjectLaborBudgetDetailLists extends BaseAdminDataLists implements ListsS
{
return ProjectLaborBudgetDetail::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",
"job_type_name" => "工种名称",
"desc" => "人工说明",
"unit" => "单位",
"num" => "数量",
"price" => "单价",
"amount" => "金额",
"remark" => "备注",
];
}
}

View File

@ -16,6 +16,7 @@ namespace app\adminapi\lists\project;
use app\adminapi\lists\BaseAdminDataLists;
use app\common\lists\ListsExcelInterface;
use app\common\model\project\Project;
use app\common\model\project\ProjectLaborBudget;
use app\common\lists\ListsSearchInterface;
@ -27,7 +28,7 @@ use app\common\model\project\ProjectLaborBudgetDetail;
* Class ProjectLaborBudgetLists
* @package app\adminapi\listsproject
*/
class ProjectLaborBudgetLists extends BaseAdminDataLists implements ListsSearchInterface
class ProjectLaborBudgetLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface
{
@ -84,5 +85,29 @@ class ProjectLaborBudgetLists extends BaseAdminDataLists implements ListsSearchI
{
return ProjectLaborBudget::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",
"labor_budget_code" => "人工预算单号",
"project_name" => "项目名称",
"project_code" => "项目编码",
"total_num" => "数量",
"total_amount" => "金额",
"remark" => "备注",
];
}
}

View File

@ -16,6 +16,7 @@ namespace app\adminapi\lists\project;
use app\adminapi\lists\BaseAdminDataLists;
use app\common\lists\ListsExcelInterface;
use app\common\model\material\Material;
use app\common\model\material\MaterialClassify;
use app\common\model\material\MaterialPurchaseRequestDetail;
@ -30,7 +31,7 @@ use app\common\lists\ListsSearchInterface;
* Class ProjectMaterialBudgetDetailLists
* @package app\adminapi\listsproject
*/
class ProjectMaterialBudgetDetailLists extends BaseAdminDataLists implements ListsSearchInterface
class ProjectMaterialBudgetDetailLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface
{
@ -81,6 +82,7 @@ class ProjectMaterialBudgetDetailLists extends BaseAdminDataLists implements Lis
$data['material_brand'] = $material['brand'];
$data['material_parameter_description'] = $material['parameter_description'];
$data['material_unit'] = $material['unit'];
$data['budget_type'] = $data->budget_type_text;
//申购数量
$data['apply_num'] = MaterialPurchaseRequestDetail::where('project_material_budget_detail_id',$data['id'])->sum('num');;
//剩余预算数量
@ -101,5 +103,42 @@ class ProjectMaterialBudgetDetailLists extends BaseAdminDataLists implements Lis
{
return ProjectMaterialBudgetDetail::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",
"material_budget_code" => "预算单号",
"project_name" => "项目名称",
"project_code" => "项目编码",
"budget_type" => "类型",
"material_first_level" => "材料大类",
"material_second_level" => "材料中类",
"material_three_level" => "材料小类",
"material_name" => "材料名称",
"material_code" => "材料编码",
"material_specs" => "规格型号",
"material_brand" => "品牌",
"material_parameter_description" => "参数说明",
"material_unit" => "单位",
"apply_num" => "申请数量",
"num" => "预算数量",
"residual_num" => "剩余预算数量",
"price" => "单价",
"amount" => "金额",
"remark" => "备注",
];
}
}

View File

@ -16,6 +16,7 @@ namespace app\adminapi\lists\project;
use app\adminapi\lists\BaseAdminDataLists;
use app\common\lists\ListsExcelInterface;
use app\common\model\material\MaterialPurchaseRequestDetail;
use app\common\model\project\Project;
use app\common\model\project\ProjectMaterialBudget;
@ -28,7 +29,7 @@ use app\common\model\project\ProjectMaterialBudgetDetail;
* Class ProjectMaterialBudgetLists
* @package app\adminapi\listsproject
*/
class ProjectMaterialBudgetLists extends BaseAdminDataLists implements ListsSearchInterface
class ProjectMaterialBudgetLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface
{
@ -91,5 +92,31 @@ class ProjectMaterialBudgetLists extends BaseAdminDataLists implements ListsSear
{
return ProjectMaterialBudget::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",
"material_budget_code" => "预算单号",
"project_name" => "项目名称",
"project_code" => "项目编码",
"total_num" => "预算总数量",
"total_apply_num" => "申请总数量",
"total_residual_num" => "剩余预算数量",
"total_amount" => "预算金额",
"remark" => "备注",
];
}
}

View File

@ -16,6 +16,7 @@ namespace app\adminapi\lists\project;
use app\adminapi\lists\BaseAdminDataLists;
use app\common\lists\ListsExcelInterface;
use app\common\model\auth\Admin;
use app\common\model\contract\Contract;
use app\common\model\contract\ContractNegotiation;
@ -29,7 +30,7 @@ use app\common\lists\ListsSearchInterface;
* Class ProjectSettlementLists
* @package app\adminapi\listsproject
*/
class ProjectSettlementLists extends BaseAdminDataLists implements ListsSearchInterface
class ProjectSettlementLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface
{
@ -94,5 +95,33 @@ class ProjectSettlementLists extends BaseAdminDataLists implements ListsSearchIn
{
return ProjectSettlement::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",
"settlement_code" => "结算单号",
"project_name" => "项目名称",
"contract_name" => "合同名称",
"contract_code" => "合同编号",
"settlement_date" => "结算日期",
"contract_amount" => "合同金额",
"negotiation_amount" => "洽商金额",
"settlement_amount" => "结算金额",
"settlement_difference" => "结算差异",
"add_user_name" => "添加人",
];
}
}

View File

@ -16,6 +16,7 @@ namespace app\adminapi\lists\project;
use app\adminapi\lists\BaseAdminDataLists;
use app\common\lists\ListsExcelInterface;
use app\common\model\auth\Admin;
use app\common\model\contract\ContractNegotiation;
use app\common\model\contract\SubcontractingContract;
@ -31,7 +32,7 @@ use app\common\model\supplier\Supplier;
* Class ProjectSubcontractSettlementLists
* @package app\adminapi\listsproject
*/
class ProjectSubcontractSettlementLists extends BaseAdminDataLists implements ListsSearchInterface
class ProjectSubcontractSettlementLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface
{
@ -97,5 +98,33 @@ class ProjectSubcontractSettlementLists extends BaseAdminDataLists implements Li
{
return ProjectSubcontractSettlement::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",
"settlement_code" => "结算单号",
"supplier_name" => "供应商名称",
"project_name" => "项目名称",
"contract_code" => "合同编号",
"settlement_date" => "结算日期",
"contract_amount" => "合同金额",
"negotiation_amount" => "洽商金额",
"settlement_amount" => "结算金额",
"settlement_difference" => "结算差异",
"add_user_name" => "添加人",
];
}
}

View File

@ -16,6 +16,7 @@ namespace app\adminapi\lists\project;
use app\adminapi\lists\BaseAdminDataLists;
use app\common\lists\ListsExcelInterface;
use app\common\model\contract\SubcontractingContractDetail;
use app\common\model\project\Project;
use app\common\model\project\ProjectSubpackageBudget;
@ -28,7 +29,7 @@ use app\common\lists\ListsSearchInterface;
* Class ProjectSubpackageBudgetDetailLists
* @package app\adminapi\listsproject
*/
class ProjectSubpackageBudgetDetailLists extends BaseAdminDataLists implements ListsSearchInterface
class ProjectSubpackageBudgetDetailLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface
{
@ -87,5 +88,36 @@ class ProjectSubpackageBudgetDetailLists extends BaseAdminDataLists implements L
{
return ProjectSubpackageBudgetDetail::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",
"subpackage_budget_code" => "预算单号",
"project_name" => "项目名称",
"project_code" => "项目编码",
"work_type" => "工作类型",
"work_content" => "工作内容",
"project_features" => "项目特征",
"unit" => "单位",
"num" => "预算总工作量",
"price" => "单价",
"amount" => "金额",
"remark" => "备注",
"has_subcontract_num" => "已分包工作量",
"residue_num" => "剩余预算工作量",
];
}
}

View File

@ -16,6 +16,7 @@ namespace app\adminapi\lists\project;
use app\adminapi\lists\BaseAdminDataLists;
use app\common\lists\ListsExcelInterface;
use app\common\model\contract\SubcontractingContractDetail;
use app\common\model\project\Project;
use app\common\model\project\ProjectSubpackageBudget;
@ -28,7 +29,7 @@ use app\common\model\project\ProjectSubpackageBudgetDetail;
* Class ProjectSubpackageBudgetLists
* @package app\adminapi\listsproject
*/
class ProjectSubpackageBudgetLists extends BaseAdminDataLists implements ListsSearchInterface
class ProjectSubpackageBudgetLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface
{
@ -90,5 +91,29 @@ class ProjectSubpackageBudgetLists extends BaseAdminDataLists implements ListsSe
{
return ProjectSubpackageBudget::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",
"subpackage_budget_code" => "预算单号",
"project_name" => "项目名称",
"total_num" => "预算总工作量",
"residue_num" => "剩余预算工作量",
"total_amount" => "预算总金额",
"remark" => "备注",
];
}
}

View File

@ -16,6 +16,7 @@ namespace app\adminapi\lists\project;
use app\adminapi\lists\BaseAdminDataLists;
use app\common\lists\ListsExcelInterface;
use app\common\model\project\Project;
use app\common\model\project\ProjectTotalBudget;
use app\common\lists\ListsSearchInterface;
@ -26,7 +27,7 @@ use app\common\lists\ListsSearchInterface;
* Class ProjectTotalBudgetLists
* @package app\adminapi\listsproject
*/
class ProjectTotalBudgetLists extends BaseAdminDataLists implements ListsSearchInterface
class ProjectTotalBudgetLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface
{
@ -87,5 +88,38 @@ class ProjectTotalBudgetLists extends BaseAdminDataLists implements ListsSearchI
{
return ProjectTotalBudget::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",
"total_budget_code" => "预算单号",
"project_name" => "项目名称",
"project_code" => "项目编码",
"project_manager" => "项目经理",
"budget_date" => "预算日期",
"contract_amount" => "合同金额",
"total_cost" => "总成本",
"profit" => "项目利润",
"profit_rate" => "项目利润率",
"cl_cost" => "材料预算成本",
"fb_cost" => "分包预算成本",
"rg_cost" => "人工预算成本",
"fy_cost" => "费用预算成本",
"jj_cost" => "机具预算成本",
"remark" => "备注",
];
}
}