|
@@ -35,7 +35,7 @@ type PackComponent struct {
|
|
UvSize string `bson:"uvSize,omitempty" json:"uvSize"`
|
|
UvSize string `bson:"uvSize,omitempty" json:"uvSize"`
|
|
|
|
|
|
//所有材料
|
|
//所有材料
|
|
- Mats []*PackComponentMat `bson:"mats,omitempty" json:"mats"`
|
|
|
|
|
|
+ Stages []*ComponentStage `bson:"stages,omitempty" json:"stages"`
|
|
|
|
|
|
Remark string `bson:"remark,omitempty" json:"remark"`
|
|
Remark string `bson:"remark,omitempty" json:"remark"`
|
|
|
|
|
|
@@ -43,74 +43,41 @@ type PackComponent struct {
|
|
TotalPrice float64 `bson:"totalPrice,omitempty" json:"totalPrice"`
|
|
TotalPrice float64 `bson:"totalPrice,omitempty" json:"totalPrice"`
|
|
}
|
|
}
|
|
|
|
|
|
-type SupplierPriceVo struct {
|
|
|
|
- Calc *PriceCalc `bson:"calc,omitempty" json:"calc"` //计价策略
|
|
|
|
-
|
|
|
|
- //交货时间
|
|
|
|
- DeliveryTime *time.Time `bson:"deliveryTime,omitempty" json:"deliveryTime"`
|
|
|
|
-
|
|
|
|
- //订单单价
|
|
|
|
|
|
+type ComponentStage struct {
|
|
|
|
+ Id string `bson:"id,omitempty" json:"id"`
|
|
|
|
+ TypeId primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
|
|
|
|
+ // 预算价格
|
|
OrderPrice float64 `bson:"orderPrice,omitempty" json:"orderPrice"`
|
|
OrderPrice float64 `bson:"orderPrice,omitempty" json:"orderPrice"`
|
|
|
|
|
|
- //订单数据量
|
|
|
|
|
|
+ // 订单数据量
|
|
OrderCount float64 `bson:"orderCount,omitempty" json:"orderCount"`
|
|
OrderCount float64 `bson:"orderCount,omitempty" json:"orderCount"`
|
|
|
|
|
|
- // 预算金额
|
|
|
|
- OrderRealPrice float64 `bson:"orderRealPrice,omitempty" json:"orderRealPrice"`
|
|
|
|
-
|
|
|
|
- //供应商信息
|
|
|
|
- SupplierInfo *Supplier `bson:"supplierInfo,omitempty" json:"supplierInfo"`
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-type PackComponentMat struct {
|
|
|
|
- Id string `bson:"id,omitempty" json:"id"`
|
|
|
|
-
|
|
|
|
- //所有工艺
|
|
|
|
- Crafts []*PackComponentMatCraft `bson:"crafts,omitempty" json:"crafts"`
|
|
|
|
-
|
|
|
|
- MatInfo *Material `bson:"matInfo,omitempty" json:"matInfo"`
|
|
|
|
-
|
|
|
|
- Supplier *SupplierPriceVo `bson:"supplier,omitempty" json:"supplier"`
|
|
|
|
-
|
|
|
|
- BatchCount int `bson:"batchCount,omitempty" json:"batchCount"` //拼版数量
|
|
|
|
- BatchSizeWidth int `bson:"batchSizeWidth,omitempty" json:"batchSizeWidth"` //平板尺寸
|
|
|
|
- BatchSizeHeight int `bson:"batchSizeHeight,omitempty" json:"batchSizeHeight"` //平板尺寸
|
|
|
|
-
|
|
|
|
- BillId string `bson:"billId,omitempty" json:"billId"`
|
|
|
|
-
|
|
|
|
- Remark string `bson:"remark,omitempty" json:"remark"` //备注
|
|
|
|
-
|
|
|
|
|
|
+ //实际价格
|
|
RealPrice float64 `bson:"realPrice,omitempty" json:"realPrice"`
|
|
RealPrice float64 `bson:"realPrice,omitempty" json:"realPrice"`
|
|
-
|
|
|
|
//确认收货数量
|
|
//确认收货数量
|
|
- ConfirmCount int `bson:"confirmCount,omitempty" json:"confirmCount"`
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-type PackComponentMatCraft struct {
|
|
|
|
- Id string `bson:"id,omitempty" json:"id"`
|
|
|
|
-
|
|
|
|
- //工艺尺寸
|
|
|
|
- Size string `bson:"size,omitempty" json:"size"`
|
|
|
|
-
|
|
|
|
- //工艺数量
|
|
|
|
- Count int `bson:"count,omitempty" json:"count"`
|
|
|
|
|
|
+ RealCount int `bson:"confirmCount,omitempty" json:"confirmCount"`
|
|
|
|
|
|
- //工艺信息
|
|
|
|
- CraftInfo *Craft `bson:"craftInfo,omitempty" json:"craftInfo"` //材料Id
|
|
|
|
|
|
+ // 供应相关信息
|
|
|
|
+ // 交货时间
|
|
|
|
+ DeliveryTime *time.Time `bson:"deliveryTime,omitempty" json:"deliveryTime"`
|
|
|
|
|
|
- Supplier *SupplierPriceVo `bson:"supplier,omitempty" json:"supplier"`
|
|
|
|
|
|
+ // 供应商信息
|
|
|
|
+ SupplierInfo *Supplier `bson:"supplierInfo,omitempty" json:"supplierInfo"`
|
|
|
|
|
|
BatchCount int `bson:"batchCount,omitempty" json:"batchCount"` //拼版数量
|
|
BatchCount int `bson:"batchCount,omitempty" json:"batchCount"` //拼版数量
|
|
BatchSizeWidth int `bson:"batchSizeWidth,omitempty" json:"batchSizeWidth"` //平板尺寸
|
|
BatchSizeWidth int `bson:"batchSizeWidth,omitempty" json:"batchSizeWidth"` //平板尺寸
|
|
BatchSizeHeight int `bson:"batchSizeHeight,omitempty" json:"batchSizeHeight"` //平板尺寸
|
|
BatchSizeHeight int `bson:"batchSizeHeight,omitempty" json:"batchSizeHeight"` //平板尺寸
|
|
|
|
|
|
- BillId string `bson:"billId,omitempty" json:"billId"`
|
|
|
|
-
|
|
|
|
- Remark string `bson:"remark,omitempty" json:"remark"` //备注
|
|
|
|
-
|
|
|
|
- // 实际金额
|
|
|
|
- RealPrice float64 `bson:"realPrice,omitempty" json:"realPrice"`
|
|
|
|
-
|
|
|
|
- //确认收货数量
|
|
|
|
- ConfirmCount int `bson:"confirmCount,omitempty" json:"confirmCount"`
|
|
|
|
|
|
+ Remark string `bson:"remark,omitempty" json:"remark"` //备注
|
|
|
|
+ Size string `bson:"size,omitempty" json:"size"` //工艺尺寸
|
|
|
|
+ Name string `bson:"name,omitempty" json:"name"` //名称
|
|
|
|
+ Category string `bson:"category,omitempty" json:"category"` //分类
|
|
|
|
+ Price float64 `bson:"price,omitempty" json:"price"` //单价
|
|
|
|
+ Unit string `bson:"unit,omitempty" json:"unit"` //单位
|
|
|
|
+ Norm string `bson:"norm,omitempty" json:"norm"` // 规格
|
|
|
|
+ CreateTime time.Time `bson:"createTime,omitempty" json:"createTime"`
|
|
|
|
+ UpdateTime time.Time `bson:"updateTime,omitempty" json:"updateTime"`
|
|
|
|
+ Type int `bson:"type,omitempty" json:"type"` //1-材料 2-供应 3-成品
|
|
|
|
+ Group string `bson:"group,omitempty" json:"group"` //工序合标记,相同MatGroup的数据合并成一个单据
|
|
|
|
+ BillId string `bson:"billId,omitempty" json:"billId"` //订单Id
|
|
}
|
|
}
|