Bez popisu

haveAduitMedia.html 47KB

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