Нет описания

WorkZZBL.html 44KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259
  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 ">导出</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-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: 14, //待处理
  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. var roleCode = $.cookie("code")
  530. if (roleCode == "GLY" || roleCode == "WLDW") {
  531. $(".sendMsg").show()
  532. } else {
  533. $(".sendMsg").hide()
  534. }
  535. },
  536. onLoadError: function () {
  537. //加载失败时执行
  538. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  539. },
  540. });
  541. }
  542. //状态
  543. function States(val, row) {
  544. var html = "";
  545. switch (val + "") {
  546. case "0":
  547. html = "新工单";
  548. if (row.F_IsReturn == 1) {
  549. html = "新工单(回退)";
  550. }
  551. break;
  552. case "1":
  553. html = "待审核";
  554. break;
  555. case "2":
  556. html = '<span style="color:#FF0000;">待查收</span>';
  557. break;
  558. case "3":
  559. html = "退回审核中";
  560. break;
  561. case "4":
  562. html = "办理中";
  563. break;
  564. case "5":
  565. html = "延时审核";
  566. break;
  567. case "6":
  568. html = "待审核";
  569. break;
  570. case "7":
  571. html = "已回访";
  572. break;
  573. case "8":
  574. html = "重办中";
  575. break;
  576. case "9":
  577. html = "已结案";
  578. break;
  579. case "10":
  580. html = "待审核";
  581. break;
  582. case "11":
  583. html = "重办待交办";
  584. break;
  585. case "12":
  586. html = "待审核";
  587. break;
  588. case "13":
  589. html = "待督办";
  590. break;
  591. }
  592. return html;
  593. }
  594. //时限
  595. function OverTime(val, row) {
  596. if (val == 1) {
  597. return (
  598. '<div class="" style="cursor: pointer;">' +
  599. '<span class="Greens">' +
  600. row.GapTime +
  601. "</span>" +
  602. "</div>"
  603. );
  604. } else if (val == 2) {
  605. return (
  606. '<div class="" style="cursor: pointer;">' +
  607. '<span class="Yellows">' +
  608. row.GapTime +
  609. "</span>" +
  610. "</div>"
  611. );
  612. } else if (val == 3) {
  613. return (
  614. '<div class="" style="cursor: pointer;">' +
  615. '<span class="Reds">' +
  616. row.GapTime +
  617. "</span>" +
  618. "</div>"
  619. );
  620. }
  621. }
  622. //办理时限
  623. function BanTime(val) {
  624. if (val) {
  625. var time = val.substring(0, val.indexOf(" "));
  626. return (
  627. '<div class="" style="cursor: pointer;">' +
  628. "<span>" +
  629. time +
  630. "</span>" +
  631. "</div>"
  632. );
  633. }
  634. }
  635. //音频
  636. function setCode(val) {
  637. if (val) {
  638. return (
  639. '<div class="imgs" style="cursor: pointer;">' +
  640. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' +
  641. val +
  642. '" />' +
  643. "</div>"
  644. );
  645. } else {
  646. return "";
  647. }
  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. var html = '<a class="xg sendMsg" onclick="sendMsg(\'' + row.F_WorkOrderId + '\')" title="催办">催办</a>';
  665. for (var i = 0; i < Rows.length; i++) {
  666. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  667. if (html1) {
  668. html1 = html1.replace("data", val);
  669. html1 = html1.replace("isProtect", row.F_IsProtect);
  670. html1 = html1.replace("row", row.F_MainDeptId);
  671. }
  672. html += html1;
  673. }
  674. return html;
  675. }
  676. //催办
  677. function sendMsg(wid) {
  678. layer.confirm('确定催办吗', {
  679. btn: ['确定', '取消']
  680. }, function () {
  681. $.post(huayi.config.callcenter_url + 'WorkOrder/Reminders', {
  682. workorderid: wid,
  683. token: $.cookie("token")
  684. }, function (result) {
  685. result = JSON.parse(result);
  686. if (result.state.toLowerCase() == 'success') {
  687. layer.msg('催办成功')
  688. }
  689. })
  690. })
  691. }
  692. //查看详情
  693. function ckxq(str) {
  694. layer.open({
  695. type: 2,
  696. content: "../CommonHtml/WorkDatil.html?wid=" + str +
  697. "&workOrderType=todo", //iframe的url,no代表不显示滚动条
  698. title: "工单详情",
  699. area: ["100%", "100%"], //宽高
  700. });
  701. }
  702. //编辑
  703. function bj(str) {
  704. layer.open({
  705. type: 2,
  706. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  707. title: "审核工单",
  708. area: ["96%", "80%"], //宽高
  709. });
  710. }
  711. //删除
  712. function move(str) {
  713. layer.confirm(
  714. "确定删除工单?", {
  715. btn: ["是", "否"], //按钮
  716. },
  717. function () {
  718. $.post(
  719. huayi.config.callcenter_url +
  720. "WorkOrder/DelWorkOrder", {
  721. ids: str,
  722. token: $.cookie("token"),
  723. },
  724. function (result) {
  725. result = JSON.parse(result);
  726. if (result.state.toLowerCase() == "success") {
  727. layer.msg("删除成功");
  728. load();
  729. }
  730. }
  731. );
  732. }
  733. );
  734. }
  735. //提交
  736. function tj(str) {
  737. layer.confirm(
  738. "确定要提交工单么?", {
  739. btn: ["确定", "取消"], //按钮
  740. },
  741. function () {
  742. //请求后台数据
  743. /*发送请求*/
  744. $.post(
  745. huayi.config.callcenter_url +
  746. "WorkOrder/SubmitWorkOrder", {
  747. ids: str,
  748. token: $.cookie("token"),
  749. },
  750. function (result) {
  751. result = JSON.parse(result);
  752. if (result.state.toLowerCase() == "success") {
  753. layer.msg("提交成功");
  754. load();
  755. }
  756. }
  757. );
  758. }
  759. );
  760. }
  761. //交办
  762. function jb(str) {
  763. layer.open({
  764. type: 2,
  765. content: "../CommonHtml/JiaoBan.html?wid=" + str, //iframe的url,no代表不显示滚动条
  766. title: "工单交办",
  767. area: ["87%", "80%"], //宽高
  768. });
  769. }
  770. //领导批示
  771. function lader(str) {
  772. layer.open({
  773. type: 2,
  774. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  775. title: "领导批示",
  776. area: ["60%", "80%"], //宽高
  777. });
  778. }
  779. //市长批示
  780. function city(str) {
  781. layer.open({
  782. type: 2,
  783. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  784. title: "领导批示",
  785. area: ["60%", "80%"], //宽高
  786. });
  787. }
  788. //办理
  789. function bl(str, isProtect) {
  790. layer.open({
  791. type: 2,
  792. content: "../CommonHtml/banli.html?wid=" +
  793. str +
  794. "&isProtect=" +
  795. isProtect, //iframe的url,no代表不显示滚动条
  796. title: "办理工单",
  797. area: ["60%", "80%"], //宽高
  798. });
  799. }
  800. //派单
  801. function pd(str) {
  802. layer.open({
  803. type: 2,
  804. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  805. title: "派单",
  806. area: ["87%", "80%"], //宽高
  807. });
  808. }
  809. //督办
  810. function Supervision(str) {
  811. layer.open({
  812. type: 2,
  813. content: "../CommonHtml/Supervision_.html?wid=" +
  814. str +
  815. "&type=1", //iframe的url,no代表不显示滚动条
  816. title: "督办",
  817. area: ["60%", "80%"], //宽高
  818. });
  819. }
  820. //督查
  821. function Supervision_(str) {
  822. layer.open({
  823. type: 2,
  824. content: "../CommonHtml/Supervision_.html?wid=" +
  825. str +
  826. "&type=2", //iframe的url,no代表不显示滚动条
  827. title: "监察",
  828. area: ["60%", "80%"], //宽高
  829. });
  830. }
  831. //强制结案
  832. function StrongLawsuit(str) {
  833. layer.open({
  834. type: 2,
  835. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  836. title: "强制结案",
  837. area: ["60%", "80%"], //宽高
  838. });
  839. }
  840. //回退BackDtail
  841. function BackDtail(str) {
  842. layer.open({
  843. type: 2,
  844. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  845. title: "工单回退",
  846. area: ["60%", "80%"], //宽高
  847. });
  848. }
  849. //查收
  850. function cs(str) {
  851. $.post(
  852. huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
  853. workorderid: str,
  854. token: $.cookie("token"),
  855. },
  856. function (result) {
  857. result = JSON.parse(result);
  858. if (result.state.toLowerCase() == "success") {
  859. layer.msg("查收成功");
  860. load();
  861. }
  862. }
  863. );
  864. layer.open({
  865. type: 2,
  866. content: "../CommonHtml/WorkDatil.html?wid=" + str + "&check=check", //iframe的url,no代表不显示滚动条
  867. title: "工单详情",
  868. area: ["100%", "100%"], //宽高
  869. });
  870. // layer.confirm(
  871. // "确定要查收?",
  872. // {
  873. // btn: ["是", "否"], //按钮
  874. // },
  875. // function () {}
  876. // );
  877. }
  878. //收回
  879. function sh(str) {
  880. layer.confirm(
  881. "确定要回收?", {
  882. btn: ["是", "否"], //按钮
  883. },
  884. function () {
  885. $.post(
  886. huayi.config.callcenter_url +
  887. "WorkOrder/TakeBackWorkOrder", {
  888. workorderid: str,
  889. token: $.cookie("token"),
  890. },
  891. function (result) {
  892. result = JSON.parse(result);
  893. if (result.state.toLowerCase() == "success") {
  894. layer.msg("回收");
  895. load();
  896. }
  897. }
  898. );
  899. }
  900. );
  901. }
  902. //撤回
  903. function withdraw(str) {
  904. layer.confirm(
  905. "确定要撤回吗?", {
  906. btn: ["是", "否"], //按钮
  907. },
  908. function () {
  909. $.post(
  910. huayi.config.callcenter_url +
  911. "WorkOrder/WithdrawWorkOrder", {
  912. workorderid: str,
  913. token: $.cookie("token"),
  914. },
  915. function (result) {
  916. result = JSON.parse(result);
  917. if (result.state.toLowerCase() == "success") {
  918. layer.msg("撤回成功");
  919. load();
  920. }
  921. }
  922. );
  923. }
  924. );
  925. }
  926. //退回申请
  927. function th(str) {
  928. layer.open({
  929. type: 2,
  930. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  931. title: "申请退回工单",
  932. area: ["60%", "80%"], //宽高
  933. });
  934. }
  935. //审核退回申请
  936. function shth(str) {
  937. layer.open({
  938. type: 2,
  939. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  940. title: "审核退回申请",
  941. area: ["60%", "80%"], //宽高
  942. });
  943. }
  944. //办理
  945. // function th(str) {
  946. // layer.open({
  947. // type: 2,
  948. // content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  949. // title: '办理工单',
  950. // area: ['35%', '30%'], //宽高
  951. // });
  952. // }
  953. //处理审核
  954. function auditdeal(str) {
  955. layer.open({
  956. type: 2,
  957. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  958. title: "处理审核",
  959. area: ["80%", "80%"], //宽高
  960. });
  961. }
  962. //转督办
  963. function zdb(str) {
  964. layer.confirm(
  965. "确定督办吗?", {
  966. btn: ["是", "否"], //按钮
  967. },
  968. function () {
  969. $.post(
  970. huayi.config.callcenter_url +
  971. "WorkOrder/RemindWorkOrder", {
  972. workorderid: str,
  973. type: 1,
  974. state: 0,
  975. token: $.cookie("token"),
  976. },
  977. function (result) {
  978. result = JSON.parse(result);
  979. if (result.state.toLowerCase() == "success") {
  980. layer.msg("操作成功");
  981. load();
  982. }
  983. }
  984. );
  985. }
  986. );
  987. }
  988. //申请延时
  989. function ys(str) {
  990. layer.open({
  991. type: 2,
  992. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  993. title: "申请延时",
  994. area: ["60%", "80%"], //宽高
  995. });
  996. }
  997. //审核申请延时
  998. function shys(str) {
  999. layer.open({
  1000. type: 2,
  1001. content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1002. title: "审核延时申请",
  1003. area: ["60%", "80%"], //宽高
  1004. });
  1005. }
  1006. //诉求回访
  1007. function hf(str) {
  1008. layer.open({
  1009. type: 2,
  1010. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1011. title: "工单回访",
  1012. area: ["60%", "80%"], //宽高
  1013. });
  1014. }
  1015. //重办工单
  1016. function cb(str) {
  1017. layer.open({
  1018. type: 2,
  1019. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1020. title: "重办工单",
  1021. area: ["60%", "80%"], //宽高
  1022. });
  1023. }
  1024. //结案
  1025. function Lawsuit(str) {
  1026. layer.open({
  1027. type: 2,
  1028. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1029. title: "诉求单结案",
  1030. area: ["60%", "80%"], //宽高
  1031. });
  1032. }
  1033. $(".Appeal").click(function () {
  1034. layer.open({
  1035. type: 2,
  1036. content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
  1037. title: "新增诉求",
  1038. area: ["85%", "80%"], //宽高
  1039. });
  1040. });
  1041. //上传文件
  1042. function upload() {
  1043. if (document.getElementById("upFile").files.length > 0) {
  1044. var formData = new FormData();
  1045. formData.append(
  1046. "upFile",
  1047. document.getElementById("upFile").files[0]
  1048. );
  1049. formData.append("token", $.cookie("token"));
  1050. $.ajax({
  1051. url: huayi.config.callcenter_url +
  1052. "/WorkOrder/UploadFile",
  1053. type: "POST",
  1054. data: formData,
  1055. /**
  1056. *必须false才会自动加上正确的Content-Type
  1057. */
  1058. contentType: false,
  1059. /**
  1060. * 必须false才会避开jQuery对 formdata 的默认处理
  1061. * XMLHttpRequest会对 formdata 进行正确的处理
  1062. */
  1063. processData: false,
  1064. success: function (result) {
  1065. document.getElementById(
  1066. "upFile"
  1067. ).outerHTML = document.getElementById(
  1068. "upFile"
  1069. ).outerHTML;
  1070. $("#upFile").change(function () {
  1071. upload();
  1072. });
  1073. var r = $.parseJSON(result);
  1074. if (r.state.toLowerCase() == "success") {
  1075. $(".fjnr").text(r.data);
  1076. $("#scfj").show();
  1077. }
  1078. },
  1079. });
  1080. } else {
  1081. layer.confirm("请上传文件!", {
  1082. btn: ["确定"],
  1083. });
  1084. }
  1085. }
  1086. //来源
  1087. function LY(obj) {
  1088. obj.empty();
  1089. obj.append(
  1090. '<option selected="selected" value="">请选择</option>'
  1091. );
  1092. $.getJSON(
  1093. huayi.config.callcenter_url +
  1094. "Dictionary/GetDicValueListById", {
  1095. token: $.cookie("token"),
  1096. id: 1,
  1097. },
  1098. function (data) {
  1099. if (data.state.toLowerCase() == "success") {
  1100. var content = data.data;
  1101. $(content).each(function (i, n) {
  1102. $(
  1103. "<option value='" +
  1104. n.F_ValueId +
  1105. "'>" +
  1106. n.F_Value +
  1107. "</option>"
  1108. ).appendTo(obj);
  1109. });
  1110. }
  1111. }
  1112. );
  1113. }
  1114. //类别
  1115. function LB(obj) {
  1116. obj.empty();
  1117. obj.append(
  1118. '<option selected="selected" value="">请选择</option>'
  1119. );
  1120. $.getJSON(
  1121. huayi.config.callcenter_url +
  1122. "Dictionary/GetDicValueListById", {
  1123. token: $.cookie("token"),
  1124. id: 2,
  1125. },
  1126. function (data) {
  1127. if (data.state.toLowerCase() == "success") {
  1128. var content = data.data;
  1129. $(content).each(function (i, n) {
  1130. $(
  1131. "<option value='" +
  1132. n.F_ValueId +
  1133. "'>" +
  1134. n.F_Value +
  1135. "</option>"
  1136. ).appendTo(obj);
  1137. });
  1138. }
  1139. }
  1140. );
  1141. }
  1142. // 主题
  1143. function ZT(obj) {
  1144. obj.empty();
  1145. obj.append(
  1146. '<option selected="selected" value="">请选择</option>'
  1147. );
  1148. $.getJSON(
  1149. huayi.config.callcenter_url +
  1150. "Dictionary/GetDicValueListById", {
  1151. token: $.cookie("token"),
  1152. id: 3,
  1153. },
  1154. function (data) {
  1155. if (data.state.toLowerCase() == "success") {
  1156. var content = data.data;
  1157. $(content).each(function (i, n) {
  1158. $(
  1159. "<option value='" +
  1160. n.F_ValueId +
  1161. "'>" +
  1162. n.F_Value +
  1163. "</option>"
  1164. ).appendTo(obj);
  1165. });
  1166. }
  1167. }
  1168. );
  1169. }
  1170. function tree() {
  1171. $.get(
  1172. huayi.config.callcenter_url + "Department/GetDeptList", {
  1173. token: $.cookie("token"),
  1174. // "pid": pid
  1175. },
  1176. function (result) {
  1177. result = $.parseJSON(result);
  1178. $.fn.zTree.init(
  1179. $("#addTreeDemo"),
  1180. setting1,
  1181. result.data
  1182. ); //实例化树形图
  1183. }
  1184. );
  1185. }
  1186. var setting1 = {
  1187. data: {
  1188. key: {
  1189. name: "F_DeptName",
  1190. },
  1191. simpleData: {
  1192. enable: true,
  1193. idKey: "F_DeptId",
  1194. pIdKey: "F_PartentId",
  1195. rootPId: 0,
  1196. },
  1197. },
  1198. callback: {
  1199. onClick: zTreeOnClick,
  1200. },
  1201. };
  1202. function zTreeOnClick(event, treeId, treeNode) {
  1203. if (treeNode.level >= 2) {
  1204. $(".inps").val(treeNode.F_DeptName);
  1205. $("#PID").val(treeNode.F_DeptId);
  1206. $("#Dpment").val(treeNode.F_DeptName);
  1207. $(".Cleans").show();
  1208. }
  1209. }
  1210. </script>
  1211. </body>
  1212. </html>