12345市长热线标准版-前端

jiaoban.html 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <script src="../Script/Common/huayi.load.js"></script>
  6. <script src="../Script/Common/huayi.config.js"></script>
  7. <link href="../css/layer/need/layer.css" />
  8. <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
  9. <link rel="stylesheet" href="../css/init.css" />
  10. <title>交办</title>
  11. <style>
  12. #main{
  13. width: 788.8px;
  14. margin: 0 auto;
  15. -webkit-box-shadow: 1px 1px 9px 2px #D2D2D2;
  16. box-shadow: 1px 1px 9px 2px #D2D2D2;
  17. background-color: #fff;
  18. padding: 30px 60px 40px 60px;
  19. }
  20. .alignC{
  21. text-align: center;
  22. }
  23. .alignC h2{
  24. font-family: "宋体";
  25. font-weight: bold;
  26. font-size: 22pt;
  27. letter-spacing: -1px;
  28. }
  29. .company {
  30. text-align: left;
  31. margin-bottom: 10px;
  32. }
  33. .company span{
  34. font-size: 14pt;
  35. padding-top: 20px;
  36. text-align: left;
  37. font-weight: normal;
  38. margin-left: 48px;
  39. vertical-align: middle;
  40. }
  41. #main table{
  42. margin: 0 auto;
  43. width: 600px;
  44. border-collapse: collapse;
  45. font-size: 13pt;
  46. font-family: "仿宋";
  47. }
  48. tbody td{
  49. min-width: 10%;
  50. padding: 6px 0 6px 0;
  51. }
  52. .btn{
  53. margin-top: 4px;
  54. margin-bottom: 4px ;
  55. background: #00a1cb;
  56. color: #fff;
  57. }
  58. .lxr,.mmdj,.jbyj,.cbyj,.ldps,.bljg{
  59. white-space:normal;
  60. word-break:break-all;
  61. }
  62. .inpBox {
  63. border: 1px solid #a9a9a9;
  64. height: 27px;
  65. width: 340px;
  66. display: inline-block;
  67. position: relative;
  68. vertical-align: middle;
  69. }
  70. .addTree {
  71. background: #fff;
  72. position: absolute;
  73. width: 100%;
  74. border: 1px solid darkgrey;
  75. right: 0;
  76. top: 26px;
  77. display: none;
  78. }
  79. .addTree a,
  80. .addTree span{
  81. font-size: 16px;
  82. }
  83. .xl {
  84. display: inline-block;
  85. background: url(../../img/dropDown.png) no-repeat;
  86. height: 100%;
  87. background-position: center center;
  88. width: 20px;
  89. position: absolute;
  90. right: 0;
  91. top: 0px;
  92. /* background-color: #f7bc8b; */
  93. cursor: pointer;
  94. }
  95. .ztree li span {
  96. border: none;
  97. padding: 0;
  98. }
  99. .inps {
  100. width: 337px;
  101. height: 24px;
  102. outline: none;
  103. border: 0;
  104. border-image-width: 0;
  105. padding: 0;
  106. padding-left: 3px;
  107. font-size: 16px;
  108. }
  109. .xl {
  110. display: inline-block;
  111. background: url(../img/dropDown.png) no-repeat;
  112. height: 100%;
  113. background-position: center center;
  114. width: 20px;
  115. position: absolute;
  116. right: 0;
  117. top: 0px;
  118. /* background-color: #f7bc8b; */
  119. cursor: pointer;
  120. }
  121. </style>
  122. </head>
  123. <body>
  124. <div id="main">
  125. <div class="alignC headerAlign">
  126. <br />
  127. <h2 style="margin-bottom: 15px;">
  128. 商丘市12345政府服务热线办公室工作交办单
  129. </h2>
  130. <div class="company">
  131. <span>单位:</span>
  132. <div class="inpBox">
  133. <input type="text" class="inps" />
  134. <i class="xl xl_one"></i>
  135. <div class="addTree xlAdd">
  136. <ul id="addTreeDemo" class="ztree">
  137. </ul>
  138. </div>
  139. </div>
  140. </div>
  141. </div>
  142. <table class="alignC" border="1" cellpadding="4" cellspacing="0" bordercolor="#cbcbcb">
  143. <tbody>
  144. <tr style="min-height: 49px;">
  145. <td rowspan="2" width="10%">编号
  146. </td>
  147. <td rowspan="2" width="22%">
  148. <span class="gdbhs"></span>
  149. </td>
  150. <td rowspan="2" width="13%">受理时间
  151. </td>
  152. <td rowspan="2" width="16%">
  153. <span class="tssj"></span>
  154. </td>
  155. <td width="16%">签收时间
  156. </td>
  157. <td>
  158. <span class="QSHJ"></span>
  159. </td>
  160. </tr>
  161. <tr style="min-height: 49px;">
  162. <td>
  163. 办理时限
  164. </td>
  165. <td>
  166. <input type="text" id="startTime" class="laydate-icon" style="height: 32px;width: 96%;">
  167. </td>
  168. </tr>
  169. <tr style="min-height: 49px;">
  170. <td>
  171. 投诉人
  172. </td>
  173. <td>
  174. <span class="gdbh"></span>
  175. </td>
  176. <td>
  177. 联系电话
  178. </td>
  179. <td>
  180. <span class="lxdh"></span>
  181. </td>
  182. <td>
  183. 秘密等级
  184. </td>
  185. <td>
  186. <span class="MJ"></span>
  187. </td>
  188. </tr>
  189. <tr style="min-height: 49px;">
  190. <td>
  191. 地址
  192. </td>
  193. <td colspan="5" style="text-align: left;text-indent: .3em; padding: 4px;">
  194. <span class="mmdj"></span>
  195. </td>
  196. </tr>
  197. <tr style="height: 180px;">
  198. <td class="style1">内容<br/>摘要
  199. </td>
  200. <td colspan="5" style="text-align:justify; padding:4px;text-indent: 2em;">
  201. <span class="lxr"></span>
  202. </td>
  203. </tr>
  204. <tr style="height: 110px;">
  205. <td>
  206. <span>调度<br/>意见</span>
  207. </td>
  208. <td colspan="5"><textarea data-adaptheight id="assignedopinion" name="" rows="4" cols="" style="width: 100%;resize:none"></textarea></td>
  209. <input type="hidden" id="ID" />
  210. <input type="hidden" id="PID" />
  211. <input type="hidden" id="Dpment" />
  212. </tr>
  213. </tbody>
  214. </table>
  215. <div class="btn_box" style="text-align: center;">
  216. <button class="btns BC">保存</button>
  217. <button class="btns Submit">保存并交办</button>
  218. </div>
  219. </div>
  220. <script src="../css/laydate/laydate.js"></script>
  221. <script src="../js/zTree/jquery.ztree.core.js"></script>
  222. <script src="../js/adjustHeight.js"></script>
  223. <script>
  224. var wid = helper.request.queryString("wid");
  225. var State;
  226. var a = $("#ID").val()
  227. $(".inps").val($("#Dpment").val());
  228. Detail();
  229. $(document).ready(function() {
  230. if (wid) {
  231. $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetWorkOrder', { workorderid: wid, "token": $.cookie("token") }, function (result) {
  232. if (result.state.toLowerCase() == "success") {
  233. var content = result.data;
  234. //console.log( content);
  235. $(".gdbhs").text(content.data[0].F_WorkOrderId);//工单
  236. $(".tsfs").text(content.data[0].SourceName);
  237. $(".lxr").text(content.data[0].F_CusName);
  238. $('.lxdh').text(content.data[0].F_CusPhone);
  239. $(".lxr ").text(content.data[0].F_ComContent);//内容
  240. var T= content.data[0].F_CreateTime;//受理时间
  241. if(T){
  242. var S=T.substring(0, T.indexOf(' '));
  243. $('.tssj').text(S);
  244. }
  245. if(content.jbdata.length > 0){
  246. var qst = content.jbdata[0].F_SureTime;//签收时间
  247. if(qst){
  248. var qs = qst.substring(0,qst.indexOf(' '));
  249. $('.QSHJ').text(qs);
  250. }
  251. }
  252. $(".gdbh").text(content.data[0].F_CusName);//投诉人
  253. $(".mmdj").text(content.data[0].F_SourceAddress);//地址
  254. $(".tslx").text(content.data[0].TypeName1);//偶投诉类型
  255. $(".bljg").text(content.data[0].F_Result);
  256. //密级程度
  257. if(content.data[0].F_IsProtect == 0) {
  258. $('.MJ').text("普通");
  259. } else {
  260. $('.MJ').text("保密");
  261. }
  262. var n=content.psdata.length;
  263. if (n > 0) {
  264. var ldps = content.psdata[n - 1].F_SuperOpinion;
  265. $(".ldps").html(ldps);
  266. }
  267. }
  268. })
  269. }
  270. $(".inps").val($("#Dpment").val());
  271. laydate.skin('blue');
  272. laydate({
  273. elem: '#startTime',
  274. event: 'focus'
  275. });
  276. //保存
  277. $('.BC').click(function() {
  278. if($("#PID").val() == ""){
  279. layer.msg("交办单位不能为空");
  280. }else if($("#startTime").val() == ""){
  281. layer.msg("办理时限不能为空");
  282. }else
  283. if($("#assignedopinion").val() == "") {
  284. layer.msg("调度意见不能为空");
  285. } else {
  286. State = 0;
  287. JA();
  288. }
  289. });
  290. //保存并提交
  291. $('.Submit').click(function() {
  292. if($("#PID").val() == ""){
  293. layer.msg("交办单位不能为空");
  294. }else if($("#startTime").val() == ""){
  295. layer.msg("办理时限不能为空");
  296. }else if($("#assignedopinion").val() == "") {
  297. layer.msg("调度意见不能为空");
  298. } else {
  299. State = 1;
  300. JA();
  301. }
  302. });
  303. tree();
  304. function tree() {
  305. $.get(huayi.config.callcenter_url + 'Department/GetDeptList', {
  306. "token": $.cookie("token"),
  307. // "pid": pid
  308. }, function(result) {
  309. result = $.parseJSON(result);
  310. $.fn.zTree.init($("#addTreeDemo"), setting1, result.data); //实例化树形图
  311. });
  312. }
  313. var setting1 = {
  314. data: {
  315. key: {
  316. name: "F_DeptName"
  317. },
  318. simpleData: {
  319. enable: true,
  320. idKey: "F_DeptId",
  321. pIdKey: "F_PartentId",
  322. rootPId: 0
  323. }
  324. },
  325. callback: {
  326. onClick: zTreeOnClick
  327. }
  328. };
  329. function zTreeOnClick(event, treeId, treeNode) {
  330. if(treeNode.level == 2) {
  331. $('.inps').val(treeNode.F_DeptName);
  332. $("#PID").val(treeNode.F_DeptId);
  333. $("#Dpment").val(treeNode.F_DeptName);
  334. }
  335. };
  336. //交办
  337. function JA() {
  338. $.post(huayi.config.callcenter_url + 'WorkOrder/AssignWorkOrder', {
  339. workorderid: wid,
  340. maindeptid: $("#PID").val(), //单位
  341. limittime: $("#startTime").val(), //办理时限
  342. assignedopinion: $('#assignedopinion').val(), //交办意见
  343. state: State,
  344. assignid: a,
  345. token: $.cookie("token")
  346. }, function(result) {
  347. result = JSON.parse(result);
  348. if(result.state.toLowerCase() == "success") {
  349. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  350. //console.log(index);
  351. parent.layer.close(index); //再执行关闭
  352. parent.load();
  353. parent.layer.msg("交办成功");
  354. }
  355. })
  356. }
  357. //所属分类下拉
  358. $('.inps').focus(function() {
  359. $('.xlAdd').css('display', 'block')
  360. })
  361. $('.xl').click(function() {
  362. if($('.xlAdd').css('display') == 'block') {
  363. $('.xlAdd').css('display', 'none')
  364. } else {
  365. $('.xlAdd').css('display', 'block')
  366. }
  367. })
  368. $('.addTree').mouseleave(function() {
  369. $(this).css('display', 'none')
  370. })
  371. //清除
  372. function Clean() {
  373. $("#startTime").val(''),
  374. $('#assignedopinion').val('')
  375. }
  376. });
  377. //草稿详情
  378. function Detail() {
  379. $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetDraftInfo', {
  380. workorderid: wid,
  381. type: 1,
  382. token: $.cookie("token")
  383. }, function(result) {
  384. if(result.state.toLowerCase() == "success") {
  385. if(result.data.length > 0) {
  386. var lTimes = result.data[0].F_LimitTime;
  387. console.log(lTimes);
  388. var lTime = lTimes.substring(0,10);
  389. $("#startTime").val(lTime);
  390. $('#assignedopinion').val(result.data[0].F_AssignedOpinion);
  391. $('.inps').val(result.data[0].DeptName);
  392. $('#PID').val(result.data[0].F_MainDeptId);
  393. a = result.data[0].F_Id;
  394. }
  395. }
  396. })
  397. }
  398. </script>
  399. </body>
  400. </html>