旭捷内部项目管理系统
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.

40 lines
1.0 KiB

10 months ago
  1. //删除卷信息
  2. function delRoll(rollNo, tagButton){
  3. delRollNo(rollNo, tagButton);
  4. }
  5. //通过内部卷号获取信息
  6. function delRollNo(rollNo, tags){
  7. var numsCounts = $("#roll_nums").val();
  8. var sigelNums = $("#sigelNums").val();
  9. $.ajax({
  10. url : "/qa/delRollNo",
  11. type : "POST",
  12. data : {partNo: $("#partNo").val(),
  13. nums: sigelNums,
  14. rollNo: rollNo
  15. },
  16. dataType : "json",
  17. beforeSend: function(request) {
  18. request.setRequestHeader("token", $.cookie("token"));
  19. },
  20. success : function(data) {
  21. var code = data.code;
  22. var tempData = data.obj;
  23. if (code=='200') {
  24. //刷新页面
  25. $(tags).parents('tr').remove();
  26. var current_roll_nums = numsCounts-1;
  27. if(current_roll_nums==0){
  28. window.document.location.href = "/pda/qaCheck";
  29. }
  30. $("#roll_nums").val(current_roll_nums);
  31. $("#show_roll_nums").html(current_roll_nums);
  32. //更新供应商编码
  33. } else if (code=='500') {
  34. window.document.location.href = "/pda/qaCheck";
  35. }
  36. },
  37. error : function(data) {
  38. }
  39. });
  40. }