説明なし

Work-dispose.html 6.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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" >
  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.ready(function() {
  170. var urlParams = new URLSearchParams(window.location.search);
  171. var param1 = urlParams.get('name');
  172. var param2 = urlParams.get('classImport');
  173. var wv = {
  174. name: param1,
  175. classImport: param2
  176. }
  177. var vText = wv.name;
  178. var token = localStorage.getItem("token"); 
  179. var str_ary;
  180. var classImport = wv.classImport;
  181. var orderState = wv.orderState;
  182. if (orderState!=="10") {
  183. $('.stateShow').show();
  184. }
  185. document.getElementById("submit").addEventListener('tap', function() {
  186. var Str = '';
  187. $("#imgs li").each(function(i, n) {
  188. var a = $("#imgs li").eq(i).attr("imgId");
  189. if(a) {
  190. Str += a + ',';
  191. }
  192. })
  193. str_ary = Str.substring(0, Str.length - 1);
  194. if(!$("#result").val()) {
  195. mui.alert('输入处理内容');
  196. } else {
  197. mui.ajax(huayi.config.callcenter_url + 'WorkorderApp/DealWorkOrder', {
  198. data: {
  199. id: vText,
  200. cont: $("#result").val(), //处理结果
  201. isover: $('input[name="secret"]:checked').val(),
  202. F_Files: str_ary,
  203. token: token
  204. },
  205. dataType: 'json', //服务器返回json格式数据
  206. type: 'post', //HTTP请求类型
  207. timeout: 10000, //超时时间设置为10秒;
  208. success: function(data) {
  209. if(data.state == "success") {
  210. mui.toast('处理成功');
  211. $("#result").val('');
  212. if (classImport) {
  213. if (classImport==2) {
  214. // var wobj = plus.webview.getWebviewById("Work-listCJ");
  215. window.location.href = "Work-listCJ.html";
  216. }else{
  217. // var wobj = plus.webview.getWebviewById("Work-listClass");
  218. window.location.href = "Work-listClass.html";
  219. }
  220. }else{
  221. // var wobj = plus.webview.getWebviewById("Work-list");
  222. window.location.href = "Work-list.html";
  223. }
  224. // wobj.reload(true);
  225. } else {
  226. mui.alert(data.message);
  227. }
  228. },
  229. error: function(xhr, type, errorThrown) {
  230. mui.alert('失败');
  231. }
  232. });
  233. }
  234. })
  235. })
  236. </script>
  237. </body>
  238. </html>