Brak opisu

WorkXJDWTH.html 46KB

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