stock_out.go 1.1 KB

1234567891011121314151617181920212223242526272829
  1. package models
  2. import model2 "Medical_ERP/common/model"
  3. const (
  4. TypeStockOut = "stock_out"
  5. StateStockOut = 1
  6. StateStockRefundOut = 2
  7. StateStockScrapOut = 3
  8. )
  9. type StockOut struct {
  10. model2.Model
  11. MedicineID int `json:"medicineId" gorm:"size:4;not null;comment:药品信息ID"` // 药品信息ID
  12. Quantity int `json:"quantity" gorm:"size:128;"` // 数量
  13. //UnitPrice float32 `json:"unitPrice"` // 销售单价
  14. Operator string `json:"operator" gorm:"size:128;"` // 经办人
  15. ReceivingUnit string `json:"receivingUnit" gorm:"size:128;"` // 收货单位
  16. Date string `json:"date" gorm:"size:128;"` // 入库日期
  17. Qrcode string `json:"qrcode" gorm:"size:128;"` // 条码
  18. Number string `json:"number" gorm:"size:128;"` // 出库入库单号
  19. State int `json:"state" gorm:"size:128;default:1;"` // 出库状态 1-正常 2-退货出库 3-报废出库
  20. model2.ControlBy
  21. model2.ModelTime
  22. }
  23. func (e *StockOut) TableName() string {
  24. return "stock_out"
  25. }