安图前端代码

Xga.html 11KB

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