商丘12345 前端

Lawsuit.html 41KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127
  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. position: absolute;
  91. background-color: rgb(255, 255, 255);
  92. box-shadow: rgba(0, 0, 0, 0.298039) 1px 1px 50px;
  93. margin: 20% auto;
  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. .inpBox {
  134. border: 1px solid #cccccc;
  135. height: 31px;
  136. width: 220px;
  137. display: inline-block;
  138. position: relative;
  139. vertical-align: middle;
  140. position: absolute;
  141. left: 0px;
  142. top: 0px;
  143. z-index: 111;
  144. }
  145. .selDpart1{
  146. position: absolute;
  147. left: 0px;
  148. top: 30px;
  149. z-index: 11111;
  150. width: 220px;
  151. line-height: 30px;
  152. background: #FFFFFF;
  153. display: none;
  154. }
  155. #sponsor{
  156. width: 218px;
  157. border: 1px solid #00a1cb;
  158. margin: 0;
  159. padding: 0;
  160. list-style: none;
  161. max-height: 212px;
  162. overflow-x: hidden;
  163. overflow-y: scroll;
  164. }
  165. #sponsor li{
  166. margin: 0;
  167. padding-left: 10px;
  168. width: 220px;
  169. height: 30px;
  170. line-height: 30px;
  171. list-style: none;
  172. }
  173. #sponsor li:hover{
  174. background: #00a1cb;
  175. }
  176. .addTree {
  177. background: #fff;
  178. position: absolute;
  179. width: 100%;
  180. border: 1px solid darkgrey;
  181. right: 0;
  182. top: 29px;
  183. display: none;
  184. z-index: 222;
  185. }
  186. .xl {
  187. display: inline-block;
  188. background: url(../../img/dropDown.png) no-repeat;
  189. height: 100%;
  190. background-position: center center;
  191. width: 20px;
  192. position: absolute;
  193. right: 0;
  194. top: 0px;
  195. /* background-color: #f7bc8b; */
  196. cursor: pointer;
  197. }
  198. .ztree li span {
  199. border: none;
  200. padding: 0;
  201. }
  202. .inps {
  203. width: 217px;
  204. height: 29px;
  205. outline: none;
  206. border: 0;
  207. border-image-width: 0;
  208. padding: 0;
  209. padding-left: 3px;
  210. }
  211. .xl {
  212. display: inline-block;
  213. background: url(../img/dropDown.png) no-repeat;
  214. height: 100%;
  215. background-position: center center;
  216. width: 20px;
  217. position: absolute;
  218. right: 0;
  219. top: 0px;
  220. /* background-color: #f7bc8b; */
  221. cursor: pointer;
  222. }
  223. .Cleans {
  224. display: inline-block;
  225. width: 20px;
  226. position: absolute;
  227. right: 21px;
  228. top: 8px;
  229. display: none;
  230. }
  231. .Min-width {
  232. width: 150px;
  233. }
  234. .btn-default{
  235. background: #FFFFFF;
  236. color: #000000;
  237. }
  238. </style>
  239. </head>
  240. <body class="gray-bg">
  241. <div class="wrapper wrapper-content animated fadeInRight">
  242. <div class="daoHang clearfix">
  243. <div class="dhLeft">
  244. <sapn>
  245. <i class="syIcon"></i>位置:
  246. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  247. <a href="javaScript:;">工单处理</a>&gt;
  248. <a class="nowPosition">查询工单</a>
  249. </sapn>
  250. </div>
  251. <div class="dhRight">
  252. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  253. </div>
  254. </div>
  255. <div style="padding: 10px;" class="tj_content clearFix">
  256. <div style="padding: 10px;" class="tj_content clearFix">
  257. <div>
  258. <span>【搜索信息】</span>
  259. <div class="box_content">
  260. <table id="sqzx" style="width: 100%;" border="0" cellspacing="0" cellpadding="0">
  261. <tr>
  262. <th>诉求标题:</th>
  263. <td>
  264. <input type="text" placeholder="输入关键字" id="key" class="Min-width" />
  265. </td>
  266. <th>工单号:</th>
  267. <td>
  268. <input type="text" placeholder="输入工单号" id="wids" class="Min-width" />
  269. </td>
  270. <th>时间:</th>
  271. <td >
  272. <input type="text" id="starttime" class="" placeholder="请选择时间" style="height: 32px;" />
  273. </td>
  274. <th>工单状态:</th>
  275. <td>
  276. <select name="" id="state" class="select">
  277. <option selected="selected" value="">请选择</option>
  278. <option value="0">新工单</option>
  279. <option value="1">待交办</option>
  280. <option value="10">待审核</option>
  281. <option value="2">待查收</option>
  282. <option value="3">退回审核中</option>
  283. <option value="4">办理中</option>
  284. <option value="5">延时审核中</option>
  285. <option value="6">已办理</option>
  286. <option value="7">已回访</option>
  287. <option value="11">重办待交办</option>
  288. <option value="13">重办驳回 </option>
  289. <option value="8">重办中</option>
  290. <option value="9">已结案</option>
  291. </select>
  292. </td>
  293. </tr>
  294. <tr>
  295. <th>工单来源:</th>
  296. <td>
  297. <select class="select_" id="source"></select>
  298. </td>
  299. <th>主题词:</th>
  300. <td>
  301. <select id="keyid" name="" class="select"></select>
  302. </td>
  303. <th>投诉电话:</th>
  304. <td>
  305. <input type="text" id="tel" placeholder="请输入投诉电话" />
  306. </td>
  307. <th>投诉人:</th>
  308. <td>
  309. <input type="text" id="name" class="Min-width" autocomplete="off" />
  310. </td>
  311. </tr>
  312. <tr>
  313. <th>处理类型:</th>
  314. <td>
  315. <select class="select_" id="dealtype">
  316. <option value="">请选择</option>
  317. <option value="0">网络转派</option>
  318. <option value="1">当即办理</option>
  319. </select>
  320. </td>
  321. <th>类型:</th>
  322. <td>
  323. <select class="select_" id="type"></select>
  324. </td>
  325. <th>区域:</th>
  326. <td>
  327. <select class="select_" id="sourceAreas"></select>
  328. </td>
  329. <th>主办单位:</th>
  330. <td style="position: relative;">
  331. <div class="inpBox">
  332. <input type="text" class="inps" onkeyup="darptSearch()"/>
  333. <i class="Cleans fa fa-close"></i>
  334. <i class="xl xl_one"></i>
  335. <div class="addTree xlAdd">
  336. <ul id="addTreeDemo" class="ztree"></ul>
  337. </div>
  338. </div>
  339. <div class="selDpart1">
  340. <ul id="sponsor">
  341. </ul>
  342. </div>
  343. </td>
  344. </tr>
  345. <tr>
  346. <th>坐席:</th>
  347. <td>
  348. <select id="ZX" name="select" class="selectpicker show-tick form-control" multiple data-live-search="true">
  349. <option value="">请选择坐席</option>
  350. </select>
  351. </td>
  352. <th>调度员:</th>
  353. <td>
  354. <select id="yardman" name="select" class="selectpicker show-tick form-control" multiple data-live-search="true">
  355. <option value="">请选择调度员</option>
  356. </select>
  357. </td>
  358. <td colspan="7" style="text-align: center;" >
  359. <botton class="btns Seach">搜索</botton>
  360. <botton class="btns Export">导出</botton>
  361. </td>
  362. </tr>
  363. </table>
  364. </div>
  365. </div>
  366. <div>
  367. <div style="width: 100%;padding: 10px;">
  368. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  369. <thead>
  370. <tr>
  371. <th data-field="F_WorkOrderId" data-align="center">工单单号</th>
  372. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">诉求标题</th>
  373. <th data-field="DeptName" data-align="center">主办单位</th>
  374. <th data-field="OtherDeptName" data-align="center">协办单位</th>
  375. <th data-field="UserName" data-align="center">受理人</th>
  376. <th data-field="F_WorkState" data-align="center" data-formatter="States">办理状态</th>
  377. <th data-field="OverState" data-formatter="OverTime" data-align="center">时限</th>
  378. <th data-field="LimitTime" data-formatter="BanTime" data-align="center">办理时限</th>
  379. <th data-field="FilePath" data-formatter="setCode" data-align="center">录音</th>
  380. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">操作</th>
  381. </tr>
  382. </thead>
  383. <tbody class="list"></tbody>
  384. </table>
  385. </div>
  386. </div>
  387. </div>
  388. </div>
  389. <!--下载框-->
  390. <div class="t-shade lyxz">
  391. <div class="shade_k">
  392. <div class="shade_title">
  393. <span>录音播放与下载<srong class="cknum"></srong></span>
  394. <span class="setwin gbly"><a>x</a></span>
  395. </div>
  396. <div class="shade_content">
  397. <div class="Ly_box audiojs">
  398. </div>
  399. </div>
  400. </div>
  401. </div>
  402. <input type="hidden" id="PID" />
  403. <input type="hidden" id="Dpment" />
  404. </div>
  405. <script src="../js/bootstrap-select.js"></script>
  406. <script src="../js/laydate/laydate.js"></script>
  407. <script src="../My97DatePicker/WdatePicker.js"></script>
  408. <script src="../js/zTree/jquery.ztree.core.js"></script>
  409. <script src="../js/search/screen.js"></script>
  410. <script>
  411. $(document).ready(function () {
  412. var wid = helper.request.queryString("wid");
  413. if (wid) {
  414. $('#tel').val(wid);
  415. load();
  416. }
  417. laydate.render({
  418. elem: '#starttime' //指定元素
  419. ,range:'~'
  420. });
  421. load();
  422. });
  423. //关闭录音弹出
  424. $(".gbly").click(function () {
  425. $(".lyxz").removeClass("cx");
  426. $('audio')[0].pause();
  427. });
  428. $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
  429. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  430. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  431. });
  432. //获取查询信息
  433. function load() {
  434. //坐席
  435. var usercodeID="";
  436. var usercode_=$("#ZX").val(); //坐席
  437. if (usercode_!=null) {
  438. $(usercode_).each(function (i, n) {
  439. var obj1='';
  440. obj1= n+",";
  441. usercodeID +=obj1;
  442. })
  443. }else{
  444. usercodeID=""
  445. }
  446. // 调度员
  447. var ddusercodeID="";
  448. var ddusercode_=$("#yardman").val(); //坐席
  449. if (ddusercode_!=null) {
  450. $(ddusercode_).each(function (i, n) {
  451. var obj2='';
  452. obj2= n+",";
  453. ddusercodeID +=obj2;
  454. })
  455. }else{
  456. ddusercodeID=""
  457. }
  458. //先销毁表格
  459. $('#orderlist').bootstrapTable('destroy');
  460. //初始化表格,动态从服务器加载数据
  461. $("#orderlist").bootstrapTable({
  462. method: "get", //使用get请求到服务器获取数据
  463. url: huayi.config.callcenter_url + "WorkOrder/GetList", //获取数据的Servlet地址
  464. contentType: "application/x-www-form-urlencoded",
  465. striped: true, //表格显示条纹
  466. pagination: true, //启动分页
  467. pageSize: 10, //每页显示的记录数
  468. pageNumber: 1, //当前第几页
  469. pageList: [10, 20, 50, 100], //记录数可选列表
  470. search: false, //是否启用查询
  471. showColumns: false, //显示下拉框勾选要显示的列
  472. showRefresh: false, //显示刷新按钮
  473. sidePagination: "server", //表示服务端请求
  474. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  475. //设置为limit可以获取limit, offset, search, sort, order
  476. queryParamsType: "undefined",
  477. queryParams: function queryParams(params) { //设置查询参数
  478. //alert(params.pageNumber)
  479. var param = {
  480. page: params.pageNumber,
  481. pagesize: params.pageSize,
  482. workid: $("#wids").val(),
  483. state: $("#state").val(), //=工单状态
  484. type: $("#type").val(), //=工单类型
  485. //bigtype: $("#bigtype").val(), //=大类别
  486. //smalltype: $("#smalltype").val(), //=小类别
  487. key: $("#key").val(), //=关键字
  488. tel: $("#tel").val(), //=客户电话
  489. name: $("#name").val(), //=客户名称
  490. usercode: usercodeID, //=坐席工号
  491. ddusercode: ddusercodeID,
  492. keyid: $("#keyid").val(), //=关键词id
  493. source: $("#source").val(), //=来源&
  494. starttime: $('#starttime').val() && $('#starttime').val().split(' ~ ')[0], //=开始时间
  495. endtime: $('#starttime').val() && $('#starttime').val().split(' ~ ')[1], //=结束时间
  496. deptid: $("#PID").val(),
  497. type: $("#type").val(),
  498. dealtype: $("#dealtype").val(),
  499. sourcearea:$('#sourceAreas').val(),//区域
  500. token: $.cookie("token")
  501. };
  502. return param;
  503. },
  504. onLoadSuccess: function (data) { //加载成功时执行
  505. // layer.msg("加载成功");
  506. //console.log(data);
  507. },
  508. onLoadError: function () { //加载失败时执行
  509. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  510. }
  511. });
  512. }
  513. //状态
  514. function States(val, row) {
  515. var html = '';
  516. switch (val + '') {
  517. case '0':
  518. html = '新工单';
  519. if (row.F_IsReturn == 1) {
  520. html = '新工单(回退)';
  521. }
  522. break;
  523. case '1':
  524. html = '待交办';
  525. break;
  526. case '2':
  527. html = '待查收';
  528. break;
  529. case '3':
  530. html = '退回审核中';
  531. break;
  532. case '4':
  533. html = '办理中';
  534. break;
  535. case '5':
  536. html = '延时审核';
  537. break;
  538. case '6':
  539. html = '已办理';
  540. break;
  541. case '7':
  542. html = '已回访';
  543. break;
  544. case '8':
  545. html = '重办中';
  546. break;
  547. case '9':
  548. html = '已结案';
  549. break;
  550. case '10':
  551. html = '待审核';
  552. break;
  553. case '11':
  554. html = '重办待交办';
  555. break;
  556. // case '12':
  557. // html = '待审核';
  558. // break;
  559. case '13':
  560. html = '重办驳回';
  561. break;
  562. }
  563. return html;
  564. }
  565. //音频
  566. function setCode(val) {
  567. if (val) {
  568. return '<div class="imgs" style="cursor: pointer;">' +
  569. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' + val + '" />' +
  570. '</div>';
  571. } else {
  572. return '';
  573. }
  574. }
  575. function GetCont(val) {
  576. if (val) {
  577. var str = '<div '
  578. if (val.length > 10) {
  579. str = str + ' title="' + val + '" ';
  580. val = val.substr(0, 10) + "...";
  581. }
  582. return str + '>' + val + '</div>';
  583. } else {
  584. return '';
  585. }
  586. }
  587. //操作
  588. function Dispose(val, row) {
  589. var Rows = row.Buttons;
  590. var html = '';
  591. for (var i = 0; i < Rows.length; i++) {
  592. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  593. if (html1) {
  594. html1 = html1.replace("data", val);
  595. html1 = html1.replace("isProtect", row.F_IsProtect);
  596. }
  597. html += html1;
  598. }
  599. return html;
  600. }
  601. //查看详情
  602. function ckxq(str) {
  603. layer.open({
  604. type: 2,
  605. // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  606. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  607. title: '工单详情',
  608. area: ['87%', '80%'], //宽高
  609. });
  610. }
  611. //时限
  612. function OverTime(val, row) {
  613. if (val == 1) {
  614. return '<div class="" style="cursor: pointer;">' +
  615. '<span class="Greens">' + row.GapTime + '</span>' +
  616. '</div>';
  617. } else if (val == 2) {
  618. return '<div class="" style="cursor: pointer;">' +
  619. '<span class="Yellows">' + row.GapTime + '</span>' +
  620. '</div>';
  621. } else if (val == 3) {
  622. return '<div class="" style="cursor: pointer;">' +
  623. '<span class="Reds">' + row.GapTime + '</span>' +
  624. '</div>';
  625. }
  626. }
  627. //办理时限
  628. function BanTime(val) {
  629. if (val) {
  630. var time = val.substring(0, val.indexOf(' '));
  631. return '<div class="" style="cursor: pointer;">' +
  632. '<span>' + time + '</span>' +
  633. '</div>';
  634. }
  635. }
  636. //派单
  637. function pd(str) {
  638. layer.open({
  639. type: 2,
  640. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  641. title: '办理工单',
  642. area: ['87%', '80%'], //宽高
  643. });
  644. }
  645. //处理审核
  646. function auditdeal(str) {
  647. layer.open({
  648. type: 2,
  649. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  650. title: '处理审核',
  651. area: ['80%', '80%'], //宽高
  652. });
  653. }
  654. //编辑
  655. function bj(str) {
  656. layer.open({
  657. type: 2,
  658. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  659. title: '编辑工单',
  660. area: ['96%', '80%'], //宽高
  661. });
  662. }
  663. //删除
  664. function move(str) {
  665. layer.confirm('确定删除工单?', {
  666. btn: ['是', '否'] //按钮
  667. }, function () {
  668. $.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", {
  669. ids: str,
  670. token: $.cookie("token")
  671. }, function (result) {
  672. result = JSON.parse(result);
  673. if (result.state.toLowerCase() == "success") {
  674. alert(str)
  675. debugger
  676. layer.msg("删除成功");
  677. $("#orderlist").bootstrapTable('refresh');
  678. }
  679. })
  680. });
  681. }
  682. //提交
  683. function tj(str) {
  684. layer.confirm('确定要提交工单么?', {
  685. btn: ['确定', '取消'] //按钮
  686. }, function () {
  687. //请求后台数据
  688. /*发送请求*/
  689. $.post(huayi.config.callcenter_url + "WorkOrder/SubmitWorkOrder", {
  690. ids: str,
  691. token: $.cookie("token")
  692. }, function (result) {
  693. result = JSON.parse(result);
  694. if (result.state.toLowerCase() == "success") {
  695. layer.msg("提交成功");
  696. $("#orderlist").bootstrapTable('refresh');
  697. //load();
  698. }
  699. })
  700. });
  701. }
  702. //交办
  703. function jb(str) {
  704. layer.open({
  705. type: 2,
  706. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  707. title: '工单交办',
  708. area: ['87%', '80%'], //宽高
  709. });
  710. }
  711. //领导批示
  712. function lader(str) {
  713. layer.open({
  714. type: 2,
  715. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  716. title: '领导批示',
  717. area: ['60%', '80%'], //宽高
  718. });
  719. }
  720. //市长批示
  721. function city(str) {
  722. layer.open({
  723. type: 2,
  724. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  725. title: '市长批示',
  726. area: ['60%', '80%'], //宽高
  727. });
  728. }
  729. //办理
  730. function bl(str, isProtect) {
  731. console.log("isProtect2222",isProtect)
  732. layer.open({
  733. type: 2,
  734. content: "../CommonHtml/banli.html?wid=" + str + "&isProtect=" + isProtect, //iframe的url,no代表不显示滚动条
  735. title: '办理工单',
  736. area: ['60%', '80%'], //宽高
  737. });
  738. }
  739. //督办
  740. function Supervision(str) {
  741. layer.open({
  742. type: 2,
  743. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1', //iframe的url,no代表不显示滚动条
  744. title: '督办',
  745. area: ['60%', '80%'], //宽高
  746. });
  747. }
  748. //督查
  749. function Supervision_(str) {
  750. layer.open({
  751. type: 2,
  752. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
  753. title: '监察',
  754. area: ['60%', '80%'], //宽高
  755. });
  756. }
  757. //审核
  758. function audit(str) {
  759. layer.open({
  760. type: 2,
  761. content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  762. title: '审核',
  763. area: ['60%', '80%'], //宽高
  764. });
  765. }
  766. //转督办
  767. function zdb(str) {
  768. layer.confirm('确定督办吗?', {
  769. btn: ['是', '否'] //按钮
  770. }, function () {
  771. $.post(huayi.config.callcenter_url + 'WorkOrder/RemindWorkOrder', {
  772. workorderid: str,
  773. type: 1,
  774. state:0,
  775. "token": $.cookie("token")
  776. }, function(result) {
  777. result = JSON.parse(result);
  778. if(result.state.toLowerCase() == "success") {
  779. layer.msg("操作成功");
  780. //load();
  781. $("#orderlist").bootstrapTable('refresh');
  782. }
  783. })
  784. });
  785. }
  786. //不督办
  787. function ndb(str) {
  788. layer.confirm('确定督办吗?', {
  789. btn: ['是', '否'] //按钮
  790. }, function () {
  791. $.post(huayi.config.callcenter_url + 'WorkOrder/RemindWorkOrder', {
  792. workorderid: str,
  793. type: 1,
  794. state:2,
  795. "token": $.cookie("token")
  796. }, function(result) {
  797. result = JSON.parse(result);
  798. if(result.state.toLowerCase() == "success") {
  799. layer.msg("操作成功");
  800. //load();
  801. $("#orderlist").bootstrapTable('refresh');
  802. }
  803. })
  804. });
  805. }
  806. //强制结案
  807. function StrongLawsuit(str) {
  808. layer.open({
  809. type: 2,
  810. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  811. title: '强制结案',
  812. area: ['60%', '80%'], //宽高
  813. });
  814. }
  815. //回退BackDtail
  816. function BackDtail(str) {
  817. layer.open({
  818. type: 2,
  819. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  820. title: '工单回退',
  821. area: ['60%', '80%'], //宽高
  822. });
  823. }
  824. //查收
  825. function cs(str) {
  826. layer.confirm('确定要查收?', {
  827. btn: ['是', '否'] //按钮
  828. }, function () {
  829. $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
  830. workorderid: str,
  831. token: $.cookie("token")
  832. }, function (result) {
  833. result = JSON.parse(result);
  834. if (result.state.toLowerCase() == "success") {
  835. layer.msg("查收成功");
  836. //load();
  837. $("#orderlist").bootstrapTable('refresh');
  838. }
  839. })
  840. });
  841. }
  842. //收回
  843. function sh(str) {
  844. layer.confirm('确定要回收?', {
  845. btn: ['是', '否'] //按钮
  846. }, function () {
  847. $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
  848. workorderid: str,
  849. token: $.cookie("token")
  850. }, function (result) {
  851. result = JSON.parse(result);
  852. if (result.state.toLowerCase() == "success") {
  853. layer.msg("回收");
  854. //load();
  855. $("#orderlist").bootstrapTable('refresh');
  856. }
  857. })
  858. });
  859. }
  860. //强制回收
  861. function recycles() {
  862. layer.confirm('确定要强制退回吗?', {
  863. btn: ['是', '否'] //按钮
  864. });
  865. }
  866. //退回申请
  867. function th(str) {
  868. layer.open({
  869. type: 2,
  870. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  871. title: '申请退回工单',
  872. area: ['60%', '80%'], //宽高
  873. });
  874. }
  875. //审核退回申请
  876. function shth(str) {
  877. layer.open({
  878. type: 2,
  879. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  880. title: '审核退回申请',
  881. area: ['60%', '80%'], //宽高
  882. });
  883. }
  884. //申请延时
  885. function ys(str) {
  886. layer.open({
  887. type: 2,
  888. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  889. title: '申请延时',
  890. area: ['60%', '80%'], //宽高
  891. });
  892. }
  893. //审核申请延时
  894. function shys(str) {
  895. layer.open({
  896. type: 2,
  897. content: "../CommonHtml/shTime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  898. title: '审核延时申请',
  899. area: ['60%', '80%'], //宽高
  900. });
  901. }
  902. //诉求回访
  903. function hf(str) {
  904. layer.open({
  905. type: 2,
  906. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  907. title: '工单回访',
  908. area: ['60%', '80%'], //宽高
  909. });
  910. }
  911. //重办工单
  912. function cb(str) {
  913. layer.open({
  914. type: 2,
  915. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  916. title: '重办工单',
  917. area: ['60%', '80%'], //宽高
  918. });
  919. }
  920. //提交重办
  921. function bhcb(str) {
  922. //回退BackDtail
  923. layer.open({
  924. type: 2,
  925. content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  926. title: '驳回重办',
  927. area: ['60%', '80%'], //宽高
  928. });
  929. }
  930. //提交重办
  931. function tjcb(str) {
  932. layer.open({
  933. type: 2,
  934. content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  935. title: '提交重办',
  936. area: ['50%', '40%'], //宽高
  937. });
  938. // layer.confirm('确认提交重办吗?', {
  939. // btn: ['是', '否'] //按钮
  940. // }, function () {
  941. // $.post(huayi.config.callcenter_url + 'WorkOrder/SubReloadWorkOrder', {
  942. // ids: str,
  943. // "token": $.cookie("token")
  944. // }, function(result) {
  945. // result = JSON.parse(result);
  946. // if(result.state.toLowerCase() == "success") {
  947. // layer.msg("操作成功");
  948. // //load();
  949. // $("#orderlist").bootstrapTable('refresh');
  950. // }
  951. // })
  952. // });
  953. }
  954. //结案
  955. function Lawsuit(str) {
  956. layer.open({
  957. type: 2,
  958. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  959. title: '诉求单结案',
  960. area: ['60%', '80%'], //宽高
  961. });
  962. }
  963. //上传文件
  964. function upload() {
  965. if (document.getElementById("upFile").files.length > 0) {
  966. var formData = new FormData();
  967. formData.append("upFile", document.getElementById("upFile").files[0]);
  968. formData.append("token", $.cookie("token"));
  969. $.ajax({
  970. url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
  971. type: "POST",
  972. data: formData,
  973. /**
  974. *必须false才会自动加上正确的Content-Type
  975. */
  976. contentType: false,
  977. /**
  978. * 必须false才会避开jQuery对 formdata 的默认处理
  979. * XMLHttpRequest会对 formdata 进行正确的处理
  980. */
  981. processData: false,
  982. success: function (result) {
  983. document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
  984. $("#upFile").change(function () {
  985. upload();
  986. });
  987. var r = $.parseJSON(result);
  988. if (r.state.toLowerCase() == "success") {
  989. $(".fjnr").text(r.data);
  990. $("#scfj").show();
  991. }
  992. }
  993. });
  994. } else {
  995. layer.confirm('请上传文件!', {
  996. btn: ['确定']
  997. });
  998. }
  999. }
  1000. //来源
  1001. function LY(obj) {
  1002. obj.empty();
  1003. obj.append('<option selected="selected" value="">请选择</option>');
  1004. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  1005. "token": $.cookie("token"),
  1006. id: 1
  1007. }, function (data) {
  1008. if (data.state.toLowerCase() == "success") {
  1009. var content = data.data;
  1010. $(content).each(function (i, n) {
  1011. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
  1012. })
  1013. }
  1014. })
  1015. }
  1016. //类别
  1017. function LB(obj) {
  1018. obj.empty();
  1019. obj.append('<option selected="selected" value="">请选择</option>');
  1020. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  1021. "token": $.cookie("token"),
  1022. id: 2
  1023. }, function (data) {
  1024. if (data.state.toLowerCase() == "success") {
  1025. var content = data.data;
  1026. $(content).each(function (i, n) {
  1027. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
  1028. })
  1029. }
  1030. })
  1031. }
  1032. // 主题
  1033. function ZT(obj) {
  1034. obj.empty();
  1035. obj.append('<option selected="selected" value="">请选择</option>');
  1036. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  1037. "token": $.cookie("token"),
  1038. id: 3
  1039. }, function (data) {
  1040. if (data.state.toLowerCase() == "success") {
  1041. var content = data.data;
  1042. $(content).each(function (i, n) {
  1043. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
  1044. })
  1045. }
  1046. })
  1047. }
  1048. function tree() {
  1049. $.get(huayi.config.callcenter_url + 'Department/GetDeptList', {
  1050. "token": $.cookie("token"),
  1051. // "pid": pid
  1052. }, function (result) {
  1053. result = $.parseJSON(result);
  1054. $.fn.zTree.init($("#addTreeDemo"), setting1, result.data); //实例化树形图
  1055. });
  1056. }
  1057. var setting1 = {
  1058. data: {
  1059. key: {
  1060. name: "F_DeptName"
  1061. },
  1062. simpleData: {
  1063. enable: true,
  1064. idKey: "F_DeptId",
  1065. pIdKey: "F_PartentId",
  1066. rootPId: 0
  1067. }
  1068. },
  1069. callback: {
  1070. onClick: zTreeOnClick
  1071. }
  1072. };
  1073. function zTreeOnClick(event, treeId, treeNode) {
  1074. if (treeNode.level >= 2) {
  1075. $('.inps').val(treeNode.F_DeptName);
  1076. $("#PID").val(treeNode.F_DeptId);
  1077. $("#Dpment").val(treeNode.F_DeptId);
  1078. $(".Cleans").show();
  1079. }
  1080. };
  1081. function Close() {
  1082. $(".lyxz").removeClass("cx");
  1083. if ($('audio').length > 0) {
  1084. $('audio')[0].pause();
  1085. }
  1086. }
  1087. </script>
  1088. </body>
  1089. </html>