Geen omschrijving

LawsuitMarketing.html 54KB

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