service/erp/constant.go

38 lines
1.1 KiB
Go
Raw Normal View History

2024-08-08 10:50:16 +08:00
package erp
type BusinessType = string // 业务类型
const (
BusinessTypeSaleAudit BusinessType = "saleAudit" // 销售合同审核
BusinessTypePurchaseAudit BusinessType = "purchaseAudit" // 销售合同审核
2024-09-20 14:51:43 +08:00
BusinessTypeShipmentAudit BusinessType = "shipmentAudit" // 销售合同审核
2024-08-08 10:50:16 +08:00
)
var BusinessTypeName = map[BusinessType]string{
BusinessTypeSaleAudit: "销售合同审核",
BusinessTypePurchaseAudit: "采购合同审核",
2024-09-20 14:51:43 +08:00
BusinessTypeShipmentAudit: "订舱单审核",
2024-08-08 10:50:16 +08:00
}
type AuditStatus = int64 // 审核状态
const (
AuditStatusNone AuditStatus = 1 // 待提交
AuditStatusIng AuditStatus = 2 // 审核中
AuditStatusAdopt AuditStatus = 3 // 审核通过
AuditStatusReject AuditStatus = 4 // 审核驳回
2024-09-05 17:06:40 +08:00
AuditStatusCancel AuditStatus = 5 // 审核撤回
2024-08-08 10:50:16 +08:00
)
2024-08-19 17:49:26 +08:00
type IsOpen = int64 // 开启状态
const (
IsOpenTrue IsOpen = 1 // 开启
IsOpenFalse IsOpen = 2 // 关闭
)
type ExportType = string // 导出类型
const (
2024-09-10 17:07:31 +08:00
ExportTypeSalePi = "salePi" // 销售pi导出
ExportTypeSaleBenefit = "saleBenefit" // 效益测算导出
2024-09-20 14:51:43 +08:00
ExportTypePurchase = "purchase" // 采购导出
2024-08-19 17:49:26 +08:00
)