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.
|
|
|
### 删除订单(DeleteOrder)
|
|
|
|
|
|
|
|
此接口用于删除未使用的订单。
|
|
|
|
|
|
|
|
若此订单已经创建工单,则无法立即删除订单;删除订单前,需要先删除此订单关联的工单。
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
### 基本信息
|
|
|
|
|
|
|
|
方法:POST
|
|
|
|
|
|
|
|
URL:http://localhost:8033/open/deleteOrder
|
|
|
|
|
|
|
|
认证:需要(如何认证请查看《认证方式》)
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
### 请求
|
|
|
|
|
|
|
|
请求参数
|
|
|
|
|
|
|
|
| 参数名 | 类型 | 必填 | 说明 |
|
|
|
|
| :-- | :-- | :-- | :-- |
|
|
|
|
| profile | string | 是 | 厂区配置名称。 |
|
|
|
|
| code | string | 是 | 订单号。 |
|
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"profile": "test",
|
|
|
|
"code": "ORD001"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
### 响应
|
|
|
|
|
|
|
|
此接口没有响应的数据,删除成功时 status 为 ok:
|
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
"status": "ok",
|
|
|
|
"data": {}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
删除失败时 status 是其它值:
|
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
"status": "exception",
|
|
|
|
"message": "订单【ORD001】已经开立【3】个工单,无法删除。"
|
|
|
|
"data": {}
|
|
|
|
}
|
|
|
|
```
|