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

##### 赠品

<{if empty($delivery_list)}>

货号 | 商品名称 | 规格 | 购买数量 | 商品价格 | 操作
--- | --- | --- | --- | --- | ---
<{foreach from=$conf.objs item=obj}> <{foreach from=$obj.order_items item=item}>
style="background-color: #DBDBDB;" g-del="b"<{else}>g-del="a"<{/if}> g-type="<{$item.item_type}>" g-pid="<{$item.product_id}>" g-shop-pid="<{$item.shop_product_id}>" aid="<{$item.item_id}>" g-bn="<{$item.bn}>" g-pname="<{$item.name}>"> <{$item.bn}> | <{$item.name}> | <{$item.addon}> | disabled="true"<{/if}> onchange="total();" /> | disabled="true"<{/if}> onchange="total();" /> | <{if $item.delete == 'false'}> <{button type="button" label="删除" id="d_{$item.item_id}" onclick="del_gift('{$item.item_id}')" }> <{else}> <{button type="button" label="恢复" id="d_{$item.item_id}" onclick="del_gift('{$item.item_id}')" }> <{/if}>
<{/foreach}> <{/foreach}>

<{else}>

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

<{/if}>