售后单添加板件
接口说明
为已创建的售后单追加板件列表数据,数据写入 after_sale_panel。
RESTful 路径参数:after_sales_item_id。
请求信息
请求 URL:
http://lbl-open.thinkerx.com/api/lbl/after-sales/items/{after_sales_item_id}/panels请求方式:
POST
请求参数
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| login_token | 是 | string | 通行证 |
| panel_list | 是 | array | 板件列表 |
| panel_list[].product | 否 | string | 房间/品名 |
| panel_list[].name | 否 | string | 板件名称 |
| panel_list[].panel_no | 否 | string | 板号 |
| panel_list[].size | 否 | string | 成品尺寸 |
| panel_list[].color | 否 | string | 颜色 |
| panel_list[].count | 否 | string/number | 数量 |
| panel_list[].content | 否 | string | 备注 |
| panel_list[].outitem_panel_id | 否 | int | 委外板件 id |
返回示例
{
"status": 0,
"message": "添加成功",
"data": {
"after_sale_id": 1024,
"inserted_count": 2
}
}返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| status | int | 状态码(0 成功,1 失败) |
| message | string | 返回信息 |
| data.after_sale_id | int | 售后单 id(等于路径参数 after_sales_item_id) |
| data.inserted_count | int | 实际写入条数 |
