Browse Source

物料接口测试调整

master
吕成旭 1 year ago
parent
commit
7570243007
  1. 74
      mes/物料/修改物料.md
  2. 111
      mes/物料/列出物料.md
  3. 76
      mes/物料/列出物料类别.md
  4. 4
      mes/物料/删除物料.md
  5. 111
      mes/物料/查询物料详情.md
  6. 75
      mes/物料/添加物料.md

74
mes/物料/修改物料.md

@ -35,37 +35,33 @@ attrs字段
| attrName | string | 否 | 属性名称 |
| attrValue | string | 否 | 物料属性值 |
| attrValueCode | string | 否 | 物料属性值代码 |
| flag | int | 否 | 数据状态:0禁用 1启用,默认1 |
示例 1:修改电池片及物料属性值
```
{
"data": {
profile: "测试厂区",
materialCode: "CELL001",
materialTypeCode: "CELL",
descriptions: "电池片描述",
flag: 1,
attrs: [{
materialCode: "CELL001",
materialTypeCode: "CELL",
attrCode: "crys_type",
attrName: "晶体结构",
attrValue: "单晶",
attrValueCode: "单晶",
flag: 1
"profile": "测试",
"materialCode": "CELL002",
"materialTypeCode": "CELL",
"descriptions": "电池片描述",
"attrs": [{
"materialCode": "CELL002",
"materialTypeCode": "CELL",
"attrCode": "crys_type",
"attrName": "晶体结构",
"attrValue": "单晶",
"attrValueCode": "单晶"
},
{
materialCode: "CELL001",
materialTypeCode: "CELL",
attrCode: "cell_uop",
attrName: "单片功率",
attrValue: "7.82",
attrValueCode: "7.82",
flag: 1
"materialCode": "CELL002",
"materialTypeCode": "CELL",
"attrCode": "cell_uop",
"attrName": "单片功率",
"attrValue": "7.88",
"attrValueCode": "7.88"
}
],
]
}
}
```
@ -80,9 +76,37 @@ attrs字段
```
{
"clock": "2023-06-25 20:00:00.000",
"status": "ok",
"data": {}
"clock": "2023-07-05 14:37:28.022",
"status": "ok",
"data": {
"info": {
"materialCode": "CELL002",
"materialTypeCode": "CELL",
"materialTypeDesc": "电池片",
"descriptions": "电池片描述",
"createTime": "2023-07-05 14:29:40.007",
"attrs": [
{
"materialCode": "CELL002",
"materialTypeCode": "CELL",
"materialTypeDesc": "电池片",
"attrCode": "cell_uop",
"attrName": "单片功率",
"attrValue": "7.88",
"attrValueCode": "7.88"
},
{
"materialCode": "CELL002",
"materialTypeCode": "CELL",
"materialTypeDesc": "电池片",
"attrCode": "crys_type",
"attrName": "晶体结构",
"attrValue": "单晶",
"attrValueCode": "单晶"
}
]
}
}
}
```

111
mes/物料/列出物料.md

