Нет описания

WorkTHBJJ.html 46KB

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