Brak opisu

replyUnsuccessful.html 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. <style>
  11. .reminderContent{
  12. width: 90%;
  13. margin: 0 auto;
  14. }
  15. .reminderContent th.Importent{
  16. width: 14%;
  17. text-align: left;
  18. }
  19. </style>
  20. </head>
  21. <body>
  22. <div class="Common reminderContent">
  23. <table>
  24. <tr>
  25. <th class="Importent">回复:</th>
  26. <td colspan="2"><textarea data-adaptheight id="replycount" name="" rows="6" cols=""></textarea></td>
  27. </tr>
  28. </table>
  29. <!-- <div id="message" style="text-align: left;padding: 2% 0 0 19%;">
  30. 是否发送短信
  31. <input type="radio" name="message" id="" value="0" />否
  32. <input type="radio" name="message" id="" value="1" />是
  33. </div> -->
  34. <div class="btn_box">
  35. <button class="replyBtn btns">保存</button>
  36. </div>
  37. </div>
  38. <script src="../css/laydate/laydate.js"></script>
  39. <script src="../js/adjustHeight.js"></script>
  40. <script>
  41. var wid = helper.request.queryString("wid");
  42. var callid = helper.request.queryString("callid");
  43. var depId = helper.request.queryString("depId");
  44. $(document).ready(function() {
  45. $(".replyBtn").click(function(){
  46. replyhande();
  47. })
  48. })
  49. //催单
  50. function replyhande() {
  51. $.post(huayi.config.callcenter_url + 'WorkOrder/ReplyWorkOrder', {
  52. workorderid: wid,//工单号
  53. replycount: $('#replycount').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. parent.layer.close(index); //再执行关闭
  60. //debugger;
  61. parent.loadOld();
  62. parent.layer.msg("操作成功");
  63. }
  64. })
  65. }
  66. </script>
  67. </body>
  68. </html>