@ -27,21 +27,9 @@ URL: http://localhost:8033/open/ListMaterial
```
{
"data": {
profile: "测试厂区",
search: "玻璃",
type: ""
}
}
```
示例 2:根据物料类别查询玻璃主材
```
{
"data": {
profile: "测试厂区",
search: "",
type: "GLASS"
"profile": "测试",
"search": "001",
"type": "CELL"
}
}
```
@ -79,39 +67,66 @@ attrs字段
```
{
"clock": "2023-06-25 20:00:00.000",
"status": "ok",
"data": {
list: [{
materialCode: "CELL001",
materialTypeCode: "CELL",
materialTypeDesc: "电池片",
descriptions: "电池片描述",
flag: 1,
createTime: "2023-04-09 18:10:01",
attrs: [{
materialCode: "CELL001",
materialTypeCode: "CELL",
materialTypeDesc: "电池片",
attrCode: "crys_type",
attrName: "晶体结构",
attrValue: "单晶",
attrValueCode: "单晶",
flag: 1
},
{
materialCode: "CELL001",
materialTypeCode: "CELL",
materialTypeDesc: "电池片",
attrCode: "cell_uop",
attrName: "单片功率",
attrValue: "7.82",
attrValueCode: "7.82",
flag: 1
}
],
}]
}
"clock": "2023-07-05 14:12:33.463",
"status": "ok",
"data": {
"list": [
{
"materialCode": "20230704001",
"materialTypeCode": "CELL",
"materialTypeDesc": "电池片",
"descriptions": "测试电池片",
"createTime": "2023-07-04 13:38:41.100",
"attrs": [
{
"materialCode": "20230704001",
"materialTypeCode": "CELL",
"materialTypeDesc": "电池片",
"attrCode": "cell_uop",
"attrName": "单片功率",
"attrValue": "7.24",
"attrValueCode": ""
}
]
},
{
"materialCode": "dianchi0001",
"materialTypeCode": "CELL",
"materialTypeDesc": "电池片",
"descriptions": "电池01",
"createTime": "2023-06-08 16:00:50.750",
"attrs": [
{
"materialCode": "dianchi0001",
"materialTypeCode": "CELL",
"materialTypeDesc": "电池片",
"attrCode": "cell_eff",
"attrName": "电池效率",
"attrValue": "24",
"attrValueCode": ""
},
{
"materialCode": "dianchi0001",
"materialTypeCode": "CELL",
"materialTypeDesc": "电池片",
"attrCode": "cell_uop",
"attrName": "单片功率",
"attrValue": "23",
"attrValueCode": ""
},
{
"materialCode": "dianchi0001",
"materialTypeCode": "CELL",
"materialTypeDesc": "电池片",
"attrCode": "d",
"attrName": "d",
"attrValue": "123",
"attrValueCode": "123"
}
]
}
]
}
}
```

76
mes/物料/列出物料类别.md

@ -21,13 +21,12 @@ URL: http://localhost:8033/open/ListMaterialType
| profile | string | 是 | 厂区代码 |
| search | string | 否 | 物料类型模糊查询 |
示例 1:模糊查询电池物料类别
示例 1:查询物料类别
```
{
"data": {
profile: "测试厂区",
search: "电池",
"profile": "测试",
}
}
```
@ -43,7 +42,6 @@ URL: http://localhost:8033/open/ListMaterialType
| materialTypeCode | string | 物料类别代码 |
| materialTypeDesc | string | 物料类别名称 |
| unit | string | 单位 |
| flag | int | 数据状态:0禁用 1启用 |
| ManagerType | string | 创建时间 |
| Sort | int | 序号 |
| ErpCode | string | |
@ -53,29 +51,53 @@ URL: http://localhost:8033/open/ListMaterialType
```
{
"clock": "2023-06-25 20:00:00.000",
"status": "ok",
"data": {
list: [{
materialTypeCode: "CELL",
materialTypeDesc: "电池片",
unit: "pcs",
flag: 1,
ManagerType: "Photovoltaic",
Sort: 1,
ErpCode: "",
},
{
materialTypeCode: "EVA",
materialTypeDesc: "EVA",
unit: "m2",
flag: 1,
ManagerType: "Photovoltaic",
Sort: 2,
ErpCode: "",
}
]
}
"clock": "2023-07-05 14:14:46.536",
"status": "ok",
"data": {
"list": [
{
"materialTypeCode": "Battery",
"materialTypeDesc": "电池材料",
"unit": "",
"managerType": "",
"sort": 0,
"erpCode": " "
},
{
"materialTypeCode": "BKSHEET",
"materialTypeDesc": "背板",
"unit": "m2",
"managerType": "Photovoltaic",
"sort": 5,
"erpCode": "#F06#,#F06# "
},
{
"materialTypeCode": "BOMID",
"materialTypeDesc": "BOMID",
"unit": "",
"managerType": "Photovoltaic",
"sort": 0,
"erpCode": " "
},
{
"materialTypeCode": "CELL",
"materialTypeDesc": "电池片",
"unit": "pcs",
"managerType": "Photovoltaic",
"sort": 1,
"erpCode": "#D#,#D# "
},
{
"materialTypeCode": "EVA",
"materialTypeDesc": "EVA",
"unit": "m2",
"managerType": "Photovoltaic",
"sort": 2,
"erpCode": "#H0603#,#H0603# "
}
]
}
}
```

