Нет описания

superviseReview.html 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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>审核状态:</th>
  16. <td>
  17. <select class="select_" id="review">
  18. <option value="0" selected>审核通过</option>
  19. <option value="1">审核拒绝</option>
  20. </select>
  21. </td>
  22. </tr>
  23. <tr>
  24. <th class="Importent">审核意见:</th>
  25. <td colspan="7"><textarea data-adaptheight id="reason" 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. var depId = helper.request.queryString("depId");
  36. $(document).ready(function () {
  37. $('.BC').click(function () {
  38. if (!$("#review").val()) {
  39. layer.msg("审核状态不能为空");
  40. } else {
  41. JA();
  42. }
  43. })
  44. });
  45. //督办
  46. function JA() {
  47. $.post(huayi.config.callcenter_url + 'workorder/RemindApproved', {
  48. workorderid: wid,
  49. state: $("#review").val(), // 审核状态
  50. reason: $("#reason").val(), // 审核意见
  51. token: $.cookie("token")
  52. }, function (result) {
  53. result = JSON.parse(result);
  54. if (result.state.toLowerCase() == "success") {
  55. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  56. parent.layer.close(index); //再执行关闭
  57. parent.$('#orderlist').bootstrapTable('refresh');
  58. parent.layer.msg("操作成功");
  59. }
  60. })
  61. }
  62. </script>
  63. </body>
  64. </html>