Aucune description

LeaderDSHTH.html 42KB

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