12345市长热线标准版-前端

Cb.html 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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">
  16. 重办类型:
  17. <td>
  18. <input type="radio" name"ducha" value="1"/>督办
  19. <input type="radio" name"ducha" value="2"/>监察
  20. </td>
  21. </th>
  22. <th>
  23. 重办超时时间:
  24. <td>
  25. <input type="text" id="startTime" class="laydate-icon" style="height: 32px;">
  26. </td>
  27. </th>
  28. </tr>
  29. </tr>
  30. <tr>
  31. <th class="Importent">督办内容:</th>
  32. <td colspan="7"><textarea id="result" name="" rows="" cols=""></textarea></td>
  33. </tr>
  34. </table>
  35. <div class="btn_box">
  36. <button class="btns BC">保存</button>
  37. <button class="btns Submit">保存并提交回访</button>
  38. </div>
  39. </div>
  40. <script src="../css/laydate/laydate.js"></script>
  41. <script>
  42. laydate.skin('blue');
  43. laydate({
  44. elem: '#startTime',
  45. event: 'focus'
  46. });
  47. var wid = helper.request.queryString("wid");
  48. var State;
  49. $(document).ready(function() {
  50. $('.BC').click(function() {
  51. if($('#result').val()==""){
  52. layer.msg("内容不能为空");
  53. }else{
  54. State = 0;
  55. JA();
  56. }
  57. })
  58. $('.Submit').click(function() {
  59. if($('#result').val()==""){
  60. layer.msg("内容不能为空");
  61. }else{
  62. State = 1;
  63. JA();
  64. }
  65. })
  66. });
  67. //重办
  68. function JA() {
  69. $.post(huayi.config.callcenter_url + 'WorkOrder/ReloadWorkOrder', {
  70. workorderid: wid,
  71. newlimittime:$("#startTime").val(),
  72. overseeopinion:$("#result").val(),
  73. type: $('input[name="ducha"]:checked ').val(),
  74. token: $.cookie("token")
  75. }, function(result) {
  76. result = JSON.parse(result);
  77. if(result.state.toLowerCase() == "success") {
  78. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  79. parent.layer.close(index); //再执行关闭
  80. parent.load();
  81. parent.layer.msg("操作成功");
  82. }
  83. })
  84. }
  85. </script>
  86. </body>
  87. </html>