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

##### 捆绑商品

<{if empty($delivery_list)}>

货号 | 商品名称 | 规格 | 购买数量 | 商品单价 | 优惠金额 | 销售价格 | 操作
--- | --- | --- | --- | --- | --- | --- | ---
<{foreach from=$conf.objs item=obj}> <{foreach from=$obj.order_items item=item}> <{if $item.delete == 'true'}> <{assign var='pkg_del' value="true"}> <{else}> <{assign var='pkg_del' value="false"}> <{/if}> <{/foreach}>
style="background-color: #D8D8D8;" pkg-del='b'<{else}> pkg-del="a"<{/if}>> | <{$obj.name}> | 捆绑商品 | disabled="true"<{/if}> onchange="changetotalpkg(this);total();" /> | disabled="true"<{/if}> onchange="changetotalpkg(this);total();" /> | disabled="true"<{/if}> onchange="changetotalpkg(this);total();" /> | disabled="true"<{/if}> />disabled="true"<{/if}> > | <{if $pkg_del == 'true'}> <{button type="button" label="恢复" id="bt_{$obj.goods_id}" onclick="del_pkg('{$obj.goods_id}')" }> <{else}> <{button type="button" label="删除" id="bt_{$obj.goods_id}" onclick="del_pkg('{$obj.goods_id}')" }> <{/if}>
<{foreach from=$obj.order_items item=item}>
style="background-color: #D8D8D8;" pkg-del="b"<{else}> pkg-del="a"<{/if}>> <{$item.bn}> | <{$item.name}> | <{$item.addon}> | disabled="true"<{/if}> value="<{$item.quantity/$obj.quantity}>" /> |  | disabled="true"<{/if}> onchange="changetotalpkg(this);total();" /> | - |
<{/foreach}> <{/foreach}>

<{else}>

货号 | 商品名称 | 规格 | 购买数量 | 可编辑数量 | 商品单价 | 优惠金额 | 销售价格 | 操作
--- | --- | --- | --- | --- | --- | --- | --- | ---
<{foreach from=$conf.objs item=obj}> <{foreach from=$obj.order_items item=item}> <{if $item.delete == 'true'}> <{assign var='pkg_del' value="true"}> <{else}> <{assign var='pkg_del' value="false"}> <{/if}> <{/foreach}>
style="background-color: #D8D8D8;" pkg-del='b'<{else}> pkg-del="a"<{/if}>> | <{$obj.name}> | 捆绑商品 | disabled="true"<{else}>readonly="readonly" style="color:#666;"<{/if}> /> | <{if $obj.left_nums <= 0}> <{else}> disabled="true"<{/if}> onchange="split_changetotalpkg(this);total();" /> <{/if}> <{if $obj.make_nums}> (已发货：<{$obj.make_nums}>)<{/if}> | disabled="true"<{elseif $item.make_nums > 0}>readonly="readonly" style="color:#666;"<{else}>onchange="changetotalpkg(this);total();"<{/if}> /> | disabled="true"<{elseif $item.make_nums > 0}>readonly="readonly" style="color:#666;"<{else}>onchange="changetotalpkg(this);total();"<{/if}> /> | disabled="true"<{/if}> />disabled="true"<{/if}> > | <{if empty($item.make_nums)}> <{if $pkg_del == 'true'}> <{button type="button" label="恢复" id="bt_{$obj.goods_id}" onclick="del_pkg('{$obj.goods_id}')" }> <{else}> <{button type="button" label="删除" id="bt_{$obj.goods_id}" onclick="del_pkg('{$obj.goods_id}')" }> <{/if}> <{else}> <{if $obj.left_nums <= 0}>已拆分完<{else}>部分拆分<{/if}> <{/if}>
<{foreach from=$obj.order_items item=item}>
style="background-color: #D8D8D8;" pkg-del="b"<{else}> pkg-del="a"<{/if}>> <{$item.bn}> | <{$item.name}> | <{$item.addon}> | disabled="true"<{/if}> value="<{$item.quantity/$obj.quantity}>" /> | - |  | disabled="true"<{/if}> onchange="changetotalpkg(this);total();" /> | - |
<{/foreach}> <{/foreach}>

<{/if}>