No Description

Work-dispose.html 6.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  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 stateShow" style="display: none;">
  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="0" />
  133. </div>
  134. <div class="mui-input-row mui-radio mui-left radio_box">
  135. <label>是</label>
  136. <input type="radio" name="secret" value="1" />
  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. <ul class="mui-table-view ">
  148. <li class="mui-table-view-cell">
  149. <div class="mui-input-row">
  150. <label class="label" style="font-size: 16px;">请上传附件:</label>
  151. <span id="headImage" style="padding: 7px;" class="mui-icon mui-icon-camera"></span>
  152. </div>
  153. </li>
  154. </ul>
  155. <ul id="imgs" class="mui-table-view mui-grid-view">
  156. </ul>
  157. <div class="" style="padding: 10px;">
  158. <br />
  159. <button id="submit" type="button" class="mui-btn mui-btn-block mui-btn-danger submit">保存</button>
  160. </div>
  161. </div>
  162. <script src="../js/huayi.config.js"></script>
  163. <script src="../js/zepto.js"></script>
  164. <script src="../js/mui.min.js"></script>
  165. <script src="../js/mui.picker.min.js"></script>
  166. <script src="../js/feedback-page-work.js"></script>
  167. <script type="text/javascript">
  168. mui.init();
  169. mui.plusReady(function() {
  170. var wv = plus.webview.currentWebview();
  171. var vText = wv.name;
  172. var token = wv.token; 
  173. var str_ary;
  174. var classImport = wv.classImport;
  175. var orderState = wv.orderState;
  176. if (orderState!=="10") {
  177. $('.stateShow').show();
  178. }
  179. document.getElementById("submit").addEventListener('tap', function() {
  180. var Str = '';
  181. $("#imgs li").each(function(i, n) {
  182. var a = $("#imgs li").eq(i).attr("imgId");
  183. if(a) {
  184. Str += a + ',';
  185. }
  186. })
  187. str_ary = Str.substring(0, Str.length - 1);
  188. if(!$("#result").val()) {
  189. mui.alert('输入处理内容');
  190. } else {
  191. mui.ajax(huayi.config.callcenter_url + 'WorkorderApp/DealWorkOrder', {
  192. data: {
  193. id: vText,
  194. cont: $("#result").val(), //处理结果
  195. isover: $('input[name="secret"]:checked').val(),
  196. F_Files: str_ary,
  197. token: token
  198. },
  199. dataType: 'json', //服务器返回json格式数据
  200. type: 'post', //HTTP请求类型
  201. timeout: 10000, //超时时间设置为10秒;
  202. success: function(data) {
  203. if(data.state == "success") {
  204. plus.nativeUI.toast('处理成功');
  205. $("#result").val('');
  206. if (classImport) {
  207. if (classImport==2) {
  208. var wobj = plus.webview.getWebviewById("Work-listCJ");
  209. }else{
  210. var wobj = plus.webview.getWebviewById("Work-listClass");
  211. }
  212. }else{
  213. var wobj = plus.webview.getWebviewById("Work-list");
  214. }
  215. wobj.reload(true);
  216. } else {
  217. mui.alert(data.message);
  218. }
  219. },
  220. error: function(xhr, type, errorThrown) {
  221. plus.nativeUI.toast('失败');
  222. }
  223. });
  224. }
  225. })
  226. })
  227. </script>
  228. </body>
  229. </html>