This commit is contained in:
weiz 2024-01-30 18:01:46 +08:00
parent baf26600ae
commit e2fd66c9cc
9 changed files with 260 additions and 9 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\ProjectCostAdjustment;
use app\common\lists\ListsSearchInterface;
@ -26,7 +27,7 @@ use app\common\lists\ListsSearchInterface;
* Class ProjectCostAdjustmentLists
* @package app\adminapi\listsproject
*/
class ProjectCostAdjustmentLists extends BaseAdminDataLists implements ListsSearchInterface
class ProjectCostAdjustmentLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface
{
@ -79,5 +80,28 @@ class ProjectCostAdjustmentLists extends BaseAdminDataLists implements ListsSear
{
return ProjectCostAdjustment::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" => "项目名称",
"project_code" => "项目编码",
"adjust_date" => "调整日期",
"adjust_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\ProjectCostTempSet;
use app\common\model\project\ProjectExpenseReimbursement;
@ -28,7 +29,7 @@ use app\common\lists\ListsSearchInterface;
* Class ProjectExpenseReimbursementDetailLists
* @package app\adminapi\listsproject
*/
class ProjectExpenseReimbursementDetailLists extends BaseAdminDataLists implements ListsSearchInterface
class ProjectExpenseReimbursementDetailLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface
{
@ -119,5 +120,30 @@ class ProjectExpenseReimbursementDetailLists extends BaseAdminDataLists implemen
}
return ProjectExpenseReimbursementDetail::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",
"expense_reimbursement_code" => "费用报销单号",
"project_name" => "项目名称",
"first_level_subject" => "一级科目",
"second_level_subject" => "二级科目",
"third_level_subject" => "三级科目",
"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\ProjectExpenseReimbursement;
use app\common\model\project\ProjectExpenseReimbursementInvoiceDetail;
@ -28,7 +29,7 @@ use think\helper\Str;
* Class ProjectExpenseReimbursementInvoiceDetailLists
* @package app\adminapi\listsproject
*/
class ProjectExpenseReimbursementInvoiceDetailLists extends BaseAdminDataLists implements ListsSearchInterface
class ProjectExpenseReimbursementInvoiceDetailLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface
{
@ -114,5 +115,32 @@ class ProjectExpenseReimbursementInvoiceDetailLists extends BaseAdminDataLists i
}
return ProjectExpenseReimbursementInvoiceDetail::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",
"project_name" => "项目名称",
"expense_reimbursement_code" => "费用报销单号",
"invoice_form_text" => "发票类型",
"invoice_sn" => "发票号",
"tax_rate_text" => "发票税率(%)",
"invoice_type_text" => "发票形式",
"invoice_amount" => "发票金额",
"tax_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\ProjectExpenseReimbursement;
use app\common\lists\ListsSearchInterface;
@ -28,7 +29,7 @@ use app\common\model\project\ProjectLoanApply;
* Class ProjectExpenseReimbursementLists
* @package app\adminapi\listsproject
*/
class ProjectExpenseReimbursementLists extends BaseAdminDataLists implements ListsSearchInterface
class ProjectExpenseReimbursementLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface
{
@ -89,5 +90,34 @@ class ProjectExpenseReimbursementLists extends BaseAdminDataLists implements Lis
{
return ProjectExpenseReimbursement::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",
"expense_reimbursement_code" => "费用报销单号",
"project_name" => "项目名称",
"apply_user" => "报销人",
"apply_date" => "报销日期",
"reimbursement_type" => "报销类型",
"loan_apply_code" => "借款单编号",
"loan_amount" => "借款金额",
"total_amount" => "报销金额",
"pay_amount" => "付款金额",
"offset_loan_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\ProjectExpenseReimbursement;
use app\common\model\project\ProjectLoanApply;
@ -28,7 +29,7 @@ use app\common\model\project\ProjectTravelReimbursement;
* Class ProjectLoanApplyLists
* @package app\adminapi\listsproject
*/
class ProjectLoanApplyLists extends BaseAdminDataLists implements ListsSearchInterface
class ProjectLoanApplyLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface
{
@ -88,5 +89,32 @@ class ProjectLoanApplyLists extends BaseAdminDataLists implements ListsSearchInt
{
return ProjectLoanApply::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",
"loan_apply_code" => "借款单号",
"project_name" => "项目名称",
"apply_user" => "借款人",
"loan_date" => "借款申请日期",
"loan_amount" => "借款金额",
"payee_name" => "收款人姓名",
"payee_bank" => "收款银行",
"payee_account" => "收款账号",
"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\ProjectCostTempSet;
use app\common\model\project\ProjectTravelReimbursement;
@ -29,7 +30,7 @@ use app\common\model\project\ProjectTripApply;
* Class ProjectTravelReimbursementDetailLists
* @package app\adminapi\listsproject
*/
class ProjectTravelReimbursementDetailLists extends BaseAdminDataLists implements ListsSearchInterface
class ProjectTravelReimbursementDetailLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface
{
@ -124,5 +125,33 @@ class ProjectTravelReimbursementDetailLists extends BaseAdminDataLists implement
}
return ProjectTravelReimbursementDetail::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",
"project_name" => "项目名称",
"trip_apply_code" => "出差申请单",
"trip_reimbursement_code" => "差旅报销单",
"first_level_subject" => "一级科目",
"traffic_fee" => "交通",
"stay_fee" => "住宿",
"restaurant_fee" => "餐饮",
"subsidy_fee" => "补助",
"other_fee" => "其它",
"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\ProjectTravelReimbursement;
use app\common\model\project\ProjectTravelReimbursementInvoiceDetail;
@ -28,7 +29,7 @@ use app\common\model\project\ProjectTripApply;
* Class ProjectTravelReimbursementInvoiceDetailLists
* @package app\adminapi\listsproject
*/
class ProjectTravelReimbursementInvoiceDetailLists extends BaseAdminDataLists implements ListsSearchInterface
class ProjectTravelReimbursementInvoiceDetailLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface
{
@ -126,5 +127,31 @@ class ProjectTravelReimbursementInvoiceDetailLists extends BaseAdminDataLists im
}
return ProjectTravelReimbursementInvoiceDetail::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",
"trip_reimbursement_code" => "差旅报销单号",
"invoice_type_text" => "发票类型",
"invoice_sn" => "发票号",
"tax_rate_text" => "发票税率(%)",
"invoice_form_text" => "发票形式",
"invoice_amount" => "发票金额",
"tax_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\project\Project;
use app\common\model\project\ProjectLoanApply;
@ -31,7 +32,7 @@ use app\common\model\project\ProjectTripApply;
* Class ProjectTravelReimbursementLists
* @package app\adminapi\listsproject
*/
class ProjectTravelReimbursementLists extends BaseAdminDataLists implements ListsSearchInterface
class ProjectTravelReimbursementLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface
{
@ -102,5 +103,34 @@ class ProjectTravelReimbursementLists extends BaseAdminDataLists implements List
{
return ProjectTravelReimbursement::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",
"trip_reimbursement_code" => "出差申请单编号",
"project_name" => "项目名称",
"reimbursement_type" => "报销类型",
"loan_apply_code" => "借款单编号",
"loan_amount" => "借款金额",
"total_amount" => "报销金额",
"offset_loan_amount" => "冲抵借款金额",
"pay_amount" => "付款金额",
"apply_user" => "报销人",
"apply_date" => "报销日期",
"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\project\Project;
use app\common\model\project\ProjectManagerAppointment;
@ -28,7 +29,7 @@ use app\common\lists\ListsSearchInterface;
* Class ProjectTripApplyLists
* @package app\adminapi\listsproject
*/
class ProjectTripApplyLists extends BaseAdminDataLists implements ListsSearchInterface
class ProjectTripApplyLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface
{
@ -90,5 +91,33 @@ class ProjectTripApplyLists extends BaseAdminDataLists implements ListsSearchInt
{
return ProjectTripApply::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" => "项目名称",
"trip_apply_code" => "申请单号",
"origin_address" => "出差起始地",
"target_address" => "出差目的地",
"traffic_text" => "交通工具",
"start_date" => "出差时间",
"end_date" => "结束时间",
"reason" => "出差事由",
"days" => "历时天数",
"remark" => "备注",
];
}
}