安图前端代码

Xga.html 9.5KB

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