| | |
| | | |
| | | type PurchaseProducts struct { |
| | | PurchaseId int `json:"purchaseId" form:"purchaseType" gorm:"type:int(11);not null;default 0;comment:采购类型id"` // 采购id |
| | | ProductId int `json:"productId" form:"supplierId" gorm:"type:int(11);not null;default 0;comment:供应商id"` // 产品id |
| | | ProductId int `json:"productId" form:"supplierId" gorm:"type:int(11);not null;default 0;comment:产品id"` // 产品id |
| | | Amount decimal.Decimal `json:"amount" form:"amount" gorm:"type:decimal(12,2);not null;default 0;comment:采购数量"` // 采购数量 |
| | | Price decimal.Decimal `json:"price" form:"price" gorm:"type:decimal(12,2);not null;default 0.00;comment:采购单价"` // 采购单价 |
| | | Total decimal.Decimal `json:"total" form:"total" gorm:"type:decimal(12,2);not null;default 0.00;comment:采购总价"` // 采购总价 |
| | |
| | | Specifications string `json:"specifications" form:"specifications" gorm:"column:specifications;comment:规格;size:255;"` |
| | | ModelNumber string `json:"modelNumber" form:"modelNumber" gorm:"column:model_number;comment:型号;size:255;"` |
| | | ProductType string `json:"productType" form:"productType" gorm:"column:product_type;comment:产品类别;size:255;"` |
| | | Remark string `json:"remark" form:"remark" gorm:"type:varchar(1000);not null; default '';comment:描述"` //描述 |
| | | } |
| | | |
| | | type QualityInspectList struct { |
| | |
| | | Quantity decimal.Decimal `json:"quantity" form:"quantity" gorm:"type:decimal(12,4);not null;comment:采购数量"` // 采购数量 |
| | | InspectStatus string `json:"inspectStatus" form:"inspectStatus"` //检测结果 |
| | | } |
| | | |
| | | type OperationInfo struct { |
| | | ProductInfos []ProductInfo `json:"productInfos"` |
| | | InWarehouseInfos []InWarehouseInfo `json:"inWarehouseInfos"` |
| | | } |
| | | |
| | | type ProductInfo struct { |
| | | Number string `json:"number"` //产品编码 |
| | | Name string `json:"name"` //产品名称 |
| | | Specifications string `json:"specifications"` //规格 |
| | | ModelNumber string `json:"modelNumber"` //型号 |
| | | Amount decimal.Decimal `json:"amount"` //采购数 |
| | | SendAmount int64 `json:"sendAmount"` //收货数 |
| | | OverAmount int64 `json:"overAmount"` //入库数 |
| | | Unit string `json:"unit"` //单位 |
| | | PurchasePrice decimal.Decimal `json:"purchasePrice"` //单价 |
| | | Total decimal.Decimal `json:"total"` //总价 |
| | | } |
| | | |
| | | type InWarehouseInfo struct { |
| | | Number string `json:"number"` //产品编码 |
| | | Name string `json:"name"` //产品名称 |
| | | OperationNumber string `json:"operationNumber"` //入库单号 |
| | | WarehouseName string `json:"warehouseName"` //仓库名 |
| | | OverTime string `json:"overTime"` //入库时间 |
| | | Status int64 `json:"status"` |
| | | Principal string `json:"principal"` //负责人 |
| | | OverAmount int64 `json:"overAmount"` //入库数 |
| | | } |