From 2d57b61a14be6904eab81628d6528ab680ca521d Mon Sep 17 00:00:00 2001 From: kanade Date: Tue, 12 Aug 2025 16:40:38 +0800 Subject: [PATCH] =?UTF-8?q?feat(accounting):=20=E5=A2=9E=E5=8A=A0=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E7=AE=B1=E5=8F=B7=E5=92=8C=E8=A3=85=E7=AE=B1=E6=95=B0?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 ProductInfo 结构中添加 ContainerNumber 和 ContainerNumberBoxCount 字段 - 在 ProductEdit 结构中添加 ContainerNumber 和 ContainerNumberBoxCount 字段 - 这些新增字段用于记录产品的箱号和装箱数信息 --- erp/accounting/product.go | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/erp/accounting/product.go b/erp/accounting/product.go index 544b2ac..9490759 100644 --- a/erp/accounting/product.go +++ b/erp/accounting/product.go @@ -2,6 +2,7 @@ package accounting import ( "context" + "git.kumo.work/shama/service/client" "github.com/shopspring/decimal" ) @@ -40,6 +41,8 @@ type ProductItem struct { FactoryName string `json:"factoryName"` SaleProductAccountingCount int64 `json:"saleProductAccountingCount"` SaleProductPurchasedCount int64 `json:"saleProductPurchasedCount"` + ContainerNumber string `json:"containerNumber"` + ContainerNumberBoxCount int64 `json:"containerNumberBoxCount"` } // All @TITLE 获取产品 @@ -80,15 +83,17 @@ type ArgsProductEdit struct { } type ProductEdit struct { - AccountingProductId int64 // 做账产品id - Sort int64 // 排序 - AccountingCount int64 // 做账数量 - CustomsSerial string // hs编码 - CustomsName string // 报关名称 - CustomsInvoiceUnit string // 开票单位 - MeasureUnit string // 报关单位 - InvoiceType int64 // 开票方式 1=按净重 2=按数量 - InvoiceCount decimal.Decimal // 开票数量 + AccountingProductId int64 // 做账产品id + Sort int64 // 排序 + AccountingCount int64 // 做账数量 + CustomsSerial string // hs编码 + CustomsName string // 报关名称 + CustomsInvoiceUnit string // 开票单位 + MeasureUnit string // 报关单位 + InvoiceType int64 // 开票方式 1=按净重 2=按数量 + InvoiceCount decimal.Decimal // 开票数量 + ContainerNumber string // 箱号 + ContainerNumberBoxCount int64 // 装箱数 } // Edit @TITLE 编辑费用