MES标准开放接口
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.
 

2.6 KiB

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": {}
}