商丘12345 前端

ZXDCL.html 26KB

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