<{if $order.is_delivery eq "Y"}>

<{t}>订单号:<{/t}> | <{$order.order_id}> 【<{if $order.ship_status == 0}><{t}>未发货<{/t}><{elseif $order.ship_status == 1}><{t}>已发货<{/t}><{elseif $order.ship_status == 2}><{t}>部分发货<{/t}><{elseif $order.ship_status == 3}><{t}>部分退货<{/t}><{elseif $order.ship_status == 4}><{t}>已退货<{/t}><{/if}>】 | <{t}>下单日期:<{/t}> | <{$order.createtime|cdate:'SDATE_STIME'}>
<{if $order.is_delivery eq "Y"}>
<{t}>配送方式:<{/t}> | <{input type="select" name='delivery' rows=$shippings valueColumn="dt_id" labelColumn="dt_name" value=$order.shipping.shipping_id}> | <{t}>配送费用:<{/t}> | <{$order.shipping.cost_shipping|cur_odr}>
<{t}>是否要求保价:<{/t}> | <{if $order.shipping.is_protect == 'true'}><{t}>是 （保价费用 ＋<{/t}><{$order.cost_protect}>）<{else}><{t}>否<{/t}><{/if}>
<{/if}>
<{t}>物流公司:<{/t}> | <{input id="dlycorp_list" type="select" name='logi_id' rows=$corplist valueColumn="corp_id" labelColumn="name" value=$corp_id onchange="$('dlycorp_list').get('value')=='other'?$('otherinput').show():$('otherinput').hide(this);"}> | <{t}>物流单号:<{/t}> | <{input type='text' name='logi_no' value=$order.account width="100"}>
<{t}>物流费用:<{/t}> | <{input type='text' name='money' value=$order.shipping.cost_shipping width="50"}> | <{t}>物流保价:<{/t}> | <{input name="is_protect" type="radio" options=$order.protectArr value=$order.shipping.is_protect}>
<{t}>保价费用:<{/t}> | <{input type='text' name='cost_freight' value=$order.shipping.cost_protect width="50"}>
<{t}>收货人姓名:<{/t}> | <{input type='text' name='ship_name' value=$order.consignee.name width="80"}> | <{t}>电话:<{/t}> | <{input type='text' name='ship_tel' value=$order.consignee.telephone width="150"}>
<{t}>手机:<{/t}> | <{input type='text' name='ship_mobile' value=$order.consignee.mobile width="150"}> | <{t}>邮政编码:<{/t}> | <{input type='text' name='ship_zip' value=$order.consignee.zip width="80"}>
<{t}>地区:<{/t}> | <{input type='region' vtype="area" app="ectools" name='ship_area' value=$order.consignee.area}>
<{t}>地址:<{/t}> | <{input type='text' name='ship_addr' value=$order.consignee.addr style="width:360px"}>
<{t}>发货单备注:<{/t}> | <{input type='textarea' name='memo' style="width:95%" value=$order.memo }>

<{/if}> <{if count($items) > 0}>

<{t}>货号<{/t}> | <{t}>商品名称<{/t}> | <{t}>当前库存<{/t}> | <{t}>购买数量<{/t}> | <{t}>已发货<{/t}> | <{t}>此单发货<{/t}>
--- | --- | --- | --- | --- | ---
<{foreach from=$items item=aProduct}>
<{$aProduct.bn}> | <{$aProduct.name}> <{foreach from=$aProduct.minfo.product_attr item=minfo key=name}> <{$minfo.label}>：<{$minfo.value}> <{/foreach}> | <{$aProduct.products.store}> | <{$aProduct.quantity}> | <{$aProduct.sendnum}> | <{assign var="nums" value=$aProduct.quantity}> <{assign var="sendnum" value=$aProduct.sendnum}> <{assign var="pid" value=$aProduct.product_id}> <{assign var="item_id" value=$aProduct.item_id}> <{if $aProduct.needsend > 0}><{input type="text" vtype="required&&number" name="send[{$item_id}]" value=$aProduct.needsend width="50"}><{else}><{t}>已经发货<{/t}><{/if}>
<{/foreach}>

<{/if}> <{if count($giftItems) > 0}>

<{t}>赠品名称<{/t}> | <{t}>兑换积分<{/t}> | <{t}>当前库存<{/t}> | <{t}>已发货/兑换量<{/t}> | <{t}>需发货<{/t}>
--- | --- | --- | --- | ---
<{foreach from=$giftItems item=aGift}>
<{$aGift.name}> | <{$aGift.point}> | <{$aGift.store}> | <{$aGift.sendnum}>/<{$aGift.nums}> | <{assign var="item_id" value=$aGift.item_id}> <{if $aGift.needsend > 0}><{else}><{t}>已经发货<{/t}><{/if}>
<{/foreach}>

<{/if}> <{if count($extendsItems) > 0}> <{foreach from=$extendsItems item=aExtend}>

<{t}>名称<{/t}> | <{t}>兑换积分<{/t}> | <{t}>当前库存<{/t}> | <{t}>已发货/兑换量<{/t}> | <{t}>需发货<{/t}>
--- | --- | --- | --- | ---
<{foreach from=$aExtend item=aGift}>
<{$aGift.name}> | <{$aGift.point}> | <{$aGift.nums}> | <{$aGift.sendnum}>/<{$aGift.nums}> | <{assign var="item_id" value=$aGift.item_id}> <{if $aGift.needsend > 0}><{else}><{t}>已经发货<{/t}><{/if}>
<{/foreach}>

<{/foreach}> <{/if}> <{area inject='.mainFoot'}>
<{button label=$___b2c="发货"|t:'b2c' id="order-delivery-form-submit" class="order-action" type="button"}>
<{/area}>