|
|
|
1. ### 创建完工报告CreateCompRptSrv ###
|
|
|
|
|
|
|
|
1、接口测试地址
|
|
|
|
方法:POST
|
|
|
|
URL: http://localhost:51967/CompRpt/CreateCompRptSrv
|
|
|
|
|
|
|
|
---
|
|
|
|
单据头
|
|
|
|
| 参数 | 含义 |类型 | 格式 | 是否必填 | 默认值 | 说明 |
|
|
|
|
| --- | --- |--- | --- | --- | --- | --- |
|
|
|
|
| ORGCODE| 组织机构编码 | string| | 是 |
|
|
|
|
| BusinessDate | 交易时间 | Datetime | yyyy-MM-dd HH:ss:mm | 是 |
|
|
|
|
| CompleteDate | 完工时间 | Datetime | yyyy-MM-dd HH:ss:mm | 是 |
|
|
|
|
| HandlePerson | 入库人 | string | | 是 |
|
|
|
|
| handleDept | 入库部门 | string | | 是 |
|
|
|
|
| MO| 生产订单 | string | | 是 |
|
|
|
|
| ProductUOM | 生产单位 | string | | 是 |
|
|
|
|
| CompleteQty | 完工数量 | decimal| | 是 |
|
|
|
|
| RcvQtyByProductUOM | 实际入库量 | decimal | | 是 |
|
|
|
|
| EligibleQty | 合格数量 | decimal | | 是 |
|
|
|
|
| ScrapQty | 报废数量 | decimal | | 是 |
|
|
|
|
| OwnerOrg | 货主组织 | string | | 是 |
|
|
|
|
| RcvOrg | 入库组织 | string | | 否 |
|
|
|
|
| RcvWh | 存储地点 | string | | 否 |
|
|
|
|
| DocID | 单据ID | long | | 否 | 修改填写
|
|
|
|
---
|
|
|
|
单据行 lines
|
|
|
|
| 参数 | 含义 |类型 | 格式 | 是否必填 | 默认值 | 说明 |
|
|
|
|
| --- | --- | --- | --- | --- |--- |--- |
|
|
|
|
| DocLineNo| 行号| int | | 是 | 10,20
|
|
|
|
| RcvQtyByProductUOM| 入库数量| decimal | | 是 |
|
|
|
|
| RcvWh | 存储地点 | string | | 否 |
|
|
|
|
| Bin | 库位 | string | | 否 |
|
|
|
|
| RcvLotNo| 批号| string| | 是 |
|
|
|
|
| DocLineID | 单据行ID | long | | 否 |修改填写
|
|
|
|
|
|
|
|
---
|
|
|
|
输入格式示例
|
|
|
|
```
|
|
|
|
{
|
|
|
|
"BusinessDate":"2023-07-13 14:23:23",
|
|
|
|
"completeDate":"2023-07-13 14:23:23",
|
|
|
|
"User":"IT",
|
|
|
|
"HandlePerson":"LC0114",
|
|
|
|
"handleDept":"18",
|
|
|
|
"MO":"230461",
|
|
|
|
"ProductUOM":"101",
|
|
|
|
"CompleteQty":1.0,
|
|
|
|
"RcvQtyByProductUOM":1.0,
|
|
|
|
"EligibleQty":1.0,
|
|
|
|
"ScrapQty":0,
|
|
|
|
"OwnerOrg":"100",
|
|
|
|
"RcvOrg":"100",
|
|
|
|
"RcvWh":"002",
|
|
|
|
"Lines":[{
|
|
|
|
"DocLineNo":"10",
|
|
|
|
"RcvLotNo":"CADC-0010101",
|
|
|
|
"RcvQtyByProductUOM":1.0,
|
|
|
|
"RcvWh":"002",
|
|
|
|
"Bin":"C07"
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
返回报文
|
|
|
|
Data
|
|
|
|
```
|
|
|
|
{
|
|
|
|
"DocID":0, 单据ID
|
|
|
|
"lines":[{
|
|
|
|
"DocLineNo":"10", 行号
|
|
|
|
"DocLineID":"101", 单据行ID
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
"status": true,
|
|
|
|
"Msg": null,
|
|
|
|
"errorCode": null,
|
|
|
|
"Data": {
|
|
|
|
"DocID": 1002307133712832,
|
|
|
|
"DocNo": "WG-5044",
|
|
|
|
"Lines": [
|
|
|
|
{
|
|
|
|
"DocLineNo": 10,
|
|
|
|
"DocLineID": 1002307133712833
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
1. ### 修改杂收单 ###
|
|
|
|
同上
|