Ei kuvausta

haveAduitMedia.html 47KB

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