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.
116 lines
2.6 KiB
116 lines
2.6 KiB
2 months ago
|
### AddMaterialDeliveryPlan
|
||
|
|
||
|
此接口用于添加发货计划(材料销售发货通知单)。
|
||
|
|
||
|
---
|
||
|
|
||
|
### 基本信息
|
||
|
|
||
|
方法:POST
|
||
|
|
||
|
URL: http://localhost:8033/open/AddMaterialDeliveryPlan
|
||
|
|
||
|
---
|
||
|
|
||
|
### 请求
|
||
|
|
||
|
__请求参数__
|
||
|
|
||
|
| 参数名 | 类型 | 必填 | 说明 |
|
||
|
| :-- | :-- | :-- | :-- |
|
||
|
| profile | string | 是 | 厂区代码 |
|
||
|
| SaleNo | string | 是 | 发货通知单 |
|
||
|
| BusinessType | long | 是 | 业务类型 1发货 2退货 |
|
||
|
| MaterialSaleTime | string | 是 | 计划发货日期 |
|
||
|
| MaterialDeliveryDetail | Array | 是 | 发货批次 |
|
||
|
|
||
|
__batches__
|
||
|
|
||
|
| 参数名 | 类型 | 必填 | 说明 |
|
||
|
| :-- | :-- | :-- | :-- |
|
||
|
| LineId | string | 是 | 唯一行号(通知单明细批次号) |
|
||
|
| MaterialCode | string | 是 | 物料代码 |
|
||
|
| discripTionOfGoods | string | 否 | 物料名称 |
|
||
|
| Number | double | 是 | 申请发货数量 |
|
||
|
| CustomerCode | string | 是 | 客户代码 |
|
||
|
| isGift | int | 否 | 是否正品 1是 2否 |
|
||
|
| CellGrade | string | 否 | 等级(辅助属性) |
|
||
|
| CellColor | string | 否 | 颜色(辅助属性) |
|
||
|
| CellEff | string | 否 | 效率(辅助属性) |
|
||
|
| CellUop | string | 否 | 功率(辅助属性) |
|
||
|
| CurrentGrade | string | 否 | 电流(辅助属性) |
|
||
|
|
||
|
__请求示例__
|
||
|
|
||
|
```
|
||
|
{
|
||
|
"data": {
|
||
|
"profile": "测试",
|
||
|
"SaleNo": "FHTZD001428",
|
||
|
"BusinessType": "1",
|
||
|
"MaterialSaleTime": "2024-09-30 10:00:00",
|
||
|
"batches": [
|
||
|
{
|
||
|
"LineId": "103347",
|
||
|
"MaterialCode": "10404004",
|
||
|
"BillNo": "XSDD000873",
|
||
|
"discripTionOfGoods": "182.2*183.75单晶N型TOPCon双面电池片",
|
||
|
"CustomerCode": "CUST0354",
|
||
|
"Number": 8300.0,
|
||
|
"CellGrade": "A",
|
||
|
"CellColor":"",
|
||
|
"CellEff": "24.7%",
|
||
|
"CellUop": "",
|
||
|
"CurrentGrade":""
|
||
|
},
|
||
|
{
|
||
|
"LineId": "103348",
|
||
|
"MaterialCode": "10404004",
|
||
|
"BillNo": "XSDD000873",
|
||
|
"discripTionOfGoods": "182.2*183.75单晶N型TOPCon双面电池片",
|
||
|
"CustomerCode": "CUST0354",
|
||
|
"number": 168644.0,
|
||
|
"CellGrade": "A",
|
||
|
"CellColor":"",
|
||
|
"CellEff": "24.8%",
|
||
|
"CellUop": "",
|
||
|
"CurrentGrade":""
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
|
||
|
```
|
||
|
|
||
|
---
|
||
|
|
||
|
### 响应
|
||
|
__响应字段__
|
||
|
| 字段 | 类型 | 说明 |
|
||
|
| :-- | :-- | :-- |
|
||
|
| clock | string | 当前服务器时钟。 |
|
||
|
| status | string | 状态,ok:成功,error:错误,exception:异常 |
|
||
|
| data | object | 成功后返回具体内容 |
|
||
|
|
||
|
__data:__
|
||
|
| 字段 | 类型 | 说明 |
|
||
|
| :-- | :-- | :-- |
|
||
|
|
||
|
```
|
||
|
{
|
||
|
"clock": "2024-09-26 13:53:17.804",
|
||
|
"duration": "7.75s",
|
||
|
"status": "ok",
|
||
|
"data": {}
|
||
|
}
|
||
|
|
||
|
{
|
||
|
"clock": "2024-09-26 13:50:28.317",
|
||
|
"duration": "15.4s",
|
||
|
"status": "error",
|
||
|
"message": "该原材料销售发货通知单号已经存在",
|
||
|
"data": {}
|
||
|
}
|
||
|
|
||
|
|