Açıklama Yok

WorkIsproresult.html 35KB

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