Нет описания

LeaderDCL.html 37KB

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