From 1be44c0ae231f6378ec04126a2dd2ff42e2ae27c Mon Sep 17 00:00:00 2001 From: kanade Date: Mon, 2 Feb 2026 16:10:18 +0800 Subject: [PATCH] =?UTF-8?q?feat(erp):=20=E6=89=A9=E5=B1=95=E6=94=B6?= =?UTF-8?q?=E6=B1=87=E5=8D=95=E5=92=8C=E6=8A=A5=E9=94=80=E5=8D=95=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在收汇单搜索条件中添加付款公司、结汇银行账号、入账金额范围和金蝶同步状态字段 - 在报销单搜索条件中添加付款时间范围、审核时间范围、审核状态、实付金额范围、创建人和币种字段 - 为报销单项添加付款时间字段支持 - 优化结构体字段对齐格式 --- erp/receipt.go | 27 ++++++++++++++++----------- erp/request.go | 30 +++++++++++++++++++++--------- 2 files changed, 37 insertions(+), 20 deletions(-) diff --git a/erp/receipt.go b/erp/receipt.go index 75295da..d45ffa6 100644 --- a/erp/receipt.go +++ b/erp/receipt.go @@ -18,17 +18,22 @@ type ArgsReceiptList struct { Search ReceiptSearch } type ReceiptSearch struct { - ReceiptSerial string // 收汇单号 - CustomId int64 // 客户筛选 - CustomName string // 客户筛选 - PayCustomId int64 // 付款客户 - PayCustomName string // 付款客户名称 - BankName string // 结汇银行 - ReceiptDateStart *time.Time // 创建开始时间 - ReceiptDateEnd *time.Time // 创建结束时间 - BanFlag int64 // 禁用标记 1=禁用 2=启用 - ClaimStatus int64 // 认领状态 1=待认领 2=部分认领 3=已认领 - InvoiceSerialEq string // 发票号 + ReceiptSerial string // 收汇单号 + CustomId int64 // 客户筛选 + CustomName string // 客户筛选 + PayCustomId int64 // 付款客户 + PayCustomName string // 付款客户名称 + BankName string // 结汇银行 + ReceiptDateStart *time.Time // 创建开始时间 + ReceiptDateEnd *time.Time // 创建结束时间 + BanFlag int64 // 禁用标记 1=禁用 2=启用 + ClaimStatus int64 // 认领状态 1=待认领 2=部分认领 3=已认领 + InvoiceSerialEq string // 发票号 + PayCompany string // 付款公司 + BankAccount string // 结汇银行账号 + EntryAmountStart *decimal.Decimal // 入账金额开始 + EntryAmountEnd *decimal.Decimal // 入账金额结束 + Ik3cloudStatus int64 // 金蝶同步状态 1=待同步 2=同步成功 3=同步失败 } type ReplyReceiptList struct { List []ReceiptItem `json:"list"` diff --git a/erp/request.go b/erp/request.go index f8ff3ca..6c74657 100644 --- a/erp/request.go +++ b/erp/request.go @@ -18,15 +18,25 @@ type ArgsRequestList struct { Search RequestSearch } type RequestSearch struct { - RequestSerial string // 报销单号 - InvoiceSerial string // 发票号 - CreatedAtStart *time.Time // 创建开始时间 - CreatedAtEnd *time.Time // 创建结束时间 - RequestIds []int64 // 申请单id - BanFlag int64 // 禁用标记 1=禁用 2=启用 - BankAccount string // 银行账号 - BankName string // 账号名称 - AccountingSerial string // 做账合同号 + RequestSerial string // 报销单号 + InvoiceSerial string // 发票号 + CreatedAtStart *time.Time // 创建开始时间 + CreatedAtEnd *time.Time // 创建结束时间 + PayAtStart *time.Time // 付款开始时间 + PayAtEnd *time.Time // 付款结束时间 + AuditAtStart *time.Time // 审核开始时间 + AuditAtEnd *time.Time // 审核结束时间 + RequestIds []int64 // 申请单id + BanFlag int64 // 禁用标记 1=禁用 2=启用 + BankAccount string // 银行账号 + BankName string // 账号名称 + AccountingSerial string // 做账合同号 + WorkflowStatus int64 // 审核状态 + PaidAmountStart *decimal.Decimal // 实付金额开始 + PaidAmountEnd *decimal.Decimal // 实付金额结束 + CreatedStaffIds []int64 // 创建人 + Currency string // 币种 + Ik3cloudStatus int64 // ik3cloud状态 } type ReplyRequestList struct { List []RequestItem `json:"list"` @@ -50,6 +60,7 @@ type RequestItem struct { Remarks string `json:"remarks"` BankAccount string `json:"bankAccount"` BankName string `json:"bankName"` + PayAt *time.Time `json:"payAt"` PrepaidAmount decimal.Decimal `json:"prepaidAmount"` Amount decimal.Decimal `json:"amount"` PaidAmount decimal.Decimal `json:"paidAmount"` @@ -135,6 +146,7 @@ type ReplyRequestInfo struct { Remarks string `json:"remarks"` BankAccount string `json:"bankAccount"` BankName string `json:"bankName"` + PayAt *time.Time `json:"payAt"` WorkflowId int64 `json:"workflowId"` WorkflowStatus int64 `json:"workflowStatus"` WorkflowReason string `json:"workflowReason"`