| | |
| | | ) |
| | | |
| | | type ICBom struct { |
| | | FInterID int `gorm:"column:FInterID" json:"FInterID"` // 内码 |
| | | FBOMNumber string `gorm:"column:FBOMNumber" json:"FBOMNumber"` // BOM单编号 |
| | | FUseStatus int `gorm:"column:FUseStatus" json:"FUseStatus"` // 使用状态码 |
| | | FUseStatusName string `gorm:"column:FUseStatusName" json:"FUseStatusName"` // 使用状态 |
| | | FItemIDNumber string `gorm:"column:FItemIDNumber" json:"FItemIDNumber"` // 物料代码 |
| | | FItemIDName string `gorm:"column:FItemIDName" json:"FItemIDName"` // 物料名称 |
| | | FModel string `gorm:"column:FModel" json:"FModel"` // 规格型号 |
| | | FErpClsID string `gorm:"column:FErpClsID" json:"FErpClsID"` // 物料属性 |
| | | FQty float64 `gorm:"column:FQty" json:"FQty"` // 数量 |
| | | FUnitName string `gorm:"column:FUnitName" json:"FUnitName"` // 单位 |
| | | FYield float64 `gorm:"column:FYield" json:"FYield"` // 成品率 |
| | | FRoutingIDNumber string `gorm:"column:FRoutingIDNumber" json:"FRoutingIDNumber"` // 工艺路线代码 |
| | | FRoutingIDName string `gorm:"column:FRoutingIDName" json:"FRoutingIDName"` // 工艺路线名称 |
| | | FNote string `gorm:"column:FNote" json:"FNote"` // 备注 |
| | | FBomType int `gorm:"column:FBomType" json:"FBomType"` // BOM类型 |
| | | FAudDate string `gorm:"column:FAudDate" json:"FAudDate"` // 更新时间 |
| | | FPDMImportDate string `gorm:"column:FPDMImportDate" json:"FPDMImportDate"` // 导入时间 |
| | | FStatus int `gorm:"column:FStatus" json:"FStatus"` // 状态 |
| | | FInterID int `gorm:"column:FInterID" json:"FInterID"` // 内码 |
| | | FBOMNumber string `gorm:"column:FBOMNumber" json:"FBOMNumber"` // BOM单编号 |
| | | FUseStatus int `gorm:"column:FUseStatus" json:"FUseStatus"` // 使用状态码 |
| | | FUseStatusName string `gorm:"column:FUseStatusName" json:"FUseStatusName"` // 使用状态 |
| | | FItemIDNumber string `gorm:"column:FItemIDNumber" json:"FItemIDNumber"` // 物料代码 |
| | | FItemIDName string `gorm:"column:FItemIDName" json:"FItemIDName"` // 物料名称 |
| | | FModel string `gorm:"column:FModel" json:"FModel"` // 规格型号 |
| | | FErpClsID string `gorm:"column:FErpClsID" json:"FErpClsID"` // 物料属性 |
| | | FQty float64 `gorm:"column:FQty" json:"FQty"` // 数量 |
| | | FUnitName string `gorm:"column:FUnitName" json:"FUnitName"` // 单位 |
| | | FYield float64 `gorm:"column:FYield" json:"FYield"` // 成品率 |
| | | FRoutingIDNumber string `gorm:"column:FRoutingIDNumber" json:"FRoutingIDNumber"` // 工艺路线代码 |
| | | FRoutingIDName string `gorm:"column:FRoutingIDName" json:"FRoutingIDName"` // 工艺路线名称 |
| | | FNote string `gorm:"column:FNote" json:"FNote"` // 备注 |
| | | FBomType int `gorm:"column:FBomType" json:"FBomType"` // BOM类型 |
| | | FAudDate string `gorm:"column:FAudDate" json:"FAudDate"` // 更新时间 |
| | | FPDMImportDate string `gorm:"column:FPDMImportDate" json:"FPDMImportDate"` // 导入时间 |
| | | FStatus int `gorm:"column:FStatus" json:"FStatus"` // 状态 |
| | | Component []ICBomChild `json:"Component"` // BOM组件 |
| | | } |
| | | |
| | | func BomList(fData bool) []ICBom { |