function do_export() {
    var keyword = $("[name='keyword']").val();
    var catid = $("[name='catid']").val();
    var brandid = $("[name='brandid']").val();
    var suppliersid = $("[name='suppliersid']").val();
    var url = APP + "Goods/export.html" + "&keyword=" + keyword + "&catid=" + catid + "&brandid=" + brandid + "&suppliersid=" + suppliersid;
    window.location.href = url;
}
function do_exportplu(type) {
    var url = ROOT_PATH + "home/ajax/exportplu/type/" + type;
    window.location.href = url;
}
//导出会员
function do_user_export() {
    var keyword = $("[name='keyword']").val();
    var mobile = $("[name='mobile']").val();
    var rank_id = $("[name='rank_id']").val();
    var reg_from = $("[name='reg_from']").val();
    var reg_to = $("[name='reg_to']").val();
    var url = APP + "Member/export.html" + "&keyword=" + keyword +"&mobile=" + mobile + "&rank_id=" + rank_id + "&reg_from=" + reg_from + "&reg_to=" + reg_to;
    window.location.href = url;
}
function do_export_pur() {
    var keyword = $("[name='keyword']").val();
    var catid = $("[name='catid']").val();
    var suppliersid = $("[name='suppliersid']").val();
    var internetid = $("[name='internetid']").val();
    var typeid = $("[name='typeid']").val();
    var url = APP + "Goods/export_pur.html" + "&keyword=" + keyword + "&catid=" + catid + "&internetid=" + internetid + "&suppliersid=" + suppliersid + "&typeid=" + typeid;
    window.location.href = url;
}
//供货商结算导出
function do_export_supplier_detail(){
    var supplier_id = $("[name='supplier_id']").val();
    var data_from = $("[name='data_from']").val();
    var data_to = $("[name='data_to']").val();
    var url = APP + "InvoicingOrder/supplier_detail_export.html" + "&supplier_id=" + supplier_id + "&data_from=" + data_from + "&data_to=" + data_to;
    window.location.href = url;
}
//会员统计的导出
function do_export_membertong(){
    var type = $(".active").val();
    if(type == 'undefined'){
        type = 3;
    }
    var data_from = $("[name='data_from']").val();
    var data_to = $("[name='data_to']").val();
    var url = APP + "MemberTong/membertong_detail_export.html" + "&type=" + type + "&data_from=" + data_from + "&data_to=" + data_to;
    window.location.href = url;
}
//订单统计的导出
function do_export_order(){
    var type = $(".active").val();
    if(type == 'undefined'){
        type = 3;
    }
    var data_from = $("[name='date_from']").val();
    var data_to = $("[name='date_to']").val();
    var url = APP + "OrderTong/tong_detail_export.html" + "&type=" + type + "&date_from=" + data_from + "&date_to=" + data_to;
    window.location.href = url;
}
/*仓库对账导出*/
function do_export_shop_balance(){
    var shop_id = $("[name='shop_id']").val();
    var data_from = $("[name='data_from']").val();
    var data_to = $("[name='data_to']").val();
    var url = APP + "InvoicingOrder/shop_balance_export.html" + "&shop_id=" + shop_id + "&data_from=" + data_from + "&data_to=" + data_to;
    window.location.href = url;
}
function do_export_freight_management(order_type){
    var sn = $("[name='sn']").val();
    var shop_id = $("[name='shop_id']").val();
    var status = $("[name='status']").val();
    var type = $("[name='type']").val();
    var data_from = $("[name='data_from']").val();
    var data_to = $("[name='data_to']").val();
    var url = APP + "InvoicingOrder/freight_management_export.html" + "&sn=" + sn + "&status=" + status + "&type=" + type + "&shop_id=" + shop_id + "&data_from=" + data_from + "&data_to=" + data_to+"&order_type="+order_type;
    window.location.href = url;
}
function do_export_bad_list(){
    var shop_id = $("[name='shop_id']").val();
    var data_from = $("[name='data_from']").val();
    var data_to = $("[name='data_to']").val();
    var url = APP + "InvoicingOrder/bad_list_export.html" + "&shop_id=" + shop_id + "&data_from=" + data_from + "&data_to=" + data_to;
    window.location.href = url;
}
function do_export_stock_search(){
    var keyword = $("[name='keyword']").val();
    var shop_id = $("[name='shop_id']").val();
    var suppliers_id = $("[name='suppliers_id']").val();
    var url = APP + "InvoicingOrder/stock_search_export.html" + "&shop_id=" + shop_id + "&keyword=" + keyword + "&suppliers_id=" + suppliers_id;
    window.location.href = url;
}
function do_export_goods_detail(){
    var goods_id = $("[name='goods_ids']").val();
    var shop_id = $("[name='shop_id']").val();
    var type = $("[name='type']").val();
    var data_from = $("[name='data_from']").val();
    var data_to = $("[name='data_to']").val();
    var url = APP + "InvoicingOrder/goods_detail_export.html" + "&goods_id=" + goods_id + "&type=" + type + "&shop_id=" + shop_id + "&data_from=" + data_from + "&data_to=" + data_to;
    window.location.href = url;
}
//907新加礼品卡导出
function do_gift_export(){
    var keyword = $("[name='keyword']").val();
    var reg_from = $("[name='reg_from']").val();
    var reg_to = $("[name='reg_to']").val();
    var shop_id = $("[name='shop_id']").val();
    var status = $("[name='status']").val();
    var url = APP + "GiftCard/export.html"+ "&keyword=" + keyword + "&shop_id=" + shop_id + "&reg_from=" + reg_from + "&reg_to=" + reg_to + "&status=" + status;
    window.location.href = url;
}
//end

//1020商品批量配货导出
function do_goods_send_export(){
    var sn = $("[name='sn']").val();
    var data_from = $("[name='data_from']").val();
    var data_to = $("[name='data_to']").val();
    var url = APP + "InvoicingOrder/goods_send_export.html" + "&sn=" + sn +"&data_from=" + data_from + "&data_to=" + data_to;
    window.location.href = url;
}
//商品批量配货详情导出
function do_send_detail_export(){
    var goods_id = $("[name='goods_id']").val();
    var shop_id_out = $("[name='shop_id_out']").val();
    var goods_sn = $("[name='goods_sn']").val();
    var url = APP + "InvoicingOrder/send_detail_export.html" + "&goods_id=" + goods_id + "&shop_id_out=" + shop_id_out + "&goods_sn=" + goods_sn;
    window.location.href = url;
}
//end