Нет описания

backcity.html 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. .remarksContent{
  12. width: 90%;
  13. margin: 0 auto;
  14. }
  15. .remarksContent th.Importent{
  16. width: 14%;
  17. text-align: left;
  18. }
  19. </style>
  20. </head>
  21. <body>
  22. <div class="Common remarksContent">
  23. <table>
  24. <tr>
  25. <th class="Importent">原因:</th>
  26. <td colspan="2"><textarea data-adaptheight id="remarksOpinion" name="" rows="6" cols=""></textarea></td>
  27. </tr>
  28. </table>
  29. <div class="btn_box">
  30. <button class="remarksBtn btns">保存</button>
  31. </div>
  32. </div>
  33. <script src="../css/laydate/laydate.js"></script>
  34. <script src="../js/adjustHeight.js"></script>
  35. <script>
  36. var wid = helper.request.queryString("wid");
  37. $(document).ready(function() {
  38. })
  39. $(".remarksBtn").click(function(){
  40. remarksSubmit();
  41. })
  42. //备注
  43. function remarksSubmit() {
  44. $.post(huayi.config.callcenter_url + 'third/BackWorkOrder', {
  45. workorderid: wid,//工单号
  46. reason: $('#remarksOpinion').val(),//备注内容
  47. "token": $.cookie("token")
  48. }, function(result) {
  49. result = JSON.parse(result);
  50. if(result.state.toLowerCase() == "success") {
  51. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  52. parent.layer.close(index); //再执行关闭
  53. parent.load();
  54. parent.layer.msg("操作成功");
  55. }
  56. })
  57. }
  58. </script>
  59. </body>
  60. </html>