<{capture name="header"}> <{css app="ome" src="ome.css"}> <{css app="ome" src="style.css"}> <{script src="coms/modedialog.js" app="desktop"}> <{script src="coms/autocompleter.js" app="desktop"}> <{script src="coms/pager.js" app="desktop"}> <{/capture}>

编辑销售物料

基本信息
style="display:none"<{/if}>>
物料名称: *
物料编码: <{$material_info.sales_material_bn}> *
物料类型: <{if $readonly.type == true}> <{if $material_info.sales_material_type == 1}>普通<{elseif $material_info.sales_material_type ==2}>促销<{elseif $material_info.sales_material_type ==3}>赠品<{elseif $material_info.sales_material_type ==4}>福袋<{elseif $material_info.sales_material_type ==5}>多选一<{/if}>  (已有关联订单或店铺冻结不能修改) <{else}> checked="checked"<{/if}> /> 普通 checked="checked"<{/if}> /> 促销 checked="checked"<{/if}> /> 赠品 checked="checked"<{/if}> /> 福袋 checked="checked"<{/if}> /> 多选一 <{/if}>
所属店铺: <{if $readonly.shop == true}> <{foreach from=$shops item=shop}><{if $material_info.shop_id == $shop.shop_id }><{$shop.name}><{/if}><{/foreach}>  (已有关联订单不能修改) <{else}> <{/if}>
关联基础物料: <{input type='material_object' object='basic_material@material' breakpoint='0' name='bm_id' textcol='material_name' value=$bind_bm_id callback='material_object_callback' replacehtml=$replacehtml emptytext='选取基础物料' style='float:left;width:200px;' filter='visibled=1' }>
style="margin-top:10px;"<{else}>style="margin-top:10px;display:none"<{/if}>>
促销关联基础物料
<{if $readonly.bind_item == true && $material_info.sales_material_type == 2}>  (绑定物料已有关联订单不能修改) <{else}> <{button label="物料库频道" id="material-find-btn" }> <{/if}>
编码 名称 成本价 数量 促销价格贡献占比(1-100整数数值) 删除
暂无物料信息
<{if $readonly.bind_item == true && $material_info.sales_material_type == 2}>   <{else}> <{button type="button" id="material-compute-rate" label="按成本价计算贡献比" }>  <{button type="button" id="material-delall-btn" label="全部删除" }> <{/if}>
style="margin-top:10px;"<{else}>style="margin-top:10px;display:none"<{/if}>>
福袋商品规则
<{if $material_info.sales_material_type == 4 && $readonly.bind_item == true}> <{else}>

<{/if}>
<{foreach from=$luckybag_rules_list item=lb_rule}>
<{if $material_info.sales_material_type == 4 && $readonly.bind_item == true}>
组合名称 <{$lb_rule.lbr_name}>
<{else}>
组合名称
删除本组
<{/if}>
<{foreach from=$lb_rule.bm_list item=bm_l}> <{/foreach}>
基础物料编码基础物料名称成本价操作
<{$bm_l.material_bn}> <{$bm_l.material_name}> <{$bm_l.cost}> <{if $material_info.sales_material_type == 4 && $readonly.bind_item == true}> - <{else}> <{img src="bundle/delecate.gif" class="pointer" app="desktop" key="state" onclick="delete_luckybag_tr(this);"}> <{/if}>
<{if $material_info.sales_material_type == 4 && $readonly.bind_item == true}> 组合规则:随机选 <{$lb_rule.sku_num}> 个sku, 分别送 <{$lb_rule.send_num}> 件, 单品售价 <{$lb_rule.price}> 元 <{else}> 组合规则:随机选 个sku, 分别送 件, 单品售价 <{/if}>

<{/foreach}>
style="margin-top:10px;"<{else}>style="margin-top:10px;display:none"<{/if}>>
多选一关联基础物料
选择方式: checked="checked" <{/if}> /> 随机 checked="checked" <{/if}> /> 排序<{help}>正序排序数值从小到大(不包括0)
表格中排序值不填默认为0且优先级最低
如排序值相同则这部分做随机处理<{/help}>
<{if $readonly.bind_item == true && $material_info.sales_material_type == 5}>  (绑定物料已有关联订单不能修改) <{else}> <{button label="基础物料列表" id="basic_material_find_btn" }> <{/if}>
编码名称 style="display:none" <{/if}> >排序值删除
暂无基础物料信息
<{if $readonly.bind_item == true && $material_info.sales_material_type == 5}>   <{else}> <{button type="button" id="basic_material_delall_btn" label="全部删除" }> <{/if}>
扩展信息
售价: <{if $readonly.bind_item == true && $material_info.sales_material_type == 4}> <{$material_info.retail_price}> <{else}> <{/if}>
包装单位:  建议填写此单位 开电子发票必要参数
<{button type="button" id="sales_material_btn" label="保 存"}>   <{button type="button" class="btn-secondary" id="return-btn" label="关 闭" onclick="javascript:void(window.close());"}>