feat(ik3cloud): 新增客户、付款单和物料模块

- 新增客户模块,支持客户信息保存功能
- 新增付款单模块,支持付款单据保存功能
- 新增物料模块,支持物料信息保存功能
- 修改部门和员工模块接口,统一使用Save方法替代原有的Add和Edit方法
- 调整金蝶集成接口参数,简化调用方式
- 更新常量定义,增加客户、付款单和物料相关枚举值
This commit is contained in:
2025-12-03 13:49:31 +08:00
parent fa23a28fab
commit 908fa48a84
10 changed files with 149 additions and 55 deletions

View File

@@ -2,10 +2,11 @@ package erp
import (
"context"
"time"
"git.kumo.work/shama/service/client"
factory2 "git.kumo.work/shama/service/erp/factory"
"git.kumo.work/shama/service/lib/bean"
"time"
)
type factory struct {
@@ -209,3 +210,13 @@ func (f *factory) Edit(ctx context.Context, args ArgsFactoryEdit) (err error) {
reply := 0
return xClient.Call(ctx, "Edit", args, &reply)
}
// Ik3cloud @TITLE 金蝶同步
func (f *factory) Ik3cloud(ctx context.Context, factoryId int64) (err error) {
xClient, err := client.GetClient(f)
if err != nil {
return
}
reply := 0
return xClient.Call(ctx, "Ik3cloud", factoryId, &reply)
}