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