Нет описания

WorkIsproresultMedia.html 50KB

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