Нет описания

AuditDatil.html 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <script src="../Script/Common/huayi.load.js"></script>
  6. <script src="../Script/Common/huayi.config.js"></script>
  7. <link href="../css/layer/need/layer.css" />
  8. <link rel="stylesheet" href="../css/init.css" />
  9. <title>审核</title>
  10. </head>
  11. <body>
  12. <div class="Common">
  13. <table >
  14. <tr>
  15. <th class="Importent">是否同意:</th>
  16. <td>
  17. <select class="select_" id='isBulletin'>
  18. <option value="0">否</option>
  19. <option value="1">是</option>
  20. </select>
  21. </td>
  22. </tr>
  23. <tr class="divShow">
  24. <th class="Importent">审核不通过原因:</th>
  25. <td colspan="7"><textarea data-adaptheight id="result" name="" rows="4" cols=""></textarea></td>
  26. </tr>
  27. </table>
  28. <div class="btn_box">
  29. <button class="btns BC">保存</button>
  30. </div>
  31. </div>
  32. <script src="../js/adjustHeight.js"></script>
  33. <script>
  34. var wid = helper.request.queryString("wid");
  35. $(document).ready(function() {
  36. if ($("#isBulletin").val()=="1") {
  37. $(".divShow").hide();
  38. } else{
  39. $(".divShow").show();
  40. }
  41. $('.BC').click(function() {
  42. if($("#isBulletin").val()=="1"){
  43. JA();
  44. }else{
  45. if (!$("#result").val()) {
  46. layer.msg("原因不能为空");
  47. }else{
  48. JA();
  49. }
  50. }
  51. })
  52. $("#isBulletin").change(function(){
  53. if ($("#isBulletin").val()=="1") {
  54. $(".divShow").hide();
  55. } else{
  56. $(".divShow").show();
  57. }
  58. })
  59. });
  60. //回退
  61. function JA() {
  62. $.post(huayi.config.callcenter_url + 'WorkOrder/AuditWorkOrder', {
  63. workorderid: wid,
  64. state :$("#isBulletin").val(),
  65. reason:$("#result").val(),//回访内容
  66. token: $.cookie("token")
  67. }, function(result) {
  68. result = JSON.parse(result);
  69. if(result.state.toLowerCase() == "success") {
  70. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  71. console.log(index);
  72. parent.layer.close(index); //再执行关闭
  73. parent.$('#orderlist').bootstrapTable('refresh');
  74. parent.layer.msg("操作成功");
  75. }
  76. })
  77. }
  78. </script>
  79. </body>
  80. </html>