Brak opisu

haveAduit.html 46KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285
  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="">
  279. 请选择
  280. </option>
  281. <option value="0">新工单</option>
  282. <option value="1">待交办</option>
  283. <option value="10">待审核</option>
  284. <option value="2">待查收</option>
  285. <option value="3">
  286. 退回审核中
  287. </option>
  288. <option value="4">办理中</option>
  289. <option value="5">
  290. 延时审核中
  291. </option>
  292. <option value="6">已办理</option>
  293. <option value="7">已回访</option>
  294. <option value="11">
  295. 重办待交办
  296. </option>
  297. <option value="13">重办驳回</option>
  298. <option value="8">重办中</option>
  299. <option value="9">已结案</option>
  300. </select>
  301. </td> -->
  302. <th>工单来源:</th>
  303. <td>
  304. <select class="select_" id="source"></select>
  305. </td>
  306. </tr>
  307. <tr>
  308. <!-- <th>主题词:</th>
  309. <td>
  310. <select id="keyid" name="" class="select"></select>
  311. </td> -->
  312. <th>来电号码:</th>
  313. <td>
  314. <input type="text" id="tel" placeholder="请输入来电号码" />
  315. </td>
  316. <th>来电人:</th>
  317. <td>
  318. <input type="text" id="name" class="Min-width" autocomplete="off" />
  319. </td>
  320. </tr>
  321. <tr>
  322. <th>处理类型:</th>
  323. <td>
  324. <select class="select_" id="dealtype">
  325. <option value="">请选择</option>
  326. <option value="0">网络转派</option>
  327. <option value="1">当即办理</option>
  328. </select>
  329. </td>
  330. <th>类型:</th>
  331. <td>
  332. <select class="select_" id="type"></select>
  333. </td>
  334. <th>区域:</th>
  335. <td>
  336. <select class="select_" id="sourceAreas"></select>
  337. </td>
  338. <th>承办单位:</th>
  339. <td style="position: relative">
  340. <div class="inpBox">
  341. <input type="text" class="inps" onkeyup="darptSearch()" />
  342. <i class="Cleans fa fa-close"></i>
  343. <i class="xl xl_one"></i>
  344. <div class="addTree xlAdd">
  345. <ul id="addTreeDemo" class="ztree"></ul>
  346. </div>
  347. </div>
  348. <div class="selDpart1">
  349. <ul id="sponsor"></ul>
  350. </div>
  351. </td>
  352. </tr>
  353. <tr>
  354. <th>坐席:</th>
  355. <td>
  356. <select id="ZX" name="select" class="selectpicker show-tick form-control" multiple
  357. data-live-search="true">
  358. <option value="">请选择坐席</option>
  359. </select>
  360. </td>
  361. <th>审核员:</th>
  362. <td>
  363. <select id="yardman" name="select" class="selectpicker show-tick form-control"
  364. multiple data-live-search="true">
  365. <option value="">
  366. 请选择调度员
  367. </option>
  368. </select>
  369. </td>
  370. <td colspan="7" style="text-align: center">
  371. <botton class="btns Seach">搜索</botton>
  372. <botton class="btns Export">导出</botton>
  373. </td>
  374. </tr>
  375. </table>
  376. </div>
  377. </div>
  378. <div>
  379. <div style="width: 100%; padding: 10px">
  380. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams"
  381. data-pagination="true">
  382. <thead>
  383. <tr>
  384. <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">
  385. 工单单号
  386. </th>
  387. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">
  388. 诉求标题
  389. </th>
  390. <th data-field="DeptName" data-align="center">
  391. 承办单位
  392. </th>
  393. <th data-field="OtherDeptName" data-align="center">
  394. 协办单位
  395. </th>
  396. <th data-field="UserName" data-align="center">
  397. 受理人
  398. </th>
  399. <th data-field="F_WorkState" data-align="center" data-formatter="States">
  400. 办理状态
  401. </th>
  402. <th data-field="OverState" data-formatter="OverTime" data-align="center">
  403. 时限
  404. </th>
  405. <th data-field="LimitTime" data-formatter="BanTime" data-align="center">
  406. 办理时限
  407. </th>
  408. <!--<th
  409. data-field="FilePath"
  410. data-formatter="setCode"
  411. data-align="center"
  412. >
  413. 录音
  414. </th>-->
  415. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">
  416. 操作
  417. </th>
  418. </tr>
  419. </thead>
  420. <tbody class="list"></tbody>
  421. </table>
  422. </div>
  423. </div>
  424. </div>
  425. </div>
  426. <!--下载框-->
  427. <div class="t-shade lyxz">
  428. <div class="shade_k">
  429. <div class="shade_title">
  430. <span>录音播放与下载<srong class="cknum"></srong></span>
  431. <span class="setwin gbly"><a>x</a></span>
  432. </div>
  433. <div class="shade_content">
  434. <div class="Ly_box audiojs"></div>
  435. </div>
  436. </div>
  437. </div>
  438. <input type="hidden" id="PID" />
  439. <input type="hidden" id="Dpment" />
  440. </div>
  441. <script src="../js/bootstrap-select.js"></script>
  442. <script src="../js/laydate/laydate.js"></script>
  443. <script src="../My97DatePicker/WdatePicker.js"></script>
  444. <script src="../js/zTree/jquery.ztree.core.js"></script>
  445. <script src="../js/search/screen.js"></script>
  446. <script>
  447. $(document).ready(function () {
  448. var wid = helper.request.queryString("wid");
  449. if (wid) {
  450. $("#tel").val(wid);
  451. load();
  452. }
  453. laydate.render({
  454. elem: "#starttime", //指定元素
  455. range: "~",
  456. });
  457. load();
  458. });
  459. //关闭录音弹出
  460. $(".gbly").click(function () {
  461. $(".lyxz").removeClass("cx");
  462. $("audio")[0].pause();
  463. });
  464. $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
  465. $(".success").removeClass("success"); //去除之前选中的行的,选中样式
  466. $(ele).addClass("success"); //添加当前选中的 success样式用于区别
  467. });
  468. //获取查询信息
  469. function load() {
  470. //坐席
  471. var usercodeID = "";
  472. var usercode_ = $("#ZX").val(); //坐席
  473. if (usercode_ != null) {
  474. $(usercode_).each(function (i, n) {
  475. var obj1 = "";
  476. obj1 = n + ",";
  477. usercodeID += obj1;
  478. });
  479. } else {
  480. usercodeID = "";
  481. }
  482. // 调度员
  483. var ddusercodeID = "";
  484. var ddusercode_ = $("#yardman").val(); //坐席
  485. if (ddusercode_ != null) {
  486. $(ddusercode_).each(function (i, n) {
  487. var obj2 = "";
  488. obj2 = n + ",";
  489. ddusercodeID += obj2;
  490. });
  491. } else {
  492. ddusercodeID = "";
  493. }
  494. //先销毁表格
  495. $("#orderlist").bootstrapTable("destroy");
  496. //初始化表格,动态从服务器加载数据
  497. $("#orderlist").bootstrapTable({
  498. method: "get", //使用get请求到服务器获取数据
  499. url: huayi.config.callcenter_url + "WorkOrder/GetZXDealList", //获取数据的Servlet地址
  500. contentType: "application/x-www-form-urlencoded",
  501. striped: true, //表格显示条纹
  502. pagination: true, //启动分页
  503. pageSize: 10, //每页显示的记录数
  504. pageNumber: 1, //当前第几页
  505. pageList: [10, 20, 50, 100], //记录数可选列表
  506. search: false, //是否启用查询
  507. showColumns: false, //显示下拉框勾选要显示的列
  508. showRefresh: false, //显示刷新按钮
  509. sidePagination: "server", //表示服务端请求
  510. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  511. //设置为limit可以获取limit, offset, search, sort, order
  512. queryParamsType: "undefined",
  513. queryParams: function queryParams(params) {
  514. //设置查询参数
  515. //alert(params.pageNumber)
  516. var param = {
  517. page: params.pageNumber,
  518. pagesize: params.pageSize,
  519. workid: $("#wids").val(),
  520. state: 6, //=工单状态
  521. type: $("#type").val(), //=工单类型
  522. //bigtype: $("#bigtype").val(), //=大类别
  523. //smalltype: $("#smalltype").val(), //=小类别
  524. key: $("#key").val(), //=关键字
  525. tel: $("#tel").val(), //=客户电话
  526. name: $("#name").val(), //=客户名称
  527. usercode: usercodeID, //=坐席工号
  528. ddusercode: ddusercodeID,
  529. keyid: $("#keyid").val(), //=关键词id
  530. source: $("#source").val(), //=来源&
  531. starttime: $("#starttime").val() &&
  532. $("#starttime").val().split(" ~ ")[0], //=开始时间
  533. endtime: $("#starttime").val() &&
  534. $("#starttime").val().split(" ~ ")[1], //=结束时间
  535. deptid: $("#PID").val(),
  536. tobereply: 1,
  537. tab: 0,
  538. type: $("#type").val(),
  539. dealtype: $("#dealtype").val(),
  540. sourcearea: $("#sourceAreas").val(), //区域
  541. token: $.cookie("token"),
  542. };
  543. return param;
  544. },
  545. onLoadSuccess: function (data) {
  546. //加载成功时执行
  547. // layer.msg("加载成功");
  548. //console.log(data);
  549. },
  550. onLoadError: function () {
  551. //加载失败时执行
  552. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  553. },
  554. });
  555. }
  556. //状态
  557. function States(val, row) {
  558. var html = "";
  559. switch (val + "") {
  560. case "0":
  561. html = "新工单";
  562. if (row.F_IsReturn == 1) {
  563. html = "新工单(回退)";
  564. }
  565. break;
  566. case "1":
  567. html = "待交办";
  568. break;
  569. case "2":
  570. html = '<span style="color:#FF0000;">待查收</span>';
  571. break;
  572. case "3":
  573. html = "退回审核中";
  574. break;
  575. case "4":
  576. html = "办理中";
  577. break;
  578. case "5":
  579. html = "延时审核";
  580. break;
  581. case "6":
  582. html = "已办理";
  583. break;
  584. case "7":
  585. html = "已回访";
  586. break;
  587. case "8":
  588. html = "重办中";
  589. break;
  590. case "9":
  591. html = "已结案";
  592. break;
  593. case "10":
  594. html = "待审核";
  595. break;
  596. case "11":
  597. html = "重办待交办";
  598. break;
  599. // case '12':
  600. // html = '待审核';
  601. // break;
  602. case "13":
  603. html = "重办驳回";
  604. break;
  605. }
  606. return html;
  607. }
  608. //音频
  609. function setCode(val) {
  610. if (val) {
  611. return (
  612. '<div class="imgs" style="cursor: pointer;">' +
  613. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' +
  614. val +
  615. '" />' +
  616. "</div>"
  617. );
  618. } else {
  619. return "";
  620. }
  621. }
  622. function View(val, row) {
  623. return '<div class="imgs" ><a class="" index="' + row.CreateUser +
  624. '" onclick= ckxq("' + row.F_WorkOrderId + '") >' + val + '</a></div>';
  625. }
  626. function GetCont(val) {
  627. if (val) {
  628. var str = "<div ";
  629. if (val.length > 10) {
  630. str = str + ' title="' + val + '" ';
  631. val = val.substr(0, 10) + "...";
  632. }
  633. return str + ">" + val + "</div>";
  634. } else {
  635. return "";
  636. }
  637. }
  638. //操作
  639. function Dispose(val, row) {
  640. var Rows = row.Buttons;
  641. var html = "";
  642. for (var i = 0; i < Rows.length; i++) {
  643. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  644. if (html1) {
  645. html1 = html1.replace("data", val);
  646. html1 = html1.replace("isProtect", row.F_IsProtect);
  647. html1 = html1.replace("row", row.F_MainDeptId);
  648. }
  649. bl
  650. html += html1;
  651. }
  652. return html;
  653. }
  654. //查看详情
  655. function ckxq(str) {
  656. layer.open({
  657. type: 2,
  658. // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  659. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  660. title: "工单详情",
  661. area: ["100%", "100%"], //宽高
  662. });
  663. }
  664. //时限
  665. function OverTime(val, row) {
  666. if (val == 1) {
  667. return (
  668. '<div class="" style="cursor: pointer;">' +
  669. '<span class="Greens">' +
  670. row.GapTime +
  671. "</span>" +
  672. "</div>"
  673. );
  674. } else if (val == 2) {
  675. return (
  676. '<div class="" style="cursor: pointer;">' +
  677. '<span class="Yellows">' +
  678. row.GapTime +
  679. "</span>" +
  680. "</div>"
  681. );
  682. } else if (val == 3) {
  683. return (
  684. '<div class="" style="cursor: pointer;">' +
  685. '<span class="Reds">' +
  686. row.GapTime +
  687. "</span>" +
  688. "</div>"
  689. );
  690. }
  691. }
  692. //办理时限
  693. function BanTime(val) {
  694. if (val) {
  695. var time = val.substring(0, val.indexOf(" "));
  696. return (
  697. '<div class="" style="cursor: pointer;">' +
  698. "<span>" +
  699. time +
  700. "</span>" +
  701. "</div>"
  702. );
  703. }
  704. }
  705. //派单
  706. function pd(str) {
  707. layer.open({
  708. type: 2,
  709. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  710. title: "办理工单",
  711. area: ["87%", "80%"], //宽高
  712. });
  713. }
  714. //处理审核
  715. function auditdeal(str) {
  716. layer.open({
  717. type: 2,
  718. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  719. title: "处理审核",
  720. area: ["80%", "80%"], //宽高
  721. });
  722. }
  723. //编辑
  724. function bj(str) {
  725. layer.open({
  726. type: 2,
  727. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  728. title: "编辑工单",
  729. area: ["96%", "80%"], //宽高
  730. });
  731. }
  732. //删除
  733. function move(str) {
  734. layer.confirm(
  735. "确定删除工单?", {
  736. btn: ["是", "否"], //按钮
  737. },
  738. function () {
  739. $.post(
  740. huayi.config.callcenter_url +
  741. "WorkOrder/DelWorkOrder", {
  742. ids: str,
  743. token: $.cookie("token"),
  744. },
  745. function (result) {
  746. result = JSON.parse(result);
  747. if (result.state.toLowerCase() == "success") {
  748. debugger;
  749. layer.msg("删除成功");
  750. $("#orderlist").bootstrapTable("refresh");
  751. }
  752. }
  753. );
  754. }
  755. );
  756. }
  757. //提交
  758. function tj(str) {
  759. layer.confirm(
  760. "确定要提交工单么?", {
  761. btn: ["确定", "取消"], //按钮
  762. },
  763. function () {
  764. //请求后台数据
  765. /*发送请求*/
  766. $.post(
  767. huayi.config.callcenter_url +
  768. "WorkOrder/SubmitWorkOrder", {
  769. ids: str,
  770. token: $.cookie("token"),
  771. },
  772. function (result) {
  773. result = JSON.parse(result);
  774. if (result.state.toLowerCase() == "success") {
  775. layer.msg("提交成功");
  776. $("#orderlist").bootstrapTable("refresh");
  777. //load();
  778. }
  779. }
  780. );
  781. }
  782. );
  783. }
  784. //交办
  785. function jb(str) {
  786. layer.open({
  787. type: 2,
  788. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  789. title: "工单交办",
  790. area: ["87%", "80%"], //宽高
  791. });
  792. }
  793. //领导批示
  794. function lader(str) {
  795. layer.open({
  796. type: 2,
  797. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  798. title: "领导批示",
  799. area: ["60%", "80%"], //宽高
  800. });
  801. }
  802. //市长批示
  803. function city(str) {
  804. layer.open({
  805. type: 2,
  806. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  807. title: "市长批示",
  808. area: ["60%", "80%"], //宽高
  809. });
  810. }
  811. //办理
  812. function bl(str, isProtect) {
  813. console.log("isProtect2222", isProtect);
  814. layer.open({
  815. type: 2,
  816. content: "../CommonHtml/banli.html?wid=" +
  817. str +
  818. "&isProtect=" +
  819. isProtect, //iframe的url,no代表不显示滚动条
  820. title: "办理工单",
  821. area: ["60%", "80%"], //宽高
  822. });
  823. }
  824. //督办
  825. function Supervision(str) {
  826. layer.open({
  827. type: 2,
  828. // content: "../CommonHtml/Supervision_.html?wid=" + str +"&type=1" + "&state=1" + "&pageName=haveAduit", //iframe的url,no代表不显示滚动条
  829. content: "../CommonHtml/Supervision_.html?wid=" + str + "&type=1" +
  830. "&state=1", //iframe的url,no代表不显示滚动条
  831. title: "督办",
  832. area: ["90%", "90%"], //宽高
  833. });
  834. }
  835. //督查
  836. function Supervision_(str) {
  837. layer.open({
  838. type: 2,
  839. content: "../CommonHtml/Supervision_.html?wid=" +
  840. str +
  841. "&type=2", //iframe的url,no代表不显示滚动条
  842. title: "监察",
  843. area: ["60%", "80%"], //宽高
  844. });
  845. }
  846. //审核
  847. function audit(str) {
  848. layer.open({
  849. type: 2,
  850. content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  851. title: "审核",
  852. area: ["60%", "80%"], //宽高
  853. });
  854. }
  855. //转督办
  856. function zdb(str, row) {
  857. layer.open({
  858. type: 2,
  859. content: "../CommonHtml/superTrunl.html?wid=" +
  860. str +
  861. "&depId=" +
  862. row, //iframe的url,no代表不显示滚动条
  863. title: "督办工单",
  864. area: ["60%", "80%"], //宽高
  865. });
  866. }
  867. //不督办
  868. function ndb(str) {
  869. layer.open({
  870. type: 2,
  871. state: 2,
  872. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1' +
  873. '&state=2', //iframe的url,no代表不显示滚动条
  874. title: '督办',
  875. area: ['60%', '80%'], //宽高
  876. });
  877. }
  878. //强制结案
  879. function StrongLawsuit(str) {
  880. layer.open({
  881. type: 2,
  882. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  883. title: "强制结案",
  884. area: ["60%", "80%"], //宽高
  885. });
  886. }
  887. //回退BackDtail
  888. function BackDtail(str) {
  889. layer.open({
  890. type: 2,
  891. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  892. title: "工单督办",
  893. area: ["60%", "80%"], //宽高
  894. });
  895. }
  896. //查收
  897. function cs(str) {
  898. layer.confirm(
  899. "确定要查收?", {
  900. btn: ["是", "否"], //按钮
  901. },
  902. function () {
  903. $.post(
  904. huayi.config.callcenter_url +
  905. "WorkOrder/ReceiveWorkOrder", {
  906. workorderid: str,
  907. token: $.cookie("token"),
  908. },
  909. function (result) {
  910. result = JSON.parse(result);
  911. if (result.state.toLowerCase() == "success") {
  912. layer.msg("查收成功");
  913. //load();
  914. $("#orderlist").bootstrapTable("refresh");
  915. }
  916. }
  917. );
  918. }
  919. );
  920. }
  921. //收回
  922. function sh(str) {
  923. layer.confirm(
  924. "确定要回收?", {
  925. btn: ["是", "否"], //按钮
  926. },
  927. function () {
  928. $.post(
  929. huayi.config.callcenter_url +
  930. "WorkOrder/TakeBackWorkOrder", {
  931. workorderid: str,
  932. token: $.cookie("token"),
  933. },
  934. function (result) {
  935. result = JSON.parse(result);
  936. if (result.state.toLowerCase() == "success") {
  937. layer.msg("回收");
  938. //load();
  939. $("#orderlist").bootstrapTable("refresh");
  940. }
  941. }
  942. );
  943. }
  944. );
  945. }
  946. //强制回收
  947. function recycles() {
  948. layer.confirm("确定要强制退回吗?", {
  949. btn: ["是", "否"], //按钮
  950. });
  951. }
  952. //审核退回申请
  953. function shth(str) {
  954. layer.open({
  955. type: 2,
  956. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  957. title: "审核退回申请",
  958. area: ["60%", "80%"], //宽高
  959. });
  960. }
  961. //申请延时
  962. function ys(str) {
  963. layer.open({
  964. type: 2,
  965. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  966. title: "申请延时",
  967. area: ["60%", "80%"], //宽高
  968. });
  969. }
  970. //审核申请延时
  971. function shys(str) {
  972. layer.open({
  973. type: 2,
  974. content: "../CommonHtml/shTime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  975. title: "审核延时申请",
  976. area: ["60%", "80%"], //宽高
  977. });
  978. }
  979. //工单审核
  980. function hf(str) {
  981. layer.open({
  982. type: 2,
  983. //content: "../CommonHtml/Back.html?wid=" + str, //之前的审核
  984. content: "../CommonHtml/auditBack.html?wid=" + str, //
  985. title: "工单审核",
  986. area: ["60%", "80%"], //宽高
  987. });
  988. }
  989. //重办工单
  990. function cb(str) {
  991. layer.open({
  992. type: 2,
  993. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  994. title: "重办工单",
  995. area: ["60%", "80%"], //宽高
  996. });
  997. }
  998. //提交重办
  999. function bhcb(str) {
  1000. //回退BackDtail
  1001. layer.open({
  1002. type: 2,
  1003. content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1004. title: "驳回重办",
  1005. area: ["60%", "80%"], //宽高
  1006. });
  1007. }
  1008. //提交重办
  1009. function tjcb(str) {
  1010. layer.open({
  1011. type: 2,
  1012. content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1013. title: "提交重办",
  1014. area: ["50%", "40%"], //宽高
  1015. });
  1016. // layer.confirm('确认提交重办吗?', {
  1017. // btn: ['是', '否'] //按钮
  1018. // }, function () {
  1019. // $.post(huayi.config.callcenter_url + 'WorkOrder/SubReloadWorkOrder', {
  1020. // ids: str,
  1021. // "token": $.cookie("token")
  1022. // }, function(result) {
  1023. // result = JSON.parse(result);
  1024. // if(result.state.toLowerCase() == "success") {
  1025. // layer.msg("操作成功");
  1026. // //load();
  1027. // $("#orderlist").bootstrapTable('refresh');
  1028. // }
  1029. // })
  1030. // });
  1031. }
  1032. //结案
  1033. function Lawsuit(str) {
  1034. layer.open({
  1035. type: 2,
  1036. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1037. title: "诉求单结案",
  1038. area: ["60%", "80%"], //宽高
  1039. });
  1040. }
  1041. //退回
  1042. function returnRedo(str) {
  1043. layer.open({
  1044. type: 2,
  1045. content: "../CommonHtml/returnRedo.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1046. title: "退回",
  1047. area: ["50%", "40%"], //宽高
  1048. });
  1049. }
  1050. //退回
  1051. function returnAuditor(str) {
  1052. layer.open({
  1053. type: 2,
  1054. content: "../CommonHtml/returnAuditor.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1055. title: "退回",
  1056. area: ["50%", "40%"], //宽高
  1057. });
  1058. }
  1059. //上传文件
  1060. function upload() {
  1061. if (document.getElementById("upFile").files.length > 0) {
  1062. var formData = new FormData();
  1063. formData.append(
  1064. "upFile",
  1065. document.getElementById("upFile").files[0]
  1066. );
  1067. formData.append("token", $.cookie("token"));
  1068. $.ajax({
  1069. url: huayi.config.callcenter_url +
  1070. "/WorkOrder/UploadFile",
  1071. type: "POST",
  1072. data: formData,
  1073. /**
  1074. *必须false才会自动加上正确的Content-Type
  1075. */
  1076. contentType: false,
  1077. /**
  1078. * 必须false才会避开jQuery对 formdata 的默认处理
  1079. * XMLHttpRequest会对 formdata 进行正确的处理
  1080. */
  1081. processData: false,
  1082. success: function (result) {
  1083. document.getElementById(
  1084. "upFile"
  1085. ).outerHTML = document.getElementById(
  1086. "upFile"
  1087. ).outerHTML;
  1088. $("#upFile").change(function () {
  1089. upload();
  1090. });
  1091. var r = $.parseJSON(result);
  1092. if (r.state.toLowerCase() == "success") {
  1093. $(".fjnr").text(r.data);
  1094. $("#scfj").show();
  1095. }
  1096. },
  1097. });
  1098. } else {
  1099. layer.confirm("请上传文件!", {
  1100. btn: ["确定"],
  1101. });
  1102. }
  1103. }
  1104. //来源
  1105. function LY(obj) {
  1106. obj.empty();
  1107. obj.append(
  1108. '<option selected="selected" value="">请选择</option>'
  1109. );
  1110. $.getJSON(
  1111. huayi.config.callcenter_url +
  1112. "Dictionary/GetDicValueListById", {
  1113. token: $.cookie("token"),
  1114. id: 1,
  1115. },
  1116. function (data) {
  1117. if (data.state.toLowerCase() == "success") {
  1118. var content = data.data;
  1119. $(content).each(function (i, n) {
  1120. $(
  1121. "<option value='" +
  1122. n.F_ValueId +
  1123. "'>" +
  1124. n.F_Value +
  1125. "</option>"
  1126. ).appendTo(obj);
  1127. });
  1128. }
  1129. }
  1130. );
  1131. }
  1132. //类别
  1133. function LB(obj) {
  1134. obj.empty();
  1135. obj.append(
  1136. '<option selected="selected" value="">请选择</option>'
  1137. );
  1138. $.getJSON(
  1139. huayi.config.callcenter_url +
  1140. "Dictionary/GetDicValueListById", {
  1141. token: $.cookie("token"),
  1142. id: 2,
  1143. },
  1144. function (data) {
  1145. if (data.state.toLowerCase() == "success") {
  1146. var content = data.data;
  1147. $(content).each(function (i, n) {
  1148. $(
  1149. "<option value='" +
  1150. n.F_ValueId +
  1151. "'>" +
  1152. n.F_Value +
  1153. "</option>"
  1154. ).appendTo(obj);
  1155. });
  1156. }
  1157. }
  1158. );
  1159. }
  1160. // 主题
  1161. function ZT(obj) {
  1162. obj.empty();
  1163. obj.append(
  1164. '<option selected="selected" value="">请选择</option>'
  1165. );
  1166. $.getJSON(
  1167. huayi.config.callcenter_url +
  1168. "Dictionary/GetDicValueListById", {
  1169. token: $.cookie("token"),
  1170. id: 3,
  1171. },
  1172. function (data) {
  1173. if (data.state.toLowerCase() == "success") {
  1174. var content = data.data;
  1175. $(content).each(function (i, n) {
  1176. $(
  1177. "<option value='" +
  1178. n.F_ValueId +
  1179. "'>" +
  1180. n.F_Value +
  1181. "</option>"
  1182. ).appendTo(obj);
  1183. });
  1184. }
  1185. }
  1186. );
  1187. }
  1188. function tree() {
  1189. $.get(
  1190. huayi.config.callcenter_url + "Department/GetDeptList", {
  1191. token: $.cookie("token"),
  1192. // "pid": pid
  1193. },
  1194. function (result) {
  1195. result = $.parseJSON(result);
  1196. $.fn.zTree.init(
  1197. $("#addTreeDemo"),
  1198. setting1,
  1199. result.data
  1200. ); //实例化树形图
  1201. }
  1202. );
  1203. }
  1204. var setting1 = {
  1205. data: {
  1206. key: {
  1207. name: "F_DeptName",
  1208. },
  1209. simpleData: {
  1210. enable: true,
  1211. idKey: "F_DeptId",
  1212. pIdKey: "F_PartentId",
  1213. rootPId: 0,
  1214. },
  1215. },
  1216. callback: {
  1217. onClick: zTreeOnClick,
  1218. },
  1219. };
  1220. function zTreeOnClick(event, treeId, treeNode) {
  1221. if (treeNode.level >= 1) {
  1222. $(".inps").val(treeNode.F_DeptName);
  1223. $("#PID").val(treeNode.F_DeptId);
  1224. $("#Dpment").val(treeNode.F_DeptId);
  1225. $(".Cleans").show();
  1226. }
  1227. }
  1228. function Close() {
  1229. $(".lyxz").removeClass("cx");
  1230. if ($("audio").length > 0) {
  1231. $("audio")[0].pause();
  1232. }
  1233. }
  1234. </script>
  1235. </body>
  1236. </html>