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