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

@@ -21,6 +21,8 @@ type PaymentSearch struct {
CreatedAtStart *time.Time
CreatedAtEnd *time.Time
PurchaseStaffIds []int64 // 采购人员
BankAccount string // 银行账号
BankName string // 账号名称
}
type ReplyPaymentList struct {
Total int64 `json:"total"`
@@ -38,6 +40,8 @@ type PaymentItem struct {
CurrencyName string `json:"currencyName"`
CurrencySymbol string `json:"currencySymbol"`
CurrencyRate decimal.Decimal `json:"currencyRate"`
BankAccount string `json:"bankAccount"`
BankName string `json:"bankName"`
PurchaseStaffId int64 `json:"purchaseStaffId"`
Ik3cloudStatus int64 `json:"ik3CloudStatus"`
Ik3cloudErrMsg string `json:"ik3CloudErrMsg"`
@@ -66,6 +70,25 @@ func (p *payment) Gen(ctx context.Context, payableId int64) (err error) {
return xClient.Call(ctx, "Gen", payableId, &reply)
}
type ArgsPaymentChange struct {
PaymentIds []int64
PaymentChangeItem
}
type PaymentChangeItem struct {
BankAccount string // 银行账号
BankName string // 账号名称
}
// BatchChange @TITLE 批量修改
func (p *payment) BatchChange(ctx context.Context, args ArgsPaymentChange) (err error) {
xClient, err := client.GetClient(p)
if err != nil {
return
}
reply := 0
return xClient.Call(ctx, "BatchChange", args, &reply)
}
// Ik3cloud @TITLE 金蝶同步
func (p *payment) Ik3cloud(ctx context.Context, paymentId int64) (err error) {
xClient, err := client.GetClient(p)