商丘12345 前端

XGHF.html 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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><input type="text" id="visituser"/></td>
  18. </th>
  19. <th>
  20. 回访方式:
  21. <td>
  22. <select class="select_" id="type">
  23. <option value="0">电话</option>
  24. <option value="1">微信</option>
  25. </select>
  26. </td>
  27. </th>
  28. </tr>
  29. <tr>
  30. <th class="Importent">回访结果:</th>
  31. <td>
  32. <select class="select_" id='issatisfie'>
  33. <option value="0">不满意</option>
  34. <option value="1">满意</option>
  35. </select>
  36. </td>
  37. </tr>
  38. <tr>
  39. <th class="Importent">回访内容:</th>
  40. <td colspan="7"><textarea data-adaptheight id="result" name="" rows="" cols=""></textarea></td>
  41. </tr>
  42. </table>
  43. <div class="btn_box">
  44. <button class="btns BC">保存</button>
  45. </div>
  46. </div>
  47. <script src="../js/adjustHeight.js"></script>
  48. <script>
  49. var wid = helper.request.queryString("wid");
  50. $(document).ready(function() {
  51. XQ();
  52. $('.BC').click(function() {
  53. JA();
  54. })
  55. });
  56. //回访
  57. function JA() {
  58. $.post(huayi.config.callcenter_url + 'WorkOrder/EditVisitInfoByAdmin', {
  59. id: wid,
  60. visituser:$("#visituser").val(),//回访人
  61. result:$("#result").val(),//回访内容
  62. type:$("#type").val(),
  63. issatisfie:$("#issatisfie").val(),
  64. token: $.cookie("token")
  65. }, function(result) {
  66. result = JSON.parse(result);
  67. if(result.state.toLowerCase() == "success") {
  68. parent.parent.layer.closeAll();
  69. parent.parent.$('#orderlist').bootstrapTable('refresh');
  70. parent.parent.layer.msg("操作成功!");
  71. }
  72. })
  73. }
  74. function XQ(){
  75. $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetInfoByAdmin', {
  76. id: wid,
  77. type:6,
  78. token: $.cookie("token")
  79. }, function(result) {
  80. if(result.state.toLowerCase() == "success") {
  81. $("#visituser").val(result.data[0].F_VisitUser);
  82. $("#result").val(result.data[0].F_Result);
  83. $("#type").val(result.data[0].F_Type),
  84. $("#issatisfie").val(result.data[0].F_IsSatisfie);
  85. console.log(result);
  86. }
  87. })
  88. }
  89. </script>
  90. </body>
  91. </html>