|
|
|
### LeaptonAddDeliveryPlan
|
|
|
|
|
|
|
|
此接口用于添加发货计划。
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
### 基本信息
|
|
|
|
|
|
|
|
方法:POST
|
|
|
|
|
|
|
|
URL: http://localhost:8033/open/leaptonAddDeliveryPlan
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
### 请求
|
|
|
|
|
|
|
|
请求参数
|
|
|
|
|
|
|
|
| 参数名 | 类型 | 必填 | 说明 |
|
|
|
|
| :-- | :-- | :-- | :-- |
|
|
|
|
| profile | string | 是 | 厂区代码 |
|
|
|
|
| billType | string | 否 | 单据类型 手选 |
|
|
|
|
| planner | string | 否 | 计划员 创建人 |
|
|
|
|
| maker | string | 否 | 制单人 创建人 |
|
|
|
|
| sourceType | string | 否 | 来源类型 销售订单 |
|
|
|
|
| billCode | string | 否 | 来源单号 销售订单号 |
|
|
|
|
| lines | array | 是 | 行记录 |
|
|
|
|
|
|
|
|
行记录参数
|
|
|
|
|
|
|
|
| 参数名 | 类型 | 必填 | 说明 |
|
|
|
|
| :-- | :-- | :-- | :-- |
|
|
|
|
| lineNum | long | 是 | ERP 行号<br>此参数不传时默认为 0。 |
|
|
|
|
| customer | string | 否 | 订货客户 来源销售订单 |
|
|
|
|
| receivingLocation | string | 否 | 收货位置 来源客户 |
|
|
|
|
| matCode | string | 否 | 料号 来源销售订单 |
|
|
|
|
| matName | string | 否 | 品名 来源销售订单 |
|
|
|
|
| qty | double | 是 | 数量 来源销售订单<br>保留 6 位有效小数,此参数不传时默认为 0。 |
|
|
|
|
| unit | string | 否 | 单位 来源销售订单 |
|
|
|
|
| dispatchingDate | string | 否 | 出货日期 单据默认日期可修改 |
|
|
|
|
| storageLocation | string | 否 | 存储地点 来源销售订单 |
|
|
|
|
| detailBillCode | string | 否 | 明细行来源单号 来源销售订单 |
|
|
|
|
| totalPrice | double | 是 | 价税合计 来源销售订单<br>保留 6 位有效小数,此参数不传时默认为 0。 |
|
|
|
|
| untaxedPrice | double | 是 | 未税金额 来源销售订单<br>保留 6 位有效小数,此参数不传时默认为 0。 |
|
|
|
|
| unitPrice | double | 是 | 单价 来源销售订单<br>保留 6 位有效小数,此参数不传时默认为 0。 |
|
|
|
|
|
|
|
|
请求示例
|
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"profile": "profile",
|
|
|
|
"billType": "",
|
|
|
|
"planner": "",
|
|
|
|
"maker": "",
|
|
|
|
"sourceType": "",
|
|
|
|
"billCode": "",
|
|
|
|
"lines": [
|
|
|
|
{
|
|
|
|
"lineNum": 0,
|
|
|
|
"customer": "",
|
|
|
|
"receivingLocation": "",
|
|
|
|
"matCode": "",
|
|
|
|
"matName": "",
|
|
|
|
"qty": 1,
|
|
|
|
"unit": "",
|
|
|
|
"dispatchingDate": "",
|
|
|
|
"storageLocation": "",
|
|
|
|
"detailBillCode": "",
|
|
|
|
"totalPrice": 1,
|
|
|
|
"untaxedPrice": 1,
|
|
|
|
"unitPrice": 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"lineNum": 0,
|
|
|
|
"customer": "",
|
|
|
|
"receivingLocation": "",
|
|
|
|
"matCode": "",
|
|
|
|
"matName": "",
|
|
|
|
"qty": 2,
|
|
|
|
"unit": "",
|
|
|
|
"dispatchingDate": "",
|
|
|
|
"storageLocation": "",
|
|
|
|
"detailBillCode": "",
|
|
|
|
"totalPrice": 3,
|
|
|
|
"untaxedPrice": 3,
|
|
|
|
"unitPrice": 1.5
|
|
|
|
},
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
### 响应
|
|
|
|
|
|
|
|
保存成功时,服务端将返回此条记录,和记录的主键。
|
|
|
|
|
|
|
|
新增的字段:
|
|
|
|
|
|
|
|
| 字段 | 类型 | 说明 |
|
|
|
|
| :-- | :-- | :-- |
|
|
|
|
| key | string | 主键,由系统自动生成。 |
|
|
|
|
| headKey | string | 主记录的主键,由系统自动填写。 |
|
|
|
|
| lineIndex | integer | 行索引,由系统自动填写,从 0 开始。 |
|
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
"clock": "2023-08-22 10:35:47.913",
|
|
|
|
"duration": "87ms",
|
|
|
|
"status": "ok",
|
|
|
|
"data": {
|
|
|
|
"deleted": null,
|
|
|
|
"profile": "profile",
|
|
|
|
"billType": "",
|
|
|
|
"planner": "",
|
|
|
|
"maker": "",
|
|
|
|
"sourceType": "",
|
|
|
|
"billCode": "",
|
|
|
|
"lines": [
|
|
|
|
{
|
|
|
|
"headKey": "0b9bed8807a04f678a7ac9761270fffd",
|
|
|
|
"lineIndex": 0,
|
|
|
|
"lineNum": 0,
|
|
|
|
"customer": "",
|
|
|
|
"receivingLocation": "",
|
|
|
|
"matCode": "",
|
|
|
|
"matName": "",
|
|
|
|
"qty": 1.0,
|
|
|
|
"unit": "",
|
|
|
|
"dispatchingDate": "",
|
|
|
|
"storageLocation": "",
|
|
|
|
"detailBillCode": "",
|
|
|
|
"totalPrice": 1.0,
|
|
|
|
"untaxedPrice": 1.0,
|
|
|
|
"unitPrice": 1.0,
|
|
|
|
"created": "2023-08-22 10:35:47.876",
|
|
|
|
"updated": "2023-08-22 10:35:47.876",
|
|
|
|
"key": "f1c9f505a3ea4dfb8aa693de23602655",
|
|
|
|
"flag": 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"headKey": "0b9bed8807a04f678a7ac9761270fffd",
|
|
|
|
"lineIndex": 1,
|
|
|
|
"lineNum": 0,
|
|
|
|
"customer": "",
|
|
|
|
"receivingLocation": "",
|
|
|
|
"matCode": "",
|
|
|
|
"matName": "",
|
|
|
|
"qty": 2.0,
|
|
|
|
"unit": "",
|
|
|
|
"dispatchingDate": "",
|
|
|
|
"storageLocation": "",
|
|
|
|
"detailBillCode": "",
|
|
|
|
"totalPrice": 3.0,
|
|
|
|
"untaxedPrice": 3.0,
|
|
|
|
"unitPrice": 1.5,
|
|
|
|
"created": "2023-08-22 10:35:47.882",
|
|
|
|
"updated": "2023-08-22 10:35:47.882",
|
|
|
|
"key": "4d296cc2907d4919a9e4bfd86d98e3db",
|
|
|
|
"flag": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"created": "2023-08-22 10:35:47.872",
|
|
|
|
"updated": "2023-08-22 10:35:47.872",
|
|
|
|
"key": "0b9bed8807a04f678a7ac9761270fffd",
|
|
|
|
"flag": 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|