{
"body": {
"code": "WC-CNC-12",
"name": "钛合金精密加工中心V2",
"lotCarFlowType": "AUTO_FLOW",
"bottleneckResourceType": "MACHINE",
"warehouseCode": "WH-METAL-05",
"warehouseBinCode": "BIN-12-08",
"enabled": true,
"enableOutsource": false,
"coreWorkCenter": true,
"monitor": 1,
"enableDivision": false,
"resourceParams": [
{
"code": "WS-CNC-12",
"type": "GROUP",
"defaultDistribute": true
},
{
"code": "CNC-5AXIS-04",
"type": "MACHINE",
"defaultDistribute": true
}
],
"workCenterCalendarCode": "SHIFT-4X6",
"availableShiftQty": 4,
"overloadRatio": 8,
"useRatio": 95,
"efficiency": 88,
"enableMatchingLotConsumeWip": true,
"enableLimitMaxLotProductiveQty": 1,
"comment": "五轴联动加工精度±0.001mm | 刀具寿命监控系统已上线"
}
}
curl --location --request POST '/api/open/v3/workCenter/update' \
--header 'Cookie;' \
--header 'Content-Type: application/json' \
--data-raw '{
"body": {
"code": "WC-CNC-12",
"name": "钛合金精密加工中心V2",
"lotCarFlowType": "AUTO_FLOW",
"bottleneckResourceType": "MACHINE",
"warehouseCode": "WH-METAL-05",
"warehouseBinCode": "BIN-12-08",
"enabled": true,
"enableOutsource": false,
"coreWorkCenter": true,
"monitor": 1,
"enableDivision": false,
"resourceParams": [
{
"code": "WS-CNC-12",
"type": "GROUP",
"defaultDistribute": true
},
{
"code": "CNC-5AXIS-04",
"type": "MACHINE",
"defaultDistribute": true
}
],
"workCenterCalendarCode": "SHIFT-4X6",
"availableShiftQty": 4,
"overloadRatio": 8,
"useRatio": 95,
"efficiency": 88,
"enableMatchingLotConsumeWip": true,
"enableLimitMaxLotProductiveQty": 1,
"comment": "五轴联动加工精度±0.001mm | 刀具寿命监控系统已上线"
}
}'
{
"code": 0,
"message": ""
}