Keine Beschreibung

Lawsuit.html 31KB

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