No Description

WorkYSQYS.html 44KB

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