Bez popisu

shplTime.html 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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 > <input type="text" id="endtime" class="laydate-icon" style="height: 32px;"></td>
  24. </tr>
  25. <tr>
  26. <th class="Importent">审核意见:</th>
  27. <td colspan="2">
  28. <textarea data-adaptheight id="reason" name="" rows="6" cols=""></textarea>
  29. </td>
  30. </tr>
  31. <input type="hidden"id="delayid" />
  32. </table>
  33. <div class="btn_box">
  34. <button class="btns Agree">同意</button>
  35. <button class="btns Noagree">拒绝</button>
  36. </div>
  37. </div>
  38. <script src="../js/adjustHeight.js"></script>
  39. <script src="../css/laydate/laydate.js"></script>
  40. <script >
  41. laydate.skin('blue');
  42. laydate({
  43. elem: '#endtime',
  44. event: 'focus'
  45. });
  46. var wid = helper.request.queryString("wid");
  47. // var widArr = [];
  48. // console.log(wid)
  49. // saveArr=wid.split(","); //字符分割
  50. // console.log(saveArr.length)
  51. // alert(typeof(saveArr));
  52. var type;
  53. $(document).ready(function() {
  54. $(".Agree").click(function(){
  55. type=1;
  56. JA();
  57. })
  58. $(".Noagree").click(function(){
  59. type=2;
  60. JA();
  61. })
  62. })
  63. //批示
  64. function JA() {
  65. $.post(huayi.config.callcenter_url + 'WorkOrder/AuditDelayWorkOrderBatch', {
  66. ids: wid,
  67. reason:$("#reason").val(),
  68. newlimittime:$("#endtime").val(),
  69. state:type,
  70. "token": $.cookie("token")
  71. }, function(result) {
  72. result = JSON.parse(result);
  73. if(result.state.toLowerCase() == "success") {
  74. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  75. parent.layer.close(index); //再执行关闭
  76. parent.$('#orderlist').bootstrapTable('refresh');
  77. parent.layer.msg("审核延时成功");
  78. }
  79. })
  80. }
  81. </script>
  82. </body>
  83. </html>