back.html 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>工单回调</title>
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  9. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  10. <meta name="apple-mobile-web-app-capable" content="yes">
  11. <meta name="format-detection" content="telephone=no">
  12. <link rel="stylesheet" type="text/css" href="../script/lib/layui/css/layui.css" />
  13. <link rel="stylesheet" type="text/css" href="../script/lib/valid/validationEngine.jquery.css">
  14. <link rel="stylesheet" type="text/css" href="../script/lib/layui/admin/style/admin.css?v9" media="all">
  15. <link rel="stylesheet" type="text/css" href="../script/lib/fancybox/jquery.fancybox.css">
  16. <script src="../script/lib/jquery/jquery.min.js"></script>
  17. <script src="../script/lib/layui/layui.js"></script>
  18. <script src="../script/lib/echarts/echarts.common.min.js"></script>
  19. <script src="../script/lib/miniui/miniui.js"></script>
  20. <script><{Dever::script()}></script>
  21. <script src="../script/dever/core.js"></script>
  22. <script src="../script/dever/core.js?1"></script>
  23. <script type="text/javascript" src="../script/lib/valid/jquery.validationEngine.min.js?v3"></script>
  24. <script type="text/javascript" src="../script/lib/layui/upload.js?v226"></script>
  25. <script type="text/javascript" src="../script/lib/fancybox/jquery.fancybox.js"></script>
  26. <script src="../script/lib/manage/main.js"></script>
  27. <style>
  28. .dever-upload-pic
  29. {
  30. width:100px;
  31. }
  32. h5 {
  33. margin-bottom: 10px;
  34. }
  35. td {
  36. color: black;
  37. }
  38. .layui-card-body {
  39. /*position: relative;*/
  40. /*padding: 50px 15px;*/
  41. line-height: 20px;
  42. margin-left: -10px;
  43. }
  44. .layui-input {
  45. /*position: relative;*/
  46. /*padding: 30px;*/
  47. margin-top: 20px;
  48. /*line-height: 24px;*/
  49. }
  50. .container{
  51. max-width: 1024px;
  52. margin: auto;
  53. }
  54. .layui-span{
  55. color: blue;
  56. margin-left: 80px;
  57. }
  58. .layui-col-xs4{
  59. font-size: 18px;
  60. }
  61. .layui-col-xs6{
  62. margin-top: 15px;
  63. font-size: 15px;
  64. }
  65. #content{
  66. margin-left: 11px;
  67. margin-right: 18px;
  68. }
  69. .url{
  70. margin-top:40px;
  71. margin-bottom: 20px;
  72. }
  73. .huifu{
  74. border-style:none;
  75. background-color: white;
  76. }
  77. .pm{
  78. margin-left: 14px;
  79. margin-bottom: -14px;
  80. }
  81. </style>
  82. </head>
  83. <body>
  84. <div class="layui-card">
  85. <div class="layui-container">
  86. <fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;"> </fieldset>
  87. <p class='pm'>手机号:</p>
  88. <input type="text" value="<{$user['mobile']}>" autocomplete="off" id="content" class="layui-input" style="width: auto;display: inline;" placeholder="输入手机号"><a href="javascript:;" class="layui-btn" id="search" >搜索</a>
  89. <div class="layui-card-body">
  90. <{if(isset($user)):}>
  91. <table class="table layui-table layui-table-body" id="table">
  92. <col width="100">
  93. <col width="100">
  94. <thead>
  95. <tr>
  96. <{if(isset($user['name']) && $user['name']):}>
  97. <th>名称</th>
  98. <{endif}>
  99. <th>电话号码</th>
  100. <th>平台</th>
  101. <{if(isset($user['role_name']) && $user['role_name']):}>
  102. <th>角色</th>
  103. <{endif}>
  104. </tr>
  105. </thead>
  106. <tbody>
  107. <tr>
  108. <{if(isset($user['name']) && $user['name']):}>
  109. <td><{$user['name']}></td>
  110. <{endif}>
  111. <td><{$user['mobile']}></td>
  112. <td width=80px;><{$user['type']}></td>
  113. <{if(isset($user['role_name']) && $user['role_name']):}>
  114. <td width=80px;><{$user['role_name']}></td>
  115. <{endif}>
  116. </tr>
  117. </tbody>
  118. </table>
  119. <div class="url">
  120. <{if(isset($user['agent_uid']) && $user['agent_uid']>0):}>
  121. <a href="<{$user['order']}>" class="layui-btn" id="order" onclick="order();">代理商订单</a>
  122. <a href="<{$user['agent']}>" class="layui-btn" id="desc" onclick="desc();">代理商详情</a>
  123. <a href="<{$user['soft']}>" class="layui-btn" id="soft" onclick="soft();">软件服务费</a>
  124. <{endif}>
  125. <{if(isset($user['option_uid']) && $user['option_uid']>0):}>
  126. <a href="<{$user['option']}>;" class="layui-btn" id="option" onclick="option();">期权信息</a>
  127. <{endif}>
  128. <a href="<{$user['work']}>" class="layui-btn" id="work" onclick="work();">创建工单</a>
  129. </div>
  130. <{endif}>
  131. <{if(isset($info)):}>
  132. <div class="layui-card-body">
  133. <h3>往期问题工单:</h3>
  134. <table class="table layui-table layui-table-body" id="table">
  135. <col width="100">
  136. <col width="100">
  137. <thead>
  138. <tr>
  139. <th>时间/完成时间</th>
  140. <th>问题类型</th>
  141. <th>优先级</th>
  142. <th>问题描述</th>
  143. <th>协助部门</th>
  144. <th>处理结果</th>
  145. <th>管理</th>
  146. </tr>
  147. </thead>
  148. <{foreach($info as $k => $v):}>
  149. <tbody>
  150. <tr>
  151. <td><{$v['cdate']}><br/><{$v['fdate']}></td>
  152. <td><{$v['cate_name']}></td>
  153. <td><{$v['you']}></td>
  154. <td><{$v['desc']}></td>
  155. <td><{$v['branch']}></td>
  156. <td><{$v['status']}></td>
  157. <!-- <div class="zong"> -->
  158. <td width=60px><a href="<{$v['url']}>">查看详情</a><br/>
  159. <{if($v['zhipai'] ):}>
  160. <button class="huifu" onclick="fastEdit($(this),'<{$v['zhipai']}>')">指派工单</button>
  161. <{endif}>
  162. </td>
  163. <!-- </div> -->
  164. </tr>
  165. </tbody>
  166. <{endforeach}>
  167. </table>
  168. <div><{$page}></div>
  169. </div>
  170. <{endif}>
  171. </div>
  172. </div>
  173. </div>
  174. </div>
  175. <!-- <input id="id" name="id" value="<{$id}>" type='hidden'/> -->
  176. </div>
  177. <script>
  178. var layer;
  179. layui.use('layer', function(){
  180. layer = layui.layer;
  181. });
  182. function search()
  183. {
  184. var content = $('#content').val();
  185. if (!content) {
  186. layer.alert('请输入手机号');
  187. layer.close();
  188. } else {
  189. $.ajax({
  190. type:"GET",
  191. url:config.host + 'lib/appoint.back',
  192. data: {
  193. mobile : $('#content').val(),
  194. json:2,
  195. },
  196. success: function (data) {
  197. if(data == '代理商手机号不正确'){
  198. layer.alert('请输入正确的手机号');
  199. // location.reload();
  200. layer.close();
  201. } else {
  202. location.href = config.host + 'lib/appoint.back&mobile=' + $('#content').val();
  203. }
  204. },
  205. error: function(data){
  206. layer.alert('手机号错误', function(){
  207. // location.href = config.host + "lib/appoint.back&id=<{$active_id}>";
  208. layer.close();
  209. });
  210. }
  211. });
  212. }
  213. }
  214. $('#search').click(function() {
  215. search();
  216. })
  217. $('#content').focus();
  218. $('#content').bind('keydown',function(event){
  219. if(event.keyCode == "13")
  220. {
  221. $.ajax({
  222. type:"GET",
  223. url:config.host + 'lib/appoint.back',
  224. data: {
  225. mobile : $('#content').val(),
  226. json:2,
  227. },
  228. success: function (data) {
  229. if(data == '代理商手机号不正确'){
  230. layer.alert('请输入正确的手机号');
  231. layer.close();
  232. } else {
  233. location.href = config.host + 'lib/appoint.back&mobile=' + $('#content').val();
  234. }
  235. },
  236. error: function(data){
  237. layer.alert('手机号错误', function(){
  238. // location.href = config.host + "lib/appoint.back&id=<{$active_id}>";
  239. layer.close();
  240. });
  241. // top.location.href = config.host + "lib/appoint.back&mobile=" + $('#content').val();
  242. }
  243. });
  244. }
  245. });
  246. // var order_url = "<{$user['order']}>";
  247. function order(){
  248. // location.href = 'www.baidu.com';
  249. //"<{$user['order']}>";
  250. }
  251. </script>
  252. </body>
  253. </html>