/**
 * 发货信息
 */
function ship_info(id){
	$.openUrl(APP+'Supplier/Order/ship_info/id/'+id+'.html','发货信息',id, '450', function () {
		return false;
	}, function () {
		return false;
	});
}
/**
 * 发货
 */
function ship(id){
	var notice_sn=$("input[name='notice_sn']").val();
	if(notice_sn==''){$.showErr('请填写快递单号',0,'hc');return false;}
	var send_type=$("select[name='send_type']").val();
	if(send_type==''){$.showErr('请选择发货方式',0,'hc');return false;}
	var query=new Object();
	query = $("form[name='add_myform']").serialize();
	$.ajax({
		type:'GET',
		data:query,
		url:APP+"Supplier/Order/ship.html",
		success:function(data){
			if(data.status==1){
				var str="<a class='order-ok'>已发货</a>";
				$('#yes_ship_'+id).html(str);
				$('#yes_ship').val('已发货');
				$('#yes_ship').attr("disabled", "true");
				$.showSuccess(data.info,1,'hc');
				window.location.reload();
			}else{
				$.showErr(data.info,1,'hc');
			}
		}
	});
}
/**
 * 修改运费
 */
function change_ship_free(id){
	$.openUrl(APP+'Shop/Order/change_ship_free/id/'+id+'.html','修改运费',id, '500', function () {
		return false;
	}, function () {
		return false;
	});
}
/**
 * 发票信息
 */
function get_invoice(order_id){
    $.openUrl(APP+'Shop/Order/invoice/order_id/'+order_id+'.html','发票信息', 'ID', '400', function () {
        return false;
    }, function () {
        return false;
    });
}
/**
 * 关闭窗口
 */
function close_pop(){
	$('.dialog-close').click();
}