| | |
| | | ) |
| | | |
| | | type ( |
| | | // OperationDetails 操作明细表 |
| | | // OperationDetails 库存操作明细表 |
| | | OperationDetails struct { |
| | | WmsModel |
| | | Id int `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"` |
| | | OperationID int `json:"operationId" gorm:"index;type:int;not null;comment:操作记录id"` //操作id |
| | | OperationID int `json:"operationId" gorm:"index;type:int;not null;comment:操作记录id"` //操作记录id |
| | | BaseOperationType constvar.BaseOperationType `json:"baseOperationType" gorm:"type:tinyint;not null;comment:基础作业类型"` //基础作业类型 |
| | | ProductId string `json:"productId" gorm:"type:varchar(191);not null;comment:产品id"` //产品id |
| | | //ProductName string `json:"productName" gorm:"type:varchar(255);not null;comment:产品名称"` //产品名称 |
| | | Amount decimal.Decimal `json:"amount" gorm:"type:decimal(30,10);not null;comment:数量"` //数量 |
| | | StockAmount decimal.Decimal `json:"stockAmount" gorm:"type:decimal(30,10);"` //库存数量,盘点时用 |
| | | StockAmount decimal.Decimal `json:"stockAmount" gorm:"type:decimal(30,10);comment:库存数量"` //库存数量,盘点时用 |
| | | //Unit string `json:"unit" gorm:"type:varchar(31);comment:单位"` //单位 |
| | | Product Material `json:"product" gorm:"foreignKey:ProductId;references:ID"` |
| | | Product Material `json:"product" gorm:"foreignKey:ProductId;references:ID"` // 物料信息 |
| | | |
| | | FromLocationID int `json:"fromLocationId" gorm:"type:int;not null;comment:源位置id"` //源位置id |
| | | FromLocation Location `json:"fromLocation" gorm:"foreignKey:FromLocationID;references:Id"` //源位置 |
| | | ToLocationID int `json:"toLocationId" gorm:"type:int;not null;comment:目标位置id"` //目标位置id |
| | | ToLocation Location `json:"toLocation" gorm:"foreignKey:ToLocationID;references:Id"` //目标位置 |
| | | TotalGrossWeight decimal.Decimal `json:"totalGrossWeight" gorm:"type:decimal(20,3);comment:总毛重"` |
| | | TotalNetWeight decimal.Decimal `json:"totalNetWeight" gorm:"type:decimal(20,3);comment:总净重"` |
| | | AuxiliaryAmount decimal.Decimal `json:"auxiliaryAmount" gorm:"type:decimal(20,3);comment:辅助数量"` |
| | | AuxiliaryUnit string `json:"auxiliaryUnit" gorm:"type:varchar(191);comment:辅助单位"` |
| | | Remark string `gorm:"type:varchar(1024);comment:备注" json:"remark"` |
| | | IsInternalOutput bool `json:"isInternalOutput"` //是否调拨产生的出库 |
| | | DealerType string `json:"dealerType"` //出入库类型 |
| | | TotalGrossWeight decimal.Decimal `json:"totalGrossWeight" gorm:"type:decimal(20,3);comment:总毛重"` // 总毛重 |
| | | TotalNetWeight decimal.Decimal `json:"totalNetWeight" gorm:"type:decimal(20,3);comment:总净重"` // 总净重 |
| | | AuxiliaryAmount decimal.Decimal `json:"auxiliaryAmount" gorm:"type:decimal(20,3);comment:辅助数量"` // 辅助数量 |
| | | AuxiliaryUnit string `json:"auxiliaryUnit" gorm:"type:varchar(191);comment:辅助单位"` // 辅助单位 |
| | | Remark string `json:"remark" gorm:"type:varchar(1024);comment:备注"` // 备注 |
| | | IsInternalOutput bool `json:"isInternalOutput" gorm:"type:tinyint(1);comment:是否调拨产生的出库"` //是否调拨产生的出库 |
| | | DealerType string `json:"dealerType" gorm:"type:varchar(255);comment:出入库类型"` //出入库类型 |
| | | |
| | | Cost decimal.Decimal `json:"cost" ` //成本单价 |
| | | SalePrice decimal.Decimal `json:"salePrice" ` //销售单价 |
| | | Cost decimal.Decimal `json:"cost" gorm:"type:decimal(20,4);comment:成本单价"` //成本单价 |
| | | SalePrice decimal.Decimal `json:"salePrice" gorm:"type:decimal(20,4);comment:销售单价"` //销售单价 |
| | | // 嘉联仓储添加 SilkMarket、SilkMarketClose |
| | | SilkMarket string `json:"silkMarket" gorm:"type:varchar(255);comment:庄口"` // 庄口 |
| | | SilkMarketClose string `json:"silkMarketClose" gorm:"type:varchar(10);comment:庄口关闭"` // 庄口关闭 |
| | | } |
| | | |
| | | OperationDetailsSearch struct { |