Ei kuvausta

superTrunl.html 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 colspan="7"><textarea data-adaptheight id="result" name="" rows="4" cols=""></textarea></td>
  17. </tr>
  18. </table>
  19. <!-- <div id="message" style="text-align: left;padding: 2% 0 0 19%;">
  20. 是否发送短信
  21. <input type="radio" name="message" id="" value="0" />否
  22. <input type="radio" name="message" id="" value="1" />是
  23. </div> -->
  24. <div class="btn_box">
  25. <button class="btns BC">保存</button>
  26. </div>
  27. </div>
  28. <script src="../js/adjustHeight.js"></script>
  29. <script>
  30. var wid = helper.request.queryString("wid");
  31. var depId = helper.request.queryString("depId");
  32. $(document).ready(function() {
  33. $('.BC').click(function() {
  34. if(!$("#result").val()) {
  35. layer.msg("内容不能为空");
  36. }else {
  37. JA();
  38. }
  39. })
  40. });
  41. //督办
  42. function JA() {
  43. $.post(huayi.config.callcenter_url + 'WorkOrder/RemindWorkOrder', {
  44. workorderid: wid,
  45. overseeopinion: $("#result").val(), // 督办原因
  46. type:1,
  47. token: $.cookie("token")
  48. }, function(result) {
  49. result = JSON.parse(result);
  50. if(result.state.toLowerCase() == "success") {
  51. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  52. console.log(index);
  53. parent.layer.close(index); //再执行关闭
  54. parent.$('#orderlist').bootstrapTable('refresh');
  55. parent.layer.msg("操作成功");
  56. }
  57. })
  58. }
  59. </script>
  60. </body>
  61. </html>