No Description

shiTimesq.html 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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">申请延时时间:</th>
  16. <td>
  17. <select class="startTime" id="startTime" style="width: 150px; height: 30px; line-height: 30px;">
  18. <!--<option value="0">选择</option>-->
  19. <option value="1">一天</option>
  20. <option value="2">两天</option>
  21. <option value="4">四天</option>
  22. <option value="5">五天</option>
  23. <option value="9">九天</option>
  24. <!-- <option value="7">七天</option> -->
  25. </select>
  26. </td>
  27. </tr>
  28. <tr>
  29. <th class="Importent">申请延时原因:</th>
  30. <td colspan="2">
  31. <textarea
  32. data-adaptheight
  33. id="reason"
  34. name=""
  35. rows=""
  36. cols=""
  37. ></textarea>
  38. </td>
  39. </tr>
  40. </table>
  41. <div class="btn_box">
  42. <button class="btns">保存</button>
  43. </div>
  44. </div>
  45. <script src="../css/laydate/laydate.js"></script>
  46. <script src="../js/adjustHeight.js"></script>
  47. <script>
  48. var nowTime=new Date();
  49. var wid = helper.request.queryString("wid");
  50. var level = helper.request.queryString("level");
  51. var roleCode = $.cookie("code");
  52. var apiUrl;
  53. $(document).ready(function () {
  54. $(".btns").click(function () {
  55. if ($("#reason").val() == "") {
  56. layer.msg("申请原因不为空");
  57. } else {
  58. JA();
  59. }
  60. });
  61. });
  62. //批示
  63. function JA() {
  64. $.post(
  65. huayi.config.callcenter_url + 'Affairs/DelayWorkOrder',
  66. {
  67. workorderid: wid,
  68. type:2,
  69. reason: $("#reason").val(),
  70. newlimittime: $("#startTime").val(),
  71. token: $.cookie("token"),
  72. },
  73. function (result) {
  74. result = JSON.parse(result);
  75. if (result.state.toLowerCase() == "success") {
  76. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  77. parent.layer.close(index); //再执行关闭
  78. parent.$("#orderlist").bootstrapTable("refresh");
  79. parent.layer.msg("申请延时成功");
  80. parent.closePage();
  81. }
  82. }
  83. );
  84. }
  85. function getNowDate() {
  86. var date = new Date();
  87. var year = date.getFullYear(); //当前年份
  88. var month = date.getMonth(); //当前月份
  89. var day = date.getDate(); //天
  90. month = month + 1
  91. var time = year + "-" + month + "-" + day
  92. return time
  93. }
  94. function getFiveDate() {
  95. var date = new Date();
  96. date.setTime(date.getTime() + 5*24*60*60*1000);
  97. var year = date.getFullYear(); //当前年份
  98. var month = date.getMonth(); //当前月份
  99. var day = date.getDate(); //天
  100. month = month + 1
  101. var time = year + "-" + month + "-" + day
  102. return time
  103. }
  104. </script>
  105. </body>
  106. </html>