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.
6.0 KiB
6.0 KiB
添加产品(AddProduct)编码
此接口用于添加产品
基本信息
方法:POST
URL: http://localhost:8033/open/AddProduct
请求
请求参数
参数名 | 类型 | 必填 | 说明 |
---|---|---|---|
profile | string | 是 | 厂区代码 |
productCode | string | 是 | 产品编码 |
familyCode | string | 否 | 标签形式 |
processGroupId | int | 否 | 组件绑定生产流程id |
crysTypeId | int | 否 | 晶体类型-id |
busbarTypeId | int | 否 | 栅线类型-id |
cellQty | int | 否 | 电池片数量-id |
modSpecId | int | 否 | 组件规格-id |
processType | int | 否 | 工艺类型-id |
featureCode | int | 否 | 产品特征-id |
modWeight | string | 否 | 组件重量 |
fgCode | string | 否 |
示例 1:添加一个产品
{
"data": {
"profile": "测试",
"productCode": "088+089ART-MW-2",
"familyCode": "ART550-144MHA",
"processGroupId": 34,
"crysTypeId": 12,
"busbarTypeId": 31,
"cellQty": 64,
"modSpecId": 345,
"processType": 22,
"featureCode": 34,
"modWeight": "",
"fgCode": ""
}
}
响应
执行成功时,响应如下:
{
"clock": "2023-07-05 13:57:00.077",
"status": "ok",
"data": {
"info": {
"productCode": "088+089ART-MW-2",
"familyCode": "ART550-144MHA",
"processGroupId": 0,
"crysTypeId": 12,
"crysTypeDesc": "12BB",
"crysTypeValue": "12BB",
"busbarTypeId": 31,
"busbarTypeDesc": "78",
"busbarTypeValue": "78",
"cellQty": 0,
"cellQtyDesc": "D",
"cellQtyValue": "D",
"cellColorId": 0,
"cellColorDesc": null,
"cellColorValue": null,
"modSpecId": 13,
"modSpecDesc": "2465*1134*35",
"modSpecValue": "2465*1134*35",
"modWeight": "",
"fgCode": "",
"createDate": "2023-07-05 13:56:59.927",
"lastUpdate": "2023-07-05 13:56:59.927",
"lastUpdateuser": null,
"processType": 22,
"processTypedesc": "A",
"processTypeValue": "A",
"featureCode": 34,
"featureCodeDesc": "OK",
"featureCodeValue": "OK",
"serialCodeRule": null,
"palletCodeRule": null,
"attrs": [
{
"id": null,
"attributeId": null,
"attributeDesc": "颜色1",
"productCode": null,
"description": null,
"code": null,
"createTime": "0001/1/1 0:00:00",
"createTimeLucid": "0001-01-01 00:00:00.000",
"createUser": null
},
{
"id": null,
"attributeId": null,
"attributeDesc": "背板类型",
"productCode": null,
"description": null,
"code": null,
"createTime": "0001/1/1 0:00:00",
"createTimeLucid": "0001-01-01 00:00:00.000",
"createUser": null
},
{
"id": null,
"attributeId": null,
"attributeDesc": "产品电池片尺寸",
"productCode": null,
"description": null,
"code": null,
"createTime": "0001/1/1 0:00:00",
"createTimeLucid": "0001-01-01 00:00:00.000",
"createUser": null
},
{
"id": null,
"attributeId": null,
"attributeDesc": "边框类型",
"productCode": null,
"description": null,
"code": null,
"createTime": "0001/1/1 0:00:00",
"createTimeLucid": "0001-01-01 00:00:00.000",
"createUser": null
},
{
"id": null,
"attributeId": null,
"attributeDesc": "玻璃类型",
"productCode": null,
"description": null,
"code": null,
"createTime": "0001/1/1 0:00:00",
"createTimeLucid": "0001-01-01 00:00:00.000",
"createUser": null
},
{
"id": null,
"attributeId": null,
"attributeDesc": "产品组件类型",
"productCode": null,
"description": null,
"code": null,
"createTime": "0001/1/1 0:00:00",
"createTimeLucid": "0001-01-01 00:00:00.000",
"createUser": null
},
{
"id": null,
"attributeId": null,
"attributeDesc": "包装数量",
"productCode": null,
"description": null,
"code": null,
"createTime": "0001/1/1 0:00:00",
"createTimeLucid": "0001-01-01 00:00:00.000",
"createUser": null
},
{
"id": null,
"attributeId": null,
"attributeDesc": "仓库属性",
"productCode": null,
"description": null,
"code": null,
"createTime": "0001/1/1 0:00:00",
"createTimeLucid": "0001-01-01 00:00:00.000",
"createUser": null
}
]
}
}
}
执行报错:
{
"clock": "2023-06-25 20:00:00.000",
"status": "exception",
"message": "添加产品失败",
"data": {}
}