1 Star 0 Fork 0

qw_1215/hc

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
bom_workpiece.go 1.56 KB
一键复制 编辑 原始数据 按行查看 历史
qw_1215 提交于 2020-05-08 22:36 +08:00 . 完成了bom、资源和工艺的数据
package hc_common
//bom 节点(工件、组件)
type Workpiece struct {
pcode string
Uid string `json:"uid,omitempty"`
Code string `json:"b_code,omitempty"` //编码
Name string `json:"b_name,omitempty"` //名称
Spec string `json:"b_spec,omitempty"` //规格
Unit string `json:"b_unit,omitempty"` //计量单位
WmsType string `json:"b_wms_type,omitempty"` //仓库供应类型
Cost string `json:"b_cost,omitempty"` //成本相关
GetType string `json:"b_get_type,omitempty"` //生产类型
Remark string `json:"b_remark,omitempty"` //备注
HasCF []*Craft `json:"b_cf,omitempty"`
Category int `json:"b_cf|b_cf_category,omitempty"` //工艺种类。装配2,生产1
HasWO []*WorkOrder `json:"b_wo,omitempty"` //工单
HasWP []*Workpiece `json:"b_children,omitempty"` //下级子件
Level string `json:"b_children|b_level,omitempty"` //节点层级
Line string `json:"b_children|b_line,omitempty"` //子件行号
BasicCount float64 `json:"b_children|b_basic_count,omitempty"` //基础用量
BasicUnit float64 `json:"b_basic_unit,omitempty"` //基础数量
UsedCount float64 `json:"b_children|b_used_count,omitempty"` //使用数量
DType []string `json:"dgraph.type,omitempty"`
}
func (wp *Workpiece) SetPcode(pc string) {
wp.pcode = pc
}
func (wp *Workpiece) GetPcode() string {
return wp.pcode
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/qw_1215/hc.git
git@gitee.com:qw_1215/hc.git
qw_1215
hc
hc
fb9317b23393

搜索帮助