Nessuna descrizione

ZXDCL.html 27KB

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