feat(erp): 添加银行账户信息字段和批量修改功能

- 在报销单、付款单和申请单中添加银行账号和账号名称字段
- 为报销单、付款单和申请单实现批量修改银行账户信息功能
- 在ik3cloud常量中添加银行账户操作类型
- 新增字典查询相关结构体和过滤条件类型
- 更新金蝶同步相关服务以支持银行账户信息处理
This commit is contained in:
2026-01-08 11:54:02 +08:00
parent 6717454a79
commit 93524fca2f
6 changed files with 98 additions and 0 deletions

View File

@@ -23,6 +23,8 @@ type RequestSearch struct {
CreatedAtEnd *time.Time // 创建结束时间
RequestIds []int64 // 申请单id
BanFlag int64 // 禁用标记 1=禁用 2=启用
BankAccount string // 银行账号
BankName string // 账号名称
}
type ReplyRequestList struct {
List []RequestItem `json:"list"`
@@ -40,6 +42,8 @@ type RequestItem struct {
CurrencySymbol string `json:"currencySymbol"`
CurrencyRate decimal.Decimal `json:"currencyRate"`
Remarks string `json:"remarks"`
BankAccount string `json:"bankAccount"`
BankName string `json:"bankName"`
Amount decimal.Decimal `json:"amount"`
BanFlag int64 `json:"banFlag"`
WorkflowId int64 `json:"workflowId"`
@@ -78,6 +82,8 @@ type RequestAdd struct {
CurrencyRate decimal.Decimal // 币种汇率
Remarks string // 备注
Amount decimal.Decimal // 金额
BankAccount string // 银行账号
BankName string // 账号名称
}
// Add @TITLE 添加
@@ -103,6 +109,8 @@ type ReplyRequestInfo struct {
CurrencyRate decimal.Decimal `json:"currencyRate"`
Amount decimal.Decimal `json:"amount"`
Remarks string `json:"remarks"`
BankAccount string `json:"bankAccount"`
BankName string `json:"bankName"`
WorkflowId int64 `json:"workflowId"`
WorkflowStatus int64 `json:"workflowStatus"`
WorkflowReason string `json:"workflowReason"`
@@ -140,6 +148,25 @@ func (r *request) Edit(ctx context.Context, args ArgsRequestEdit) (err error) {
return xClient.Call(ctx, "Edit", args, &reply)
}
type ArgsRequestChange struct {
RequestIds []int64
RequestChangeItem
}
type RequestChangeItem struct {
BankAccount string // 银行账号
BankName string // 账号名称
}
// BatchChange @TITLE 批量修改
func (r *request) BatchChange(ctx context.Context, args ArgsRequestChange) (err error) {
xClient, err := client.GetClient(r)
if err != nil {
return
}
reply := 0
return xClient.Call(ctx, "BatchChange", args, &reply)
}
// Ik3cloud @TITLE 同步
func (r *request) Ik3cloud(ctx context.Context, requestId int64) (err error) {
xClient, err := client.GetClient(r)