购物车列表
<p><strong>简要描述:</strong> </p>
<ul>
<li>购物车列表接口</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/dms/sales-order-app/car-list</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST </li>
</ul>
<p><strong>参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">user_id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>登录账户id</td>
</tr>
<tr>
<td style="text-align: left;">org_id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>门店id(账套id)</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
"errCode": 1000,
"errMsg": "请求成功",
"data": {
"list": [
{
"id": "9",
"buy_customer_id": "8819",
"buy_customer_name": "",
"partslist": [
{
"id": "1",
"parts_id": "8290",
"parts_name": "绿色防冻液",
"parts_code": "25℃ 2KG 绿色/25G002",
"parts_unit_id": "3",
"parts_unit_name": "只",
"parts_factory_code": "U2-25G002",
"parts_brand_name": "U2",
"supply_org_id": "40",
"address_contacts": "",
"address_mobile": "",
"address": "",
"buy_customer_id": "60064",
"buy_customer_name": "爱义行汽车服务-祝舜路店",
"sales_price": "16.00",
"sales_count": 40,
"sales_price_sum": "640.00",
"deleted": "0",
"picurl": "",
"created_at": "2019-10-02 14:17",
"store_count": 2240,
"parts_top": "绿色防冻液|只",
"parts_bottom": "25℃ 2KG 绿色/25G002|U2-25G002|U2",
"deleted_name": "正常",
"last_sales_price": 0
}
]
},
{
"id": "10",
"parts_id": "11641",
"parts_name": "单铂金火花塞",
"parts_code": "FR7DPP30X",
"parts_unit_id": "1",
"parts_unit_name": "只",
"parts_factory_code": "FR7DPP30X",
"parts_brand_name": "博世",
"supply_org_id": "40",
"address_contacts": "",
"address_mobile": "",
"address": "",
"buy_customer_id": "0",
"buy_customer_name": "",
"sales_price": "0.00",
"sales_count": 8,
"sales_price_sum": "200.00",
"deleted": "0",
"picurl": "",
"created_at": "2019-10-02 14:51",
"store_count": 137,
"stand_price": "请添加客户",
"parts_top": "单铂金火花塞|只",
"parts_bottom": "FR7DPP30X|FR7DPP30X|博世",
"deleted_name": "正常"
}
],
"total": "10",
"fail_list": [
{
"id": "6",
"parts_id": "2535",
"parts_name": "柴油滤清器",
"parts_code": "ND-5019",
"parts_unit_id": "2",
"parts_unit_name": "个",
"parts_factory_code": "ND-5019",
"parts_brand_name": "耐诺思",
"supply_org_id": "40",
"address_contacts": "",
"address_mobile": "",
"address": "",
"buy_customer_id": "0",
"buy_customer_name": "",
"sales_price": "0.00",
"sales_count": 20,
"sales_price_sum": "320.00",
"deleted": "1",
"picurl": "",
"created_at": "2020-06-03 16:42",
"store_count": 10168,
"stand_price": "请添加客户",
"parts_top": "柴油滤清器|个",
"parts_bottom": "ND-5019|ND-5019",
"deleted_name": "已失效"
}
],
"fail_total": "1"
}
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<p><strong>----有客户展示----</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">buy_customer_id</td>
<td style="text-align: left;">int</td>
<td>客户id (同时 作为是否为单个商品还是客户商品的标识)</td>
</tr>
<tr>
<td style="text-align: left;">buy_customer_name</td>
<td style="text-align: left;">string</td>
<td>客户名称</td>
</tr>
</tbody>
</table>
<p><strong>商品信息展示</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">picurl</td>
<td style="text-align: left;">string</td>
<td>图片链接地址</td>
</tr>
<tr>
<td style="text-align: left;">parts_top</td>
<td style="text-align: left;">string</td>
<td>头部第一行商品名称</td>
</tr>
<tr>
<td style="text-align: left;">parts_bottom</td>
<td style="text-align: left;">string</td>
<td>头部第二行商品名称</td>
</tr>
<tr>
<td style="text-align: left;">deleted</td>
<td style="text-align: left;">int</td>
<td>是否失效</td>
</tr>
<tr>
<td style="text-align: left;">store_count</td>
<td style="text-align: left;">int</td>
<td>本店库存</td>
</tr>
<tr>
<td style="text-align: left;">last_sales_price</td>
<td style="text-align: left;">string</td>
<td>上次价格</td>
</tr>
<tr>
<td style="text-align: left;">sales_price</td>
<td style="text-align: left;">string</td>
<td>销售单价</td>
</tr>
<tr>
<td style="text-align: left;">sales_count</td>
<td style="text-align: left;">int</td>
<td>数量</td>
</tr>
</tbody>
</table>
<p><strong>----无客户单商品----</strong></p>
<p><strong>单个商品信息展示</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">picurl</td>
<td style="text-align: left;">string</td>
<td>图片链接地址</td>
</tr>
<tr>
<td style="text-align: left;">parts_top</td>
<td style="text-align: left;">string</td>
<td>头部第一行商品名称</td>
</tr>
<tr>
<td style="text-align: left;">parts_bottom</td>
<td style="text-align: left;">string</td>
<td>头部第二行商品名称</td>
</tr>
<tr>
<td style="text-align: left;">deleted</td>
<td style="text-align: left;">int</td>
<td>是否失效</td>
</tr>
<tr>
<td style="text-align: left;">store_count</td>
<td style="text-align: left;">int</td>
<td>本店库存</td>
</tr>
<tr>
<td style="text-align: left;">stand_price</td>
<td style="text-align: left;">string</td>
<td>标准价</td>
</tr>
<tr>
<td style="text-align: left;">sales_count</td>
<td style="text-align: left;">int</td>
<td>数量</td>
</tr>
</tbody>
</table>
<p><strong>----fail_list失效商品列表----</strong></p>
<p><strong>商品信息展示</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">picurl</td>
<td style="text-align: left;">string</td>
<td>图片链接地址</td>
</tr>
<tr>
<td style="text-align: left;">parts_top</td>
<td style="text-align: left;">string</td>
<td>头部第一行商品名称</td>
</tr>
<tr>
<td style="text-align: left;">parts_bottom</td>
<td style="text-align: left;">string</td>
<td>头部第二行商品名称</td>
</tr>
<tr>
<td style="text-align: left;">deleted</td>
<td style="text-align: left;">int</td>
<td>是否失效</td>
</tr>
<tr>
<td style="text-align: left;">store_count</td>
<td style="text-align: left;">int</td>
<td>本店库存</td>
</tr>
<tr>
<td style="text-align: left;">stand_price</td>
<td style="text-align: left;">string</td>
<td>标准价</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>