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.
 

953 B

设置工单的数量

此接口可修改现有工单的组件数量。


基本信息

方法:POST

URL:http://localhost:8033/open/setWorkorderNum

认证:需要


请求

请求参数

参数名 类型 必填 说明
profile string 厂区。
code string 工单号。
targetNum int 新的工单交付数量,修改此值时,新的数量不可少于已生码数量。
planNum int 新的计划数量。无特定要求时,与 targetNum 一致即可。
warnNum int 新的预警数量。无特定要求时,与 targetNum 一致即可。

请求示例

{
    "data":  {
        "profile": "测试",
        "code": "Workorder001",
        "targetNum": 5000,
        "planNum": 5200,
        "warnNum": 4800
    }
}

响应

执行成功时,返回工单信息,格式请参考《添加工单》。