service/erp/constant.go

43 lines
1.5 KiB
Go
Raw Normal View History

2024-08-08 10:50:16 +08:00
package erp
type BusinessType = string // 业务类型
const (
BusinessTypeSaleAudit BusinessType = "saleAudit" // 销售合同审核
2024-09-23 17:23:47 +08:00
BusinessTypePurchaseAudit BusinessType = "purchaseAudit" // 采购合同审核
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-23 17:23:47 +08:00
ExportTypeSalePi = "salePi" // 销售pi导出
ExportTypeSaleBenefit = "saleBenefit" // 效益测算导出
ExportTypePurchase = "purchase" // 采购导出
ExportTypeShipment = "shipment" // 订舱导出
ExportTypeShipmentInfo = "shipmentInfo" // 出运明细导出
ExportTypeSerial = "serial" // 商检导出
ExportTypeCustoms = "customs" // 报关导出
ExportTypeExchangeSettlement = "exchangeSettlement" // 结汇导出
2024-08-19 17:49:26 +08:00
)