No Description

auditHandleAddReply.html 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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='state'>
  18. <option value="1">同意</option>
  19. <option value="2">拒绝</option>
  20. </select>
  21. </td>
  22. </tr>
  23. <tr>
  24. <th>是否公开:</th>
  25. <td colspan="">
  26. <select class="select_" id="isopen">
  27. <option value="1">是</option>
  28. <option value="0">否</option>
  29. </select>
  30. </td>
  31. </tr>
  32. <tr class="divShow">
  33. <th>审核原因:</th>
  34. <td colspan="7"><textarea data-adaptheight id="reason" name="" rows="4" cols=""></textarea></td>
  35. </tr>
  36. </table>
  37. <div class="btn_box">
  38. <button class="btns BC">保存</button>
  39. </div>
  40. </div>
  41. <script src="../js/adjustHeight.js"></script>
  42. <script src="../css/laydate/laydate.js"></script>
  43. <script>
  44. var wid = helper.request.queryString("wid");
  45. console.log(wid)
  46. $('.BC').click(function() {
  47. if(!$("#state").val()) {
  48. layer.msg("请选择是否同意");
  49. } else {
  50. if($("#state").val() == '2') {
  51. if(!$("#reason").val()) {
  52. layer.msg("请输入审核原因");
  53. } else {
  54. JA();
  55. }
  56. } else {
  57. JA();
  58. }
  59. }
  60. })
  61. //回退
  62. function JA() {
  63. $.post(huayi.config.callcenter_url + 'WorkOrder/AuditAppend', {
  64. id: wid,
  65. state: $("#state").val(),
  66. isopen: $("#isopen").val(),
  67. reason: $("#reason").val(),
  68. token: $.cookie("token")
  69. }, function(result) {
  70. result = JSON.parse(result);
  71. if(result.state.toLowerCase() == "success") {
  72. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  73. console.log(index);
  74. parent.layer.close(index); //再执行关闭
  75. parent.getDetail(16);
  76. parent.layer.msg("操作成功");
  77. }
  78. })
  79. }
  80. </script>
  81. </body>
  82. </html>