feat(purchase): 增加采购产品批次管理

- 在 PurchaseProduct 结构中添加 Batch 字段,用于管理产品批次
- 新增 PurchaseProductBatch 结构,包含批次号和采购数量
-此改动有助于更细致地管理和追踪采购产品的批次信息
This commit is contained in:
守护自己的云 2025-07-09 16:03:03 +08:00
parent a23e12a19f
commit f762c25b7b

View File

@ -71,15 +71,19 @@ type ArgsPurchaseAdd struct {
Products []PurchaseProduct Products []PurchaseProduct
} }
type PurchaseProduct struct { type PurchaseProduct struct {
SaleProductId int64 // 销售合同产品id SaleProductId int64 // 销售合同产品id
FactoryId int64 // 采购工厂id FactoryId int64 // 采购工厂id
Num int64 // 采购数量 Price decimal.Decimal // 采购单价
Price decimal.Decimal // 采购单价 Currency string // 币种
Currency string // 币种 CurrencyName string // 币种名称
CurrencyName string // 币种名称 CurrencySymbol string // 币种符号
CurrencySymbol string // 币种符号 CurrencyRate decimal.Decimal // 币种汇率
CurrencyRate decimal.Decimal // 币种汇率 MeasureUnit string // 数量单位
MeasureUnit string // 数量单位 Batch []PurchaseProductBatch // 产品批次
}
type PurchaseProductBatch struct {
BatchNo int64 `binding:"required" label:"批次号"`
Num int64 // 采购数量
} }
// Add @TITLE 添加采购合同 // Add @TITLE 添加采购合同