From 0708f5694f36b9c6edea59f4f4de6da5ae10fe18 Mon Sep 17 00:00:00 2001 From: kanade Date: Tue, 11 Nov 2025 11:23:26 +0800 Subject: [PATCH] =?UTF-8?q?feat(erp):=20=E6=B7=BB=E5=8A=A0=E6=96=B0?= =?UTF-8?q?=E7=9A=84=E5=81=9A=E8=B4=A6=E5=90=88=E5=90=8C=E5=AE=A1=E6=A0=B8?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=92=8C=E5=AF=BC=E5=87=BA=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 accounting 结构体中新增 Old 字段- 添加 BusinessTypeAccountingAuditV2 做账合同审核类型- 新增 ExportTypeAccountingV2 和 ExportTypeAccountingFactoryV2 导出类型- 更新常量映射以支持新的业务类型和导出选项 --- erp/accounting/accounting.go | 1 + erp/constant.go | 24 ++++++++++++++---------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/erp/accounting/accounting.go b/erp/accounting/accounting.go index 127212e..c32a805 100644 --- a/erp/accounting/accounting.go +++ b/erp/accounting/accounting.go @@ -5,4 +5,5 @@ type Accounting struct { Cost cost Product product Remark remark + Old old } diff --git a/erp/constant.go b/erp/constant.go index d4ce85d..36c1204 100644 --- a/erp/constant.go +++ b/erp/constant.go @@ -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 // 出舱状态