Brak opisu

LawsuitMedia.html 48KB

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