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.

73 lines
1.2 KiB

### 添加供应商(AddSupplier)
此接口用于添加供应商
---
### 基本信息
方法:POST
URL: http://localhost:8033/open/AddSupplier
---
### 请求
请求参数
| 参数名 | 类型 | 必填 | 说明 |
| :-- | :-- | :-- | :-- |
| profile | string | 是 | 厂区编码 |
| supplierCode | string | 是 | 供应商编码 |
| descriptions | string | 是 | 供应商名称 |
| status | int | 否(默认启用) | 状态 0:不启用 1:启用 |
| country | string | 否 | 国家 |
| region | string | 否 | 省市 |
示例 1:添加供应商
```
{
"data": {
"profile": "测试",
"supplierCode": "1045543weee",
"descriptions": "新的公司",
"country": "china",
"region": "beijing",
}
}
```
---
### 响应
执行成功时,响应如下:
```
{
"clock": "2023-07-05 13:49:18.396",
"status": "ok",
"data": {
"info": {
"supplierCode": "1045543weee",
"descriptions": "新的公司",
"country": "china",
"region": "beijing",
}
}
}
```
执行报错:
```
{
"clock": "2023-06-25 20:00:00.000",
"status": "exception",
"message": "执行失败",
"data": {}
}
```