<p style="padding-left: 5px;">退货申请</p>
<div class="tabs-box">
    <div class="order-change-main">
        <form id="refundForm" class="form-horizontal table-responsive">
            <input type="hidden" name="order_id" value="{{$order_info['order_id']}}">
            <input type="hidden" name="goods_amount" value="{{$order_price_info['goods_price']}}">
            <input type="hidden" name="order_amount" value="{{$order_info['order_amount']}}">

            <!-- 退款型号 -->
            <p>退款型号</p>
            <table class="table table-bordered table-hover refund-table">
                <thead>
                    <!-- <th width="7%"><input type="checkbox" class="all-select" >全选</th> -->
                    <th width="20%">供应商</th>
                    <th>型号</th>
                    <th>未发货数量</th>
                    <th>均摊后单价</th>
                    <th>退货数量</th>
                    <th width="10%">小计</th>
                </thead>

                <tbody>
                    @foreach ($unshippedItems as $v)
                        <tr>
                            <!-- <td><input type="checkbox" name="refund_info[{{$v['rec_id']}}]" value="{{$v['rec_id']}}"></td> -->
                            <td>
                                <span>{{$v['supplier_name']}}</span>
                            </td>
                            <td>
                                <span>{{$v['goods_name']}}</span>
                            </td>

                            <td>
                                <input type="hidden" name="refund_info[{{$v['rec_id']}}][unshipped_num]" class="unshipped_num" value="{{ $v['goods_number'] }}">
                                <span>{{$v['goods_number']}}</span>
                            </td>
                            <td>
                                <input type="hidden" name="refund_info[{{$v['rec_id']}}][single_pre_price]" class="single_pre_price" value="{{ $v['single_pre_price'] }}">
                                <span>{{$v['single_pre_price_format']}}</span>
                            </td>
                            <td>
                                <input class="only_number int_num refund_num" name="refund_info[{{$v['rec_id']}}][refund_num]" value="">
                            </td>
                            <td>
                                <span class="single_refund_amount"></span>
                            </td>
                        </tr>
                    @endforeach
                </tbody>
            </table>

            <hr/>
            <table class="table table-bordered table-hover">
                <tr>
                    <th width="20%">订单总额</th>
                    <td>
                        <p class="text-danger">{{$currency}}<span class="total">{{$order_info['order_amount']}}</span></p>
                    </td>
                </tr>

                <tr>
                    <th>退款小计</th>
                    <td>
                        <input type="hidden" name="all_refund_amount" class="all_refund_amount" value="">
                        <span class="all_refund_amount_val"></span>
                    </td>
                </tr>

                <tr>
                    <th>调整差价</th>
                    <td><span> - </span><input class="only_number float_num price_fall" name="price_fall" value="0"></td>
                </tr>

                <tr>
                    <th>退款总额</th>
                    <td><span class="refund_amount"></span></td>
                </tr>
                
                <tr>
                    <th>退款原因</th>
                    <td>
                        <input type="hidden" class="refund_reason" name="refund_reason" value="">
                        <a href="javascript:;" class="btn btn-default input-cancel-reason" data-oid="{{$order_info['order_id']}}" data-type="5">点击选择</a>
                        <span class="refund_reason_val"></span>
                    </td>
                </tr>
                
            </table>

            <a class="btn btn-primary refundApply">提交</a>
        </form>
    </div>
</div>

<script>
    var currency_sign = "{{$currency}}"; 
</script>