Нет описания

LeaderDCLMedia.html 45KB

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