PMS


提交物品信息

<h2>提交物品信息</h2> <p>提交订单内的物品信息。</p> <h3>请求</h3> <p><code>POST /boss/order/addGoods</code></p> <h4>请求体</h4> <table> <thead> <tr> <th>参数</th> <th>类型</th> <th>是否必须</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>orderId</td> <td>string</td> <td>是</td> <td>订单ID</td> </tr> <tr> <td>consignee</td> <td>string</td> <td>是</td> <td>收货人姓名</td> </tr> <tr> <td>consigneePhone</td> <td>string</td> <td>是</td> <td>收货人电话</td> </tr> <tr> <td>consigneeAddress</td> <td>string</td> <td>是</td> <td>收货人地址</td> </tr> <tr> <td>belong</td> <td>string</td> <td>是</td> <td>物品归属信息</td> </tr> <tr> <td>goods</td> <td>array</td> <td>是</td> <td>物品信息列表</td> </tr> <tr> <td>goods.orderId</td> <td>string</td> <td>是</td> <td>订单ID</td> </tr> <tr> <td>goods.storeId</td> <td>string</td> <td>是</td> <td>所在仓库ID</td> </tr> <tr> <td>goods.storeName</td> <td>string</td> <td>是</td> <td>所在仓库名称</td> </tr> <tr> <td>goods.serialNo</td> <td>string</td> <td>否</td> <td>序列号</td> </tr> <tr> <td>goods.feeTypeCodeName</td> <td>string</td> <td>是</td> <td>费用类型名称</td> </tr> <tr> <td>goods.resourceSubTypeId</td> <td>string</td> <td>是</td> <td>资源小类ID</td> </tr> <tr> <td>goods.resourceKindName</td> <td>string</td> <td>是</td> <td>小类名称</td> </tr> <tr> <td>goods.resourceSkuName</td> <td>string</td> <td>是</td> <td>型号名称</td> </tr> <tr> <td>goods.pricePlanName</td> <td>string</td> <td>是</td> <td>价格计划名称</td> </tr> <tr> <td>goods.priceId</td> <td>string</td> <td>是</td> <td>价格ID</td> </tr> <tr> <td>goods.brandCode</td> <td>string</td> <td>是</td> <td>品牌</td> </tr> <tr> <td>goods.resourceKindId</td> <td>string</td> <td>是</td> <td>资源小类ID</td> </tr> <tr> <td>goods.feeTypeCode</td> <td>string</td> <td>是</td> <td>费用类型</td> </tr> <tr> <td>goods.guidePrice</td> <td>number</td> <td>是</td> <td>指导价</td> </tr> <tr> <td>goods.resourceSkuId</td> <td>string</td> <td>是</td> <td>型号ID</td> </tr> <tr> <td>goods.offerId</td> <td>string</td> <td>是</td> <td>物品ID</td> </tr> <tr> <td>goods.resourceGroupId</td> <td>string</td> <td>是</td> <td>资源组ID</td> </tr> <tr> <td>goods.resourceInstanceId</td> <td>string</td> <td>是</td> <td>资源实例ID</td> </tr> <tr> <td>goods.pricePlanType</td> <td>string</td> <td>是</td> <td>价格计划类型</td> </tr> <tr> <td>goods.resourceSubTypeName</td> <td>string</td> <td>是</td> <td>资源小类名称</td> </tr> <tr> <td>goods.salePriceY</td> <td>string</td> <td>是</td> <td>售价</td> </tr> <tr> <td>goods.pricePlanId</td> <td>string</td> <td>是</td> <td>价格计划ID</td> </tr> <tr> <td>goods.number</td> <td>integer</td> <td>是</td> <td>物品数量</td> </tr> <tr> <td>goods.price</td> <td>number</td> <td>是</td> <td>单价</td> </tr> <tr> <td>goods.totalPrice</td> <td>number</td> <td>否</td> <td>总价</td> </tr> <tr> <td>goods.useModelId</td> <td>string</td> <td>是</td> <td>用途ID</td> </tr> <tr> <td>goods.useModelName</td> <td>string</td> <td>是</td> <td>用途名称</td> </tr> </tbody> </table> <h4>示例</h4> <pre><code class="language-json">{ &amp;quot;orderId&amp;quot;: &amp;quot;123456&amp;quot;, &amp;quot;consignee&amp;quot;: &amp;quot;张三&amp;quot;, &amp;quot;consigneePhone&amp;quot;: &amp;quot;13812345678&amp;quot;, &amp;quot;consigneeAddress&amp;quot;: &amp;quot;北京市朝阳区&amp;quot;, &amp;quot;goods&amp;quot;: [ { &amp;quot;orderId&amp;quot;: &amp;quot;123456&amp;quot;, &amp;quot;storeId&amp;quot;: &amp;quot;001&amp;quot;, &amp;quot;storeName&amp;quot;: &amp;quot;北京仓库&amp;quot;, &amp;quot;serialNo&amp;quot;: &amp;quot;A123456&amp;quot;, &amp;quot;feeTypeCodeName&amp;quot;: &amp;quot;运费&amp;quot;, &amp;quot;resourceSubTypeId&amp;quot;: &amp;quot;001&amp;quot;, &amp;quot;resourceKindName&amp;quot;: &amp;quot;电脑&amp;quot;, &amp;quot;resourceSkuName&amp;quot;: &amp;quot;ThinkPad X1 Carbon&amp;quot;, &amp;quot;pricePlanName&amp;quot;: &amp;quot;标准价格&amp;quot;, &amp;quot;priceId&amp;quot;: &amp;quot;001&amp;quot;, &amp;quot;brandCode&amp;quot;: &amp;quot;Lenovo&amp;quot;, &amp;quot;resourceKindId&amp;quot;: &amp;quot;001&amp;quot;, &amp;quot;feeTypeCode&amp;quot;: &amp;quot;001&amp;quot;, &amp;quot;guidePrice&amp;quot;: 8999.00, &amp;quot;resourceSkuId&amp;quot;: &amp;quot;001&amp;quot;, &amp;quot;offerId&amp;quot;: &amp;quot;001&amp;quot;, &amp;quot;resourceGroupId&amp;quot;: &amp;quot;001&amp;quot;, &amp;quot;resourceInstanceId&amp;quot;: &amp;quot;001&amp;quot;, &amp;quot;pricePlanType&amp;quot;: &amp;quot;标准&amp;quot;, &amp;quot;resourceSubTypeName&amp;quot;: &amp;quot;运输&amp;quot;, &amp;quot;salePriceY&amp;quot;: &amp;quot;7999.00&amp;quot;, &amp;quot;pricePlanId&amp;quot;: &amp;quot;001&amp;quot;, &amp;quot;number&amp;quot;: 1, &amp;quot;price&amp;quot;: 7999.00, &amp;quot;totalPrice&amp;quot;: 7999.00, &amp;quot;useModelId&amp;quot;: &amp;quot;001&amp;quot;, &amp;quot;useModelName&amp;quot;: &amp;quot;办公&amp;quot; } ] }</code></pre> <h3>响应</h3> <h4>成功</h4> <table> <thead> <tr> <th>参数</th> <th>类型</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>code</td> <td>integer</td> <td>返回码,20000表示成功</td> </tr> <tr> <td>data</td> <td>object</td> <td>返回数据,通常为空</td> </tr> </tbody> </table> <h4>失败</h4> <table> <thead> <tr> <th>参数</th> <th>类型</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>code</td> <td>integer</td> <td>返回码,非20000表示失败</td> </tr> <tr> <td>data</td> <td>object</td> <td>返回数据,通常为空</td> </tr> </tbody> </table> <h4>示例</h4> <pre><code class="language-json">{ &amp;quot;code&amp;quot;: 20000, &amp;quot;data&amp;quot;: {} }</code></pre>

页面列表

ITEM_HTML