立即购买(活动商品组)
<h5>简要描述</h5>
<ul>
<li>view</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>app/sales-order-app/promotion-add-view</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<h5>参数</h5>
<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;">id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>活动id</td>
</tr>
<tr>
<td style="text-align: left;">order_id</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>活动订单id</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
"errCode": 1000,
"errMsg": "请求成功",
"data": {
"is_same":"同品限制 1 是 2否",
"remark":"备注"
"emergency_status": "1",//紧急程度
"consignee_name": "张",//收货人
"consignee_mobile": "99",//收货人手机
"consignee_address": "张三",//收货人地址
"send_warehouse_id": "308",//发货仓库
"send_warehouse_name": "中驰连锁仓库",
"is_package":1,是否套餐活动 1是 2否',
"is_integral": "1",是否积分促销 1是 2否',
"is_allow_credit": "1",是否不允许信用额度/余额支付',
"is_customer_visible": "1",是否客户客户 1是 2否',
"sales_count": "0",实际下单数量
"is_show_sale": "1",是否展示销量 1是 2否',
"sale_value": "10",展示销量起始值',
"id": "11",
"org_id": "1",
"name": "同品测试0805",//促销名称
"code": "KHCX-20080500000011",//促销编码
"type": "2",//促销类型 1零售促销 2批发促销 3商城促销
"buy_type": "2",//促销对象 1门店(门店促销) 2客户(组合促销)
"buy_org_id": "34,35,36",
"customer_grade": "3",//客户等级id
"customer_channel": "6",//客户渠道id
"customer_category": "5",//客户类型id
"start_time": "2020-08-03 00:00:00",//开始时间
"end_time": "2020-09-30 00:00:00",//结束时间
"is_money": "1",//限制最大条件 1金额 2数量
"maximum": "100.00",//最大数量/最大额度
"max_buy_count": "0",//最大采购次数
"promotion_rules_one": "2",//促销规则 1满件 2满额
"promotion_rules_two": "2",//促销规则 1打折 2赠送 3 特价促销
"promotion_remark": "测试数据001",//促销说明
"price_way": "1",//售价方案 1促销价 2最低限价
"title": "测试促销标题",//促销标题
"rules_introductions": "测试测试测试",//规则说明
"is_home": "2",
"is_banner": "2",
"sort": "1",
"image": "banner/2020/08/185235518172.png",
"app_image": "banner/2020/08/190744894342.jpg",
"remark": "",
"operation_id": "1",//操作人id
"operation_name": "管理员",//操作人名称
"status": "2",//状态 1待开始 ,2进行中 3已结束
"enable_status": "1",
"created_at": "2020-08-05 16:49:55",
"order_id": 0,
"buy_org_idTxt": "张庄-济南老屯二店,张庄-长清玉符街店,张庄-济南无影山店",
"buy_typeTxt": "客户",
"typeTxt": "门店促销",
"oneTxt": "满额",
"twoTxt": "赠送",
"statusTxt": "进行中",
"enable_statusTxt": "启用",
"imageUrl": "http://smarterp.com/upload/banner/2020/08/185235518172.png",
"app_imageUrl": "http://smarterp.com/upload/banner/2020/08/190744894342.jpg",
"remain_buy_count": "--",//剩余次数
"warehouse_id": 0,
"warehouse_name": "",
"sales_count_total": 0,
"total_amount_original": "0.00",
"total_amount": "0.00",
"promotion_parts_group": [//商品组
{
"id": "13",//商品组id
"name": "水泵组001",//商品组名称
"parts_count": 20,//商品数量
"partsList": [//明细
{
"id": "31",
"org_id": "1",
"parts_promotion_id": "11",//促销活动id
"parts_promotion_parts_group_id": "13",//商品组id
"parts_id": "583",//商品id
"parts_name": "前刹车片",//商品名称
"parts_code": "SCP1141JP",//规格型号
"parts_factory_code": "SCP1141-01",//出厂编码
"parts_specifications": "",//规格型号说明
"parts_unit_id": "6",
"parts_unit_name": "副",//单位
"parts_category_id": "162",
"parts_category_name": "前刹车片",//分类
"parts_brand_id": "240",
"parts_brand_name": "天博",//品牌
"standard_price": "45.00",//基准价
"promotion_price": "31.50",//促销价
"mininum_price": "18.00",//最低限价
"remark": "",
"is_gift": 2,//是否赠品 1 是 2 否
"tax_rate": "13",//税率
"sales_price": "31.50",//销售价格
"sales_count": 1,//销售数量
"sales_price_original": "31.50",//销售原价
"sales_price_no_original": "27.87",
"sales_price_no": "27.87",
"discount_rate": 100,
"sales_price_sum": "31.50",
"sales_price_sum_original": "31.50",
"sales_price_sum_no": "27.87",
"sales_price_sum_no_original": "27.87",
"head_stock_count": 3,//总部库存
"stock_count": 3,//门店库存
"showName": "前刹车片|SCP1141JP|SCP1141-01|天博|前刹车片"
}
],
"selectPartsList": [],
"selectGiftPartsList": []//同品已选商品
},
{
"id": "14",
"name": "机油组002",
"parts_count": 10,
"partsList": [
{
"id": "35",
"org_id": "1",
"parts_promotion_id": "11",
"parts_promotion_parts_group_id": "14",
"parts_id": "39459",
"parts_name": "汽机油",
"parts_code": "SN 0W20 4L",
"parts_factory_code": "1016537",
"parts_specifications": "",
"parts_unit_id": "0",
"parts_unit_name": "只",
"parts_category_id": "1",
"parts_category_name": "油品",
"parts_brand_id": "248",
"parts_brand_name": "统一",
"standard_price": "0.00",
"promotion_price": "10.00",
"mininum_price": "2.00",
"remark": "",
"is_gift": 2,
"tax_rate": "13",
"sales_price": "10.00",
"sales_count": 1,
"sales_price_original": "10.00",
"sales_price_no_original": "8.84",
"sales_price_no": "8.84",
"discount_rate": 100,
"sales_price_sum": "10.00",
"sales_price_sum_original": "10.00",
"sales_price_sum_no": "8.84",
"sales_price_sum_no_original": "8.84",
"head_stock_count": 50,
"stock_count": 50,
"showName": "汽机油|SN 0W20 4L|1016537|统一|油品"
}
],
"selectPartsList": []
"selectGiftPartsList": []//同品已选商品
}
],
"promotion_rules": [//促销活动规则
{
"id": "16",
"org_id": "1",
"parts_promotion_id": "11",//促销活动id
"promotion_rules_one": "2",//促销规则 1满组 2满额
"promotion_rules_two": "2",//促销规则 1打折 2赠送
"minimum_value": "2.00",//订单满组、满额
"number": 2,//执行满组、满额
"is_same": "1",//1同品组 2其他 3同品
"give_num_one": "2",//赠送数量(方式一)
"give_num_two": "1",//赠送数量(方式二)
"price_way": "1",//1促销价 2最低限价
"discount_rate": "95.00",//折扣率(%),打折时
"is_floor": "1",//是否取最低限价 1是 2否
"is_echelon": "2",//是否有梯次 1是 2否
"status": "1",
"partsIdArr": {//商品组对应 赠品组商品
"one_way": [(赠品方式一)(按组展示)
{
"groupInfo": {
"id": "13",
"name": "水泵组001",//赠品组名称
"parts_count": "20.00"
},
"giftList": [//赠品组对应商品明细
{
"id": 0,
"org_id": "1",
"parts_promotion_id": "11",
"parts_promotion_parts_group_id": "13",
"parts_id": "583",//商品id
"parts_name": "前刹车片",//商品名称
"parts_code": "SCP1141JP",//规格型号
"parts_factory_code": "SCP1141-01",//出厂编码
"parts_specifications": "",//规格型号说明
"parts_unit_id": "6",
"parts_unit_name": "副",//单位
"parts_category_id": "162",
"parts_category_name": "前刹车片",//分类
"parts_brand_id": "240",
"parts_brand_name": "天博",//品牌
"is_gift": 1,//是否赠品 1 是 2否
"tax_rate": "13",
"sales_price_original": 0,销售原价
"sales_price": 0,//销售单价
"sales_price_no_original": 0,
"sales_price_no": 0,
"discount_rate": 100,
"sales_count": 1,
"sales_price_sum": "0.00",
"sales_price_sum_no": "0.00",
"sales_price_sum_original": "0.00",
"sales_price_sum_no_original": "0.00",
"head_stock_count": 3,
"stock_count": 3,
"is_same": "1",
"type": 1,
"showName": "前刹车片|SCP1141JP|SCP1141-01|天博|前刹车片"
}
],
"selectGiftList": [//已选商品
{
"id": 0,
"org_id": "1",
"parts_promotion_id": "11",
"parts_promotion_parts_group_id": "13",
"parts_id": "583",//商品id
"parts_name": "前刹车片",//商品名称
"parts_code": "SCP1141JP",//规格型号
"parts_factory_code": "SCP1141-01",//出厂编码
"parts_specifications": "",//规格型号说明
"parts_unit_id": "6",
"parts_unit_name": "副",//单位
"parts_category_id": "162",
"parts_category_name": "前刹车片",//分类
"parts_brand_id": "240",
"parts_brand_name": "天博",//品牌
"is_gift": 1,//是否赠品 1 是 2否
"tax_rate": "13",
"sales_price_original": 0,销售原价
"sales_price": 0,//销售单价
"sales_price_no_original": 0,
"sales_price_no": 0,
"discount_rate": 100,
"sales_count": 1,
"sales_price_sum": "0.00",
"sales_price_sum_no": "0.00",
"sales_price_sum_original": "0.00",
"sales_price_sum_no_original": "0.00",
"head_stock_count": 3,
"stock_count": 3,
"is_same": "1",
"type": 1,
"showName": "前刹车片|SCP1141JP|SCP1141-01|天博|前刹车片"
}
]
}
],
"select_one_way": [//已选 所有商品组的商品
{
"groupInfo": {
"id": "13",
"name": "水泵组001",//赠品组名称
"parts_count": "20.00"
},
"giftList": [//赠品组对应商品明细
{
"id": 0,
"org_id": "1",
"parts_promotion_id": "11",
"parts_promotion_parts_group_id": "13",
"parts_id": "583",//商品id
"parts_name": "前刹车片",//商品名称
"parts_code": "SCP1141JP",//规格型号
"parts_factory_code": "SCP1141-01",//出厂编码
"parts_specifications": "",//规格型号说明
"parts_unit_id": "6",
"parts_unit_name": "副",//单位
"parts_category_id": "162",
"parts_category_name": "前刹车片",//分类
"parts_brand_id": "240",
"parts_brand_name": "天博",//品牌
"is_gift": 1,//是否赠品 1 是 2否
"tax_rate": "13",
"sales_price_original": 0,销售原价
"sales_price": 0,//销售单价
"sales_price_no_original": 0,
"sales_price_no": 0,
"discount_rate": 100,
"sales_count": 1,
"sales_price_sum": "0.00",
"sales_price_sum_no": "0.00",
"sales_price_sum_original": "0.00",
"sales_price_sum_no_original": "0.00",
"head_stock_count": 3,
"stock_count": 3,
"is_same": "1",
"type": 1,
"showName": "前刹车片|SCP1141JP|SCP1141-01|天博|前刹车片"
}
]
}
],
"two_way": [(赠品方式二)
{
"org_id": "1",
"is_same": "1",
"type": "2",
"parts_id": "39503",
"parts_name": "水泵",
"parts_code": "GWP4075",
"parts_factory_code": "7818-4075",
"parts_specifications": "",
"parts_unit_id": "19",
"parts_unit_name": "个",
"parts_category_id": "142",
"parts_category_name": "水泵",
"parts_brand_id": "128",
"parts_brand_name": "盖茨",
"is_gift": 1,
"tax_rate": "13",
"sales_price_original": 0,
"sales_price": 0,
"sales_price_no_original": 0,
"sales_price_no": 0,
"discount_rate": 100,
"sales_count": 1,
"sales_price_sum": "0.00",
"sales_price_sum_no": "0.00",
"sales_price_sum_original": "0.00",
"sales_price_sum_no_original": "0.00",
"head_stock_count": 0,
"stock_count": 0,
"showName": "水泵|GWP4075|7818-4075|盖茨|水泵"
}
],
"select_two_way": [(第二种方式 已选择赠品明细)
{
"org_id": "1",
"is_same": "1",
"type": "2",
"parts_id": "39503",
"parts_name": "水泵",
"parts_code": "GWP4075",
"parts_factory_code": "7818-4075",
"parts_specifications": "",
"parts_unit_id": "19",
"parts_unit_name": "个",
"parts_category_id": "142",
"parts_category_name": "水泵",
"parts_brand_id": "128",
"parts_brand_name": "盖茨",
"is_gift": 1,
"tax_rate": "13",
"sales_price_original": 0,
"sales_price": 0,
"sales_price_no_original": 0,
"sales_price_no": 0,
"discount_rate": 100,
"sales_count": 1,
"sales_price_sum": "0.00",
"sales_price_sum_no": "0.00",
"sales_price_sum_original": "0.00",
"sales_price_sum_no_original": "0.00",
"head_stock_count": 0,
"stock_count": 0,
"showName": "水泵|GWP4075|7818-4075|盖茨|水泵"
}
]
}
},
{
"id": "17",
"org_id": "1",
"parts_promotion_id": "11",
"promotion_rules_one": "2",
"promotion_rules_two": "2",
"number": "1000.00",
"is_same": "2",
"give_num_one": "4",
"give_num_two": "2",
"price_way": "1",
"discount_rate": "80.00",
"is_floor": "2",
"is_echelon": "2",
"status": "1",
"partsIdArr": {
"one_way": [
{
"id": "28",
"org_id": "1",
"is_same": "2",
"type": "1",
"parts_id": "39068",
"parts_name": "机油滤清器",
"parts_code": "E11H02D155",
"parts_factory_code": "E11H02D155",
"parts_specifications": "",
"parts_unit_id": "2",
"parts_unit_name": "个",
"parts_category_id": "209",
"parts_category_name": "机油滤清器",
"parts_brand_id": "141",
"parts_brand_name": "汉格斯特",
"parts_promotion_parts_group_id": 0,
"is_gift": 1,
"tax_rate": "13",
"sales_price_original": 0,
"sales_price": 0,
"sales_price_no_original": 0,
"sales_price_no": 0,
"discount_rate": 100,
"sales_count": 1,
"sales_price_sum": "0.00",
"sales_price_sum_no": "0.00",
"sales_price_sum_original": "0.00",
"sales_price_sum_no_original": "0.00",
"head_stock_count": 0,
"stock_count": 0,
"showName": "机油滤清器|E11H02D155|E11H02D155|汉格斯特|机油滤清器"
}
],
"two_way": [
{
"org_id": "1",
"is_same": "2",
"type": "2",
"parts_id": "39189",
"parts_name": "油泵总成",
"parts_code": "JY25025209",
"parts_factory_code": "180909051B",
"parts_specifications": "",
"parts_unit_id": "4",
"parts_unit_name": "支",
"parts_category_id": "118",
"parts_category_name": "油泵总成",
"parts_brand_id": "162",
"parts_brand_name": "津油",
"is_gift": 1,
"tax_rate": "13",
"sales_price_original": 0,
"sales_price": 0,
"sales_price_no_original": 0,
"sales_price_no": 0,
"discount_rate": 100,
"sales_count": 1,
"sales_price_sum": "0.00",
"sales_price_sum_no": "0.00",
"sales_price_sum_original": "0.00",
"sales_price_sum_no_original": "0.00",
"head_stock_count": 0,
"stock_count": 0,
"showName": "油泵总成|JY25025209|180909051B|津油|油泵总成"
}
]
}
}
]
}
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<h5>备注</h5>