商丘12345 前端

WorkDC.html 37KB

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