feat(k3cloud): 新增辅助资料信息模块
- 在常量定义中增加辅助资料相关枚举类型 - 添加辅助资料信息保存接口及数据结构 - 实现辅助资料信息保存方法 - 定义辅助资料类型常量值
This commit is contained in:
@@ -19,6 +19,7 @@ const (
|
|||||||
ActionRecPayPurpose Action = "CN_RECPAYPURPOSE" // 收付款用途
|
ActionRecPayPurpose Action = "CN_RECPAYPURPOSE" // 收付款用途
|
||||||
ActionExpense Action = "BD_Expense" // 费用项目
|
ActionExpense Action = "BD_Expense" // 费用项目
|
||||||
ActionPayment Action = "AP_PAYBILL" // 付款单
|
ActionPayment Action = "AP_PAYBILL" // 付款单
|
||||||
|
ActionInformation Action = "BOS_ASSISTANTDATA_DETAIL" // 辅助资料
|
||||||
)
|
)
|
||||||
|
|
||||||
type OperatorType = string
|
type OperatorType = string
|
||||||
@@ -35,3 +36,9 @@ const (
|
|||||||
PaymentTypeCost PaymentType = "FKDLX10_SYS" // 费用付款单
|
PaymentTypeCost PaymentType = "FKDLX10_SYS" // 费用付款单
|
||||||
PaymentTypeRequest PaymentType = "FKDLX11_SYS" // 报销付款单
|
PaymentTypeRequest PaymentType = "FKDLX11_SYS" // 报销付款单
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type InformationType = string
|
||||||
|
|
||||||
|
const (
|
||||||
|
InformationTypeInvoiceSerial InformationType = "FYP" // 采购付款单
|
||||||
|
)
|
||||||
|
|||||||
28
ik3cloud/information.go
Normal file
28
ik3cloud/information.go
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
package ik3cloud
|
||||||
|
|
||||||
|
import (
|
||||||
|
"context"
|
||||||
|
|
||||||
|
"git.kumo.work/shama/service/client"
|
||||||
|
"git.kumo.work/shama/service/ik3cloud/constant"
|
||||||
|
)
|
||||||
|
|
||||||
|
type information struct {
|
||||||
|
}
|
||||||
|
|
||||||
|
type InformationSaveItem struct {
|
||||||
|
InformationId int64
|
||||||
|
Number string
|
||||||
|
Value string
|
||||||
|
Type constant.InformationType // 资料类型
|
||||||
|
}
|
||||||
|
|
||||||
|
// Save @TITLE 保存
|
||||||
|
func (i *information) Save(ctx context.Context, args []InformationSaveItem) (entities []Entity, err error) {
|
||||||
|
xClient, err := client.GetClient(i)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
err = xClient.Call(ctx, "Save", args, &entities)
|
||||||
|
return
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user