style="display:none" <{/if}>>

##### 赠品

<{if empty($delivery_list)}>

销售物料编码 | 销售物料名称 | 购买数量 | 物料价格 | 操作
--- | --- | --- | --- | ---
<{foreach from=$conf.objs item=obj}>
style="background-color: #DBDBDB;" g-del="b"<{else}>g-del="a"<{/if}> g-type="<{$obj.obj_type}>" g-pid="<{$obj.goods_id}>" g-shop-pid="<{$obj.shop_goods_id}>" aid="<{$obj.obj_id}>" g-bn="<{$obj.bn}>" g-pname="<{$obj.name}>"> <{$obj.bn}> | <{$obj.name}> | disabled="true"<{/if}> onchange="total();" /> | disabled="true"<{/if}> onchange="total();" /> | <{if $obj.delete == 'false'}> <{button type="button" label="删除" id="d_{$obj.obj_id}" onclick="del_gift('{$obj.obj_id}')" }> <{else}> <{button type="button" label="恢复" id="d_{$obj.obj_id}" onclick="del_gift('{$obj.obj_id}')" }> <{/if}>
<{/foreach}>

<{else}>

销售物料编码 | 销售物料名称 | 购买数量 | 可编辑数量 | 物料价格 | 操作
--- | --- | --- | --- | --- | ---
<{foreach from=$conf.objs item=obj}>
style="background-color: #DBDBDB;" g-del="b"<{else}>g-del="a"<{/if}> g-type="<{$obj.obj_type}>" g-pid="<{$obj.goods_id}>" g-shop-pid="<{$obj.shop_goods_id}>" aid="<{$obj.obj_id}>" g-bn="<{$obj.bn}>" g-pname="<{$obj.name}>"> <{$obj.bn}> | <{$obj.name}> | disabled="true"<{else}>readonly="readonly" style="color:#666;"<{/if}> /> | <{if $obj.left_nums <= 0}> <{else}> disabled="true"<{/if}> onchange="split_changetotal_gift(this);" /> <{/if}> <{if $obj.make_nums}> (已发货：<{$obj.make_nums}>)<{/if}> | disabled="true"<{elseif $obj.make_nums > 0}>readonly="readonly" style="color:#666;"<{else}>onchange="total();"<{/if}> /> | <{if empty($obj.make_nums)}> <{if $obj.delete == 'false'}> <{button type="button" label="删除" id="d_{$obj.obj_id}" onclick="del_gift('{$obj.obj_id}')" }> <{else}> <{button type="button" label="恢复" id="d_{$obj.obj_id}" onclick="del_gift('{$obj.obj_id}')" }> <{/if}> <{else}> <{if $obj.left_nums <= 0}>已拆分完<{else}>部分拆分<{/if}> <{/if}>
<{/foreach}>

<{/if}>