function sub_refund(){
    var query = new Object;
    query.order_id = $('#order_id').val();
    query.og_id = $('#og_id').val();
    query.tui_number = parseFloat($("input[name='tui_num']").val());
    query.tui_money = parseFloat($("input[name='tui_money']").val());
    query.goods_number = parseFloat($("input[name='goods_number']").val());
    query.content = $("[name='content']").val();
    if(query.tui_number > query.goods_number || query.tui_number==0){
        $.showErr('请正确填写退货数量',1,'hc');return false;
    }
    $.ajax({
        type:'post',
        data:query,
        url:APP+"Mobile/OrderInfo/check_tui",
        success:function(data){
            if(data.status==1){
                $.showSuccess(data.msg,1,'hc');
                window.location.href=APP+"Mobile/OrderInfo/index";
            }else{
                $.showErr(data.msg,1,'hc');
            }
        }
    });
}

function close_pop(){
    $('.dialog-close').click();
}
