Keine Beschreibung

Lawsuit.html 48KB

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