安图前端代码

Xga.html 9.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <link href="../css/init.css" rel="stylesheet" />
  7. <script src="../Script/Common/huayi.load.js"></script>
  8. <script src="../Script/Common/huayi.config.js"></script>
  9. <script src="../Script/Common/huayi.http.js"></script>
  10. <link href="../css/WorkOrder/Search.css" rel="stylesheet">
  11. <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
  12. <link href="../js/bootstrap-select/css/bootstrap-select.css" rel="stylesheet" />
  13. <link rel="stylesheet" href="../css/WorkOrder/jquery.editable-select.css" />
  14. <link href="../css/init.css" rel="stylesheet" />
  15. <title>手工制单</title>
  16. <style>
  17. ul li {
  18. float: initial;
  19. list-style: none;
  20. }
  21. .common {
  22. width: 100%;
  23. text-align: center;
  24. padding: 10px 15px;
  25. }
  26. .common table {
  27. width: 100%;
  28. display: none;
  29. }
  30. .common table th {
  31. padding: 5px 8px 5px 0;
  32. text-align: right;
  33. /* width: 20%;*/
  34. }
  35. .common table td {
  36. padding: 6px 0 5px 10px;
  37. text-align: left;
  38. color: #717171;
  39. line-height: 200%;
  40. }
  41. .common table td textarea {
  42. width: 100%;
  43. vertical-align: middle;
  44. resize: none;
  45. outline: none;
  46. }
  47. .time-box {
  48. display: inline-block;
  49. position: relative;
  50. }
  51. i.tub {
  52. position: absolute;
  53. right: 8px;
  54. top: 8px;
  55. font-size: 18px;
  56. color: #00a0ca;
  57. }
  58. .treeList {
  59. top: 34px!important;
  60. border: 1px solid #e5e6e7!important;
  61. border-top: 0;
  62. height: auto!important;
  63. }
  64. #TreeDemo li {
  65. float: initial;
  66. }
  67. #typeclass {
  68. background: #fff;
  69. }
  70. .form-group {
  71. margin-bottom: 0;
  72. }
  73. .bootstrap-select>.dropdown-toggle.bs-placeholder {
  74. background-color: #ffffff!important;
  75. border-color: #e5e6e7!important;
  76. }
  77. .filter-option {
  78. color: #676b6d;
  79. }
  80. .bootstrap-select>.dropdown-toggle.btn-default {
  81. background-color: #ffffff!important;
  82. border-color: #e5e6e7!important;
  83. color: #555;
  84. }
  85. .testInput-list {
  86. position: absolute;
  87. z-index: 999;
  88. border: 1px solid rgb(204, 204, 204);
  89. background-color: rgb(255, 255, 255);
  90. z-index: 99999;
  91. padding-left: 0;
  92. width: 97.6%;
  93. display: none;
  94. }
  95. .testInput-list li {
  96. padding: 5px;
  97. }
  98. .testInput-list li:hover {
  99. background-color: #E43926;
  100. color: #fff;
  101. }
  102. #testInput1,#testInput2,#testInput3,#testInput4{
  103. outline:none;
  104. border: 1px solid #ccc;
  105. padding-left: 10px;
  106. outline-color :#fff;
  107. }
  108. .ke-container{
  109. width: 100%!important;
  110. }
  111. </style>
  112. </head>
  113. <body class="gray-bg">
  114. <div class="clearfix wrapper wrapper-content animated fadeInRight">
  115. <div class="common">
  116. <!--客服部-->
  117. <table class="customerService">
  118. <tbody>
  119. <tr>
  120. <th>姓名:</th>
  121. <td>
  122. <div class="form-group">
  123. <input type="text" class="form-control" id="name" />
  124. </div>
  125. </td>
  126. <th>电话:</th>
  127. <td>
  128. <div class="form-group">
  129. <input type="text" class="form-control" id="tel" readonly="readonly" />
  130. </div>
  131. </td>
  132. <th>来电单位:</th>
  133. <td style="position: relative;">
  134. <!--<select name="" id="testInput1" class="">
  135. </select>-->
  136. <input id="testInput1" type="text" style="width:100%;" />
  137. <ul class="testInput-list">
  138. <li></li>
  139. </ul>
  140. </td>
  141. </tr>
  142. <tr>
  143. <th>反馈单位:</th>
  144. <td style="position: relative;">
  145. <input id="testInput2" type="text" style="width:100%;" style="display: none;" />
  146. <ul class="testInput-list">
  147. <li></li>
  148. </ul>
  149. </td>
  150. <th>工单来源:</th>
  151. <td>
  152. <div class="form-group">
  153. <select name="" class="form-control" id="DicValueList"> </select>
  154. </div>
  155. </td>
  156. <th>工单状态:</th>
  157. <td>
  158. <div class="form-group">
  159. <select name="" class="form-control" id="State"> </select>
  160. <input id="States" type="hidden">
  161. </div>
  162. </td>
  163. </tr>
  164. <tr>
  165. <th>工单类型:</th>
  166. <td>
  167. <div class="time-box">
  168. <i class="tub fa fa-caret-down down" style="color: #676b6d;"></i>
  169. <input class="form-control" type="text" id="typeclass" readonly="readonly">
  170. <input type="hidden" id="typeclassId" />
  171. <div class="addTree treeList">
  172. <ul id="TreeDemo" class="ztree">
  173. </ul>
  174. </div>
  175. </div>
  176. </td>
  177. </tr>
  178. <tr>
  179. <th>反馈内容及处理结果:</th>
  180. <td colspan="5">
  181. <textarea name="" rows="5" cols="" placeholder="" id="feedBackCon"></textarea>
  182. </td>
  183. </tr>
  184. <tr>
  185. <th>快递信息:</th>
  186. <td colspan="5">
  187. <textarea name="" rows="" cols="" id="express"></textarea>
  188. </td>
  189. </tr>
  190. <tr>
  191. <th>备注一:</th>
  192. <td colspan="5">
  193. <textarea name="" rows="" cols="" id="remark1"></textarea>
  194. </td>
  195. </tr>
  196. <tr>
  197. <th>备注二:</th>
  198. <td colspan="5">
  199. <textarea name="" rows="" cols="" id="remark2"></textarea>
  200. </td>
  201. </tr>
  202. <tr>
  203. <th>备注三:</th>
  204. <td colspan="5">
  205. <textarea name="" rows="" cols="" id="remark3"></textarea>
  206. </td>
  207. </tr>
  208. <tr>
  209. <td colspan="6" style="text-align: center;">
  210. <button class="btns customerSubmit">保&nbsp;存</button>
  211. </td>
  212. </tr>
  213. </tbody>
  214. </table>
  215. <!--市场部-->
  216. <table class="market">
  217. <tbody>
  218. <tr>
  219. <th>姓名:</th>
  220. <td>
  221. <div class="form-group">
  222. <input type="text" class="form-control" id="name_market" />
  223. </div>
  224. </td>
  225. <th>电话:</th>
  226. <td>
  227. <div class="form-group">
  228. <input type="text" class="form-control" id="tel_market" />
  229. </div>
  230. </td>
  231. <th>来电单位:</th>
  232. <!--<td>
  233. <select class="form-control selectpicker" id="comeCall_dep_market" data-live-search="true">
  234. <option value="">请选择来电单位</option>
  235. </select>
  236. </td>-->
  237. <td style="position: relative;">
  238. <input id="testInput3" type="text" style="width:100%;" style="display: none;" />
  239. <ul class="testInput-list">
  240. <li></li>
  241. </ul>
  242. </td>
  243. </tr>
  244. <tr>
  245. <th>反馈单位:</th>
  246. <!--<td>
  247. <select class="form-control selectpicker" id="feedbackDep_market" data-live-search="true">
  248. <option value="">请选择反馈单位</option>
  249. </select>
  250. </td>-->
  251. <td style="position: relative;">
  252. <input id="testInput4" type="text" style="width:100%;" style="display: none;" />
  253. <ul class="testInput-list">
  254. <li></li>
  255. </ul>
  256. </td>
  257. </tr>
  258. <tr>
  259. <th>备注内容:</th>
  260. <td colspan="5">
  261. <textarea name="" rows="" cols="" id="remark_market"></textarea>
  262. </td>
  263. </tr>
  264. <tr>
  265. <td colspan="6" style="text-align: center;">
  266. <button class="btns marketSubmit">保&nbsp;存</button>
  267. </td>
  268. </tr>
  269. </tbody>
  270. </table>
  271. </div>
  272. <input type="hidden" id="CallID"/>
  273. </div>
  274. <script src="../js/zTree/jquery.ztree.core.js"></script>
  275. <script src="../My97DatePicker/WdatePicker.js"></script>
  276. <script src="../js/kindeditor/kindeditor.js"></script>
  277. <script src="../js/kindeditor/lang/zh_CN.js"></script>
  278. <script src="../js/bootstrap-select/js/bootstrap-select.js"></script>
  279. <script src="../js/WorkOrder/xgWork.js"></script>
  280. <script src="../js/WorkOrder/jquery.editable-select.js"></script>
  281. <script>
  282. Select($("#testInput1"));
  283. Select($("#testInput2"));
  284. Select($("#testInput3"));
  285. Select($("#testInput4"));
  286. function Select(obj) {
  287. obj.click(function (event) {
  288. event.preventDefault();
  289. });
  290. obj.focus(function() { //
  291. //失去焦点后触发的事件
  292. obj.parent().find('.testInput-list').show();
  293. BindLDdep();
  294. });
  295. obj.bind("input propertychange", function() {
  296. var value = $(this).val();
  297. obj.parent().find('.testInput-list').show();
  298. BindLDdep(value)
  299. });
  300. function BindLDdep(str) {
  301. $('.testInput-list').empty();
  302. $.ajax({
  303. type: "get",
  304. url: huayi.config.callcenter_url + "Customer/BindLDdep",
  305. dataType: 'json',
  306. async: true,
  307. data: {
  308. keypara: str,
  309. token: $.cookie("token")
  310. },
  311. success: function(data) {
  312. var Count = data.data.dep;
  313. console.log(Count);
  314. var html = '';
  315. $(Count).each(function(i, n) {
  316. html = '<li value="' + n + '" id="td'+i+'">' + n + '</li>';
  317. $(html).appendTo($('.testInput-list'));
  318. });
  319. $('.testInput-list>li').click(function() {
  320. obj.val($(this).html());
  321. console.log($(this).html());
  322. $('.testInput-list').hide();
  323. })
  324. }
  325. });
  326. };
  327. //
  328. }
  329. //请求单位
  330. $(document).ready(function(){
  331. $(document).click(function(e) {
  332. if(!$(e.target).is($('.testInput-list>li'))&&!$(e.target).is($('#testInput1'))&&!$(e.target).is($('#testInput2'))&&!$(e.target).is($('#testInput3'))&&!$(e.target).is($('#testInput4'))) {
  333. $('.testInput-list').hide();
  334. }
  335. })
  336. })
  337. </script>
  338. </body>
  339. </html>