# 生产相关
本文档将详细列举当前系统支持生产单实体相关的 webhook
# 车间计划派发
curl 示例请求:
curl --request POST \
--url 'http://${yourhost}/${yourpath}?businessType=WORK_ORDER_SCHEDULE' \
--header 'content-type: application/json' \
--data '{"requestId":"24852d91-5c43-4f67-99c5-e6e441337749","businessType":1201,"data":{"code":"WO-20210107-002","planStartTime":1609459200000,"planEndTime":1612137600000}}'
{
"requestId": "24852d91-5c43-4f67-99c5-e6e441337749",//请求ID,供日后 DEBUG 用,暂无业务意义
"businessType": 1201,//业务类型,参考[webhook](/webhook/)定义
"data": {
"code": "WO-20210107-002", // 生产单号
"itemCode":"T-1010",
"quantity":20,
"planStartTime":1609459200000, //生产单开始是缉拿
"planEndTime":1612137600000 // 生产单截止时间
}
}
# 生产单修改
{
"requestId": "24852d91-5c43-4f67-99c5-e6e441337749",//请求ID,供日后 DEBUG 用,暂无业务意义
"businessType": 1201,//业务类型,参考[webhook](/webhook/)定义
"data": {
"code": "WO-20210107-002", // 生产单号
"itemCode":"T-1010",
"quantity":20,
"planStartTime":1609459200000, //生产单开始是缉拿
"planEndTime":1612137600000 // 生产单截止时间
}
}
# 生产单完成
{
"requestId": "24852d91-5c43-4f67-99c5-e6e441337749",//请求ID,供日后 DEBUG 用,暂无业务意义
"businessType": 1301,//业务类型,参考[webhook](/webhook/)定义
"data": {
"workOrderCode": "WO-20210107-002" // 生产单号
}
}
# 生产单计划用料新增
{
"requestId": "623b0326-cde8-4fc5-9f39-6fce5534e850",
"businessType": 1102,
"data": {
"workOrderCode": "SCDD-20230828-0003",
"details": [{
"itemCode": "11001150020001",
"procedureCode": "RK",
"procedureName": "入库",
"unitQty": 1.000000,
"planQty": 1.00000000,
}, {
"itemCode": "11004150050001",
"procedureCode": "M-WNM",
"procedureName": "磨-万能磨",
"unitQty": 1.000000,
"planQty": 10.00000000
}]
}
}
# 生产单计划用料修改
{
"requestId": "4289e9cb-c954-4639-b702-8616e175727d",
"businessType": 1103,
"data": {
"workOrderCode": "SCDD-20230829-0001",
"details": [{
"itemCode": "11004150050001",
"procedureCode": "M-WNM",
"procedureName": "磨-万能磨",
"unitQty": 1.000000,
"planQty": 20.00000000,
}]
}
}
# 生产单计划用料删除
{
"requestId": "4289e9cb-c954-4639-b702-8616e175727d",
"businessType": 1104,
"data": {
"workOrderCode": "SCDD-20230829-0001",
"details": [{
"itemCode": "11004150050001",
"procedureCode": "M-WNM",
"procedureName": "磨-万能磨",
"unitQty": 1.000000,
"planQty": 20.00000000,
}]
}
}