Geen omschrijving

Work-dispose0428.html 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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. </style>
  100. </head>
  101. <body>
  102. <header class="mui-bar mui-bar-nav" style="">
  103. <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: #fff;"></a>
  104. <h1 class="mui-title" style="color: #fff;">工单处理</h1>
  105. </header>
  106. <div class="mui-content">
  107. <ul class="mui-table-view">
  108. <li class="mui-table-view-cell stateShow" style="display: none;">
  109. <div class="mui-input-row">
  110. <label class="label labels">是否完结:</label>
  111. <div class="mui-input-row mui-radio mui-left radio_box">
  112. <label>否</label>
  113. <input type="radio" type="radio" name="secret" value="0" />
  114. </div>
  115. <div class="mui-input-row mui-radio mui-left radio_box">
  116. <label>是</label>
  117. <input type="radio" type="radio" name="secret" checked="checked" value="1" />
  118. </div>
  119. </div>
  120. </li>
  121. <li class="mui-table-view-cell">
  122. <div class="mui-input-row">
  123. <label class="label labels">处理内容:</label>
  124. <textarea class="ztext content" name="" id="result" rows="3" cols="" placeholder="请详细描述您的问题和建议..."></textarea>
  125. </div>
  126. </li>
  127. </ul>
  128. <div class="feedback">
  129. <p>添加图片(选填,提供问题截图,单张20M以下,最多上传5张)</p>
  130. <div id='image-list' class="row image-list"></div>
  131. </div>
  132. <p class="action">
  133. <i class="iconfont icon-gantanhao" style="margin-right: 5px;font-size: 20px;vertical-align: middle;"></i>
  134. <span style="color: #f81737;">以上内容都为必填内容,请如实填写</span>
  135. </p>
  136. <div class="" style="padding: 10px;">
  137. <br />
  138. <button id="submit" type="button" class="mui-btn mui-btn-block mui-btn-danger submit">保存</button>
  139. </div>
  140. </div>
  141. <script src="../js/huayi.config.js"></script>
  142. <script src="../js/zepto.js"></script>
  143. <script src="../js/mui.min.js"></script>
  144. <script src="../js/mui.picker.min.js"></script>
  145. <script src="../js/feedback-page-work.js"></script>
  146. <script type="text/javascript">
  147. mui.init();
  148. mui.plusReady(function() {
  149. var wv = plus.webview.currentWebview();
  150. var vText = wv.name;
  151. var token = wv.token; 
  152. var str_ary;
  153. var classImport = wv.classImport;
  154. var orderState = wv.orderState;
  155. if (orderState!=10) {
  156. $('.stateShow').show();
  157. }
  158. document.getElementById("submit").addEventListener('tap', function() {
  159. var Str = '';
  160. $(".image-box").each(function(i, n) {
  161. var a = $(n).attr("indexs");
  162. if(a) {
  163. Str += a + ',';
  164. }
  165. })
  166. str_ary = Str.substring(0, Str.length - 1);
  167. if(!$("#result").val()) {
  168. mui.alert('输入处理内容');
  169. } else {
  170. mui.ajax(huayi.config.callcenter_url + 'WorkorderApp/DealWorkOrder', {
  171. data: {
  172. id: vText,
  173. cont: $("#result").val(), //处理结果
  174. isover: $('input[name="secret"]:checked').val(),
  175. F_Files: str_ary,
  176. token: token
  177. },
  178. dataType: 'json', //服务器返回json格式数据
  179. type: 'post', //HTTP请求类型
  180. timeout: 10000, //超时时间设置为10秒;
  181. success: function(data) {
  182. if(data.state == "success") {
  183. plus.nativeUI.toast('处理成功');
  184. $("#result").val('');
  185. if (classImport) {
  186. if (classImport==2) {
  187. var wobj = plus.webview.getWebviewById("Work-listCJ");
  188. }else{
  189. var wobj = plus.webview.getWebviewById("Work-listClass");
  190. }
  191. }else{
  192. var wobj = plus.webview.getWebviewById("Work-list");
  193. }
  194. wobj.reload(true);
  195. } else {
  196. mui.alert(data.message);
  197. }
  198. },
  199. error: function(xhr, type, errorThrown) {
  200. plus.nativeUI.toast('失败');
  201. }
  202. });
  203. }
  204. })
  205. })
  206. </script>
  207. </body>
  208. </html>