feat(erp): 添加新的做账合同审核类型和导出选项

- 在 accounting 结构体中新增 Old 字段- 添加 BusinessTypeAccountingAuditV2 做账合同审核类型- 新增 ExportTypeAccountingV2 和 ExportTypeAccountingFactoryV2 导出类型- 更新常量映射以支持新的业务类型和导出选项
This commit is contained in:
2025-11-11 11:23:26 +08:00
parent b652db9992
commit 0708f5694f
2 changed files with 15 additions and 10 deletions

View File

@@ -5,4 +5,5 @@ type Accounting struct {
Cost cost
Product product
Remark remark
Old old
}

View File

@@ -11,6 +11,7 @@ const (
BusinessTypeShipmentAudit BusinessType = "shipmentAudit" // 订舱单审核
BusinessTypeShipmentModifyAudit BusinessType = "shipmentModifyAudit" // 订舱单修改单审核
BusinessTypeAccountingAudit BusinessType = "accountingAudit" // 做账合同审核
BusinessTypeAccountingAuditV2 BusinessType = "accountingAuditV2" // 做账合同审核
)
var BusinessTypeName = map[BusinessType]string{
@@ -22,6 +23,7 @@ var BusinessTypeName = map[BusinessType]string{
BusinessTypeShipmentAudit: "订舱单审核",
BusinessTypeShipmentModifyAudit: "订舱修改单审核",
BusinessTypeAccountingAudit: "做账合同审核",
BusinessTypeAccountingAuditV2: "做账合同审核",
}
type AuditStatus = int64 // 审核状态
@@ -48,16 +50,18 @@ const (
type ExportType = string // 导出类型
const (
ExportTypeSalePi = "salePi" // 销售pi导出
ExportTypeSaleBenefit = "saleBenefit" // 效益测算导出
ExportTypePurchase = "purchase" // 采购导出
ExportTypeShipment = "shipment" // 订舱导出
ExportTypeShipmentInfo = "shipmentInfo" // 出运明细导出
ExportTypeSerial = "serial" // 商检导出
ExportTypeCustoms = "customs" // 报关导出
ExportTypeExchangeSettlement = "exchangeSettlement" // 结汇导出
ExportTypeAccounting = "accounting" // 做账导出
ExportTypeAccountingFactory = "accountingFactory" // 做账工厂导出
ExportTypeSalePi = "salePi" // 销售pi导出
ExportTypeSaleBenefit = "saleBenefit" // 效益测算导出
ExportTypePurchase = "purchase" // 采购导出
ExportTypeShipment = "shipment" // 订舱导出
ExportTypeShipmentInfo = "shipmentInfo" // 出运明细导出
ExportTypeSerial = "serial" // 商检导出
ExportTypeCustoms = "customs" // 报关导出
ExportTypeExchangeSettlement = "exchangeSettlement" // 结汇导出
ExportTypeAccounting = "accounting" // 做账导出
ExportTypeAccountingFactory = "accountingFactory" // 做账工厂导出
ExportTypeAccountingV2 = "accountingV2" // 做账导出
ExportTypeAccountingFactoryV2 = "accountingFactoryV2" // 做账工厂导出
)
type BanFlag = int64 // 出舱状态