Bez popisu

LeaderDJALB.html 42KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156
  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. position: absolute;
  91. background-color: rgb(255, 255, 255);
  92. box-shadow: rgba(0, 0, 0, 0.298039) 1px 1px 50px;
  93. margin: 20% auto;
  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. .inpBox {
  134. border: 1px solid #cccccc;
  135. height: 31px;
  136. width: 220px;
  137. display: inline-block;
  138. position: relative;
  139. vertical-align: middle;
  140. position: absolute;
  141. left: 0px;
  142. top: 0px;
  143. z-index: 111;
  144. }
  145. .selDpart1 {
  146. position: absolute;
  147. left: 0px;
  148. top: 30px;
  149. z-index: 11111;
  150. width: 220px;
  151. line-height: 30px;
  152. background: #FFFFFF;
  153. display: none;
  154. }
  155. #sponsor {
  156. width: 218px;
  157. border: 1px solid #00a1cb;
  158. margin: 0;
  159. padding: 0;
  160. list-style: none;
  161. max-height: 212px;
  162. overflow-x: hidden;
  163. overflow-y: scroll;
  164. }
  165. #sponsor li {
  166. margin: 0;
  167. padding-left: 10px;
  168. width: 220px;
  169. height: 30px;
  170. line-height: 30px;
  171. list-style: none;
  172. }
  173. #sponsor li:hover {
  174. background: #00a1cb;
  175. }
  176. .addTree {
  177. background: #fff;
  178. position: absolute;
  179. width: 100%;
  180. border: 1px solid darkgrey;
  181. right: 0;
  182. top: 29px;
  183. display: none;
  184. z-index: 222;
  185. }
  186. .xl {
  187. display: inline-block;
  188. background: url(../../img/dropDown.png) no-repeat;
  189. height: 100%;
  190. background-position: center center;
  191. width: 20px;
  192. position: absolute;
  193. right: 0;
  194. top: 0px;
  195. /* background-color: #f7bc8b; */
  196. cursor: pointer;
  197. }
  198. .ztree li span {
  199. border: none;
  200. padding: 0;
  201. }
  202. .inps {
  203. width: 217px;
  204. height: 29px;
  205. outline: none;
  206. border: 0;
  207. border-image-width: 0;
  208. padding: 0;
  209. padding-left: 3px;
  210. }
  211. .xl {
  212. display: inline-block;
  213. background: url(../img/dropDown.png) no-repeat;
  214. height: 100%;
  215. background-position: center center;
  216. width: 20px;
  217. position: absolute;
  218. right: 0;
  219. top: 0px;
  220. /* background-color: #f7bc8b; */
  221. cursor: pointer;
  222. }
  223. .Cleans {
  224. display: inline-block;
  225. width: 20px;
  226. position: absolute;
  227. right: 21px;
  228. top: 8px;
  229. display: none;
  230. }
  231. .Min-width {
  232. width: 150px;
  233. }
  234. .btn-default {
  235. background: #FFFFFF;
  236. color: #000000;
  237. }
  238. </style>
  239. </head>
  240. <body class="gray-bg">
  241. <div class="wrapper wrapper-content animated fadeInRight">
  242. <div class="daoHang clearfix">
  243. <div class="dhLeft">
  244. <sapn>
  245. <i class="syIcon"></i>位置:
  246. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  247. <a href="javaScript:;">工单处理</a>&gt;
  248. <a href="" class="nowPosition">待结案列表</a>
  249. </sapn>
  250. </div>
  251. <div class="dhRight">
  252. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  253. </div>
  254. </div>
  255. <div style="padding: 10px;" class="tj_content clearFix">
  256. <div style="padding: 10px;" class="tj_content clearFix">
  257. <div>
  258. <span>【搜索信息】</span>
  259. <div class="box_content">
  260. <table id="sqzx" style="width: 100%;" border="0" cellspacing="0" cellpadding="0">
  261. <tr>
  262. <th>关键字:</th>
  263. <td>
  264. <input type="text" placeholder="输入关键字" id="key" class="Min-width" />
  265. </td>
  266. <th>工单号:</th>
  267. <td>
  268. <input type="text" placeholder="输入工单号" id="wids" class="Min-width" />
  269. </td>
  270. <th>时间:</th>
  271. <td>
  272. <input type="text" id="starttime" class="" placeholder="请选择时间"
  273. style="height: 32px;" />
  274. </td>
  275. <!-- <th>工单状态:</th>
  276. <td>
  277. <select name="" id="state" class="select">
  278. <option selected="selected" value="">请选择</option>
  279. <option value="1">待交办</option>
  280. <option value="10">待审核</option>
  281. <option value="2">待查收</option>
  282. <option value="3">退回审核中</option>
  283. <option value="4">办理中</option>
  284. <option value="5">延时审核中</option>
  285. <option value="6">已办理</option>
  286. <option value="7">已回访</option>
  287. <option value="11">重办待交办</option>
  288. <option value="13">重办驳回 </option>
  289. <option value="8">重办中</option>
  290. <option value="9">已结案</option>
  291. </select>
  292. </td> -->
  293. </tr>
  294. <tr>
  295. <th>工单来源:</th>
  296. <td>
  297. <select class="select_" id="source"></select>
  298. </td>
  299. <th>主题词:</th>
  300. <td>
  301. <select id="keyid" name="" class="select"></select>
  302. </td>
  303. <th>投诉电话:</th>
  304. <td>
  305. <input type="text" id="tel" placeholder="请输入投诉电话" />
  306. </td>
  307. <th>姓名:</th>
  308. <td>
  309. <input type="text" id="name" class="Min-width" autocomplete="off" />
  310. </td>
  311. </tr>
  312. <tr>
  313. <th>处理类型:</th>
  314. <td>
  315. <select class="select_" id="dealtype">
  316. <option value="">请选择</option>
  317. <option value="0">网络转派</option>
  318. <option value="1">当即办理</option>
  319. </select>
  320. </td>
  321. <th>类型:</th>
  322. <td>
  323. <select class="select_" id="type"></select>
  324. </td>
  325. <th>区域:</th>
  326. <td>
  327. <select class="select_" id="sourceAreas"></select>
  328. </td>
  329. <th>承办单位:</th>
  330. <td style="position: relative;">
  331. <div class="inpBox">
  332. <input type="text" class="inps" onkeyup="darptSearch()" />
  333. <i class="Cleans fa fa-close"></i>
  334. <i class="xl xl_one"></i>
  335. <div class="addTree xlAdd">
  336. <ul id="addTreeDemo" class="ztree"></ul>
  337. </div>
  338. </div>
  339. <div class="selDpart1">
  340. <ul id="sponsor">
  341. </ul>
  342. </div>
  343. </td>
  344. </tr>
  345. <tr>
  346. <th>调度员:</th>
  347. <td>
  348. <select id="yardman" name="select" class="selectpicker show-tick form-control"
  349. multiple data-live-search="true">
  350. <option value="">请选择调度员</option>
  351. </select>
  352. </td>
  353. <td colspan="7" style="text-align: center;">
  354. <botton class="btns Seach">搜索</botton>
  355. <botton class="btns Export">导出</botton>
  356. </td>
  357. </tr>
  358. </table>
  359. </div>
  360. </div>
  361. <div>
  362. <div style="width: 100%;padding: 10px;">
  363. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams"
  364. data-pagination="true">
  365. <thead>
  366. <tr>
  367. <th data-field="F_OldWorkOrderId" data-formatter="Print" data-align="center">案件编号
  368. </th>
  369. <th data-field="F_WorkOrderId" data-align="center">工单单号</th>
  370. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">诉求标题</th>
  371. <th data-field="DeptName" data-align="center">承办单位</th>
  372. <th data-field="UserName" data-align="center">受理人</th>
  373. <th data-field="F_WorkState" data-align="center" data-formatter="States">办理状态</th>
  374. <th data-field="OverState" data-formatter="OverTime" data-align="center">时限</th>
  375. <th data-field="LimitTime" data-formatter="BanTime" data-align="center">办理时限</th>
  376. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">操作</th>
  377. </tr>
  378. </thead>
  379. <tbody class="list"></tbody>
  380. </table>
  381. </div>
  382. </div>
  383. </div>
  384. </div>
  385. <input type="hidden" id="PID" />
  386. <input type="hidden" id="Dpment" />
  387. </div>
  388. <script src="../js/bootstrap-select.js"></script>
  389. <script src="../js/laydate/laydate.js"></script>
  390. <script src="../My97DatePicker/WdatePicker.js"></script>
  391. <script src="../js/zTree/jquery.ztree.core.js"></script>
  392. <script src="../js/search/screen.js"></script>
  393. <script>
  394. $(document).ready(function () {
  395. var wid = helper.request.queryString("wid");
  396. if (wid) {
  397. $('#tel').val(wid);
  398. load();
  399. }
  400. laydate.render({
  401. elem: '#starttime' //指定元素
  402. ,
  403. range: '~'
  404. });
  405. load();
  406. });
  407. $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
  408. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  409. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  410. });
  411. //获取查询信息
  412. function load() {
  413. //坐席
  414. var usercodeID = "";
  415. var usercode_ = $("#ZX").val(); //坐席
  416. if (usercode_ != null) {
  417. $(usercode_).each(function (i, n) {
  418. var obj1 = '';
  419. obj1 = n + ",";
  420. usercodeID += obj1;
  421. })
  422. } else {
  423. usercodeID = ""
  424. }
  425. // 调度员
  426. var ddusercodeID = "";
  427. var ddusercode_ = $("#yardman").val(); //坐席
  428. if (ddusercode_ != null) {
  429. $(ddusercode_).each(function (i, n) {
  430. var obj2 = '';
  431. obj2 = n + ",";
  432. ddusercodeID += obj2;
  433. })
  434. } else {
  435. ddusercodeID = ""
  436. }
  437. //先销毁表格
  438. $('#orderlist').bootstrapTable('destroy');
  439. //初始化表格,动态从服务器加载数据
  440. $("#orderlist").bootstrapTable({
  441. method: "get", //使用get请求到服务器获取数据
  442. url: huayi.config.callcenter_url + "WorkOrder/GetList", //获取数据的Servlet地址
  443. contentType: "application/x-www-form-urlencoded",
  444. striped: true, //表格显示条纹
  445. pagination: true, //启动分页
  446. pageSize: 10, //每页显示的记录数
  447. pageNumber: 1, //当前第几页
  448. pageList: [10, 20, 50, 100], //记录数可选列表
  449. search: false, //是否启用查询
  450. showColumns: false, //显示下拉框勾选要显示的列
  451. showRefresh: false, //显示刷新按钮
  452. sidePagination: "server", //表示服务端请求
  453. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  454. //设置为limit可以获取limit, offset, search, sort, order
  455. queryParamsType: "undefined",
  456. queryParams: function queryParams(params) { //设置查询参数
  457. //alert(params.pageNumber)
  458. var param = {
  459. page: params.pageNumber,
  460. pagesize: params.pageSize,
  461. workid: $("#wids").val(),
  462. state: 7, //=工单状态
  463. type: $("#type").val(), //=工单类型
  464. //bigtype: $("#bigtype").val(), //=大类别
  465. //smalltype: $("#smalltype").val(), //=小类别
  466. key: $("#key").val(), //=关键字
  467. tel: $("#tel").val(), //=客户电话
  468. name: $("#name").val(), //=客户名称
  469. usercode: usercodeID, //=坐席工号
  470. ddusercode: ddusercodeID,
  471. keyid: $("#keyid").val(), //=关键词id
  472. source: $("#source").val(), //=来源&
  473. starttime: $('#starttime').val() && $('#starttime').val().split(' ~ ')[
  474. 0], //=开始时间
  475. endtime: $('#starttime').val() && $('#starttime').val().split(' ~ ')[1], //=结束时间
  476. deptid: $("#PID").val(),
  477. type: $("#type").val(),
  478. dealtype: $("#dealtype").val(),
  479. sourcearea: $('#sourceAreas').val(), //区域
  480. token: $.cookie("token")
  481. };
  482. return param;
  483. },
  484. onLoadSuccess: function (data) { //加载成功时执行
  485. // layer.msg("加载成功");
  486. //console.log(data);
  487. },
  488. onLoadError: function () { //加载失败时执行
  489. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  490. }
  491. });
  492. }
  493. //状态
  494. function States(val, row) {
  495. var html = '';
  496. switch (val + '') {
  497. case '0':
  498. html = '新工单';
  499. if (row.F_IsReturn == 1) {
  500. html = '新工单(回退)';
  501. }
  502. break;
  503. case '1':
  504. html = '待交办';
  505. break;
  506. case '2':
  507. html = '待查收';
  508. break;
  509. case '3':
  510. html = '退回审核中';
  511. break;
  512. case '4':
  513. html = '办理中';
  514. break;
  515. case '5':
  516. html = '延时审核';
  517. break;
  518. case '6':
  519. html = '已办理';
  520. break;
  521. case '7':
  522. html = '待结案';
  523. break;
  524. case '8':
  525. html = '重办中';
  526. break;
  527. case '9':
  528. html = '已结案';
  529. break;
  530. case '10':
  531. html = '待审核';
  532. break;
  533. case '11':
  534. html = '重办待交办';
  535. break;
  536. // case '12':
  537. // html = '待审核';
  538. // break;
  539. case '13':
  540. html = '重办驳回';
  541. break;
  542. }
  543. return html;
  544. }
  545. //音频
  546. function setCode(val) {
  547. if (val) {
  548. return '<div class="imgs" style="cursor: pointer;">' +
  549. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' + val + '" />' +
  550. '</div>';
  551. } else {
  552. return '';
  553. }
  554. }
  555. //操作
  556. function Print(val, row) {
  557. if (row.F_OldWorkOrderId) {
  558. return '<a onclick="btn_print(\'' + row.F_WorkOrderId + '\')">' + row.F_OldWorkOrderId + '</a>'
  559. }
  560. }
  561. function btn_print(PrintClick) {
  562. layer.open({
  563. type: 2,
  564. content: "../CommonHtml/PrintPreview-1.html?wid=" + PrintClick, //iframe的url,no代表不显示滚动条
  565. title: '打印/导出',
  566. area: ['788.8px', '90%'], //宽高
  567. });
  568. }
  569. function GetCont(val) {
  570. if (val) {
  571. var str = '<div '
  572. if (val.length > 10) {
  573. str = str + ' title="' + val + '" ';
  574. val = val.substr(0, 10) + "...";
  575. }
  576. return str + '>' + val + '</div>';
  577. } else {
  578. return '';
  579. }
  580. }
  581. //操作
  582. function Dispose(val, row) {
  583. var Rows = row.Buttons;
  584. var html = '';
  585. for (var i = 0; i < Rows.length; i++) {
  586. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  587. if (html1) {
  588. html1 = html1.replace("data", val);
  589. html1 = html1.replace("isProtect", row.F_IsProtect);
  590. html1 = html1.replace("row", row.F_MainDeptId);
  591. }
  592. html += html1;
  593. }
  594. return html;
  595. }
  596. //查看详情
  597. function ckxq(str) {
  598. layer.open({
  599. type: 2,
  600. // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  601. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  602. title: '工单详情',
  603. area: ['87%', '80%'], //宽高
  604. });
  605. }
  606. //时限
  607. function OverTime(val, row) {
  608. if (val == 1) {
  609. return '<div class="" style="cursor: pointer;">' +
  610. '<span class="Greens">' + row.GapTime + '</span>' +
  611. '</div>';
  612. } else if (val == 2) {
  613. return '<div class="" style="cursor: pointer;">' +
  614. '<span class="Yellows">' + row.GapTime + '</span>' +
  615. '</div>';
  616. } else if (val == 3) {
  617. return '<div class="" style="cursor: pointer;">' +
  618. '<span class="Reds">' + row.GapTime + '</span>' +
  619. '</div>';
  620. }
  621. }
  622. //办理时限
  623. function BanTime(val) {
  624. if (val) {
  625. var time = val.substring(0, val.indexOf(' '));
  626. return '<div class="" style="cursor: pointer;">' +
  627. '<span>' + time + '</span>' +
  628. '</div>';
  629. }
  630. }
  631. //派单
  632. function pd(str) {
  633. layer.open({
  634. type: 2,
  635. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  636. title: '办理工单',
  637. area: ['87%', '80%'], //宽高
  638. });
  639. }
  640. //处理审核
  641. function auditdeal(str) {
  642. layer.open({
  643. type: 2,
  644. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  645. title: '处理审核',
  646. area: ['80%', '80%'], //宽高
  647. });
  648. }
  649. //编辑
  650. function bj(str) {
  651. layer.open({
  652. type: 2,
  653. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  654. title: '编辑工单',
  655. area: ['96%', '80%'], //宽高
  656. });
  657. }
  658. //删除
  659. function move(str) {
  660. layer.confirm('确定删除工单?', {
  661. btn: ['是', '否'] //按钮
  662. }, function () {
  663. $.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", {
  664. ids: str,
  665. token: $.cookie("token")
  666. }, function (result) {
  667. result = JSON.parse(result);
  668. if (result.state.toLowerCase() == "success") {
  669. debugger
  670. layer.msg("删除成功");
  671. $("#orderlist").bootstrapTable('refresh');
  672. }
  673. })
  674. });
  675. }
  676. //提交
  677. function tj(str) {
  678. layer.confirm('确定要提交工单么?', {
  679. btn: ['确定', '取消'] //按钮
  680. }, function () {
  681. //请求后台数据
  682. /*发送请求*/
  683. $.post(huayi.config.callcenter_url + "WorkOrder/SubmitWorkOrder", {
  684. ids: str,
  685. token: $.cookie("token")
  686. }, function (result) {
  687. result = JSON.parse(result);
  688. if (result.state.toLowerCase() == "success") {
  689. layer.msg("提交成功");
  690. $("#orderlist").bootstrapTable('refresh');
  691. //load();
  692. }
  693. })
  694. });
  695. }
  696. //交办
  697. function jb(str) {
  698. layer.open({
  699. type: 2,
  700. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  701. title: '工单交办',
  702. area: ['87%', '80%'], //宽高
  703. });
  704. }
  705. //回传
  706. function gdhc(str) {
  707. layer.confirm('确定要回传?', {
  708. btn: ['是', '否'] //按钮
  709. }, function () {
  710. $.post(huayi.config.callcenter_url + "WorkOrder/Sendback", {
  711. ids: str,
  712. token: $.cookie("token")
  713. }, function (result) {
  714. result = JSON.parse(result);
  715. if (result.state.toLowerCase() == "success") {
  716. layer.msg("回传成功");
  717. //load();
  718. $("#orderlist").bootstrapTable('refresh');
  719. }
  720. })
  721. });
  722. }
  723. //领导批示
  724. function lader(str) {
  725. layer.open({
  726. type: 2,
  727. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  728. title: '领导批示',
  729. area: ['60%', '80%'], //宽高
  730. });
  731. }
  732. //市长批示
  733. function city(str) {
  734. layer.open({
  735. type: 2,
  736. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  737. title: '市长批示',
  738. area: ['60%', '80%'], //宽高
  739. });
  740. }
  741. //办理
  742. function bl(str, isProtect) {
  743. console.log("isProtect2222", isProtect)
  744. layer.open({
  745. type: 2,
  746. content: "../CommonHtml/banli.html?wid=" + str + "&isProtect=" +
  747. isProtect, //iframe的url,no代表不显示滚动条
  748. title: '办理工单',
  749. area: ['60%', '80%'], //宽高
  750. });
  751. }
  752. //编辑办理
  753. function editProcessingResult(str) {
  754. layer.open({
  755. type: 2,
  756. content: "../CommonHtml/editProcessingResult.html?wid=" + str, //iframe的url,no代表不显示滚动条
  757. title: '编辑办理',
  758. area: ['60%', '80%'], //宽高
  759. });
  760. }
  761. //督办
  762. function Supervision(str) {
  763. layer.open({
  764. type: 2,
  765. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1', //iframe的url,no代表不显示滚动条
  766. title: '督办',
  767. area: ['60%', '80%'], //宽高
  768. });
  769. }
  770. //督查
  771. function Supervision_(str) {
  772. layer.open({
  773. type: 2,
  774. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
  775. title: '监察',
  776. area: ['60%', '80%'], //宽高
  777. });
  778. }
  779. //审核
  780. function audit(str) {
  781. layer.open({
  782. type: 2,
  783. content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  784. title: '审核',
  785. area: ['60%', '80%'], //宽高
  786. });
  787. }
  788. //转督办
  789. function zdb(str, row) {
  790. layer.open({
  791. type: 2,
  792. content: "../CommonHtml/superTrunl.html?wid=" + str + "&depId=" + row, //iframe的url,no代表不显示滚动条
  793. title: '督办工单',
  794. area: ['60%', '80%'], //宽高
  795. });
  796. }
  797. //不督办
  798. function ndb(str) {
  799. layer.confirm('确定督办吗?', {
  800. btn: ['是', '否'] //按钮
  801. }, function () {
  802. $.post(huayi.config.callcenter_url + 'WorkOrder/RemindWorkOrder', {
  803. workorderid: str,
  804. type: 1,
  805. state: 2,
  806. "token": $.cookie("token")
  807. }, function (result) {
  808. result = JSON.parse(result);
  809. if (result.state.toLowerCase() == "success") {
  810. layer.msg("操作成功");
  811. //load();
  812. $("#orderlist").bootstrapTable('refresh');
  813. }
  814. })
  815. });
  816. }
  817. //强制结案
  818. function StrongLawsuit(str) {
  819. layer.open({
  820. type: 2,
  821. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  822. title: '诉求单结案',
  823. area: ['60%', '80%'], //宽高
  824. });
  825. }
  826. //回退BackDtail
  827. function BackDtail(str) {
  828. layer.open({
  829. type: 2,
  830. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  831. title: '工单督办',
  832. area: ['60%', '80%'], //宽高
  833. });
  834. }
  835. //查收
  836. function cs(str) {
  837. layer.confirm('确定要查收?', {
  838. btn: ['是', '否'] //按钮
  839. }, function () {
  840. $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
  841. workorderid: str,
  842. token: $.cookie("token")
  843. }, function (result) {
  844. result = JSON.parse(result);
  845. if (result.state.toLowerCase() == "success") {
  846. layer.msg("查收成功");
  847. //load();
  848. $("#orderlist").bootstrapTable('refresh');
  849. }
  850. })
  851. });
  852. }
  853. //收回
  854. function sh(str) {
  855. layer.confirm('确定要回收?', {
  856. btn: ['是', '否'] //按钮
  857. }, function () {
  858. $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
  859. workorderid: str,
  860. token: $.cookie("token")
  861. }, function (result) {
  862. result = JSON.parse(result);
  863. if (result.state.toLowerCase() == "success") {
  864. layer.msg("回收");
  865. //load();
  866. $("#orderlist").bootstrapTable('refresh');
  867. }
  868. })
  869. });
  870. }
  871. //强制回收
  872. function recycles() {
  873. layer.confirm('确定要强制退回吗?', {
  874. btn: ['是', '否'] //按钮
  875. });
  876. }
  877. //退回申请
  878. function th(str) {
  879. layer.open({
  880. type: 2,
  881. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  882. title: '申请退回工单',
  883. area: ['60%', '80%'], //宽高
  884. });
  885. }
  886. //审核退回申请
  887. function shth(str) {
  888. layer.open({
  889. type: 2,
  890. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  891. title: '审核退回申请',
  892. area: ['60%', '80%'], //宽高
  893. });
  894. }
  895. //申请延时
  896. function ys(str) {
  897. layer.open({
  898. type: 2,
  899. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  900. title: '申请延时',
  901. area: ['60%', '80%'], //宽高
  902. });
  903. }
  904. //审核申请延时
  905. function shys(str) {
  906. layer.open({
  907. type: 2,
  908. content: "../CommonHtml/shTime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  909. title: '审核延时申请',
  910. area: ['60%', '80%'], //宽高
  911. });
  912. }
  913. //诉求回访
  914. function hf(str) {
  915. layer.open({
  916. type: 2,
  917. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  918. title: '工单回访',
  919. area: ['60%', '80%'], //宽高
  920. });
  921. }
  922. //重办工单
  923. function cb(str) {
  924. layer.open({
  925. type: 2,
  926. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  927. title: '重办工单',
  928. area: ['60%', '80%'], //宽高
  929. });
  930. }
  931. //提交重办
  932. function bhcb(str) {
  933. //回退BackDtail
  934. layer.open({
  935. type: 2,
  936. content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  937. title: '驳回重办',
  938. area: ['60%', '80%'], //宽高
  939. });
  940. }
  941. //提交重办
  942. function tjcb(str) {
  943. layer.open({
  944. type: 2,
  945. content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  946. title: '提交重办',
  947. area: ['50%', '40%'], //宽高
  948. });
  949. // layer.confirm('确认提交重办吗?', {
  950. // btn: ['是', '否'] //按钮
  951. // }, function () {
  952. // $.post(huayi.config.callcenter_url + 'WorkOrder/SubReloadWorkOrder', {
  953. // ids: str,
  954. // "token": $.cookie("token")
  955. // }, function(result) {
  956. // result = JSON.parse(result);
  957. // if(result.state.toLowerCase() == "success") {
  958. // layer.msg("操作成功");
  959. // //load();
  960. // $("#orderlist").bootstrapTable('refresh');
  961. // }
  962. // })
  963. // });
  964. }
  965. //结案
  966. function Lawsuit(str) {
  967. layer.open({
  968. type: 2,
  969. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  970. title: '诉求单结案',
  971. area: ['60%', '80%'], //宽高
  972. });
  973. }
  974. //上传文件
  975. function upload() {
  976. if (document.getElementById("upFile").files.length > 0) {
  977. var formData = new FormData();
  978. formData.append("upFile", document.getElementById("upFile").files[0]);
  979. formData.append("token", $.cookie("token"));
  980. $.ajax({
  981. url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
  982. type: "POST",
  983. data: formData,
  984. /**
  985. *必须false才会自动加上正确的Content-Type
  986. */
  987. contentType: false,
  988. /**
  989. * 必须false才会避开jQuery对 formdata 的默认处理
  990. * XMLHttpRequest会对 formdata 进行正确的处理
  991. */
  992. processData: false,
  993. success: function (result) {
  994. document.getElementById("upFile").outerHTML = document.getElementById("upFile")
  995. .outerHTML;
  996. $("#upFile").change(function () {
  997. upload();
  998. });
  999. var r = $.parseJSON(result);
  1000. if (r.state.toLowerCase() == "success") {
  1001. $(".fjnr").text(r.data);
  1002. $("#scfj").show();
  1003. }
  1004. }
  1005. });
  1006. } else {
  1007. layer.confirm('请上传文件!', {
  1008. btn: ['确定']
  1009. });
  1010. }
  1011. }
  1012. //来源
  1013. function LY(obj) {
  1014. obj.empty();
  1015. obj.append('<option selected="selected" value="">请选择</option>');
  1016. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  1017. "token": $.cookie("token"),
  1018. id: 1
  1019. }, function (data) {
  1020. if (data.state.toLowerCase() == "success") {
  1021. var content = data.data;
  1022. $(content).each(function (i, n) {
  1023. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  1024. obj);
  1025. })
  1026. }
  1027. })
  1028. }
  1029. //类别
  1030. function LB(obj) {
  1031. obj.empty();
  1032. obj.append('<option selected="selected" value="">请选择</option>');
  1033. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  1034. "token": $.cookie("token"),
  1035. id: 2
  1036. }, function (data) {
  1037. if (data.state.toLowerCase() == "success") {
  1038. var content = data.data;
  1039. $(content).each(function (i, n) {
  1040. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  1041. obj);
  1042. })
  1043. }
  1044. })
  1045. }
  1046. // 主题
  1047. function ZT(obj) {
  1048. obj.empty();
  1049. obj.append('<option selected="selected" value="">请选择</option>');
  1050. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  1051. "token": $.cookie("token"),
  1052. id: 3
  1053. }, function (data) {
  1054. if (data.state.toLowerCase() == "success") {
  1055. var content = data.data;
  1056. $(content).each(function (i, n) {
  1057. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  1058. obj);
  1059. })
  1060. }
  1061. })
  1062. }
  1063. function tree() {
  1064. $.get(huayi.config.callcenter_url + 'Department/GetDeptList', {
  1065. "token": $.cookie("token"),
  1066. // "pid": pid
  1067. }, function (result) {
  1068. result = $.parseJSON(result);
  1069. $.fn.zTree.init($("#addTreeDemo"), setting1, result.data); //实例化树形图
  1070. });
  1071. }
  1072. var setting1 = {
  1073. data: {
  1074. key: {
  1075. name: "F_DeptName"
  1076. },
  1077. simpleData: {
  1078. enable: true,
  1079. idKey: "F_DeptId",
  1080. pIdKey: "F_PartentId",
  1081. rootPId: 0
  1082. }
  1083. },
  1084. callback: {
  1085. onClick: zTreeOnClick
  1086. }
  1087. };
  1088. function zTreeOnClick(event, treeId, treeNode) {
  1089. $('.inps').val(treeNode.F_DeptName);
  1090. $("#PID").val(treeNode.F_DeptId);
  1091. $("#Dpment").val(treeNode.F_DeptId);
  1092. $(".Cleans").show();
  1093. };
  1094. function Close() {
  1095. $(".lyxz").removeClass("cx");
  1096. if ($('audio').length > 0) {
  1097. $('audio')[0].pause();
  1098. }
  1099. }
  1100. </script>
  1101. </body>
  1102. </html>