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

##### 商品

<{if empty($delivery_list)}>

货号 | 商品名称 | 规格 | 购买数量 | 商品单价 | 优惠价格 | 销售价格 <{foreach from=$branch_list item=branch}> | class="selected"<{/if}>><{$branch.name}> <{/foreach}> | 操作
--- | --- | --- | --- | --- | --- | --- | --- | ---
<{foreach from=$conf.objs item=obj}> <{if $obj.order_items|@count > 1}>
style="background-color: #DBDBDB;" g-del="b" <{else}>g-del="a"<{/if}>> <{$obj.bn}> | <{$obj.name}> | 商品 | disabled="true"<{/if}> onchange="changetotalgoods(this);total();" />(额外) |  |
<{/if}> <{foreach from=$obj.order_items item=item}>
style="background-color: #DBDBDB;" g-del="b" class='disabled'<{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="changetotalgoods(this);total();" /> | disabled="true"<{/if}> onchange="changetotalgoods(this);total();" /> | disabled="true"<{/if}> onchange="changetotalgoods(this);total();" /> | disabled="true"<{/if}> />disabled="true"<{/if}> class="none_input<{if $obj.obj_type != 'gift' && $obj.order_items|@count == '1'}> goodssaleprice<{/if}>" value="<{$item.sale_price}>"> <{foreach from=$branch_list item=branch}> | <{$combineOrders[$item.order_id][items][goods][$obj.obj_id][order_items][$item.item_id][branch_store][$branch.branch_id]}> <{/foreach}> | <{if $item.delete == 'false'}> <{button type="button" label="删除" id="d_{$item.item_id}" onclick="del_goods('{$item.item_id}');" }> <{else}> <{button type="button" label="恢复" id="d_{$item.item_id}" onclick="del_goods('{$item.item_id}');" }> <{/if}>
<{/foreach}> <{/foreach}>

<{else}>

货号 | 商品名称 | 规格 | 购买数量 | 可编辑数量 | 商品单价 | 优惠价格 | 销售价格 <{foreach from=$branch_list item=branch}> | class="selected"<{/if}>><{$branch.name}> <{/foreach}> | 操作
--- | --- | --- | --- | --- | --- | --- | --- | --- | ---
<{foreach from=$conf.objs item=obj}> <{if $obj.order_items|@count > 1}>
style="background-color: #DBDBDB;" g-del="b" <{else}>g-del="a"<{/if}>> <{$obj.bn}> | <{$obj.name}> | 商品 | disabled="true"<{/if}> onchange="changetotalgoods(this);total();" />(额外) |  |
<{/if}> <{foreach from=$obj.order_items item=item}>
style="background-color: #DBDBDB;" g-del="b" class='disabled'<{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_changetotalgoods(this);total();" /> <{/if}> <{if $item.make_nums}> (已发货：<{$item.make_nums}>)<{/if}> | disabled="true"<{elseif $item.make_nums > 0}>readonly="readonly" style="color:#666;"<{else}>onchange="changetotalgoods(this);total();"<{/if}> /> | disabled="true"<{elseif $item.make_nums > 0}>readonly="readonly" style="color:#666;"<{else}>onchange="changetotalgoods(this);total();"<{/if}> /> | disabled="true"<{/if}> />disabled="true"<{/if}> class="none_input<{if $obj.obj_type != 'gift' && $obj.order_items|@count == '1'}> goodssaleprice<{/if}>" value="<{$item.sale_price}>"> <{foreach from=$branch_list item=branch}> | <{$combineOrders[$item.order_id][items][goods][$obj.obj_id][order_items][$item.item_id][branch_store][$branch.branch_id]}> <{/foreach}> | <{if empty($item.make_nums)}> <{if $item.delete == 'false'}> <{button type="button" label="删除" id="d_{$item.item_id}" onclick="del_goods('{$item.item_id}');" }> <{else}> <{button type="button" label="恢复" id="d_{$item.item_id}" onclick="del_goods('{$item.item_id}');" }> <{/if}> <{else}> <{if $item.left_nums <= 0}>已拆分完<{else}>部分拆分<{/if}> <{/if}>
<{/foreach}> <{/foreach}>

<{/if}>