|
@ -35,6 +35,22 @@ URL:http://localhost:8033/open/addWorkorder |
|
|
| warnNum | int | 是 | 预警数量,一般情况下与 `targetNum` 一致即可。 | |
|
|
| warnNum | int | 是 | 预警数量,一般情况下与 `targetNum` 一致即可。 | |
|
|
| beginTime | string | 是 | 开始时间。<br>参考格式:2008-08-08 20:00:00 | |
|
|
| beginTime | string | 是 | 开始时间。<br>参考格式:2008-08-08 20:00:00 | |
|
|
| endTime | string | 是 | 结束时间。<br>参考格式:2008-08-08 20:00:00 | |
|
|
| endTime | string | 是 | 结束时间。<br>参考格式:2008-08-08 20:00:00 | |
|
|
|
|
|
| bom | Array | 是 | bom信息 | |
|
|
|
|
|
|
|
|
|
|
|
bom字段 |
|
|
|
|
|
|
|
|
|
|
|
| 参数名 | 类型 | 必填 | 说明 | |
|
|
|
|
|
| :-- | :-- | :-- | :-- | |
|
|
|
|
|
| productCode | string | 是 | 产品编码 | |
|
|
|
|
|
| materialCode | string | 是 | 物料编码 | |
|
|
|
|
|
| isPrimary | int | 否 | 是否主料 0否,1是| |
|
|
|
|
|
| primaryPart | string | 否 | 主料物料编码,如果isPrimary=1,则与materialCode相同 | |
|
|
|
|
|
| ProcessCode | string | 否 | 工序代码 | |
|
|
|
|
|
| serialRequirement | double | 是 | 物料单耗 | |
|
|
|
|
|
| uom | string | 否 | 单位 | |
|
|
|
|
|
| partType | string | 否 | 物料类别 | |
|
|
|
|
|
| lostRatio | string | 否 | 物料损耗 | |
|
|
|
|
|
| origBatchNbr | string | 否 | 母批号 | |
|
|
|
|
|
|
|
|
请求示例 |
|
|
请求示例 |
|
|
|
|
|
|
|
@ -56,6 +72,29 @@ URL:http://localhost:8033/open/addWorkorder |
|
|
"targetNum": 5000, |
|
|
"targetNum": 5000, |
|
|
"beginTime": "2008-08-08 20:00:00", |
|
|
"beginTime": "2008-08-08 20:00:00", |
|
|
"endTime": "2008-08-24 20:00:00", |
|
|
"endTime": "2008-08-24 20:00:00", |
|
|
|
|
|
"bom": [{ |
|
|
|
|
|
"productCode": "PD004", |
|
|
|
|
|
"materialCode": "CELL001", |
|
|
|
|
|
"isPrimary": 1, |
|
|
|
|
|
"primaryPart": "CELL001", |
|
|
|
|
|
"ProcessCode": "M15", |
|
|
|
|
|
"SerialRequirement": 3.2, |
|
|
|
|
|
"Uom": "pcs", |
|
|
|
|
|
"PartType": "CELL", |
|
|
|
|
|
"LostRatio": 0.01, |
|
|
|
|
|
"OrigBatchNbr": "" |
|
|
|
|
|
}, { |
|
|
|
|
|
"productCode": "PD004", |
|
|
|
|
|
"materialCode": "CELL002", |
|
|
|
|
|
"isPrimary": 0, |
|
|
|
|
|
"primaryPart": "CELL001", |
|
|
|
|
|
"ProcessCode": "M15", |
|
|
|
|
|
"SerialRequirement": 3.2, |
|
|
|
|
|
"Uom": "pcs", |
|
|
|
|
|
"PartType": "CELL", |
|
|
|
|
|
"LostRatio": 0.01, |
|
|
|
|
|
"OrigBatchNbr": "" |
|
|
|
|
|
}] |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
``` |
|
|
``` |
|
|