説明なし

XGjiaoban.html 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. .inpBox {
  12. border: 1px solid #a9a9a9;
  13. height: 27px;
  14. width: 220px;
  15. display: inline-block;
  16. position: relative;
  17. vertical-align: middle;
  18. }
  19. .addTree {
  20. background: #fff;
  21. position: absolute;
  22. width: 100%;
  23. border: 1px solid darkgrey;
  24. right: 0;
  25. top: 26px;
  26. display: none;
  27. }
  28. .xl {
  29. display: inline-block;
  30. background: url(../../img/dropDown.png) no-repeat;
  31. height: 100%;
  32. background-position: center center;
  33. width: 20px;
  34. position: absolute;
  35. right: 0;
  36. top: 0px;
  37. /* background-color: #f7bc8b; */
  38. cursor: pointer;
  39. }
  40. .ztree li span {
  41. border: none;
  42. padding: 0;
  43. }
  44. .inps {
  45. width: 217px;
  46. height: 24px;
  47. outline: none;
  48. border: 0;
  49. border-image-width: 0;
  50. padding: 0;
  51. padding-left: 3px;
  52. }
  53. .xl {
  54. display: inline-block;
  55. background: url(../img/dropDown.png) no-repeat;
  56. height: 100%;
  57. background-position: center center;
  58. width: 20px;
  59. position: absolute;
  60. right: 0;
  61. top: 0px;
  62. /* background-color: #f7bc8b; */
  63. cursor: pointer;
  64. }
  65. </style>
  66. </head>
  67. <body>
  68. <div class="Common" style="height: 100%;">
  69. <table>
  70. <tr>
  71. <th class="Importent">办理时限:</th>
  72. <td> <input type="text" id="startTime" class="laydate-icon" style="height: 32px;"></td>
  73. </tr>
  74. <tr>
  75. <th class="Importent">交办意见:</th>
  76. <td><textarea data-adaptheight id="assignedopinion" name="" rows="4" cols=""></textarea></td>
  77. </tr>
  78. </table>
  79. <div class="btn_box">
  80. <button class="btns BC">保存</button>
  81. </div>
  82. </div>
  83. <script src="../css/laydate/laydate.js"></script>
  84. <script src="../js/zTree/jquery.ztree.core.js"></script>
  85. <script src="../js/adjustHeight.js"></script>
  86. <script>
  87. var wid = helper.request.queryString("wid");
  88. $(document).ready(function() {
  89. laydate.skin('blue');
  90. laydate({
  91. elem: '#startTime',
  92. event: 'focus'
  93. });
  94. XQ()
  95. $('.BC').click(function() {
  96. if($("#assignedopinion").val() == "") {
  97. layer.msg("交办意见不能为空");
  98. }else{
  99. JA();
  100. }
  101. })
  102. //交办
  103. function JA() {
  104. $.post(huayi.config.callcenter_url + 'WorkOrder/EditAssignInfoByAdmin', {
  105. id: wid,
  106. limittime: $("#startTime").val(), //办理时限
  107. assignedopinion: $('#assignedopinion').val(), //交办意见
  108. token: $.cookie("token")
  109. }, function(result) {
  110. result = JSON.parse(result);
  111. if(result.state.toLowerCase() == "success") {
  112. parent.parent.layer.closeAll();
  113. parent.parent.$('#orderlist').bootstrapTable('refresh');
  114. parent.parent.layer.msg("操作成功!");
  115. }
  116. })
  117. }
  118. //所属分类下拉
  119. //清除
  120. function Clean() {
  121. $("#startTime").val(''),
  122. $('#assignedopinion').val('')
  123. }
  124. function XQ(){
  125. $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetInfoByAdmin', {
  126. id: wid,
  127. type:1,
  128. token: $.cookie("token")
  129. }, function(result) {
  130. if(result.state.toLowerCase() == "success") {
  131. $("#startTime").val(result.data[0].F_LimitTime);
  132. $('#assignedopinion').val(result.data[0].F_AssignedOpinion);
  133. console.log(result);
  134. }
  135. })
  136. }
  137. });
  138. </script>
  139. </body>
  140. </html>