diff --git a/app/adminapi/lists/finance/FinanceInvoiceApplyLists.php b/app/adminapi/lists/finance/FinanceInvoiceApplyLists.php index 0e2cb8608..c6f45727b 100644 --- a/app/adminapi/lists/finance/FinanceInvoiceApplyLists.php +++ b/app/adminapi/lists/finance/FinanceInvoiceApplyLists.php @@ -16,6 +16,7 @@ namespace app\adminapi\lists\finance; use app\adminapi\lists\BaseAdminDataLists; +use app\common\lists\ListsExcelInterface; use app\common\model\contract\Contract; use app\common\model\contract\ContractNegotiation; use app\common\model\custom\Custom; @@ -30,7 +31,7 @@ use think\facade\Db; * Class FinanceInvoiceApplyLists * @package app\adminapi\listsfinance */ -class FinanceInvoiceApplyLists extends BaseAdminDataLists implements ListsSearchInterface +class FinanceInvoiceApplyLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface { @@ -104,5 +105,32 @@ class FinanceInvoiceApplyLists extends BaseAdminDataLists implements ListsSearch } return FinanceInvoiceApply::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", + "custom_name" => "客户名称", + "project_code" => "项目编码", + "project_name" => "项目名称", + "invoicing_date" => "开票日期", + "period" => "期次", + "invoice_type" => "发票类型", + "invoicing_amount" => "开票金额(含税)", + "amount_including_tax" => "开票金额(非税)", + "tax_rate" => "税率(%)", + ]; + } } \ No newline at end of file diff --git a/app/adminapi/lists/finance/FinancePaymentApplyLists.php b/app/adminapi/lists/finance/FinancePaymentApplyLists.php index f80617230..f4c7157a7 100644 --- a/app/adminapi/lists/finance/FinancePaymentApplyLists.php +++ b/app/adminapi/lists/finance/FinancePaymentApplyLists.php @@ -16,6 +16,7 @@ namespace app\adminapi\lists\finance; use app\adminapi\lists\BaseAdminDataLists; +use app\common\lists\ListsExcelInterface; use app\common\model\contract\ProcurementContract; use app\common\model\contract\SubcontractingContract; use app\common\model\finance\FinancePaymentApply; @@ -31,7 +32,7 @@ use think\facade\Db; * Class FinancePaymentApplyLists * @package app\adminapi\listsfinance */ -class FinancePaymentApplyLists extends BaseAdminDataLists implements ListsSearchInterface +class FinancePaymentApplyLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface { @@ -100,5 +101,34 @@ class FinancePaymentApplyLists extends BaseAdminDataLists implements ListsSearch { return FinancePaymentApply::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", + "payment_apply_code" => "付款单号", + "supplier_name" => "供应商名称", + "project_name" => "项目名称", + "contract_no" => "合同编号", + "pay_date" => "付款日期", + "amount" => "付款金额", + "pay_type_text" => "付款方式", + "payment_nature_text" => "付款性质", + "period" => "期次", + "apply_user" => "申请人", + "remark" => "备注", + ]; + } } \ No newline at end of file diff --git a/app/adminapi/lists/finance/FinancePaymentPlanLists.php b/app/adminapi/lists/finance/FinancePaymentPlanLists.php index f24dd0806..abe2322dc 100644 --- a/app/adminapi/lists/finance/FinancePaymentPlanLists.php +++ b/app/adminapi/lists/finance/FinancePaymentPlanLists.php @@ -16,6 +16,7 @@ namespace app\adminapi\lists\finance; use app\adminapi\lists\BaseAdminDataLists; +use app\common\lists\ListsExcelInterface; use app\common\model\contract\ProcurementContract; use app\common\model\contract\SubcontractingContract; use app\common\model\finance\FinancePaymentApply; @@ -30,7 +31,7 @@ use think\facade\Db; * Class FinancePaymentPlanLists * @package app\adminapi\listsfinance */ -class FinancePaymentPlanLists extends BaseAdminDataLists implements ListsSearchInterface +class FinancePaymentPlanLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface { @@ -98,5 +99,33 @@ class FinancePaymentPlanLists extends BaseAdminDataLists implements ListsSearchI { return FinancePaymentPlan::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", + "supplier_name" => "供应商名称", + "project_name" => "项目名称", + "contract_no" => "合同编号", + "pay_date" => "计划付款日期", + "amount" => "金额", + "period_text" => "期次", + "status_text" => "状态", + "has_payment_amount" => "已付款", + "not_payment_amount" => "未付款", + "remark" => "备注", + ]; + } } \ No newline at end of file diff --git a/app/adminapi/lists/finance/FinanceReceiptRecordLists.php b/app/adminapi/lists/finance/FinanceReceiptRecordLists.php index 329176266..290930e1b 100644 --- a/app/adminapi/lists/finance/FinanceReceiptRecordLists.php +++ b/app/adminapi/lists/finance/FinanceReceiptRecordLists.php @@ -16,6 +16,7 @@ namespace app\adminapi\lists\finance; use app\adminapi\lists\BaseAdminDataLists; +use app\common\lists\ListsExcelInterface; use app\common\model\contract\ProcurementContract; use app\common\model\contract\SubcontractingContract; use app\common\model\finance\FinanceReceiptRecord; @@ -30,7 +31,7 @@ use think\facade\Db; * Class FinanceReceiptRecordLists * @package app\adminapi\listsfinance */ -class FinanceReceiptRecordLists extends BaseAdminDataLists implements ListsSearchInterface +class FinanceReceiptRecordLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface { @@ -80,6 +81,7 @@ class FinanceReceiptRecordLists extends BaseAdminDataLists implements ListsSearc } $data['contract_no'] = $contract['contract_no']; $data['contract_name'] = $contract['contract_name']; + $data['contract_type'] = $data->contract_type_text; return $data; }) ->toArray(); @@ -96,5 +98,36 @@ class FinanceReceiptRecordLists extends BaseAdminDataLists implements ListsSearc { return FinanceReceiptRecord::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" => "项目名称", + "contract_no" => "合同编号", + "contract_type" => "合同类型", + "supplier_name" => "供应商名称", + "receipt_date" => "收票日期", + "invoicing_date" => "开票日期", + "commitor" => "提交人", + "invoice_tax_rate_text" => "发票税率", + "invoice_amount" => "发票金额", + "amount_excluding_tax" => "不含税金额", + "tax_amount" => "税额", + "invoice_type_text" => "发票类型", + "invoice_no" => "发票编号", + ]; + } } \ No newline at end of file diff --git a/app/adminapi/lists/finance/FinanceRefundApplyLists.php b/app/adminapi/lists/finance/FinanceRefundApplyLists.php index 2483ca0bb..565d3734d 100644 --- a/app/adminapi/lists/finance/FinanceRefundApplyLists.php +++ b/app/adminapi/lists/finance/FinanceRefundApplyLists.php @@ -16,6 +16,7 @@ namespace app\adminapi\lists\finance; use app\adminapi\lists\BaseAdminDataLists; +use app\common\lists\ListsExcelInterface; use app\common\model\bank\BankAccount; use app\common\model\contract\Contract; use app\common\model\custom\Custom; @@ -29,7 +30,7 @@ use app\common\model\project\Project; * Class FinanceRefundApplyLists * @package app\adminapi\listsfinance */ -class FinanceRefundApplyLists extends BaseAdminDataLists implements ListsSearchInterface +class FinanceRefundApplyLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface { @@ -102,5 +103,33 @@ class FinanceRefundApplyLists extends BaseAdminDataLists implements ListsSearchI } return FinanceRefundApply::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", + "refund_code" => "退款单号", + "custom_name" => "客户名称", + "project_name" => "项目名称", + "contract_code" => "合同编号", + "reason" => "退款原因", + "refund_date" => "退款日期", + "amount" => "退款金额", + "refund_type" => "退款方式", + "refund_user" => "退款人", + "remark" => "备注", + ]; + } } \ No newline at end of file diff --git a/app/adminapi/lists/finance/FinanceRefundRecordLists.php b/app/adminapi/lists/finance/FinanceRefundRecordLists.php index 0e195175f..9baab214c 100644 --- a/app/adminapi/lists/finance/FinanceRefundRecordLists.php +++ b/app/adminapi/lists/finance/FinanceRefundRecordLists.php @@ -16,6 +16,7 @@ namespace app\adminapi\lists\finance; use app\adminapi\lists\BaseAdminDataLists; +use app\common\lists\ListsExcelInterface; use app\common\model\bank\BankAccount; use app\common\model\contract\ProcurementContract; use app\common\model\contract\SubcontractingContract; @@ -30,7 +31,7 @@ use think\facade\Db; * Class FinanceRefundRecordLists * @package app\adminapi\listsfinance */ -class FinanceRefundRecordLists extends BaseAdminDataLists implements ListsSearchInterface +class FinanceRefundRecordLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface { @@ -95,5 +96,33 @@ class FinanceRefundRecordLists extends BaseAdminDataLists implements ListsSearch { return FinanceRefundRecord::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", + "supplier_name" => "供应商名称", + "supplier_code" => "供应商编码", + "project_name" => "项目名称", + "contract_no" => "合同编号", + "contract_type_text" => "合同类型", + "refund_date" => "退款日期", + "refund_amount" => "退款金额", + "reason" => "退款原因", + "refund_type_text" => "退款方式", + "remark" => "备注", + ]; + } } \ No newline at end of file diff --git a/app/adminapi/lists/finance/FinanceReturnedMoneyLists.php b/app/adminapi/lists/finance/FinanceReturnedMoneyLists.php index 2eb3d3ca2..3ee50ba66 100644 --- a/app/adminapi/lists/finance/FinanceReturnedMoneyLists.php +++ b/app/adminapi/lists/finance/FinanceReturnedMoneyLists.php @@ -16,6 +16,7 @@ namespace app\adminapi\lists\finance; 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\finance\FinanceReturnedMoney; @@ -31,7 +32,7 @@ use think\facade\Db; * Class FinanceReturnedMoneyLists * @package app\adminapi\listsfinance */ -class FinanceReturnedMoneyLists extends BaseAdminDataLists implements ListsSearchInterface +class FinanceReturnedMoneyLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface { @@ -108,5 +109,36 @@ class FinanceReturnedMoneyLists extends BaseAdminDataLists implements ListsSearc } return FinanceReturnedMoney::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", + "contract_code" => "合同编号", + "contract_type" => "合同类型", + "custom_name" => "客户名称", + "project_name" => "项目名称", + "project_code" => "项目编码", + "period" => "期次", + "return_date" => "计划回款日期", + "return_status" => "状态", + "amount" => "金额", + "has_return_amount" => "已回款", + "not_return_amount" => "未回款", + "return_duty" => "回款责任人", + "remark" => "备注", + ]; + } } \ No newline at end of file diff --git a/app/adminapi/lists/finance/FinanceReturnedRecordLists.php b/app/adminapi/lists/finance/FinanceReturnedRecordLists.php index 459ac4032..550125be8 100644 --- a/app/adminapi/lists/finance/FinanceReturnedRecordLists.php +++ b/app/adminapi/lists/finance/FinanceReturnedRecordLists.php @@ -16,6 +16,7 @@ namespace app\adminapi\lists\finance; use app\adminapi\lists\BaseAdminDataLists; +use app\common\lists\ListsExcelInterface; use app\common\model\bank\BankAccount; use app\common\model\contract\Contract; use app\common\model\custom\Custom; @@ -30,7 +31,7 @@ use think\facade\Db; * Class FinanceReturnedRecordLists * @package app\adminapi\listsfinance */ -class FinanceReturnedRecordLists extends BaseAdminDataLists implements ListsSearchInterface +class FinanceReturnedRecordLists extends BaseAdminDataLists implements ListsSearchInterface,ListsExcelInterface { @@ -106,5 +107,34 @@ class FinanceReturnedRecordLists extends BaseAdminDataLists implements ListsSear } return FinanceReturnedRecord::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", + "custom_name" => "客户名称", + "project_name" => "项目名称", + "contract_code" => "合同编号", + "return_date" => "日期", + "period" => "期次", + "amount" => "金额", + "invoice_status" => "开票状态", + "pay_type" => "付款方式", + "collection_type" => "收款性质", + "receiver" => "收款人", + ]; + } + + } \ No newline at end of file