Açıklama Yok

LawsuitMedia.html 50KB

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