<{if $order.items}>

<{t}>货号<{/t}> | <{t}>商品名称<{/t}> | <{t}>价格<{/t}> | <{t}>购买数量<{/t}> | <{t}>小计<{/t}> | <{t}>操作<{/t}>
--- | --- | --- | --- | --- | ---
<{foreach from=$order.items item=aItems key=iLoop}> <{assign var="itemid" value=$aItems.products.product_id}> <{assign var="itemidGoodsid" value=$aItems.products.goods_id}> <{assign var="itemprice" value=$aItems.price}> <{assign var="itemnums" value=$aItems.quantity}>
<{$aItems.bn}> | <{$aItems.name}> | <{input type="unsigned" required="true" class="itemPrice_{$itemid}-{$iLoop} itemrow" name="aPrice[{$itemid}_{$iLoop}]" value=$itemprice size=8 }> | <{if $aItems.numtype == "0"}> <{input type="positive" required="true" vtype="digits&&positive" class="itemNum_{$itemid}-{$iLoop} itemrow" name="aNum[{$itemid}_{$iLoop}]" value=$itemnums size=4 }> <{elseif $aItems.numtype == "1"}> <{input type="positive" required="true" vtype="positive" class="itemNum_{$itemid}-{$iLoop} itemrow" name="aNum[{$itemid}_{$iLoop}]" value=$itemnums size=4 }> <{/if}> | <{$aItems.amount}> | <{img src="bundle/delecate.gif" title=$___b2c="删除"|t:'b2c' style=" cursor:pointer" onClick="delgoods(this)" app='desktop'}>
<{if $aItems.adjunct}>
<{t}>商品配件项<{/t}>
<{foreach from=$aItems.adjunct item=ajunctItems key=ajunctILoop}> <{assign var="ajunctItemid" value=$ajunctItems.products.product_id}> <{assign var="ajunctItemprice" value=$ajunctItems.price}> <{assign var="ajunctItemnums" value=$ajunctItems.quantity}>
<{$ajunctItems.bn}> | <{$ajunctItems.name}> | <{input type="unsigned" required="true" class="itemPrice_{$ajunctItemid}-{$iLoop} itemrow" name="ajunctPrice[{$ajunctItemid}_{$iLoop}]" value=$ajunctItemprice size=8 }> | <{input type="positive" required="true" class="itemNum_{$ajunctItemid}-{$iLoop} itemrow" name="ajunctNum[{$ajunctItemid}_{$iLoop}]" value=$ajunctItemnums size=4 }> | <{$ajunctItems.amount}> | <{img src="bundle/delecate.gif" title=$___b2c="删除"|t:'b2c' style=" cursor:pointer" onClick="delgoods(this)" app='desktop'}>
<{/foreach}>

<{/if}> <{if $aItems.gifts}>

<{t}>商品赠品项<{/t}>
<{foreach from=$aItems.gifts item=giftsItems key=giftsILoop}> <{assign var="giftsItemid" value=$giftsItems.products.product_id}> <{assign var="giftsItemprice" value=$giftsItems.price}> <{assign var="giftsItemnums" value=$giftsItems.quantity}>
<{$giftsItems.bn}> | <{$giftsItems.name}> | <{$giftsItemprice }> | <{$giftsItemnums}> | <{$giftsItems.amount}> |
<{/foreach}>

<{/if}> <{/foreach}> <{/if}> <{if $order.gifts}>

<{t}>货号<{/t}> | <{t}>商品名称<{/t}> | <{t}>价格<{/t}> | <{t}>购买数量<{/t}> | <{t}>小计<{/t}> | <{t}>操作<{/t}>
--- | --- | --- | --- | --- | ---
<{foreach from=$order.gifts item=aItems key=iLoop}> <{assign var="itemid" value=$aItems.product_id}> <{assign var="itemprice" value=$aItems.price}> <{assign var="itemnums" value=$aItems.quantity}>
<{$aItems.bn}> | <{$aItems.name}> | <{$itemprice }> | <{$itemnums }> | <{$aItems.amount}> |
<{/foreach}>

<{else}>
<{/if}> <{if $order.extends_items}>

<{t}>货号<{/t}> | <{t}>名称<{/t}> | <{t}>价格<{/t}> | <{t}>购买数量<{/t}> | <{t}>小计<{/t}> | <{t}>操作<{/t}>
<{foreach from=$order.extends_items item=aExtends key=iLoop}> <{$aExtends}> <{/foreach}>

<{/if}>

<{t}>输入商品货号：<{/t}><{input type="text" id="txt_product_bn" name="newbn" }> <{button type="button" label=$___b2c="添加"|t:'b2c' id="newbtn" class="btn" }>

<{$order.alertJs}>