|
|
|
1. ### 创建调入单 ###
|
|
|
|
|
|
|
|
1、接口测试地址
|
|
|
|
方法:POST
|
|
|
|
URL: http://localhost:7889/TransferIn/CreateTransferInSV
|
|
|
|
|
|
|
|
---
|
|
|
|
单据头
|
|
|
|
| 参数 | 含义 |类型 | 格式 | 是否必填 | 默认值 | 说明 |
|
|
|
|
| --- | --- |--- | --- | --- | --- | --- |
|
|
|
|
| BusinessDate | 交易时间 | Datetime | yyyy-MM-dd HH:ss:mm | 是 |
|
|
|
|
| DocType | 单据类型编码 | string | | 是 |
|
|
|
|
| Org | 组织 | string| | 是 |
|
|
|
|
| User | 用户 | string| | 是 |
|
|
|
|
|
|
|
|
单据行 lines
|
|
|
|
|
|
|
|
| 参数 | 含义 |类型 | 格式 | 是否必填 | 默认值 | 说明 |
|
|
|
|
| --- | --- | --- | --- | --- |--- |--- |
|
|
|
|
| Item| 料号| string | | 是 |
|
|
|
|
| Qty | 数量 | decimal | | 是 |
|
|
|
|
| Wh| 存储仓库 | string | | 是 |
|
|
|
|
| OutWh | 调出存储仓库 | string | | 是 |
|
|
|
|
| Bin | 调入库位 | string | | 是 |
|
|
|
|
| OutBin | 调出库位 | string | |是 |
|
|
|
|
| LotNo | 批号 | string | | 是 |
|
|
|
|
| Project | 项目 | string | | 否|
|
|
|
|
| Memo | 调入组织编码 | string | | 是 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
输入格式示例
|
|
|
|
```
|
|
|
|
{
|
|
|
|
"BusinessDate":"2023-07-7 12:25:25",
|
|
|
|
"DocType":"",
|
|
|
|
"Org":"100",
|
|
|
|
"User":"IT",
|
|
|
|
"lines":[{
|
|
|
|
"Item":"2.08.0.0001",
|
|
|
|
"Qty":1,
|
|
|
|
"Wh":"009",
|
|
|
|
"OutWh":"001",
|
|
|
|
"Bin":"MOD2",
|
|
|
|
"OutBin":"A07",
|
|
|
|
"LotNo":"P-0083230509001"
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
返回报文
|
|
|
|
Data
|
|
|
|
"Data": "Tra2023070002"
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
"status": true,
|
|
|
|
"Msg": null,
|
|
|
|
"errorCode": null,
|
|
|
|
"Data": "Tra2023070002"
|
|
|
|
}
|
|
|
|
```
|