説明なし

WorkDC_Three.html 40KB

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