Няма описание

LawsuitMedia.html 50KB

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