package purchase
|
|
import (
|
"github.com/shopspring/decimal"
|
"srm/global"
|
)
|
|
// PurchaseQualityInspection 采购产品质检表
|
type PurchaseQualityInspection struct {
|
global.GVA_MODEL_INT
|
PurchaseNumber string `json:"purchaseNumber" gorm:"type:varchar(255);comment:采购单编号"`
|
ProductId string `json:"productId" gorm:"type:varchar(255);comment:产品编码"`
|
ProductName string `json:"productName" gorm:"type:varchar(255);comment:产品名"`
|
Principal string `json:"principal" gorm:"type:varchar(255);comment:收货人"`
|
Unit string `json:"unit" gorm:"type:varchar(255);comment:计量单位"`
|
Specs string `json:"specs" gorm:"type:varchar(255);comment:规格"`
|
Type string `json:"type" gorm:"type:varchar(255);comment:型号"`
|
Amount decimal.Decimal `json:"amount" gorm:"type:decimal(12,4);not null;comment:采购数量"`
|
Status int `json:"status" gorm:"type:int;comment:状态,1待质检,2已入库,3不合格"`
|
CreateTime string `json:"createTime" gorm:"type:varchar(255);comment:创建时间"`
|
}
|
|
func (PurchaseQualityInspection) TableName() string {
|
return "srm_purchase_quality_inspection"
|
}
|
|
const (
|
WaitInspection = iota + 1 //待质检
|
InWarehouse //已入库
|
Unqualified //不合格
|
)
|