安图前端代码

AddWorkOrder.html 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  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. <link href="../css/WorkOrder/Search.css" rel="stylesheet">
  10. <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
  11. <link href="../js/bootstrap-select/css/bootstrap-select.css" rel="stylesheet" />
  12. <link rel="stylesheet" href="../css/WorkOrder/jquery.editable-select.css" />
  13. <link rel="stylesheet" href="../js/comboSelect/combo.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. height: 400px;
  96. overflow-y: auto;
  97. }
  98. .testInput-list li {
  99. padding: 5px;
  100. }
  101. .testInput-list li:hover {
  102. background-color: #E43926;
  103. color: #fff;
  104. }
  105. #testInput1,
  106. #testInput2,
  107. #testInput3,
  108. #testInput4 {
  109. outline: none;
  110. border: 1px solid #ccc;
  111. padding-left: 10px;
  112. outline-color: #fff;
  113. }
  114. .ke-container {
  115. width: 100%!important;
  116. }
  117. button[disabled]{
  118. background-color: #999;
  119. }
  120. </style>
  121. </head>
  122. <body class="gray-bg">
  123. <div class="daoHang clearfix" style="margin-bottom: 20px;">
  124. <div class="dhLeft">
  125. <sapn><i class="syIcon"></i>位置:
  126. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  127. <a href="javaScript:;">工单管理</a>&gt;
  128. <a href="" class="nowPosition">手工制单</a>
  129. </sapn>
  130. </div>
  131. </div>
  132. <div class="clearfix wrapper wrapper-content animated fadeInRight">
  133. <div class="common">
  134. <!--客服部-->
  135. <table class="customerService">
  136. <tbody>
  137. <tr>
  138. <th>姓名:</th>
  139. <td>
  140. <div class="form-group">
  141. <input type="text" class="form-control" id="name" />
  142. </div>
  143. </td>
  144. <th>电话:</th>
  145. <td>
  146. <div class="form-group">
  147. <input type="text" class="form-control" id="tel" />
  148. </div>
  149. </td>
  150. <th>来电单位:</th>
  151. <td style="position: relative;">
  152. <select name="" id="testInput1" class="">
  153. <option value="" selected>请选择来电单位</option>
  154. </select>
  155. <!--<input id="testInput1" type="text" style="width:100%;" />
  156. <ul class="testInput-list">
  157. <li></li>
  158. </ul>-->
  159. </td>
  160. </tr>
  161. <tr>
  162. <th>反馈单位:</th>
  163. <td style="position: relative;">
  164. <select name="" id="testInput2" class="">
  165. <option value="" selected>请选择反馈单位</option>
  166. </select>
  167. <!--<input id="testInput2" type="text" style="width:100%;" style="display: none;" />
  168. <ul class="testInput-list">
  169. <li></li>
  170. </ul>-->
  171. </td>
  172. <th>工单来源:</th>
  173. <td>
  174. <div class="form-group">
  175. <select name="" class="form-control" id="DicValueList"> </select>
  176. </div>
  177. </td>
  178. <th>工单状态:</th>
  179. <td>
  180. <div class="form-group">
  181. <select name="" class="form-control" id="State"> </select>
  182. </div>
  183. </td>
  184. </tr>
  185. <tr>
  186. <th>工单类型:</th>
  187. <td>
  188. <div class="time-box">
  189. <i class="tub fa fa-caret-down down" style="color: #676b6d;"></i>
  190. <input class="form-control" type="text" id="typeclass" readonly="readonly">
  191. <input type="hidden" id="typeclassId" />
  192. <div class="addTree treeList">
  193. <ul id="TreeDemo" class="ztree">
  194. </ul>
  195. </div>
  196. </div>
  197. </td>
  198. </tr>
  199. <tr>
  200. <th>反馈内容及处理结果:</th>
  201. <td colspan="5">
  202. <textarea name="" rows="5" cols="" placeholder="" id="feedBackCon"></textarea>
  203. </td>
  204. </tr>
  205. <tr>
  206. <th>快递信息:</th>
  207. <td colspan="5">
  208. <textarea name="" rows="" cols="" id="express"></textarea>
  209. </td>
  210. </tr>
  211. <tr>
  212. <th>备注一:</th>
  213. <td colspan="5">
  214. <textarea name="" rows="" cols="" id="remark1"></textarea>
  215. </td>
  216. </tr>
  217. <tr>
  218. <th>备注二:</th>
  219. <td colspan="5">
  220. <textarea name="" rows="" cols="" id="remark2"></textarea>
  221. </td>
  222. </tr>
  223. <tr>
  224. <th>备注三:</th>
  225. <td colspan="5">
  226. <textarea name="" rows="" cols="" id="remark3"></textarea>
  227. </td>
  228. </tr>
  229. <tr>
  230. <td colspan="6" style="text-align: center;">
  231. <button class="btns customerSubmit">保&nbsp;存</button>
  232. </td>
  233. </tr>
  234. </tbody>
  235. </table>
  236. <!--市场部-->
  237. <table class="market">
  238. <tbody>
  239. <tr>
  240. <th>姓名:</th>
  241. <td>
  242. <div class="form-group">
  243. <input type="text" class="form-control" id="name_market" />
  244. </div>
  245. </td>
  246. <th>电话:</th>
  247. <td>
  248. <div class="form-group">
  249. <input type="text" class="form-control" id="tel_market" />
  250. </div>
  251. </td>
  252. <th>来电单位:</th>
  253. <!--<td>
  254. <select class="form-control selectpicker" id="comeCall_dep_market" data-live-search="true">
  255. <option value="">请选择来电单位</option>
  256. </select>
  257. </td>-->
  258. <td style="position: relative;">
  259. <!--<input id="testInput3" type="text" style="width:100%;" style="display: none;" />
  260. <ul class="testInput-list">
  261. <li></li>
  262. </ul>-->
  263. <select id="testInput3">
  264. <option value="">请选择来电单位</option>
  265. </select>
  266. </td>
  267. </tr>
  268. <tr>
  269. <th>反馈单位:</th>
  270. <!--<td>
  271. <select class="form-control selectpicker" id="feedbackDep_market" data-live-search="true">
  272. <option value="">请选择反馈单位</option>
  273. </select>
  274. </td>-->
  275. <td style="position: relative;">
  276. <!--<input id="testInput4" type="text" style="width:100%;" style="display: none;" />
  277. <ul class="testInput-list">
  278. <li></li>
  279. </ul>-->
  280. <select id="testInput4">
  281. <option value="">请选择反馈单位</option>
  282. </select>
  283. </td>
  284. <th>工单来源:</th>
  285. <td>
  286. <div class="form-group">
  287. <select name="" class="form-control" id="DicValueList_market"> </select>
  288. </div>
  289. </td>
  290. <th>工单类型:</th>
  291. <td>
  292. <div class="time-box">
  293. <i class="tub fa fa-caret-down down" style="color: #676b6d;"></i>
  294. <input class="form-control" type="text" id="typeclass_market" readonly="readonly">
  295. <input type="hidden" id="typeclassId_market" />
  296. <div class="addTree treeList_market">
  297. <ul id="TreeDemo_market" class="ztree">
  298. </ul>
  299. </div>
  300. </div>
  301. </td>
  302. </tr>
  303. <tr>
  304. <th>备注内容:</th>
  305. <td colspan="5">
  306. <textarea name="" rows="5" cols="" id="remark_market"></textarea>
  307. </td>
  308. </tr>
  309. <tr>
  310. <td colspan="6" style="text-align: center;">
  311. <button class="btns marketSubmit">保&nbsp;存</button>
  312. </td>
  313. </tr>
  314. </tbody>
  315. </table>
  316. </div>
  317. <input type="hidden" id="CallID" />
  318. </div>
  319. <script src="../js/zTree/jquery.ztree.core.js"></script>
  320. <script src="../js/bootstrap-select/js/bootstrap-select.js"></script>
  321. <script src="../js/WorkOrder/jquery.editable-select.js"></script>
  322. <script src="../js/comboSelect/jquery.combo.select.js"></script>
  323. <script src="../js/kindeditor/kindeditor.js"></script>
  324. <script src="../js/kindeditor/lang/zh_CN.js"></script>
  325. <script src="../js/WorkOrder/AddWorkOrder.js"></script>
  326. <script>
  327. //自己写的方法(未能实现鼠标下移选中)
  328. function Select(obj) {
  329. obj.click(function(event) {
  330. event.preventDefault();
  331. });
  332. obj.focus(function() { //
  333. //失去焦点后触发的事件
  334. obj.parent().find('.testInput-list').show();
  335. BindLDdep();
  336. });
  337. obj.blur(function() {//增加失去焦点事件
  338. setTimeout(function() {
  339. obj.parent().find('.testInput-list').hide();
  340. }, 100)
  341. });
  342. obj.bind("input propertychange", function() {
  343. var value = $(this).val();
  344. obj.parent().find('.testInput-list').show();
  345. BindLDdep(value)
  346. });
  347. function BindLDdep(str) {
  348. $('.testInput-list').empty();
  349. $.ajax({
  350. type: "get",
  351. url: huayi.config.callcenter_url + "Customer/BindLDdep",
  352. dataType: 'json',
  353. async: true,
  354. data: {
  355. keypara: str,
  356. token: $.cookie("token")
  357. },
  358. success: function(data) {
  359. var Count = data.data.dep;
  360. var html = '';
  361. $(Count).each(function(i, n) {
  362. html = '<li class="dist" value="' + n + '" id="td' + i + '">' + n + '</li>';
  363. $(html).appendTo($('.testInput-list'));
  364. });
  365. $('.testInput-list>li').click(function() {
  366. $('.testInput-list').show();
  367. obj.val($(this).html());
  368. $('.testInput-list').hide();
  369. })
  370. }
  371. });
  372. };
  373. //
  374. }
  375. </script>
  376. </body>
  377. </html>