- 添加 dict 包,包含字体、分类和字典相关结构体与方法 - 实现分类的增删改查接口 - 实现字典的增删改查接口 - 在 receivable.go 中扩展字段支持汇率、部门、业务员等信息 - 新增 payment.go 文件,实现付款单保存功能 - 引入 time 和 decimal 包以支持日期和金额类型字段
38 lines
1.4 KiB
Go
38 lines
1.4 KiB
Go
package constant
|
|
|
|
type Action = string // 方法
|
|
|
|
const (
|
|
ActionDepartment Action = "BD_Department" // 部门
|
|
ActionStaff Action = "BD_Empinfo" // 员工
|
|
ActionStaffPosition Action = "BD_NEWSTAFF" // 职位
|
|
ActionOperatorType Action = "BD_OPERATOR" // 业务员类型
|
|
ActionPosition Action = "HR_ORG_HRPOST" // 职位
|
|
ActionFactory Action = "BD_Supplier" // 工厂
|
|
ActionContact Action = "BD_CommonContact" // 联系人
|
|
ActionCustom Action = "BD_Customer" // 客户
|
|
ActionReceivable Action = "AR_receivable" // 应收单
|
|
ActionPayable Action = "AP_Payable" // 应付单
|
|
ActionProduct Action = "BD_MATERIAL" // 物料
|
|
ActionCurrency Action = "BD_Currency" // 币种
|
|
ActionSettleType Action = "BD_SETTLETYPE" // 结算方式
|
|
ActionRecPayPurpose Action = "CN_RECPAYPURPOSE" // 收付款用途
|
|
ActionExpense Action = "BD_Expense" // 费用项目
|
|
ActionPayment Action = "AP_PAYBILL" // 付款单
|
|
)
|
|
|
|
type OperatorType = string
|
|
|
|
const (
|
|
OperatorTypeXSY OperatorType = "XSY" // 业务员
|
|
OperatorTypeCGY OperatorType = "CGY" // 采购员
|
|
)
|
|
|
|
type PaymentType = string
|
|
|
|
const (
|
|
PaymentTypePurchase PaymentType = "FKDLX09_SYS" // 采购付款单
|
|
PaymentTypeCost PaymentType = "FKDLX10_SYS" // 费用付款单
|
|
PaymentTypeRequest PaymentType = "FKDLX11_SYS" // 报销付款单
|
|
)
|