";
				str =str +"| "+ ""
						+ " " + accContect + "" +"";
				
				str =str+" | "+ '删除' +" | 
";
				$('#tableId').append(str);
			} else {
				$.messager.showError(data.message);
			}
		}
	});
}
//删除accid 附件关联ID,id 是第几行附件
jgbg.detail.delFj = function(accid, tr) {
	$.confirm({
		title : '确认框',
		content : '确认删除吗',
		confirm : function() {
			$.post($.app + "/jgbg/delFile", {
				accid : accid
			}, function(data) {
				if (data.success) {
					$(tr).parent().parent().remove();
				} else {
					$.alert({
						title : '提示',
						content : data.message,
						confirm : function() {
						}
					});
				}
			}, "json");
		},
		cancel : function() {
		}
	});
}
jgbg.detail.submitAudit=function(){
	 $(".btn").attr("disabled",true);
	 $.ajax({
     url:$.app+"/jgbg/submitAudit",
     data:$("#addform").serialize(),
     type:"post",
     dataType:"json",
     success:function(data){//ajax返回的数据
	           if (data.success) {
		           	$.alert({
		       		    title: '提示',
		       		    content: '操作成功',
		       		    confirm: function(){
		       		    location.href=$.app+'/jgbg/main';
		       		    }
		           	});
	           }else {
		           	$.alert({
		       		    title: '提示',
		       		    content: data.message,
		       		    confirm: function(){
		       		    	$(".btn").attr("disabled",false);
		       		    }
		           	});
	           }
	     }
}); 
}