You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
//删除卷信息
function delRoll(rollNo, tagButton){ delRollNo(rollNo, tagButton);}
//通过内部卷号获取信息
function delRollNo(rollNo, tags){ var numsCounts = $("#roll_nums").val(); var sigelNums = $("#sigelNums").val(); $.ajax({ url : "/qa/delRollNo", type : "POST", data : {partNo: $("#partNo").val(), nums: sigelNums, rollNo: rollNo }, dataType : "json", beforeSend: function(request) { request.setRequestHeader("token", $.cookie("token")); }, success : function(data) { var code = data.code; var tempData = data.obj; if (code=='200') { //刷新页面
$(tags).parents('tr').remove(); var current_roll_nums = numsCounts-1; if(current_roll_nums==0){ window.document.location.href = "/pda/qaCheck"; } $("#roll_nums").val(current_roll_nums); $("#show_roll_nums").html(current_roll_nums); //更新供应商编码
} else if (code=='500') { window.document.location.href = "/pda/qaCheck"; } }, error : function(data) { } });}
|