商丘12345 前端

WorkDC.html 38KB

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