商丘12345 前端

ZXYTJ.html 29KB

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