You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
96 lines
2.7 KiB
96 lines
2.7 KiB
1 year ago
|
1. ### 创建杂收单RCV ###
|
||
|
|
||
|
1、接口测试地址
|
||
|
方法:POST
|
||
|
URL: http://localhost:7889/Misc/RCVCreateAndAppro
|
||
|
|
||
|
---
|
||
|
单据头
|
||
|
| 参数 | 含义 |类型 | 格式 | 是否必填 | 默认值 | 说明 |
|
||
|
| --- | --- |--- | --- | --- | --- | --- |
|
||
|
| ARRIVEDTIME | 交易时间 | Datetime | yyyy-MM-dd HH:ss:mm | 是 |
|
||
|
| DOCTYPE | 单据类型编码 | string | | 是 |
|
||
|
| ORGCODE | 组织编码 | string | | 是 |
|
||
|
| USERCODE| 业务员编码 | string | | 是 |
|
||
|
| BENEFITPSN | 受益人编码 | string | | 是 |
|
||
|
| BENEFITDEPT | 受益部门 | string| | 是 |
|
||
|
| DocID | 单据ID | long | | 否 |
|
||
|
|
||
|
单据行 lines
|
||
|
|
||
|
| 参数 | 含义 |类型 | 格式 | 是否必填 | 默认值 | 说明 |
|
||
|
| --- | --- | --- | --- | --- |--- |--- |
|
||
|
| DocLineNo| 行号| int | | 是 | 10,20
|
||
|
| ITEMCODE| 料号| string | | 是 |
|
||
|
| QTY | 数量 | decimal | | 是 |
|
||
|
| UNITPRICE | 单价 | decimal | | 否 |
|
||
|
| BINCODE | 库位编码 | string | |是 |
|
||
|
| WHCODE | 仓库编码 | string | | 是 |
|
||
|
| MODOCNO | 生产订单号 | string | | 否 |
|
||
|
| PRODUCTITEMCODE | 产成品编码 | string | | 否 |
|
||
|
| ISZEROCOST | 零成本 | int | | 否 | 选中传1,不选传0
|
||
|
| BELONGORG | 业务归属组织 | string | | 是|
|
||
|
| DocLineID | 单据行ID | long | | 否 |
|
||
|
|
||
|
返回参数
|
||
|
| 参数 | 含义 |类型 | 格式 | 是否必填 | 默认值 | 说明 |
|
||
|
| --- | --- | --- | --- | --- |--- |--- |
|
||
|
| DocID | 单据ID| int | | 是 |
|
||
|
|
||
|
| 参数 | 含义 |类型 | 格式 | 是否必填 | 默认值 | 说明 |
|
||
|
| --- | --- | --- | --- | --- |--- |--- |
|
||
|
| DocLineID | 单据行ID | decimal | | 是 |
|
||
|
| DocLineNo | 料号| string | | 是 |
|
||
|
|
||
|
|
||
|
输入格式示例
|
||
|
```
|
||
|
{
|
||
|
"ARRIVEDTIME":"2022-03-26 14:23:23", 交易时间
|
||
|
"DOCTYPE":"MiscRcv001", 单据类型编码
|
||
|
"ORGCODE":"101", 组织编码
|
||
|
"USERCODE":"RH0003", 业务员编码
|
||
|
"BENEFITPSN":"RH0003", 受益人编码
|
||
|
"BENEFITDEPT":"106", 受益部门
|
||
|
"DocID":0, 单据ID
|
||
|
"lines":[{
|
||
|
"DocLineNo":"10", 行号
|
||
|
"ITEMCODE":"CADC-0010101", 料号
|
||
|
"QTY":1.0, 数量
|
||
|
"UNITPRICE":10.0, 单价
|
||
|
"BINCODE":"", 库位编码
|
||
|
"WHCODE":"001", 仓库编码
|
||
|
"MODOCNO":"MO-0019", 生产订单号
|
||
|
"PRODUCTITEMCODE":"CASC-156EUR0", 产成品编码
|
||
|
"ISZEROCOST":1, 零成本 选中传1,不选传0
|
||
|
"BELONGORG":"101", 业务归属组织
|
||
|
"DocLineID":"101", 单据行ID
|
||
|
}]
|
||
|
}
|
||
|
```
|
||
|
|
||
|
返回报文
|
||
|
Data
|
||
|
```
|
||
|
{
|
||
|
"DocID":0, 单据ID
|
||
|
"lines":[{
|
||
|
"DocLineNo":"10", 行号
|
||
|
"DocLineID":"101", 单据行ID
|
||
|
}]
|
||
|
}
|
||
|
```
|
||
|
|
||
|
|
||
|
```
|
||
|
{
|
||
|
"status": true, 请求状态
|
||
|
"Msg": null, 错误信息
|
||
|
"errorCode":null, 错误编码
|
||
|
"Data": Data
|
||
|
}
|
||
|
```
|
||
|
|
||
|
|
||
|
2. ### 修改杂收单 ###
|
||
|
同上
|