feat(purchase): 增加采购产品批次管理
- 在 PurchaseProduct 结构中添加 Batch 字段,用于管理产品批次 - 新增 PurchaseProductBatch 结构,包含批次号和采购数量 -此改动有助于更细致地管理和追踪采购产品的批次信息
This commit is contained in:
parent
a23e12a19f
commit
f762c25b7b
@ -73,13 +73,17 @@ type ArgsPurchaseAdd struct {
|
||||
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 // 数量单位
|
||||
Batch []PurchaseProductBatch // 产品批次
|
||||
}
|
||||
type PurchaseProductBatch struct {
|
||||
BatchNo int64 `binding:"required" label:"批次号"`
|
||||
Num int64 // 采购数量
|
||||
}
|
||||
|
||||
// Add @TITLE 添加采购合同
|
||||
|
Loading…
x
Reference in New Issue
Block a user