12345市长热线标准版-前端

StrongLawsuit.html 1.9KB

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