暫無描述

YSSH.html 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. .SQtime{
  12. width: 100%;
  13. display: block;
  14. /*height: 32px;*/
  15. }
  16. </style>
  17. </head>
  18. <body>
  19. <div class="Common">
  20. <table >
  21. <tr>
  22. <th class="Importent">审核意见:</th>
  23. <td colspan="2">
  24. <textarea data-adaptheight id="reason" name="" rows="6" cols=""></textarea>
  25. </td>
  26. </tr>
  27. <input type="hidden"id="delayid" />
  28. </table>
  29. <div class="btn_box">
  30. <button class="btns Agree">保存</button>
  31. </div>
  32. </div>
  33. <script src="../js/adjustHeight.js"></script>
  34. <script src="../css/laydate/laydate.js"></script>
  35. <script >
  36. var wid = helper.request.queryString("wid");
  37. $(document).ready(function() {
  38. XQ();
  39. $(".Agree").click(function(){
  40. JA();
  41. })
  42. })
  43. //批示
  44. function JA() {
  45. $.post(huayi.config.callcenter_url + 'WorkOrder/EditAuditDelayByAdmin', {
  46. id: wid,
  47. reason:$("#reason").val(),
  48. "token": $.cookie("token")
  49. }, function(result) {
  50. result = JSON.parse(result);
  51. if(result.state.toLowerCase() == "success") {
  52. parent.parent.layer.closeAll();
  53. parent.parent.$('#orderlist').bootstrapTable('refresh');
  54. parent.parent.layer.msg("操作成功!");
  55. }
  56. })
  57. }
  58. function XQ(){
  59. $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetInfoByAdmin', {
  60. id: wid,
  61. type:2,
  62. token: $.cookie("token")
  63. }, function(result) {
  64. if(result.state.toLowerCase() == "success") {
  65. $("#reason").val(result.data[0].F_RefuseReason)
  66. console.log(result);
  67. }
  68. })
  69. }
  70. </script>
  71. </body>
  72. </html>