diff --git a/erp/purchase/product.go b/erp/purchase/product.go index ad216fb..0570b22 100644 --- a/erp/purchase/product.go +++ b/erp/purchase/product.go @@ -71,8 +71,18 @@ func (p *product) Edit(ctx context.Context, args ArgsProductEdit) (err error) { } type ArgsProductChangeFactory struct { - FactoryId int64 // 工厂id - PurchaseProductIds []int64 // 采购商品id + PurchaseId int64 // 采购合同id + FactoryId int64 // 工厂id + Products []ProductChangeFactoryProductItem // 采购商品id +} + +type ProductChangeFactoryProductItem struct { + PurchaseProductId int64 // 采购产品id + Batches []BatchItem // 产品批次 +} +type BatchItem struct { + BatchNo int64 // 批次号 + PurchaseCount int64 // 采购数量 } // ChangeFactory @TITLE 更换工厂