商丘12345 前端

ZXYTJ.html 29KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>坐席已提交</title>
  6. <script src="../Script/Common/huayi.load.js"></script>
  7. <link rel="stylesheet" href="../css/bootstrap-select.css">
  8. <script src="../Script/Common/huayi.config.js"></script>
  9. <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
  10. <link rel="stylesheet" href="../css/init.css" />
  11. <style>
  12. #sqzx th {
  13. padding: 5px 8px 5px 0;
  14. text-align: right;
  15. }
  16. .select {
  17. width: 150px;
  18. background-color: #FFF;
  19. background-image: none;
  20. border: 1px solid #ccc;
  21. border-radius: 1px;
  22. color: inherit;
  23. padding: 6px 12px;
  24. }
  25. #sex {
  26. background-color: #FFF;
  27. background-image: none;
  28. border: 1px solid #ccc;
  29. border-radius: 1px;
  30. color: inherit;
  31. padding: 6px 12px;
  32. }
  33. input {
  34. background-color: #FFF;
  35. background-image: none;
  36. border: 1px solid #ccc;
  37. border-radius: 1px;
  38. color: inherit;
  39. padding: 6px 12px;
  40. }
  41. #sqzx td {
  42. padding: 6px 0 5px 10px;
  43. }
  44. .lxr ul li {
  45. float: left;
  46. list-style: none;
  47. width: 30%;
  48. margin-bottom: 5px;
  49. padding-top: 10px;
  50. }
  51. .clearFix:after {
  52. content: "";
  53. display: block;
  54. clear: both;
  55. }
  56. .form-group {
  57. padding-left: 40px;
  58. margin-bottom: 0;
  59. }
  60. textarea {
  61. height: 70px;
  62. border: 1px solid #ccc;
  63. border-radius: 1px;
  64. width: 50%;
  65. resize: none;
  66. }
  67. .textarea_box {
  68. margin-top: 10px;
  69. }
  70. .box_content {
  71. border-bottom: 1px solid #ccc;
  72. }
  73. .tj_content {
  74. border: 1px solid #e6e6e6;
  75. border-radius: 5px;
  76. }
  77. .t-shade {
  78. position: fixed;
  79. top: 0;
  80. left: 0;
  81. width: 100%;
  82. background: rgba(0, 0, 0, 0.48);
  83. z-index: 10004;
  84. display: none;
  85. }
  86. .lyxz .shade_k {
  87. z-index: 10005;
  88. width: 40%;
  89. left: 30%;
  90. margin: 20% auto;
  91. position: absolute;
  92. background-color: #fff;
  93. box-shadow: 1px 1px 50px rgba(0, 0, 0, .3);
  94. border-radius: 5px;
  95. }
  96. .shade_title {
  97. padding: 0 80px 0 20px;
  98. height: 42px;
  99. line-height: 42px;
  100. border-bottom: 1px solid #eee;
  101. font-size: 16px;
  102. color: #FFFFFF;
  103. overflow: hidden;
  104. background-color: #00a1cb;
  105. border-radius: 2px 2px 0 0;
  106. position: relative;
  107. border-top-left-radius: 5px;
  108. border-top-right-radius: 5px;
  109. }
  110. .cx {
  111. display: block;
  112. }
  113. .setwin {
  114. position: absolute;
  115. right: 15px;
  116. top: 5px;
  117. font-size: 0;
  118. line-height: initial;
  119. }
  120. .setwin a {
  121. position: relative;
  122. width: 16px;
  123. height: 16px;
  124. font-size: 20px;
  125. color: #fff;
  126. }
  127. .xg i {
  128. font-size: 16px;
  129. }
  130. .hidens {
  131. display: none;
  132. }
  133. .Min-width{
  134. width: 150px;
  135. }
  136. .hidens {
  137. display: none;
  138. }
  139. .inpBox {
  140. border: 1px solid #a9a9a9;
  141. height: 27px;
  142. width: 220px;
  143. display: inline-block;
  144. position: relative;
  145. vertical-align: middle;
  146. }
  147. .addTree {
  148. background: #fff;
  149. position: absolute;
  150. width: 100%;
  151. border: 1px solid darkgrey;
  152. right: 0;
  153. top: 26px;
  154. display: none;
  155. z-index: 222;
  156. }
  157. .xl {
  158. display: inline-block;
  159. background: url(../../img/dropDown.png) no-repeat;
  160. height: 100%;
  161. background-position: center center;
  162. width: 20px;
  163. position: absolute;
  164. right: 0;
  165. top: 0px;
  166. /* background-color: #f7bc8b; */
  167. cursor: pointer;
  168. }
  169. .ztree li span {
  170. border: none;
  171. padding: 0;
  172. }
  173. .inps {
  174. width: 217px;
  175. height: 24px;
  176. outline: none;
  177. border: 0;
  178. border-image-width: 0;
  179. padding: 0;
  180. padding-left: 3px;
  181. }
  182. .xl {
  183. display: inline-block;
  184. background: url(../img/dropDown.png) no-repeat;
  185. height: 100%;
  186. background-position: center center;
  187. width: 20px;
  188. position: absolute;
  189. right: 0;
  190. top: 0px;
  191. /* background-color: #f7bc8b; */
  192. cursor: pointer;
  193. }
  194. .Cleans{
  195. display: inline-block;
  196. width: 20px;
  197. position: absolute;
  198. right: 21px;
  199. top: 5px;
  200. display: none;
  201. }
  202. </style>
  203. </head>
  204. <body class="gray-bg">
  205. <div class="wrapper wrapper-content animated fadeInRight">
  206. <div class="daoHang clearfix">
  207. <div class="dhLeft">
  208. <sapn>
  209. <i class="syIcon"></i>位置:
  210. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  211. <a href="javaScript:;">业务监督</a>&gt;
  212. <a class="nowPosition">坐席已提交</a>
  213. </sapn>
  214. </div>
  215. <div class="dhRight">
  216. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  217. </div>
  218. </div>
  219. <div style="padding: 10px;" class="tj_content clearFix">
  220. <div style="padding: 10px;" class="tj_content clearFix">
  221. <div>
  222. <span>【搜索信息】</span>
  223. <div class="box_content">
  224. <table id="sqzx" style="width: 100%;" border="0" cellspacing="0" cellpadding="0">
  225. <tr>
  226. <th>诉求标题:</th>
  227. <td>
  228. <input type="text" placeholder="输入诉求标题" id="key" class="Min-width" />
  229. </td>
  230. <th>工单号:</th>
  231. <td>
  232. <input type="text" placeholder="输入工单号" id="wids" class="Min-width" />
  233. </td>
  234. <th>时间:</th>
  235. <td>
  236. <input type="text" id="starttime" class="laydate-icon Min-width" style="height: 32px;" />&nbsp;——&nbsp;<input type="text" id="endtime" class="laydate-icon Min-width" style="height: 32px;" />
  237. </td>
  238. <th>区域:</th>
  239. <td >
  240. <select name="" id="sourceAreas" class="select">
  241. </select>
  242. </td>
  243. </tr>
  244. <tr>
  245. <th>工单状态:</th>
  246. <td>
  247. <select name="" id="state" class="select">
  248. <option selected="selected" value="">请选择</option>
  249. <option value="0">新工单</option>
  250. <option value="1">待交办</option>
  251. <option value="2">待查收</option>
  252. <option value="3">退回审核中</option>
  253. <option value="4">办理中</option>
  254. <option value="5">延时审核中</option>
  255. <option value="6">已办理</option>
  256. <option value="7">已回访</option>
  257. <option value="8">重办中</option>
  258. <option value="9">已结案</option>
  259. <option value="10">待审核</option>
  260. </select>
  261. </td>
  262. <th>工单来源:</th>
  263. <td>
  264. <select class="select_" id="source">
  265. </select>
  266. </td>
  267. <th>主题词:</th>
  268. <td>
  269. <select id="keyid" name="" class="select"></select>
  270. </td>
  271. <th>类型:</th>
  272. <td>
  273. <select class="select_" id="type">
  274. </select>
  275. </td>
  276. </tr>
  277. <tr>
  278. <th>投诉电话:</th>
  279. <td>
  280. <input type="text" id="tel" class="Min-width" />
  281. </td>
  282. <th>投诉人:</th>
  283. <td>
  284. <input type="text" id="name" class="Min-width"/>
  285. </td>
  286. </tr>
  287. <tr>
  288. <th>坐席:</th>
  289. <td>
  290. <select id="ZX" name="select" class="selectpicker show-tick form-control" multiple data-live-search="true">
  291. <option value="">请选择坐席</option>
  292. </select>
  293. </td>
  294. <th>调度员:</th>
  295. <td>
  296. <select id="yardman" name="select" class="selectpicker show-tick form-control" multiple data-live-search="true">
  297. <option value="">请选择调度员</option>
  298. </select>
  299. </td>
  300. <th>主办单位:</th>
  301. <td>
  302. <div class="inpBox">
  303. <input type="text" class="inps" />
  304. <i class="Cleans fa fa-close"></i>
  305. <i class="xl xl_one"></i>
  306. <div class="addTree xlAdd">
  307. <ul id="addTreeDemo" class="ztree">
  308. </ul>
  309. </div>
  310. </div>
  311. </td>
  312. <th></th>
  313. <td style="text-align: center;">
  314. <botton class="btns Seach">搜索</botton>
  315. <!--<botton class="btns ">导出</botton>-->
  316. </td>
  317. </tr>
  318. </table>
  319. </div>
  320. </div>
  321. <div>
  322. <div style="width: 100%;padding: 10px;">
  323. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  324. <thead>
  325. <tr>
  326. <th data-checkbox="true"></th>
  327. <th data-field="F_WorkOrderId" data-align="center">工单单号</th>
  328. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">诉求标题</th>
  329. <th data-field="DeptName" data-align="center">主办单位</th>
  330. <th data-field="OtherDeptName" data-align="center">协办单位</th>
  331. <th data-field="UserName" data-align="center">受理人</th>
  332. <th data-field="F_WorkState" data-align="center" data-formatter="States">办理状态</th>
  333. <th data-field="FilePath" data-formatter="setCode" data-align="center">录音</th>
  334. <th data-field="OverState" data-formatter="OverTime" data-align="center">时限</th>
  335. <th data-field="LimitTime" data-formatter="BanTime" data-align="center">办理时限</th>
  336. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">操作</th>
  337. </tr>
  338. </thead>
  339. <tbody class="list"></tbody>
  340. </table>
  341. </div>
  342. </div>
  343. </div>
  344. </div>
  345. <!--下载框-->
  346. <div class="t-shade lyxz">
  347. <div class="shade_k">
  348. <div class="shade_title">
  349. <span>录音播放与下载<srong class="cknum"></srong></span>
  350. <span class="setwin gbly"><a>x</a></span>
  351. </div>
  352. <div class="shade_content">
  353. <div class="Ly_box audiojs">
  354. </div>
  355. </div>
  356. </div>
  357. </div>
  358. <input type="hidden" id="PID" />
  359. <input type="hidden" id="Dpment" />
  360. </div>
  361. <script src="../js/bootstrap-select.js"></script>
  362. <script src="../css/laydate/laydate.js"></script>
  363. <script src="../My97DatePicker/WdatePicker.js"></script>
  364. <script src="../js/zTree/jquery.ztree.core.js"></script>
  365. <script src="../js/search/screen.js"></script>
  366. <script>
  367. // return '<div class="imgs" >' +
  368. // '<a class="xg" title="查看" onclick="ckxq(' + val + ')"> <i class="fa fa-search"></i></a>' +
  369. // '<a class="xg" title="编辑" onclick="bj(' + val + ')"> <i class="fa fa-pencil-square-o"></i></a>' +
  370. // '<a class="xg" title="回访" onclick="back(' + val + ')"> <i class="fa fa-mail-reply"></i></a>' +
  371. // '<a class="xg" "title="强回"onclick="recycles(' + val + ')"> <i class="fa fa-exchange"></i></a>' +
  372. // '<a class="xg" title="结案" onclick="Lawsuit(' + val + ')"> <i class="fa fa-pie-chart"></i></a>' +
  373. // '<a class="xg" "title="交办"onclick="jb(' + val + ')"> <i class="fa fa-check-square-o"></i></a>' +
  374. // '<a class="xg" "title="回收"onclick="recycle(' + val + ')"> <i class="fa fa-retweet"></i></a>' +
  375. // '<a class="xg "title="督查" onclick="Supervision(' + val + ')"> <i class="fa fa-eye"></i></a>' +
  376. // '<a class="xg" "title="强制" onclick="StrongLawsuit(' + val + ')"> <i class="fa fa-check-circle"></i></a>' +
  377. // '<a class="xg" title="删除"onclick="move(' + val + ')"> <i class="fa fa-remove"></i></a>' +
  378. // '</div>';
  379. $(document).ready(function() {
  380. load();
  381. LY($("#source"));
  382. LB($("#type"));
  383. ZT($("#keyid"));
  384. tree();
  385. helper.getDropList.getOrderAreas($('#sourceAreas'));
  386. laydate.skin('blue');
  387. laydate({
  388. elem: '#starttime',
  389. event: 'focus'
  390. });
  391. laydate({
  392. elem: '#endtime',
  393. event: 'focus'
  394. });
  395. ///搜素
  396. $(".Seach").click(function() {
  397. load();
  398. })
  399. $('.inps').focus(function() {
  400. $('.xlAdd').css('display', 'block')
  401. })
  402. $('.xl').click(function() {
  403. if($('.xlAdd').css('display') == 'block') {
  404. $('.xlAdd').css('display', 'none')
  405. } else {
  406. $('.xlAdd').css('display', 'block')
  407. }
  408. })
  409. $('.addTree').mouseleave(function() {
  410. $(this).css('display', 'none')
  411. })
  412. $(".Cleans ").click(function(){
  413. $('.inps').val("");
  414. $("#PID").val("");
  415. $("#Dpment").val("");
  416. })
  417. });
  418. //关闭录音弹出
  419. $(".gbly").click(function() {
  420. $(".lyxz").removeClass("cx");
  421. $('audio')[0].pause();
  422. });
  423. $("#orderlist").on("click-row.bs.table", function(e, row, ele) {
  424. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  425. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  426. });
  427. //获取查询信息
  428. function load() {
  429. //坐席
  430. var usercodeID="";
  431. var usercode_=$("#ZX").val(); //坐席
  432. if (usercode_!=null) {
  433. $(usercode_).each(function (i, n) {
  434. var obj1='';
  435. obj1= n+",";
  436. usercodeID +=obj1;
  437. })
  438. }else{
  439. usercodeID=""
  440. }
  441. // 调度员
  442. var ddusercodeID="";
  443. var ddusercode_=$("#yardman").val(); //坐席
  444. if (ddusercode_!=null) {
  445. $(ddusercode_).each(function (i, n) {
  446. var obj2='';
  447. obj2= n+",";
  448. ddusercodeID +=obj2;
  449. })
  450. }else{
  451. ddusercodeID=""
  452. }
  453. //先销毁表格
  454. $('#orderlist').bootstrapTable('destroy');
  455. //初始化表格,动态从服务器加载数据
  456. $("#orderlist").bootstrapTable({
  457. method: "get", //使用get请求到服务器获取数据
  458. url: huayi.config.callcenter_url + "WorkOrder/GetZXDealList", //获取数据的Servlet地址
  459. contentType: "application/x-www-form-urlencoded",
  460. striped: true, //表格显示条纹
  461. pagination: true, //启动分页
  462. pageSize: 10, //每页显示的记录数
  463. pageNumber: 1, //当前第几页
  464. pageList: [10, 20, 50, 100], //记录数可选列表
  465. search: false, //是否启用查询
  466. showColumns: false, //显示下拉框勾选要显示的列
  467. showRefresh: false, //显示刷新按钮
  468. sidePagination: "server", //表示服务端请求
  469. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  470. //设置为limit可以获取limit, offset, search, sort, order
  471. queryParamsType: "undefined",
  472. queryParams: function queryParams(params) { //设置查询参数
  473. var param = {
  474. page: params.pageNumber,
  475. pagesize: params.pageSize,
  476. workid: $("#wids").val(),
  477. state: $("#state").val(), //=工单状态
  478. type: $("#type").val(), //=工单类型
  479. bigtype: $("#bigtype").val(), //=大类别
  480. smalltype: $("#smalltype").val(), //=小类别
  481. key: $("#key").val(), //=关键字
  482. tel: $("#tel").val(), //=客户电话
  483. name: $("#name").val(), //=客户名称
  484. usercode: usercodeID, //=坐席工号
  485. ddusercode: ddusercodeID,
  486. keyid: $("#keyid").val(), //=关键词id
  487. source: $("#source").val(), //=来源&
  488. starttime: $("#starttime").val(), //=开始时间
  489. endtime: $("#endtime").val(), //=结束时间
  490. deptid:$("#PID").val(),
  491. type:$("#type").val(),
  492. tab: 1,//待处理
  493. sourcearea:$('#sourceAreas').val(),//区域
  494. token: $.cookie("token")
  495. };
  496. return param;
  497. },
  498. onLoadSuccess: function(data) { //加载成功时执行
  499. // layer.msg("加载成功");
  500. //console.log(data);
  501. },
  502. onLoadError: function() { //加载失败时执行
  503. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  504. }
  505. });
  506. }
  507. //状态
  508. function States(val, row) {
  509. var html = '';
  510. switch (val + '') {
  511. case '0':
  512. html = '新工单';
  513. if (row.F_IsReturn == 1) {
  514. html = '新工单(回退)';
  515. }
  516. break;
  517. case '1':
  518. html = '待交办';
  519. break;
  520. case '2':
  521. html = '待查收';
  522. break;
  523. case '3':
  524. html = '退回审核中';
  525. break;
  526. case '4':
  527. html = '办理中';
  528. break;
  529. case '5':
  530. html = '延时审核';
  531. break;
  532. case '6':
  533. html = '已办理';
  534. break;
  535. case '7':
  536. html = '已回访';
  537. break;
  538. case '8':
  539. html = '重办中';
  540. break;
  541. case '9':
  542. html = '已结案';
  543. break;
  544. case '10':
  545. html = '待审核';
  546. break;
  547. case '11':
  548. html = '重办待交办';
  549. break;
  550. case '12':
  551. html = '待审核';
  552. break;
  553. case '13':
  554. html = '待督办';
  555. break;
  556. }
  557. return html;
  558. }
  559. //时限
  560. function OverTime(val,row){
  561. if(val==1){
  562. return '<div class="" style="cursor: pointer;">' +
  563. '<span class="Greens">'+row.GapTime+'</span>'+
  564. '</div>';
  565. }else if(val==2){
  566. return '<div class="" style="cursor: pointer;">' +
  567. '<span class="Yellows">'+row.GapTime+'</span>'+
  568. '</div>';
  569. }else if(val==3){
  570. return '<div class="" style="cursor: pointer;">' +
  571. '<span class="Reds">'+row.GapTime+'</span>'+
  572. '</div>';
  573. }
  574. }
  575. //办理时限
  576. function BanTime(val){
  577. if(val){
  578. var time=val.substring(0,val.indexOf(' '));
  579. return '<div class="" style="cursor: pointer;">' +
  580. '<span>'+time+'</span>'+
  581. '</div>';
  582. }
  583. }
  584. //音频
  585. function setCode(val) {
  586. if(val) {
  587. return '<div class="imgs" style="cursor: pointer;">' +
  588. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' + val + '" />' +
  589. '</div>';
  590. } else {
  591. return '';
  592. }
  593. }
  594. function GetCont(val) {
  595. if(val) {
  596. var str = '<div '
  597. if(val.length > 10) {
  598. str = str + ' title="' + val + '" ';
  599. val = val.substr(0, 10) + "...";
  600. }
  601. return str + '>' + val + '</div>';
  602. } else {
  603. return '';
  604. }
  605. }
  606. //操作
  607. function Dispose(val, row) {
  608. var Rows = row.Buttons;
  609. var html = '';
  610. for(var i = 0; i < Rows.length; i++) {
  611. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  612. if(html1) {
  613. html1 = html1.replace("data", val);
  614. }
  615. html += html1;
  616. }
  617. return html;
  618. }
  619. //查看详情
  620. function ckxq(str) {
  621. layer.open({
  622. type: 2,
  623. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  624. title: '工单详情',
  625. area: ['85%', '80%'], //宽高
  626. });
  627. }
  628. //编辑
  629. function bj(str) {
  630. layer.open({
  631. type: 2,
  632. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  633. title: '编辑工单',
  634. area: ['96%', '80%'], //宽高
  635. });
  636. }
  637. //删除
  638. function move(str) {
  639. layer.confirm('确定删除工单?', {
  640. btn: ['是', '否'] //按钮
  641. }, function() {
  642. $.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", {
  643. ids: str,
  644. token: $.cookie("token")
  645. }, function(result) {
  646. result = JSON.parse(result);
  647. if(result.state.toLowerCase() == "success") {
  648. layer.msg("删除成功");
  649. load();
  650. }
  651. })
  652. });
  653. }
  654. //提交
  655. function tj(str) {
  656. layer.confirm('确定要提交工单么?', {
  657. btn: ['确定', '取消'] //按钮
  658. }, function() {
  659. //请求后台数据
  660. /*发送请求*/
  661. $.post(huayi.config.callcenter_url + "WorkOrder/SubmitWorkOrder", {
  662. ids: str,
  663. token: $.cookie("token")
  664. }, function(result) {
  665. result = JSON.parse(result);
  666. if(result.state.toLowerCase() == "success") {
  667. layer.msg("提交成功");
  668. load();
  669. }
  670. })
  671. });
  672. }
  673. //交办
  674. function jb(str) {
  675. layer.open({
  676. type: 2,
  677. content: "../CommonHtml/JiaoBan.html?wid=" + str, //iframe的url,no代表不显示滚动条
  678. title: '工单交办',
  679. area: ['87%', '80%'], //宽高
  680. });
  681. }
  682. //领导批示
  683. function lader(str) {
  684. layer.open({
  685. type: 2,
  686. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  687. title: '领导批示',
  688. area: ['45%', '40%'], //宽高
  689. });
  690. }
  691. //市长批示
  692. function city(str) {
  693. layer.open({
  694. type: 2,
  695. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  696. title: '领导批示',
  697. area: ['45%', '40%'], //宽高
  698. });
  699. }
  700. //办理
  701. function bl(str) {
  702. layer.open({
  703. type: 2,
  704. content: "../CommonHtml/banli.html?wid=" + str, //iframe的url,no代表不显示滚动条
  705. title: '办理工单',
  706. area: ['45%', '40%'], //宽高
  707. });
  708. }
  709. //督办
  710. function Supervision(str) {
  711. layer.open({
  712. type: 2,
  713. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1', //iframe的url,no代表不显示滚动条
  714. title: '督办',
  715. area: ['35%', '30%'], //宽高
  716. });
  717. }
  718. //督查
  719. function Supervision_(str) {
  720. layer.open({
  721. type: 2,
  722. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
  723. title: '监察',
  724. area: ['35%', '30%'], //宽高
  725. });
  726. }
  727. //强制结案
  728. function StrongLawsuit(str) {
  729. layer.open({
  730. type: 2,
  731. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  732. title: '强制结案',
  733. area: ['45%', '52%'], //宽高
  734. });
  735. }
  736. //回退BackDtail
  737. function BackDtail(str) {
  738. layer.open({
  739. type: 2,
  740. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  741. title: '工单回退',
  742. area: ['45%', '40%'], //宽高
  743. });
  744. }
  745. //查收
  746. function cs(str) {
  747. layer.confirm('确定要查收?', {
  748. btn: ['是', '否'] //按钮
  749. }, function() {
  750. $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
  751. workorderid: str,
  752. token: $.cookie("token")
  753. }, function(result) {
  754. result = JSON.parse(result);
  755. if(result.state.toLowerCase() == "success") {
  756. layer.msg("查收成功");
  757. load();
  758. }
  759. })
  760. });
  761. }
  762. //收回
  763. function sh(str) {
  764. layer.confirm('确定要回收?', {
  765. btn: ['是', '否'] //按钮
  766. }, function() {
  767. $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
  768. workorderid: str,
  769. token: $.cookie("token")
  770. }, function(result) {
  771. result = JSON.parse(result);
  772. if(result.state.toLowerCase() == "success") {
  773. layer.msg("回收");
  774. load();
  775. }
  776. })
  777. });
  778. }
  779. //强制回收
  780. function recycles() {
  781. layer.confirm('确定要强制退回吗?', {
  782. btn: ['是', '否'] //按钮
  783. });
  784. }
  785. //退回申请
  786. function th(str) {
  787. layer.open({
  788. type: 2,
  789. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  790. title: '申请退回工单',
  791. area: ['35%', '30%'], //宽高
  792. });
  793. }
  794. //审核退回申请
  795. function shth(str) {
  796. layer.open({
  797. type: 2,
  798. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  799. title: '审核退回申请',
  800. area: ['35%', '30%'], //宽高
  801. });
  802. }
  803. //办理
  804. // function th(str) {
  805. // layer.open({
  806. // type: 2,
  807. // content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  808. // title: '办理工单',
  809. // area: ['35%', '30%'], //宽高
  810. // });
  811. // }
  812. //申请延时
  813. function ys(str) {
  814. layer.open({
  815. type: 2,
  816. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  817. title: '申请延时',
  818. area: ['45%', '40%'], //宽高
  819. });
  820. }
  821. //审核申请延时
  822. function shys(str) {
  823. layer.open({
  824. type: 2,
  825. content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  826. title: '审核延时申请',
  827. area: ['45%', '40%'], //宽高
  828. });
  829. }
  830. //诉求回访
  831. function hf(str) {
  832. layer.open({
  833. type: 2,
  834. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  835. title: '工单回访',
  836. area: ['45%', '40%'], //宽高
  837. });
  838. }
  839. //重办工单
  840. function cb(str) {
  841. layer.open({
  842. type: 2,
  843. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  844. title: '重办工单',
  845. area: ['45%', '40%'], //宽高
  846. });
  847. }
  848. //结案
  849. function Lawsuit(str) {
  850. layer.open({
  851. type: 2,
  852. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  853. title: '诉求单结案',
  854. area: ['45%', '40%'], //宽高
  855. });
  856. }
  857. $('.Appeal').click(function() {
  858. layer.open({
  859. type: 2,
  860. content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
  861. title: '新增诉求',
  862. area: ['85%', '80%'], //宽高
  863. });
  864. })
  865. //上传文件
  866. function upload() {
  867. if(document.getElementById("upFile").files.length > 0) {
  868. var formData = new FormData();
  869. formData.append("upFile", document.getElementById("upFile").files[0]);
  870. formData.append("token", $.cookie("token"));
  871. $.ajax({
  872. url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
  873. type: "POST",
  874. data: formData,
  875. /**
  876. *必须false才会自动加上正确的Content-Type
  877. */
  878. contentType: false,
  879. /**
  880. * 必须false才会避开jQuery对 formdata 的默认处理
  881. * XMLHttpRequest会对 formdata 进行正确的处理
  882. */
  883. processData: false,
  884. success: function(result) {
  885. document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
  886. $("#upFile").change(function() {
  887. upload();
  888. });
  889. var r = $.parseJSON(result);
  890. if(r.state.toLowerCase() == "success") {
  891. $(".fjnr").text(r.data);
  892. $("#scfj").show();
  893. }
  894. }
  895. });
  896. } else {
  897. layer.confirm('请上传文件!', {
  898. btn: ['确定']
  899. });
  900. }
  901. }
  902. //来源
  903. function LY(obj) {
  904. obj.empty();
  905. obj.append('<option selected="selected" value="">请选择</option>');
  906. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  907. "token": $.cookie("token"),
  908. id: 1
  909. }, function(data) {
  910. if(data.state.toLowerCase() == "success") {
  911. var content = data.data;
  912. $(content).each(function(i, n) {
  913. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
  914. })
  915. }
  916. })
  917. }
  918. //类别
  919. function LB(obj) {
  920. obj.empty();
  921. obj.append('<option selected="selected" value="">请选择</option>');
  922. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  923. "token": $.cookie("token"),
  924. id: 2
  925. }, function(data) {
  926. if(data.state.toLowerCase() == "success") {
  927. var content = data.data;
  928. $(content).each(function(i, n) {
  929. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
  930. })
  931. }
  932. })
  933. }
  934. // 主题
  935. function ZT(obj) {
  936. obj.empty();
  937. obj.append('<option selected="selected" value="">请选择</option>');
  938. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  939. "token": $.cookie("token"),
  940. id: 3
  941. }, function(data) {
  942. if(data.state.toLowerCase() == "success") {
  943. var content = data.data;
  944. $(content).each(function(i, n) {
  945. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
  946. })
  947. }
  948. })
  949. }
  950. function tree() {
  951. $.get(huayi.config.callcenter_url + 'Department/GetDeptList', {
  952. "token": $.cookie("token"),
  953. // "pid": pid
  954. }, function(result) {
  955. result = $.parseJSON(result);
  956. $.fn.zTree.init($("#addTreeDemo"), setting1, result.data); //实例化树形图
  957. });
  958. }
  959. var setting1 = {
  960. data: {
  961. key: {
  962. name: "F_DeptName"
  963. },
  964. simpleData: {
  965. enable: true,
  966. idKey: "F_DeptId",
  967. pIdKey: "F_PartentId",
  968. rootPId: 0
  969. }
  970. },
  971. callback: {
  972. onClick: zTreeOnClick
  973. }
  974. };
  975. function zTreeOnClick(event, treeId, treeNode) {
  976. if(treeNode.level >= 2) {
  977. $('.inps').val(treeNode.F_DeptName);
  978. $("#PID").val(treeNode.F_DeptId);
  979. $("#Dpment").val(treeNode.F_DeptName);
  980. $(".Cleans").show();
  981. }
  982. };
  983. </script>
  984. </body>
  985. </html>