12345市长热线标准版-前端

lawsuits.html 1.6KB

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>
  17. <select class="select_" id="issatisfie">
  18. <option value="">全部</option>
  19. <option value="0">不满意</option>
  20. <option value="1">满意</option>
  21. </select>
  22. </td>
  23. </tr>
  24. <tr>
  25. <th>结案意见:</th>
  26. <td colspan="2"><textarea id="finalopinion" name="" rows="" cols=""></textarea></td>
  27. </tr>
  28. </table>
  29. <div class="btn_box">
  30. <button class="btns">保存</button>
  31. </div>
  32. </div>
  33. <script>
  34. var wid = helper.request.queryString("wid");
  35. $(document).ready(function() {
  36. $(".btns").click(function(){
  37. JA();
  38. })
  39. })
  40. function JA() {
  41. $.post(huayi.config.callcenter_url + 'WorkOrder/FinishWorkOrder', {
  42. workorderid: wid,
  43. issatisfie: $("#issatisfie").val(),
  44. finalopinion: $("#finalopinion").val(),
  45. "token": $.cookie("token")
  46. }, function(result) {
  47. result = JSON.parse(result);
  48. if(result.state.toLowerCase() == "success") {
  49. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  50. parent.layer.close(index); //再执行关闭
  51. parent.load();
  52. parent.layer.msg("结案成功");
  53. }
  54. })
  55. }
  56. </script>
  57. </body>
  58. </html>