Нет описания

WorkDSZBMedia.html 45KB

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