|
@ -23,7 +23,6 @@ URL: http://localhost:8033/open/AddMaterial |
|
|
| materialTypeCode | string | 是 | 物料类别代码 | |
|
|
| materialTypeCode | string | 是 | 物料类别代码 | |
|
|
| descriptions | string | 否 | 物料描述 | |
|
|
| descriptions | string | 否 | 物料描述 | |
|
|
| attrs | Array | 否 | 物料属性 | |
|
|
| attrs | Array | 否 | 物料属性 | |
|
|
| flag | int | 否 | 数据状态:0禁用 1启用,默认1| |
|
|
|
|
|
|
|
|
|
|
|
attrs字段 |
|
|
attrs字段 |
|
|
|
|
|
|
|
@ -35,37 +34,33 @@ attrs字段 |
|
|
| attrName | string | 否 | 属性名称 | |
|
|
| attrName | string | 否 | 属性名称 | |
|
|
| attrValue | string | 否 | 物料属性值 | |
|
|
| attrValue | string | 否 | 物料属性值 | |
|
|
| attrValueCode | string | 否 | 物料属性值代码 | |
|
|
| attrValueCode | string | 否 | 物料属性值代码 | |
|
|
| flag | int | 否 | 数据状态:0禁用 1启用,默认1 | |
|
|
|
|
|
|
|
|
|
|
|
示例 1:添加电池片及物料属性值 |
|
|
示例 1:添加电池片及物料属性值 |
|
|
|
|
|
|
|
|
``` |
|
|
``` |
|
|
{ |
|
|
{ |
|
|
"data": { |
|
|
"data": { |
|
|
profile: "测试厂区", |
|
|
"profile": "测试", |
|
|
materialCode: "CELL001", |
|
|
"materialCode": "CELL002", |
|
|
materialTypeCode: "CELL", |
|
|
"materialTypeCode": "CELL", |
|
|
descriptions: "电池片描述", |
|
|
"descriptions": "电池片描述", |
|
|
flag: 1, |
|
|
"attrs": [{ |
|
|
attrs: [{ |
|
|
"materialCode": "CELL002", |
|
|
materialCode: "CELL001", |
|
|
"materialTypeCode": "CELL", |
|
|
materialTypeCode: "CELL", |
|
|
"attrCode": "crys_type", |
|
|
attrCode: "crys_type", |
|
|
"attrName": "晶体结构", |
|
|
attrName: "晶体结构", |
|
|
"attrValue": "单晶", |
|
|
attrValue: "单晶", |
|
|
"attrValueCode": "单晶" |
|
|
attrValueCode: "单晶", |
|
|
|
|
|
flag: 1 |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
materialCode: "CELL001", |
|
|
"materialCode": "CELL002", |
|
|
materialTypeCode: "CELL", |
|
|
"materialTypeCode": "CELL", |
|
|
attrCode: "cell_uop", |
|
|
"attrCode": "cell_uop", |
|
|
attrName: "单片功率", |
|
|
"attrName": "单片功率", |
|
|
attrValue: "7.82", |
|
|
"attrValue": "7.82", |
|
|
attrValueCode: "7.82", |
|
|
"attrValueCode": "7.82" |
|
|
flag: 1 |
|
|
|
|
|
} |
|
|
} |
|
|
], |
|
|
] |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
``` |
|
|
``` |
|
@ -79,9 +74,37 @@ attrs字段 |
|
|
|
|
|
|
|
|
``` |
|
|
``` |
|
|
{ |
|
|
{ |
|
|
"clock": "2023-06-25 20:00:00.000", |
|
|
"clock": "2023-07-05 14:29:40.122", |
|
|
"status": "ok", |
|
|
"status": "ok", |
|
|
"data": {} |
|
|
"data": { |
|
|
|
|
|
"info": { |
|
|
|
|
|
"materialCode": "CELL002", |
|
|
|
|
|
"materialTypeCode": "CELL", |
|
|
|
|
|
"materialTypeDesc": "电池片", |
|
|
|
|
|
"descriptions": "电池片描述", |
|
|
|
|
|
"createTime": "2023-07-05 14:29:40.008", |
|
|
|
|
|
"attrs": [ |
|
|
|
|
|
{ |
|
|
|
|
|
"materialCode": "CELL002", |
|
|
|
|
|
"materialTypeCode": "CELL", |
|
|
|
|
|
"materialTypeDesc": "电池片", |
|
|
|
|
|
"attrCode": "cell_uop", |
|
|
|
|
|
"attrName": "单片功率", |
|
|
|
|
|
"attrValue": "7.82", |
|
|
|
|
|
"attrValueCode": "7.82" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
"materialCode": "CELL002", |
|
|
|
|
|
"materialTypeCode": "CELL", |
|
|
|
|
|
"materialTypeDesc": "电池片", |
|
|
|
|
|
"attrCode": "crys_type", |
|
|
|
|
|
"attrName": "晶体结构", |
|
|
|
|
|
"attrValue": "单晶", |
|
|
|
|
|
"attrValueCode": "单晶" |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|