説明なし

LeaderYJALB.html 43KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175
  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 href="" 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="请选择时间"
  273. style="height: 32px;" />
  274. </td>
  275. <!-- <th>工单状态:</th>
  276. <td>
  277. <select name="" id="state" class="select">
  278. <option selected="selected" value="">请选择</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="yardman" name="select" class="selectpicker show-tick form-control"
  349. multiple data-live-search="true">
  350. <option value="">请选择调度员</option>
  351. </select>
  352. </td>
  353. <td colspan="7" style="text-align: center;">
  354. <botton class="btns Seach">搜索</botton>
  355. <botton class="btns Export">导出</botton>
  356. </td>
  357. </tr>
  358. </table>
  359. </div>
  360. </div>
  361. <div>
  362. <div style="width: 100%;padding: 10px;">
  363. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams"
  364. data-pagination="true">
  365. <thead>
  366. <tr>
  367. <th data-field="F_OldWorkOrderId" data-formatter="Print" data-align="center">案件编号
  368. </th>
  369. <th data-field="F_WorkOrderId" data-align="center">工单单号</th>
  370. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">诉求标题</th>
  371. <th data-field="DeptName" data-align="center">承办单位</th>
  372. <th data-field="UserName" data-align="center">受理人</th>
  373. <th data-field="F_WorkState" data-align="center" data-formatter="States">办理状态</th>
  374. <th data-field="OverState" data-formatter="OverTime" data-align="center">时限</th>
  375. <th data-field="LimitTime" data-formatter="BanTime" data-align="center">办理时限</th>
  376. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">操作</th>
  377. </tr>
  378. </thead>
  379. <tbody class="list"></tbody>
  380. </table>
  381. </div>
  382. </div>
  383. </div>
  384. </div>
  385. <input type="hidden" id="PID" />
  386. <input type="hidden" id="Dpment" />
  387. </div>
  388. <script src="../js/bootstrap-select.js"></script>
  389. <script src="../js/laydate/laydate.js"></script>
  390. <script src="../My97DatePicker/WdatePicker.js"></script>
  391. <script src="../js/zTree/jquery.ztree.core.js"></script>
  392. <script src="../js/search/screen.js"></script>
  393. <script>
  394. $(document).ready(function () {
  395. var wid = helper.request.queryString("wid");
  396. if (wid) {
  397. $('#tel').val(wid);
  398. load();
  399. }
  400. laydate.render({
  401. elem: '#starttime' //指定元素
  402. ,
  403. range: '~'
  404. });
  405. load();
  406. });
  407. $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
  408. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  409. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  410. });
  411. //获取查询信息
  412. function load() {
  413. //坐席
  414. var usercodeID = "";
  415. var usercode_ = $("#ZX").val(); //坐席
  416. if (usercode_ != null) {
  417. $(usercode_).each(function (i, n) {
  418. var obj1 = '';
  419. obj1 = n + ",";
  420. usercodeID += obj1;
  421. })
  422. } else {
  423. usercodeID = ""
  424. }
  425. // 调度员
  426. var ddusercodeID = "";
  427. var ddusercode_ = $("#yardman").val(); //坐席
  428. if (ddusercode_ != null) {
  429. $(ddusercode_).each(function (i, n) {
  430. var obj2 = '';
  431. obj2 = n + ",";
  432. ddusercodeID += obj2;
  433. })
  434. } else {
  435. ddusercodeID = ""
  436. }
  437. //先销毁表格
  438. $('#orderlist').bootstrapTable('destroy');
  439. //初始化表格,动态从服务器加载数据
  440. $("#orderlist").bootstrapTable({
  441. method: "get", //使用get请求到服务器获取数据
  442. url: huayi.config.callcenter_url + "WorkOrder/GetList", //获取数据的Servlet地址
  443. contentType: "application/x-www-form-urlencoded",
  444. striped: true, //表格显示条纹
  445. pagination: true, //启动分页
  446. pageSize: 10, //每页显示的记录数
  447. pageNumber: 1, //当前第几页
  448. pageList: [10, 20, 50, 100], //记录数可选列表
  449. search: false, //是否启用查询
  450. showColumns: false, //显示下拉框勾选要显示的列
  451. showRefresh: false, //显示刷新按钮
  452. sidePagination: "server", //表示服务端请求
  453. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  454. //设置为limit可以获取limit, offset, search, sort, order
  455. queryParamsType: "undefined",
  456. queryParams: function queryParams(params) { //设置查询参数
  457. //alert(params.pageNumber)
  458. var param = {
  459. page: params.pageNumber,
  460. pagesize: params.pageSize,
  461. workid: $("#wids").val(),
  462. state: 14, //=工单状态
  463. files: 1, // 是否上传附件
  464. IsExport: 1,
  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() && $('#starttime').val().split(' ~ ')[
  476. 0], //=开始时间
  477. endtime: $('#starttime').val() && $('#starttime').val().split(' ~ ')[1], //=结束时间
  478. deptid: $("#PID").val(),
  479. type: $("#type").val(),
  480. dealtype: $("#dealtype").val(),
  481. sourcearea: $('#sourceAreas').val(), //区域
  482. token: $.cookie("token")
  483. };
  484. return param;
  485. },
  486. onLoadSuccess: function (data) { //加载成功时执行
  487. // layer.msg("加载成功");
  488. //console.log(data);
  489. },
  490. onLoadError: function () { //加载失败时执行
  491. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  492. }
  493. });
  494. }
  495. //状态
  496. function States(val, row) {
  497. var html = '';
  498. switch (val + '') {
  499. case '0':
  500. html = '新工单';
  501. if (row.F_IsReturn == 1) {
  502. html = '新工单(回退)';
  503. }
  504. break;
  505. case '1':
  506. html = '待交办';
  507. break;
  508. case '2':
  509. html = '待查收';
  510. break;
  511. case '3':
  512. html = '退回审核中';
  513. break;
  514. case '4':
  515. html = '办理中';
  516. break;
  517. case '5':
  518. html = '延时审核';
  519. break;
  520. case '6':
  521. html = '已办理';
  522. break;
  523. case '7':
  524. html = '已回访';
  525. break;
  526. case '8':
  527. html = '重办中';
  528. break;
  529. case '9':
  530. if (row.IsExport == "1") {
  531. html = '已回传';
  532. } else {
  533. html = '待回传';
  534. }
  535. break;
  536. case '10':
  537. html = '待审核';
  538. break;
  539. case '11':
  540. html = '重办待交办';
  541. break;
  542. // case '12':
  543. // html = '待审核';
  544. // break;
  545. case '13':
  546. html = '重办驳回';
  547. break;
  548. case '14':
  549. html = '已结案';
  550. break;
  551. }
  552. return html;
  553. }
  554. //音频
  555. function setCode(val) {
  556. if (val) {
  557. return '<div class="imgs" style="cursor: pointer;">' +
  558. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' + val + '" />' +
  559. '</div>';
  560. } else {
  561. return '';
  562. }
  563. }
  564. //操作
  565. function Print(val, row) {
  566. if (row.F_OldWorkOrderId) {
  567. return '<a onclick="btn_print(\'' + row.F_WorkOrderId + '\')">' + row.F_OldWorkOrderId + '</a>'
  568. }
  569. }
  570. function btn_print(PrintClick) {
  571. layer.open({
  572. type: 2,
  573. content: "../CommonHtml/PrintPreview-1.html?wid=" + PrintClick, //iframe的url,no代表不显示滚动条
  574. title: '打印/导出',
  575. area: ['788.8px', '90%'], //宽高
  576. });
  577. }
  578. function GetCont(val) {
  579. if (val) {
  580. var str = '<div '
  581. if (val.length > 10) {
  582. str = str + ' title="' + val + '" ';
  583. val = val.substr(0, 10) + "...";
  584. }
  585. return str + '>' + val + '</div>';
  586. } else {
  587. return '';
  588. }
  589. }
  590. //操作
  591. function Dispose(val, row) {
  592. var Rows = row.Buttons;
  593. var html = '';
  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. html1 = html1.replace("isProtect", row.F_IsProtect);
  599. html1 = html1.replace("row", row.F_MainDeptId);
  600. }
  601. html += html1;
  602. }
  603. return html;
  604. }
  605. //查看详情
  606. function ckxq(str) {
  607. layer.open({
  608. type: 2,
  609. // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  610. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  611. title: '工单详情',
  612. area: ['87%', '80%'], //宽高
  613. });
  614. }
  615. //时限
  616. function OverTime(val, row) {
  617. if (val == 1) {
  618. return '<div class="" style="cursor: pointer;">' +
  619. '<span class="Greens">' + row.GapTime + '</span>' +
  620. '</div>';
  621. } else if (val == 2) {
  622. return '<div class="" style="cursor: pointer;">' +
  623. '<span class="Yellows">' + row.GapTime + '</span>' +
  624. '</div>';
  625. } else if (val == 3) {
  626. return '<div class="" style="cursor: pointer;">' +
  627. '<span class="Reds">' + row.GapTime + '</span>' +
  628. '</div>';
  629. }
  630. }
  631. //办理时限
  632. function BanTime(val) {
  633. if (val) {
  634. var time = val.substring(0, val.indexOf(' '));
  635. return '<div class="" style="cursor: pointer;">' +
  636. '<span>' + val + '</span>' +
  637. '</div>';
  638. }
  639. }
  640. //派单
  641. function pd(str) {
  642. layer.open({
  643. type: 2,
  644. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  645. title: '办理工单',
  646. area: ['87%', '80%'], //宽高
  647. });
  648. }
  649. //处理审核
  650. function auditdeal(str) {
  651. layer.open({
  652. type: 2,
  653. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  654. title: '处理审核',
  655. area: ['80%', '80%'], //宽高
  656. });
  657. }
  658. //编辑
  659. function bj(str) {
  660. layer.open({
  661. type: 2,
  662. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  663. title: '编辑工单',
  664. area: ['96%', '80%'], //宽高
  665. });
  666. }
  667. //删除
  668. function move(str) {
  669. layer.confirm('确定删除工单?', {
  670. btn: ['是', '否'] //按钮
  671. }, function () {
  672. $.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", {
  673. ids: str,
  674. token: $.cookie("token")
  675. }, function (result) {
  676. result = JSON.parse(result);
  677. if (result.state.toLowerCase() == "success") {
  678. debugger
  679. layer.msg("删除成功");
  680. $("#orderlist").bootstrapTable('refresh');
  681. }
  682. })
  683. });
  684. }
  685. //提交
  686. function tj(str) {
  687. layer.confirm('确定要提交工单么?', {
  688. btn: ['确定', '取消'] //按钮
  689. }, function () {
  690. //请求后台数据
  691. /*发送请求*/
  692. $.post(huayi.config.callcenter_url + "WorkOrder/SubmitWorkOrder", {
  693. ids: str,
  694. token: $.cookie("token")
  695. }, function (result) {
  696. result = JSON.parse(result);
  697. if (result.state.toLowerCase() == "success") {
  698. layer.msg("提交成功");
  699. $("#orderlist").bootstrapTable('refresh');
  700. //load();
  701. }
  702. })
  703. });
  704. }
  705. //交办
  706. function jb(str) {
  707. layer.open({
  708. type: 2,
  709. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  710. title: '工单交办',
  711. area: ['87%', '80%'], //宽高
  712. });
  713. }
  714. //回传
  715. function gdhc(str) {
  716. layer.confirm('确定要回传?', {
  717. btn: ['是', '否'] //按钮
  718. }, function () {
  719. $.post(huayi.config.callcenter_url + "WorkOrder/Sendback", {
  720. ids: str,
  721. token: $.cookie("token")
  722. }, function (result) {
  723. result = JSON.parse(result);
  724. if (result.state.toLowerCase() == "success") {
  725. layer.msg("回传成功");
  726. //load();
  727. $("#orderlist").bootstrapTable('refresh');
  728. }
  729. })
  730. });
  731. }
  732. //领导关注
  733. function lader(str) {
  734. layer.open({
  735. type: 2,
  736. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  737. title: '领导关注',
  738. area: ['60%', '80%'], //宽高
  739. });
  740. }
  741. //市长批示
  742. function city(str) {
  743. layer.open({
  744. type: 2,
  745. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  746. title: '市长批示',
  747. area: ['60%', '80%'], //宽高
  748. });
  749. }
  750. //办理
  751. function bl(str, isProtect) {
  752. console.log("isProtect2222", isProtect)
  753. layer.open({
  754. type: 2,
  755. content: "../CommonHtml/banli.html?wid=" + str + "&isProtect=" +
  756. isProtect, //iframe的url,no代表不显示滚动条
  757. title: '办理工单',
  758. area: ['60%', '80%'], //宽高
  759. });
  760. }
  761. //编辑办理
  762. function editProcessingResult(str) {
  763. layer.open({
  764. type: 2,
  765. content: "../CommonHtml/editProcessingResult.html?wid=" + str, //iframe的url,no代表不显示滚动条
  766. title: '编辑办理',
  767. area: ['50%', '70%'], //宽高
  768. });
  769. }
  770. //督办
  771. function Supervision(str) {
  772. layer.open({
  773. type: 2,
  774. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1', //iframe的url,no代表不显示滚动条
  775. title: '督办',
  776. area: ['60%', '80%'], //宽高
  777. });
  778. }
  779. //督查
  780. function Supervision_(str) {
  781. layer.open({
  782. type: 2,
  783. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
  784. title: '监察',
  785. area: ['60%', '80%'], //宽高
  786. });
  787. }
  788. //审核
  789. function audit(str) {
  790. layer.open({
  791. type: 2,
  792. content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  793. title: '审核',
  794. area: ['60%', '80%'], //宽高
  795. });
  796. }
  797. //转督办
  798. function zdb(str, row) {
  799. layer.open({
  800. type: 2,
  801. content: "../CommonHtml/superTrunl.html?wid=" + str + "&depId=" + row, //iframe的url,no代表不显示滚动条
  802. title: '督办工单',
  803. area: ['60%', '80%'], //宽高
  804. });
  805. }
  806. //不督办
  807. function ndb(str) {
  808. layer.confirm('确定督办吗?', {
  809. btn: ['是', '否'] //按钮
  810. }, function () {
  811. $.post(huayi.config.callcenter_url + 'WorkOrder/RemindWorkOrder', {
  812. workorderid: str,
  813. type: 1,
  814. state: 2,
  815. "token": $.cookie("token")
  816. }, function (result) {
  817. result = JSON.parse(result);
  818. if (result.state.toLowerCase() == "success") {
  819. layer.msg("操作成功");
  820. //load();
  821. $("#orderlist").bootstrapTable('refresh');
  822. }
  823. })
  824. });
  825. }
  826. //诉求单结案
  827. function StrongLawsuit(str) {
  828. layer.open({
  829. type: 2,
  830. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  831. title: '诉求单结案',
  832. area: ['60%', '80%'], //宽高
  833. });
  834. }
  835. //回退BackDtail
  836. function BackDtail(str) {
  837. layer.open({
  838. type: 2,
  839. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  840. title: '工单督办',
  841. area: ['60%', '80%'], //宽高
  842. });
  843. }
  844. //查收
  845. function cs(str) {
  846. layer.confirm('确定要查收?', {
  847. btn: ['是', '否'] //按钮
  848. }, function () {
  849. $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
  850. workorderid: str,
  851. token: $.cookie("token")
  852. }, function (result) {
  853. result = JSON.parse(result);
  854. if (result.state.toLowerCase() == "success") {
  855. layer.msg("查收成功");
  856. //load();
  857. $("#orderlist").bootstrapTable('refresh');
  858. }
  859. })
  860. });
  861. }
  862. //收回
  863. function sh(str) {
  864. layer.confirm('确定要回收?', {
  865. btn: ['是', '否'] //按钮
  866. }, function () {
  867. $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
  868. workorderid: str,
  869. token: $.cookie("token")
  870. }, function (result) {
  871. result = JSON.parse(result);
  872. if (result.state.toLowerCase() == "success") {
  873. layer.msg("回收");
  874. //load();
  875. $("#orderlist").bootstrapTable('refresh');
  876. }
  877. })
  878. });
  879. }
  880. //强制回收
  881. function recycles() {
  882. layer.confirm('确定要强制退回吗?', {
  883. btn: ['是', '否'] //按钮
  884. });
  885. }
  886. //退回申请
  887. function th(str) {
  888. layer.open({
  889. type: 2,
  890. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  891. title: '申请退回工单',
  892. area: ['60%', '80%'], //宽高
  893. });
  894. }
  895. //审核退回申请
  896. function shth(str) {
  897. layer.open({
  898. type: 2,
  899. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  900. title: '审核退回申请',
  901. area: ['60%', '80%'], //宽高
  902. });
  903. }
  904. //申请延时
  905. function ys(str) {
  906. layer.open({
  907. type: 2,
  908. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  909. title: '申请延时',
  910. area: ['60%', '80%'], //宽高
  911. });
  912. }
  913. //审核申请延时
  914. function shys(str) {
  915. layer.open({
  916. type: 2,
  917. content: "../CommonHtml/shTime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  918. title: '审核延时申请',
  919. area: ['60%', '80%'], //宽高
  920. });
  921. }
  922. //诉求回访
  923. function hf(str) {
  924. layer.open({
  925. type: 2,
  926. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  927. title: '工单回访',
  928. area: ['60%', '80%'], //宽高
  929. });
  930. }
  931. //重办工单
  932. function cb(str) {
  933. layer.open({
  934. type: 2,
  935. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  936. title: '重办工单',
  937. area: ['60%', '80%'], //宽高
  938. });
  939. }
  940. //提交重办
  941. function bhcb(str) {
  942. //回退BackDtail
  943. layer.open({
  944. type: 2,
  945. content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  946. title: '驳回重办',
  947. area: ['60%', '80%'], //宽高
  948. });
  949. }
  950. //提交重办
  951. function tjcb(str) {
  952. layer.open({
  953. type: 2,
  954. content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  955. title: '提交重办',
  956. area: ['50%', '40%'], //宽高
  957. });
  958. // layer.confirm('确认提交重办吗?', {
  959. // btn: ['是', '否'] //按钮
  960. // }, function () {
  961. // $.post(huayi.config.callcenter_url + 'WorkOrder/SubReloadWorkOrder', {
  962. // ids: str,
  963. // "token": $.cookie("token")
  964. // }, function(result) {
  965. // result = JSON.parse(result);
  966. // if(result.state.toLowerCase() == "success") {
  967. // layer.msg("操作成功");
  968. // //load();
  969. // $("#orderlist").bootstrapTable('refresh');
  970. // }
  971. // })
  972. // });
  973. }
  974. //结案
  975. function Lawsuit(str) {
  976. layer.open({
  977. type: 2,
  978. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  979. title: '诉求单结案',
  980. area: ['60%', '80%'], //宽高
  981. });
  982. }
  983. //备注
  984. function remarks(str) {
  985. layer.open({
  986. type: 2,
  987. content: "../CommonHtml/remarks.html?wid=" + str, //iframe的url,no代表不显示滚动条
  988. title: '备注',
  989. area: ['60%', '45%'], //宽高
  990. });
  991. }
  992. //上传文件
  993. function upload() {
  994. if (document.getElementById("upFile").files.length > 0) {
  995. var formData = new FormData();
  996. formData.append("upFile", document.getElementById("upFile").files[0]);
  997. formData.append("token", $.cookie("token"));
  998. $.ajax({
  999. url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
  1000. type: "POST",
  1001. data: formData,
  1002. /**
  1003. *必须false才会自动加上正确的Content-Type
  1004. */
  1005. contentType: false,
  1006. /**
  1007. * 必须false才会避开jQuery对 formdata 的默认处理
  1008. * XMLHttpRequest会对 formdata 进行正确的处理
  1009. */
  1010. processData: false,
  1011. success: function (result) {
  1012. document.getElementById("upFile").outerHTML = document.getElementById("upFile")
  1013. .outerHTML;
  1014. $("#upFile").change(function () {
  1015. upload();
  1016. });
  1017. var r = $.parseJSON(result);
  1018. if (r.state.toLowerCase() == "success") {
  1019. $(".fjnr").text(r.data);
  1020. $("#scfj").show();
  1021. }
  1022. }
  1023. });
  1024. } else {
  1025. layer.confirm('请上传文件!', {
  1026. btn: ['确定']
  1027. });
  1028. }
  1029. }
  1030. //来源
  1031. function LY(obj) {
  1032. obj.empty();
  1033. obj.append('<option selected="selected" value="">请选择</option>');
  1034. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  1035. "token": $.cookie("token"),
  1036. id: 1
  1037. }, function (data) {
  1038. if (data.state.toLowerCase() == "success") {
  1039. var content = data.data;
  1040. $(content).each(function (i, n) {
  1041. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  1042. obj);
  1043. })
  1044. }
  1045. })
  1046. }
  1047. //类别
  1048. function LB(obj) {
  1049. obj.empty();
  1050. obj.append('<option selected="selected" value="">请选择</option>');
  1051. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  1052. "token": $.cookie("token"),
  1053. id: 2
  1054. }, function (data) {
  1055. if (data.state.toLowerCase() == "success") {
  1056. var content = data.data;
  1057. $(content).each(function (i, n) {
  1058. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  1059. obj);
  1060. })
  1061. }
  1062. })
  1063. }
  1064. // 主题
  1065. function ZT(obj) {
  1066. obj.empty();
  1067. obj.append('<option selected="selected" value="">请选择</option>');
  1068. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  1069. "token": $.cookie("token"),
  1070. id: 3
  1071. }, function (data) {
  1072. if (data.state.toLowerCase() == "success") {
  1073. var content = data.data;
  1074. $(content).each(function (i, n) {
  1075. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  1076. obj);
  1077. })
  1078. }
  1079. })
  1080. }
  1081. function tree() {
  1082. $.get(huayi.config.callcenter_url + 'Department/GetDeptList', {
  1083. "token": $.cookie("token"),
  1084. // "pid": pid
  1085. }, function (result) {
  1086. result = $.parseJSON(result);
  1087. $.fn.zTree.init($("#addTreeDemo"), setting1, result.data); //实例化树形图
  1088. });
  1089. }
  1090. var setting1 = {
  1091. data: {
  1092. key: {
  1093. name: "F_DeptName"
  1094. },
  1095. simpleData: {
  1096. enable: true,
  1097. idKey: "F_DeptId",
  1098. pIdKey: "F_PartentId",
  1099. rootPId: 0
  1100. }
  1101. },
  1102. callback: {
  1103. onClick: zTreeOnClick
  1104. }
  1105. };
  1106. function zTreeOnClick(event, treeId, treeNode) {
  1107. $('.inps').val(treeNode.F_DeptName);
  1108. $("#PID").val(treeNode.F_DeptId);
  1109. $("#Dpment").val(treeNode.F_DeptId);
  1110. $(".Cleans").show();
  1111. };
  1112. function Close() {
  1113. $(".lyxz").removeClass("cx");
  1114. if ($('audio').length > 0) {
  1115. $('audio')[0].pause();
  1116. }
  1117. }
  1118. </script>
  1119. </body>
  1120. </html>