No Description

WorkIsproresultMedia.html 49KB

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