Нет описания

integratedQuery.html 51KB

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