Нет описания

Lawsuit.html 49KB

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