MES标准开放接口
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.3 KiB

BOM添加材料(BomAddPart)

此接口用于向Bom添加材料信息


基本信息

方法:POST

URL: http://localhost:8033/open/BomAddPart


请求

请求参数

参数名 类型 必填 说明
profile string 厂区代码
bomId string BomId
bomPartNbr string 物料料号
isPrimary int 是否为主料:0否 1是
PrimaryPart string 主料料号,如果isPrimary=0,则需要传递该字段
SerialRequirement double 材料单耗
PartType string 物料类别id
LostRatio double 物料耗损
GlueType string
Supplier string 供应商编码

示例 1:向Bom添加材料信息

{
    "data": {
        profile:"测试厂区",
        bomId:"1407",
        bomPartNbr:"M.1.1.N.100",
        isPrimary:1,
        PrimaryPart:"M.1.1.N.100",
        SerialRequirement:3,
        PartType:"CELL",
        LostRatio:3,
        GlueType:"",
        Supplier:"CS2",
    }
}

响应

执行成功时,响应如下:

{
  "clock": "2023-06-25 20:00:00.000",
  "status": "ok",
  "data": {}
}

执行报错:

{
  "clock": "2023-06-25 20:00:00.000",
  "status": "exception",
  "message": "添加材料失败",
  "data": {}
}