{echo:JS::import('form')}
{query:name=doc_refund as dr fields=go.name,pr.pro_no,od.spec,od.goods_price,od.goods_nums,dr.id join= left join order_goods as od on dr.order_id eq od.order_id left join products as pr on od.product_id eq pr.id left join goods as go on od.goods_id eq go.id where=dr.id eq $id} {set:$spec = unserialize($item['spec']);} {/query}
货号商品名规格价格数量小计
{$item['pro_no']}{$item['name']} {if:is_array($spec)} {list:items=$spec item=$ite } {$ite['name']}:{$ite['value'][2]} {/list} {/if} {$item['goods_price']}{$item['goods_nums']}{echo:sprintf("%.2f",($item['goods_price']*$item['goods_nums']))}
{query:name=doc_refund as dr fields=dr.*,od.status,od.delivery_status,us.name as uname, ma.name as mname,od.real_amount,od.real_freight,od.handling_fee,od.taxes,od.adjust_amount,od.order_amount,od.order_amount,od.discount_amount join=left join user as us on dr.user_id eq us.id left join manager as ma on dr.admin_id eq ma.id left join order as od on dr.order_no eq od.order_no where=dr.id eq $id /} {set:$item = $items[0];}

退款单详情:

订单编号:{$item['order_no']|'-'}申请人:{$item['uname']}
订单状态:{echo:$this->parseOrderStatus($item)}
退款到:{echo:$item['refund_type']!=0?($item['refund_type']==1?'银行卡':'其它方式'):'账户余额'}退款状态:{echo:$item['pay_status']!=0?($item['pay_status']==1?'不予退款':'退款成功'):'申请退款'}
开户名:{$item['account_name']|'-'}{if:$item['refund_type']==2}支付方式{else:}开户行{/if}:{$item['account_bank']|'-'}
账号:{$item['refund_account']|'-'}申请时间:{$item['create_time']}
申请原因:
{$item['content']}
实付商品金额:{$item['real_amount']|'-'}实付运费金额:{$item['real_freight']}
保价:-手续费:{$item['handling_fee']}
税金:{$item['taxes']|'-'}调价:{$item['adjust_amount']}
订单总金额:{$item['order_amount']|'-'}优惠金额:{$item['discount_amount']}
处理方式:
退款渠道:
退款到账号:退款金额:
处理意见: