安图前端代码

AddWorkOrder.html 9.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  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="daoHang clearfix" style="margin-bottom: 20px;">
  115. <div class="dhLeft">
  116. <sapn><i class="syIcon"></i>位置:
  117. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  118. <a href="javaScript:;">工单管理</a>&gt;
  119. <a href="" class="nowPosition">手工制单</a>
  120. </sapn>
  121. </div>
  122. </div>
  123. <div class="clearfix wrapper wrapper-content animated fadeInRight">
  124. <div class="common">
  125. <!--客服部-->
  126. <table class="customerService">
  127. <tbody>
  128. <tr>
  129. <th>姓名:</th>
  130. <td>
  131. <div class="form-group">
  132. <input type="text" class="form-control" id="name" />
  133. </div>
  134. </td>
  135. <th>电话:</th>
  136. <td>
  137. <div class="form-group">
  138. <input type="text" class="form-control" id="tel" />
  139. </div>
  140. </td>
  141. <th>来电单位:</th>
  142. <td style="position: relative;">
  143. <!--<select name="" id="testInput1" class="">
  144. </select>-->
  145. <input id="testInput1" type="text" style="width:100%;" />
  146. <ul class="testInput-list">
  147. <li></li>
  148. </ul>
  149. </td>
  150. </tr>
  151. <tr>
  152. <th>反馈单位:</th>
  153. <td style="position: relative;">
  154. <input id="testInput2" type="text" style="width:100%;" style="display: none;" />
  155. <ul class="testInput-list">
  156. <li></li>
  157. </ul>
  158. </td>
  159. <th>工单来源:</th>
  160. <td>
  161. <div class="form-group">
  162. <select name="" class="form-control" id="DicValueList"> </select>
  163. </div>
  164. </td>
  165. <th>工单状态:</th>
  166. <td>
  167. <div class="form-group">
  168. <select name="" class="form-control" id="State"> </select>
  169. </div>
  170. </td>
  171. </tr>
  172. <tr>
  173. <th>工单类型:</th>
  174. <td>
  175. <div class="time-box">
  176. <i class="tub fa fa-caret-down down" style="color: #676b6d;"></i>
  177. <input class="form-control" type="text" id="typeclass" readonly="readonly">
  178. <input type="hidden" id="typeclassId" />
  179. <div class="addTree treeList">
  180. <ul id="TreeDemo" class="ztree">
  181. </ul>
  182. </div>
  183. </div>
  184. </td>
  185. </tr>
  186. <tr>
  187. <th>反馈内容及处理结果:</th>
  188. <td colspan="5">
  189. <textarea name="" rows="5" cols="" placeholder="" id="feedBackCon"></textarea>
  190. </td>
  191. </tr>
  192. <tr>
  193. <th>快递信息:</th>
  194. <td colspan="5">
  195. <textarea name="" rows="" cols="" id="express"></textarea>
  196. </td>
  197. </tr>
  198. <tr>
  199. <th>备注一:</th>
  200. <td colspan="5">
  201. <textarea name="" rows="" cols="" id="remark1"></textarea>
  202. </td>
  203. </tr>
  204. <tr>
  205. <th>备注二:</th>
  206. <td colspan="5">
  207. <textarea name="" rows="" cols="" id="remark2"></textarea>
  208. </td>
  209. </tr>
  210. <tr>
  211. <th>备注三:</th>
  212. <td colspan="5">
  213. <textarea name="" rows="" cols="" id="remark3"></textarea>
  214. </td>
  215. </tr>
  216. <tr>
  217. <td colspan="6" style="text-align: center;">
  218. <button class="btns customerSubmit">保&nbsp;存</button>
  219. </td>
  220. </tr>
  221. </tbody>
  222. </table>
  223. <!--市场部-->
  224. <table class="market">
  225. <tbody>
  226. <tr>
  227. <th>姓名:</th>
  228. <td>
  229. <div class="form-group">
  230. <input type="text" class="form-control" id="name_market" />
  231. </div>
  232. </td>
  233. <th>电话:</th>
  234. <td>
  235. <div class="form-group">
  236. <input type="text" class="form-control" id="tel_market" />
  237. </div>
  238. </td>
  239. <th>来电单位:</th>
  240. <!--<td>
  241. <select class="form-control selectpicker" id="comeCall_dep_market" data-live-search="true">
  242. <option value="">请选择来电单位</option>
  243. </select>
  244. </td>-->
  245. <td style="position: relative;">
  246. <input id="testInput3" type="text" style="width:100%;" style="display: none;" />
  247. <ul class="testInput-list">
  248. <li></li>
  249. </ul>
  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. </td>
  265. </tr>
  266. <tr>
  267. <th>备注内容:</th>
  268. <td colspan="5">
  269. <textarea name="" rows="" cols="" id="remark_market"></textarea>
  270. </td>
  271. </tr>
  272. <tr>
  273. <td colspan="6" style="text-align: center;">
  274. <button class="btns marketSubmit">保&nbsp;存</button>
  275. </td>
  276. </tr>
  277. </tbody>
  278. </table>
  279. </div>
  280. <input type="hidden" id="CallID"/>
  281. </div>
  282. <script src="../js/zTree/jquery.ztree.core.js"></script>
  283. <script src="../My97DatePicker/WdatePicker.js"></script>
  284. <script src="../js/bootstrap-select/js/bootstrap-select.js"></script>
  285. <script src="../js/WorkOrder/AddWorkOrder.js"></script>
  286. <script src="../js/WorkOrder/jquery.editable-select.js"></script>
  287. <script src="../js/kindeditor/kindeditor.js"></script>
  288. <script src="../js/kindeditor/lang/zh_CN.js"></script>
  289. <script>
  290. Select($("#testInput1"));
  291. Select($("#testInput2"));
  292. Select($("#testInput3"));
  293. Select($("#testInput4"));
  294. function Select(obj) {
  295. obj.click(function (event) {
  296. event.preventDefault();
  297. });
  298. obj.focus(function() { //
  299. //失去焦点后触发的事件
  300. obj.parent().find('.testInput-list').show();
  301. BindLDdep();
  302. });
  303. obj.bind("input propertychange", function() {
  304. var value = $(this).val();
  305. obj.parent().find('.testInput-list').show();
  306. BindLDdep(value)
  307. });
  308. function BindLDdep(str) {
  309. $('.testInput-list').empty();
  310. $.ajax({
  311. type: "get",
  312. url: huayi.config.callcenter_url + "Customer/BindLDdep",
  313. dataType: 'json',
  314. async: true,
  315. data: {
  316. keypara: str,
  317. token: $.cookie("token")
  318. },
  319. success: function(data) {
  320. var Count = data.data.dep;
  321. console.log(Count);
  322. var html = '';
  323. $(Count).each(function(i, n) {
  324. html = '<li value="' + n + '" id="td'+i+'">' + n + '</li>';
  325. $(html).appendTo($('.testInput-list'));
  326. });
  327. $('.testInput-list>li').click(function() {
  328. obj.val($(this).html());
  329. console.log($(this).html());
  330. $('.testInput-list').hide();
  331. })
  332. }
  333. });
  334. };
  335. //
  336. }
  337. //请求单位
  338. $(document).ready(function(){
  339. $(document).click(function(e) {
  340. if(!$(e.target).is($('.testInput-list>li'))&&!$(e.target).is($('#testInput1'))&&!$(e.target).is($('#testInput2'))&&!$(e.target).is($('#testInput3'))&&!$(e.target).is($('#testInput4'))) {
  341. $('.testInput-list').hide();
  342. }
  343. })
  344. })
  345. </script>
  346. </body>
  347. </html>