4
mes/物料/删除物料.md

@ -26,8 +26,8 @@ URL: http://localhost:8033/open/DeleteMaterial
```
{
"data": {
profile: "测试厂区",
materialCode: "CELL001",
"profile": "测试",
"materialCode": "Z测试1"
}
}
```

111
mes/物料/查询物料详情.md

@ -26,8 +26,8 @@ URL: http://localhost:8033/open/GetMaterial
```
{
"data": {
profile: "测试厂区",
materialCode: "CELL001",
"profile": "测试",
"materialCode": "M.1.1.N.107"
}
}
```
@ -65,39 +65,80 @@ attrs字段
```
{
"clock": "2023-06-25 20:00:00.000",
"status": "ok",
"data": {
info: {
materialCode: "CELL001",
materialTypeCode: "CELL",
materialTypeDesc: "电池片",
descriptions: "电池片描述",
flag: 1,
createTime: "2023-04-09 18:10:01",
attrs: [{
materialCode: "CELL001",
materialTypeCode: "CELL",
materialTypeDesc: "电池片",
attrCode: "crys_type",
attrName: "晶体结构",
attrValue: "单晶",
attrValueCode: "单晶",
flag: 1
},
{
materialCode: "CELL001",
materialTypeCode: "CELL",
materialTypeDesc: "电池片",
attrCode: "cell_uop",
attrName: "单片功率",
attrValue: "7.82",
attrValueCode: "7.82",
flag: 1
}
],
}
}
"clock": "2023-07-05 14:04:45.089",
"status": "ok",
"data": {
"info": {
"materialCode": "M.1.1.N.107",
"materialTypeCode": "CELL",
"materialTypeDesc": "电池片",
"descriptions": "电池片",
"flag": 1,
"createTime": "2023-04-08 23:43:38.023",
"attrs": [
{
"materialCode": "M.1.1.N.107",
"materialTypeCode": "CELL",
"materialTypeDesc": "电池片",
"attrCode": "cell_uop",
"attrName": "单片功率",
"attrValue": "7.82",
"attrValueCode": "",
"flag": 1
},
{
"materialCode": "M.1.1.N.107",
"materialTypeCode": "CELL",
"materialTypeDesc": "电池片",
"attrCode": "cell_color",
"attrName": "电池颜色",
"attrValue": "淡蓝",
"attrValueCode": "",
"flag": 1
},
{
"materialCode": "M.1.1.N.107",
"materialTypeCode": "CELL",
"materialTypeDesc": "电池片",
"attrCode": "cell_grade",
"attrName": "电池等级",
"attrValue": "A",
"attrValueCode": "",
"flag": 1
},
{
"materialCode": "M.1.1.N.107",
"materialTypeCode": "CELL",
"materialTypeDesc": "电池片",
"attrCode": "cell_size",
"attrName": "电池规格",
"attrValue": "M10",
"attrValueCode": "",
"flag": 1
},
{
"materialCode": "M.1.1.N.107",
"materialTypeCode": "CELL",
"materialTypeDesc": "电池片",
"attrCode": "cell_eff",
"attrName": "电池效率",
"attrValue": "22.9%",
"attrValueCode": "",
"flag": 1
},
{
"materialCode": "M.1.1.N.107",
"materialTypeCode": "CELL",
"materialTypeDesc": "电池片",
"attrCode": "cell_type",
"attrName": "电池类型",
"attrValue": "N",
"attrValueCode": "",
"flag": 1
}
]
}
}
}
```

75
mes/物料/添加物料.md

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

Loading…
Cancel
Save