商丘12345 前端

WorkYBL_zlei.html 36KB

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