update
This commit is contained in:
parent
26a4978242
commit
23df70997e
@ -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
|
||||
{
|
||||
|
||||
|
||||
@ -105,4 +106,31 @@ 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" => "税率(%)",
|
||||
];
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
|
||||
|
||||
@ -101,4 +102,33 @@ 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" => "备注",
|
||||
];
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
|
||||
|
||||
@ -99,4 +100,32 @@ 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" => "备注",
|
||||
];
|
||||
}
|
||||
|
||||
}
|
@ -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();
|
||||
@ -97,4 +99,35 @@ 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" => "发票编号",
|
||||
];
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
|
||||
|
||||
@ -103,4 +104,32 @@ 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" => "备注",
|
||||
];
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
|
||||
|
||||
@ -96,4 +97,32 @@ 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" => "备注",
|
||||
];
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
|
||||
|
||||
@ -109,4 +110,35 @@ 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" => "备注",
|
||||
];
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
|
||||
|
||||
@ -107,4 +108,33 @@ 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" => "收款人",
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user