12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- package model
- import (
- "time"
- "go.mongodb.org/mongo-driver/bson/primitive"
- )
- // 工序管理 用于选择模板
- type Process struct {
- Id primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
- Name string `bson:"name,omitempty" json:"name"`
- Unit string `bson:"unit,omitempty" json:"unit"`
- Norm string `bson:"norm,omitempty" json:"norm"`
- Price float64 `bson:"price,omitempty" json:"price"`
- // 分类
- Category string `bson:"category,omitempty" json:"category"`
- // 单个工艺备注
- Remark string `bson:"remark,omitempty" json:"remark"`
- CreateTime time.Time `bson:"createTime,omitempty" json:"createTime"`
- UpdateTime time.Time `bson:"updateTime,omitempty" json:"updateTime"`
- }
- // 算到采购单里面
- type ProcessBill struct {
- //名字
- Name string `bson:"name,omitempty" json:"name"`
- Supplier string `bson:"supplier,omitempty" json:"supplier"`
- //确认收货数量
- ConfirmCount int `bson:"confirmCount,omitempty" json:"confirmCount"`
- //名字
- Type string `bson:"type,omitempty" json:"type"`
- //规格(质量要求)
- Norm string `bson:"norm,omitempty" json:"norm"`
- //数量
- Count int `bson:"count,omitempty" json:"count"`
- // 单位
- Unit string `bson:"unit,omitempty" json:"unit"`
- //单价
- Price float64 `bson:"price,omitempty" json:"price"`
- // 金额
- //备注
- Remark string `bson:"remark,omitempty" json:"remark"`
- //交货时间
- DeliveryTime time.Time `bson:"deliveryTime,omitempty" json:"deliveryTime"`
- }
- type ProcessData struct {
- Id string `bson:"id,omitempty" json:"id"`
- //所有工艺
- ProcessInfo *Process `bson:"crafts,omitempty" json:"crafts"`
- 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"` //备注
- //确认收货数量
- ConfirmCount int `bson:"confirmCount,omitempty" json:"confirmCount"`
- }
|