You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.8 KiB
1.8 KiB
查询Bom明细(ListConfigBomPart)
此接口用于获取Bom列表,搜索Bom
基本信息
方法:POST
URL: http://localhost:8033/open/ListConfigBomPart
请求
请求参数
参数名 | 类型 | 必填 | 说明 |
---|---|---|---|
profile | string | 是 | 厂区代码 |
bomId | string | 是 | BomId |
示例 1:模糊查询bom列表
{
"data": {
profile: "测试厂区",
bomId: "1407",
}
}
响应
响应字段
字段 | 类型 | 说明 |
---|---|---|
bomId | string | bomId |
descriptions | string | bom描述 |
bomPartNbr | string | 物料料号 |
isPrimary | int | 是否为主料:0否 1是 |
PrimaryPart | string | 主料料号 |
SerialRequirement | double | 材料单耗 |
Uom | string | 材料单位 |
PartType | string | 物料类别id |
PartTypeDesc | string | 物料类别描述 |
LostRatio | double | 物料耗损 |
GlueType | string | |
Supplier | string | 供应商编码 |
查询成功时,响应如下:
{
"clock": "2023-06-25 20:00:00.000",
"status": "ok",
"data": {
list: [{
bomId: "1407",
descriptions: "1407号bom",
bomPartNbr: "M.1.1.N.100",
isPrimary: 1,
PrimaryPart: "M.1.1.N.100",
SerialRequirement: 3,
Uom: "Pcs",
PartType: "CELL",
PartTypeDesc: "电池片",
LostRatio: 3,
GlueType: "",
Supplier: "CS2",
}, {
bomId: "1407",
descriptions: "1407号bom",
bomPartNbr: "401908010191",
isPrimary: 1,
PrimaryPart: "401908010191",
SerialRequirement: 1,
Uom: "Pcs",
PartType: "JBOX",
PartTypeDesc: "接线盒",
LostRatio: 0,
GlueType: "",
Supplier: "CS2",
}]
}
}
查询报错:
{
"clock": "2023-06-25 20:00:00.000",
"status": "exception",
"message": "错误信息",
"data": {}
}