No Description

Work-review.html 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. <!doctype html>
  2. <html lang="en" class="feedback">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  6. <title>工单处理</title>
  7. <link rel="stylesheet" type="text/css" href="../css/mui.min.css" />
  8. <link rel="stylesheet" type="text/css" href="../css/feedback.css" />
  9. <link rel="stylesheet" type="text/css" href="../css/mui.picker.min.css" />
  10. <link href="../css/feedback-page.css" rel="stylesheet" />
  11. <style>
  12. p {
  13. font-size: 16px;
  14. color: #fe6604;
  15. }
  16. .mui-bar-nav {
  17. background: #cd0000 !important;
  18. color: #fff!important;
  19. }
  20. .mui-bar-popover {
  21. width: 30%;
  22. }
  23. .mui-popover.mui-bar-popover .mui-table-view {
  24. width: 100%;
  25. }
  26. .mui-table-view .mui-table-view-cell>a:not(.mui-btn) {
  27. text-align: center;
  28. }
  29. .mui-table-view-cell {
  30. padding: 1px 15px!important;
  31. }
  32. .san {
  33. font-size: 14px;
  34. margin-right: 5px
  35. }
  36. .nav_a {
  37. border-right: 1px solid #ccc;
  38. }
  39. .radio_box {
  40. display: inline-block;
  41. }
  42. .mui-radio input[type=radio]:before {
  43. font-size: 20px;
  44. vertical-align: middle;
  45. }
  46. .mui-radio.mui-left input[type=radio] {
  47. line-height: 24px!important;
  48. }
  49. .mui-radio.mui-left label {
  50. padding-right: 1px!important;
  51. padding-left: 51px!important;
  52. }
  53. .ztext {
  54. width: 100%;
  55. margin: 0;
  56. border: 0;
  57. }
  58. .action {
  59. padding: 5px 15px;
  60. }
  61. .type_down {
  62. float: right!important;
  63. display: inline-block!important;
  64. vertical-align: middle!important;
  65. line-height: 42px;
  66. }
  67. .type_con {
  68. width: 55%!important;
  69. float: left!important;
  70. vertical-align: middle!important;
  71. display: inline-block!important;
  72. padding: 10px 0!important;
  73. }
  74. .label {
  75. width: 30%!important;
  76. padding: 11px 0px!important;
  77. }
  78. .get_yzm {
  79. padding: 5px!important;
  80. width: auto!important;
  81. }
  82. .yzm_con {
  83. float: left!important;
  84. width: 40%!important;
  85. }
  86. .mui-bar-nav {
  87. background-color: #00a1cb;
  88. }
  89. .mui-input-row label {
  90. text-align: -webkit-right;
  91. }
  92. .mui-btn-block {
  93. padding: 10px;
  94. width: 100%;
  95. }
  96. .labels {
  97. color: #fe6604;
  98. }
  99. #imgs {
  100. overflow: hidden;
  101. }
  102. #imgs li{
  103. margin: 5px;
  104. width: 80px;
  105. float: left;
  106. }
  107. #imgs li .img_div {
  108. height: 100px;
  109. }
  110. #imgs li .img_div img {
  111. width: 70px;
  112. height: 70px;
  113. display: block;
  114. }
  115. #imgs li .img_div span {
  116. display: block;
  117. }
  118. </style>
  119. </head>
  120. <body>
  121. <header class="mui-bar mui-bar-nav" style="">
  122. <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: #fff;"></a>
  123. <h1 class="mui-title" style="color: #fff;">工单审核</h1>
  124. </header>
  125. <div class="mui-content">
  126. <ul class="mui-table-view">
  127. <li class="mui-table-view-cell" >
  128. <div class="mui-input-row">
  129. <label class="label labels">是否同意:</label>
  130. <div class="mui-input-row mui-radio mui-left radio_box">
  131. <label>是</label>
  132. <input type="radio" name="secret" checked="checked" value="1" />
  133. </div>
  134. <div class="mui-input-row mui-radio mui-left radio_box">
  135. <label>否</label>
  136. <input type="radio" name="secret" value="2" />
  137. </div>
  138. </div>
  139. </li>
  140. <li class="mui-table-view-cell">
  141. <div class="mui-input-row">
  142. <label class="label labels">处理内容:</label>
  143. <textarea class="ztext content" name="" id="result" rows="3" cols="" placeholder="请详细描述您的问题和建议..."></textarea>
  144. </div>
  145. </li>
  146. </ul>
  147. <div class="" style="padding: 10px;">
  148. <br />
  149. <button id="submit" type="button" class="mui-btn mui-btn-block mui-btn-danger submit">保存</button>
  150. </div>
  151. </div>
  152. <script src="../js/huayi.config.js"></script>
  153. <script src="../js/zepto.js"></script>
  154. <script src="../js/mui.min.js"></script>
  155. <script src="../js/mui.picker.min.js"></script>
  156. <script type="text/javascript">
  157. mui.init();
  158. mui.plusReady(function() {
  159. var urlParams = plus.webview.currentWebview();
  160. var vText = urlParams.name;
  161. var orderState = urlParams.orderState; // 普通工单
  162. var token = urlParams.token; 
  163. document.getElementById("submit").addEventListener('tap', function() {
  164. if(!$("#result").val()) {
  165. mui.alert('输入处理内容');
  166. } else {
  167. $.ajax({
  168. url:huayi.config.callcenter_url + 'WorkorderApp/ReviewWorkOrder',
  169. data: {
  170. id: vText,
  171. cont: $("#result").val(), //处理结果
  172. state: $('input[name="secret"]:checked').val(),
  173. token: token
  174. },
  175. dataType: 'json', //服务器返回json格式数据
  176. type: 'post', //HTTP请求类型
  177. timeout: 10000, //超时时间设置为10秒;
  178. success: function(data) {
  179. if(data.state == "success") {
  180. mui.toast('处理成功');
  181. $("#result").val('');
  182. var wobj = plus.webview.getWebviewById("Work-list");
  183. wobj.reload(true);
  184. } else {
  185. mui.alert(data.message);
  186. }
  187. },
  188. error: function(xhr, type, errorThrown) {
  189. mui.alert('失败');
  190. }
  191. });
  192. }
  193. })
  194. })
  195. </script>
  196. </body>
  197. </html>