| | |
| | | } |
| | | |
| | | type AddDisuse struct { |
| | | ProductId string `json:"productId"` |
| | | ProductName string `json:"productName"` |
| | | ProductId string `json:"productId"` |
| | | //ProductName string `json:"productName"` |
| | | Amount decimal.Decimal `json:"amount"` |
| | | FromLocationId int `json:"fromLocationId"` |
| | | ToLocationId int `json:"toLocationId"` |
| | | SourceNumber string `json:"sourceNumber"` |
| | | Unit string `json:"unit"` |
| | | //Unit string `json:"unit"` |
| | | Number string `json:"number"` |
| | | } |
| | | |
| | | type QueryDisuseList struct { |
| | | PageInfo |
| | | Number string `json:"number"` |
| | | SourceNumber string `json:"sourceNumber"` |
| | | Number string `json:"number"` |
| | | } |
| | | |
| | | type UpdateDisuse struct { |
| | | Id int `json:"id"` |
| | | ProductId string `json:"productId"` |
| | | ProductName string `json:"productName"` |
| | | Amount decimal.Decimal `json:"amount"` |
| | | FromLocationId int `json:"fromLocationId"` |
| | | ToLocationId int `json:"toLocationId"` |
| | | SourceNumber string `json:"sourceNumber"` |
| | | Unit string `json:"unit"` |
| | | Number string `json:"number"` |
| | | Status constvar.OperationStatus `json:"status"` |
| | | OperationDate string `json:"operationDate"` |
| | | Id int `json:"id"` |
| | | ProductId string `json:"productId"` |
| | | Amount decimal.Decimal `json:"amount"` |
| | | FromLocationId int `json:"fromLocationId"` |
| | | ToLocationId int `json:"toLocationId"` |
| | | SourceNumber string `json:"sourceNumber"` |
| | | Number string `json:"number"` |
| | | Status constvar.OperationStatus `json:"status"` |
| | | OperationDate string `json:"operationDate"` |
| | | BaseOperationType constvar.BaseOperationType `json:"baseOperationType"` |
| | | } |
| | | |
| | | type QueryOperationHistory struct { |
| | | PageInfo |
| | | ProductId string `json:"productId"` |
| | | LocationId int `json:"locationId"` |
| | | } |
| | | |
| | | type ProductStatistics struct { |
| | | TotalAmount decimal.Decimal `gorm:"column:total_amount"` |
| | | BaseOperationType constvar.BaseOperationType `gorm:"column:base_operation_type"` //基础作业类型 |
| | | } |
| | | |
| | | type ProductStatisticsAmount struct { |
| | | ProductId string `gorm:"column:product_id"` |
| | | TotalAmount decimal.Decimal `gorm:"column:total_amount"` |
| | | } |
| | | |
| | | type UnitDict struct { |
| | | Name string `gorm:"unique;type:varchar(191);not null;comment:名称" json:"name"` |
| | | IsDefault bool `gorm:"type:tinyint(1);comment:是否默认" json:"isDefault"` |
| | | } |
| | | |
| | | type SaveUnitDict struct { |
| | | Data []*UnitDict `json:"data"` |
| | | } |