Нет описания

WorkDCpd.html 52KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342
  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, 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 href="" 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
  260. id="sqzx"
  261. style="width: 100%"
  262. border="0"
  263. cellspacing="0"
  264. cellpadding="0"
  265. >
  266. <tr>
  267. <th>事项编号:</th>
  268. <td>
  269. <input
  270. type="text"
  271. placeholder="输入工单号"
  272. id="wids"
  273. class="Min-width"
  274. />
  275. </td>
  276. <th>来电号码:</th>
  277. <td>
  278. <input
  279. type="text"
  280. id="tel"
  281. class="Min-width"
  282. />
  283. </td>
  284. <th>时间:</th>
  285. <td>
  286. <input
  287. type="text"
  288. id="starttime"
  289. class="laydate-icon Min-width"
  290. style="height: 32px"
  291. />&nbsp;——&nbsp;<input
  292. type="text"
  293. id="endtime"
  294. class="laydate-icon Min-width"
  295. style="height: 32px"
  296. />
  297. </td>
  298. </tr>
  299. <tr>
  300. <th>关键字:</th>
  301. <td>
  302. <input
  303. type="text"
  304. placeholder="输入关键字"
  305. id="key"
  306. class="Min-width"
  307. />
  308. </td>
  309. <th>区域:</th>
  310. <td>
  311. <select
  312. name=""
  313. id="sourceAreas"
  314. class="select"
  315. ></select>
  316. </td>
  317. <th>工单状态:</th>
  318. <td>
  319. <select
  320. name=""
  321. id="state"
  322. class="select"
  323. >
  324. <option value="">请选择</option>
  325. <option value="2">待查收</option>
  326. <option value="4">办理中</option>
  327. <option value="8">重办中</option>
  328. </select>
  329. </td>
  330. <th>工单来源:</th>
  331. <td>
  332. <select
  333. class="select_"
  334. id="source"
  335. ></select>
  336. </td>
  337. </tr>
  338. <tr>
  339. <th>主题词:</th>
  340. <td>
  341. <select
  342. id="keyid"
  343. name=""
  344. class="select"
  345. ></select>
  346. </td>
  347. <th>类型:</th>
  348. <td>
  349. <select
  350. class="select_"
  351. id="type"
  352. ></select>
  353. </td>
  354. <!-- <th>来电人:</th>
  355. <td>
  356. <input
  357. type="text"
  358. id="name"
  359. class="Min-width"
  360. />
  361. </td> -->
  362. </tr>
  363. <tr>
  364. <th>坐席:</th>
  365. <td>
  366. <select
  367. id="ZX"
  368. name="select"
  369. class="selectpicker show-tick form-control"
  370. multiple
  371. data-live-search="true"
  372. >
  373. <option value="">请选择坐席</option>
  374. </select>
  375. </td>
  376. <th>审核员:</th>
  377. <td>
  378. <select
  379. id="yardman"
  380. name="select"
  381. class="selectpicker show-tick form-control"
  382. multiple
  383. data-live-search="true"
  384. >
  385. <option value="">
  386. 请选择审核员
  387. </option>
  388. </select>
  389. </td>
  390. <!-- <th>承办单位:</th>
  391. <td style="position: relative">
  392. <div class="inpBox">
  393. <input
  394. type="text"
  395. class="inps"
  396. onkeyup="darptSearch()"
  397. />
  398. <i class="Cleans fa fa-close"></i>
  399. <i class="xl xl_one"></i>
  400. <div class="addTree xlAdd">
  401. <ul
  402. id="addTreeDemo"
  403. class="ztree"
  404. ></ul>
  405. </div>
  406. </div>
  407. <div class="selDpart1">
  408. <ul id="sponsor"></ul>
  409. </div>
  410. </td> -->
  411. <th></th>
  412. <td style="text-align: center">
  413. <botton class="btns Seach">搜索</botton>
  414. <!--<botton class="btns ">导出</botton>-->
  415. </td>
  416. </tr>
  417. </table>
  418. </div>
  419. </div>
  420. <div>
  421. <div style="width: 100%; padding: 10px">
  422. <table
  423. id="orderlist"
  424. data-row-style="rowStyle"
  425. data-query-params="queryParams"
  426. data-pagination="true"
  427. >
  428. <thead>
  429. <tr>
  430. <th
  431. data-field="F_WorkOrderId"
  432. data-align="center"
  433. >
  434. 工单单号
  435. </th>
  436. <th
  437. data-field="F_ComTitle"
  438. data-formatter="GetCont"
  439. data-align="center"
  440. >
  441. 诉求标题
  442. </th>
  443. <th
  444. data-field="DeptName"
  445. data-align="center"
  446. >
  447. 承办单位
  448. </th>
  449. <th
  450. data-field="OtherDeptName"
  451. data-align="center"
  452. >
  453. 协办单位
  454. </th>
  455. <th
  456. data-field="UserName"
  457. data-align="center"
  458. >
  459. 受理人
  460. </th>
  461. <th
  462. data-field="F_WorkState"
  463. data-align="center"
  464. data-formatter="States"
  465. >
  466. 办理状态
  467. </th>
  468. <!--<th data-field="FilePath" data-formatter="setCode" data-align="center">录音</th>-->
  469. <th
  470. data-field="OverState"
  471. data-formatter="OverTime"
  472. data-align="center"
  473. >
  474. 时限
  475. </th>
  476. <th
  477. data-field="LimitTime"
  478. data-formatter="BanTime"
  479. data-align="center"
  480. >
  481. 办理时限
  482. </th>
  483. <th
  484. data-field="F_WorkOrderId"
  485. data-formatter="Dispose"
  486. data-align="center"
  487. >
  488. 操作
  489. </th>
  490. </tr>
  491. </thead>
  492. <tbody class="list"></tbody>
  493. </table>
  494. </div>
  495. </div>
  496. </div>
  497. </div>
  498. <!--下载框-->
  499. <div class="t-shade lyxz">
  500. <div class="shade_k">
  501. <div class="shade_title">
  502. <span>录音播放与下载<srong class="cknum"></srong></span>
  503. <span class="setwin gbly"><a>x</a></span>
  504. </div>
  505. <div class="shade_content">
  506. <div class="Ly_box audiojs"></div>
  507. </div>
  508. </div>
  509. </div>
  510. <input type="hidden" id="PID" />
  511. <input type="hidden" id="Dpment" />
  512. </div>
  513. <script src="../js/bootstrap-select.js"></script>
  514. <script src="../css/laydate/laydate.js"></script>
  515. <script src="../My97DatePicker/WdatePicker.js"></script>
  516. <script src="../js/zTree/jquery.ztree.core.js"></script>
  517. <script src="../js/search/screen.js"></script>
  518. <script>
  519. var wid = helper.request.queryString("states");
  520. if (wid) {
  521. $("#state").val(wid);
  522. }
  523. $(document).ready(function () {
  524. load();
  525. laydate.skin("blue");
  526. laydate({
  527. elem: "#starttime",
  528. event: "focus",
  529. });
  530. laydate({
  531. elem: "#endtime",
  532. event: "focus",
  533. });
  534. });
  535. //关闭录音弹出
  536. $(".gbly").click(function () {
  537. $(".lyxz").removeClass("cx");
  538. $("audio")[0].pause();
  539. });
  540. $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
  541. $(".success").removeClass("success"); //去除之前选中的行的,选中样式
  542. $(ele).addClass("success"); //添加当前选中的 success样式用于区别
  543. });
  544. //获取查询信息
  545. function load() {
  546. //坐席
  547. var usercodeID = "";
  548. var usercode_ = $("#ZX").val(); //坐席
  549. if (usercode_ != null) {
  550. $(usercode_).each(function (i, n) {
  551. var obj1 = "";
  552. obj1 = n + ",";
  553. usercodeID += obj1;
  554. });
  555. } else {
  556. usercodeID = "";
  557. }
  558. // 调度员
  559. var ddusercodeID = "";
  560. var ddusercode_ = $("#yardman").val(); //坐席
  561. if (ddusercode_ != null) {
  562. $(ddusercode_).each(function (i, n) {
  563. var obj2 = "";
  564. obj2 = n + ",";
  565. ddusercodeID += obj2;
  566. });
  567. } else {
  568. ddusercodeID = "";
  569. }
  570. //先销毁表格
  571. $("#orderlist").bootstrapTable("destroy");
  572. //初始化表格,动态从服务器加载数据
  573. $("#orderlist").bootstrapTable({
  574. method: "get", //使用get请求到服务器获取数据
  575. url:
  576. huayi.config.callcenter_url + "WorkOrder/GetDWDealList", //获取数据的Servlet地址
  577. contentType: "application/x-www-form-urlencoded",
  578. striped: true, //表格显示条纹
  579. pagination: true, //启动分页
  580. pageSize: 10, //每页显示的记录数
  581. pageNumber: 1, //当前第几页
  582. pageList: [10, 20, 50, 100], //记录数可选列表
  583. search: false, //是否启用查询
  584. showColumns: false, //显示下拉框勾选要显示的列
  585. showRefresh: false, //显示刷新按钮
  586. sidePagination: "server", //表示服务端请求
  587. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  588. //设置为limit可以获取limit, offset, search, sort, order
  589. queryParamsType: "undefined",
  590. queryParams: function queryParams(params) {
  591. //设置查询参数
  592. var param = {
  593. page: params.pageNumber,
  594. pagesize: params.pageSize,
  595. workid: $("#wids").val(),
  596. state:4, //=工单状态
  597. type: $("#type").val(), //=工单类型
  598. bigtype: $("#bigtype").val(), //=大类别
  599. smalltype: $("#smalltype").val(), //=小类别
  600. key: $("#key").val(), //=关键字
  601. tel: $("#tel").val(), //=客户电话
  602. name: $("#name").val(), //=客户名称
  603. usercode: usercodeID, //=坐席工号
  604. ddusercode: ddusercodeID,
  605. keyid: $("#keyid").val(), //=关键词id
  606. source: $("#source").val(), //=来源&
  607. starttime: $("#starttime").val(), //=开始时间
  608. endtime: $("#endtime").val(), //=结束时间
  609. deptid: $("#PID").val(),
  610. type: $("#type").val(),
  611. tab: 0, //待处理
  612. distribute:1,
  613. sourcearea: $("#sourceAreas").val(), //区域
  614. token: $.cookie("token"),
  615. };
  616. return param;
  617. },
  618. onLoadSuccess: function (data) {
  619. //加载成功时执行
  620. // layer.msg("加载成功");
  621. //console.log(data);
  622. },
  623. onLoadError: function () {
  624. //加载失败时执行
  625. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  626. },
  627. });
  628. }
  629. //状态
  630. function States(val, row) {
  631. var html = "";
  632. switch (val + "") {
  633. case "0":
  634. html = "新工单";
  635. if (row.F_IsReturn == 1) {
  636. html = "新工单(回退)";
  637. }
  638. break;
  639. case "1":
  640. html = "待审核";
  641. break;
  642. case "2":
  643. html = '<span style="color:#FF0000;">待查收</span>';
  644. break;
  645. case "3":
  646. html = "退回审核中";
  647. break;
  648. case "4":
  649. html = "办理中";
  650. break;
  651. case "5":
  652. html = "延时审核";
  653. break;
  654. case "6":
  655. html = "待审核";
  656. break;
  657. case "7":
  658. html = "已回访";
  659. break;
  660. case "8":
  661. html = "重办中";
  662. break;
  663. case "9":
  664. html = "已结案";
  665. break;
  666. case "10":
  667. html = "待审核";
  668. break;
  669. case "11":
  670. html = "重办待交办";
  671. break;
  672. case "12":
  673. html = "待审核";
  674. break;
  675. case "13":
  676. html = "待督办";
  677. break;
  678. }
  679. return html;
  680. }
  681. //时限
  682. function OverTime(val, row) {
  683. if (val == 1) {
  684. return (
  685. '<div class="" style="cursor: pointer;">' +
  686. '<span class="Greens">' +
  687. row.GapTime +
  688. "</span>" +
  689. "</div>"
  690. );
  691. } else if (val == 2) {
  692. return (
  693. '<div class="" style="cursor: pointer;">' +
  694. '<span class="Yellows">' +
  695. row.GapTime +
  696. "</span>" +
  697. "</div>"
  698. );
  699. } else if (val == 3) {
  700. return (
  701. '<div class="" style="cursor: pointer;">' +
  702. '<span class="Reds">' +
  703. row.GapTime +
  704. "</span>" +
  705. "</div>"
  706. );
  707. }
  708. }
  709. //办理时限
  710. function BanTime(val) {
  711. if (val) {
  712. var time = val.substring(0, val.indexOf(" "));
  713. return (
  714. '<div class="" style="cursor: pointer;">' +
  715. "<span>" +
  716. time +
  717. "</span>" +
  718. "</div>"
  719. );
  720. }
  721. }
  722. //音频
  723. function setCode(val) {
  724. if (val) {
  725. return (
  726. '<div class="imgs" style="cursor: pointer;">' +
  727. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' +
  728. val +
  729. '" />' +
  730. "</div>"
  731. );
  732. } else {
  733. return "";
  734. }
  735. }
  736. function GetCont(val) {
  737. if (val) {
  738. var str = "<div ";
  739. if (val.length > 10) {
  740. str = str + ' title="' + val + '" ';
  741. val = val.substr(0, 10) + "...";
  742. }
  743. return str + ">" + val + "</div>";
  744. } else {
  745. return "";
  746. }
  747. }
  748. //操作
  749. function Dispose(val, row) {
  750. var Rows = row.Buttons;
  751. var html = "";
  752. for (var i = 0; i < Rows.length; i++) {
  753. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  754. if (html1) {
  755. html1 = html1.replace("data", val);
  756. html1 = html1.replace("isProtect", row.F_IsProtect);
  757. html1 = html1.replace("row", row.F_MainDeptId);
  758. }
  759. html += html1;
  760. }
  761. return html;
  762. }
  763. //查看详情
  764. function ckxq(str) {
  765. layer.open({
  766. type: 2,
  767. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  768. title: "工单详情",
  769. area: ["100%", "100%"], //宽高
  770. });
  771. }
  772. //编辑
  773. function bj(str) {
  774. layer.open({
  775. type: 2,
  776. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  777. title: "审核工单",
  778. area: ["96%", "80%"], //宽高
  779. });
  780. }
  781. //删除
  782. function move(str) {
  783. layer.confirm(
  784. "确定删除工单?",
  785. {
  786. btn: ["是", "否"], //按钮
  787. },
  788. function () {
  789. $.post(
  790. huayi.config.callcenter_url +
  791. "WorkOrder/DelWorkOrder",
  792. {
  793. ids: str,
  794. token: $.cookie("token"),
  795. },
  796. function (result) {
  797. result = JSON.parse(result);
  798. if (result.state.toLowerCase() == "success") {
  799. layer.msg("删除成功");
  800. load();
  801. }
  802. }
  803. );
  804. }
  805. );
  806. }
  807. //提交
  808. function tj(str) {
  809. layer.confirm(
  810. "确定要提交工单么?",
  811. {
  812. btn: ["确定", "取消"], //按钮
  813. },
  814. function () {
  815. //请求后台数据
  816. /*发送请求*/
  817. $.post(
  818. huayi.config.callcenter_url +
  819. "WorkOrder/SubmitWorkOrder",
  820. {
  821. ids: str,
  822. token: $.cookie("token"),
  823. },
  824. function (result) {
  825. result = JSON.parse(result);
  826. if (result.state.toLowerCase() == "success") {
  827. layer.msg("提交成功");
  828. load();
  829. }
  830. }
  831. );
  832. }
  833. );
  834. }
  835. //交办
  836. function jb(str) {
  837. layer.open({
  838. type: 2,
  839. content: "../CommonHtml/JiaoBan.html?wid=" + str, //iframe的url,no代表不显示滚动条
  840. title: "工单交办",
  841. area: ["87%", "80%"], //宽高
  842. });
  843. }
  844. //领导批示
  845. function lader(str) {
  846. layer.open({
  847. type: 2,
  848. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  849. title: "领导批示",
  850. area: ["60%", "80%"], //宽高
  851. });
  852. }
  853. //市长批示
  854. function city(str) {
  855. layer.open({
  856. type: 2,
  857. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  858. title: "领导批示",
  859. area: ["60%", "80%"], //宽高
  860. });
  861. }
  862. //办理
  863. function bl(str, isProtect) {
  864. layer.open({
  865. type: 2,
  866. content:
  867. "../CommonHtml/banli.html?wid=" +
  868. str +
  869. "&isProtect=" +
  870. isProtect, //iframe的url,no代表不显示滚动条
  871. title: "办理工单",
  872. area: ["60%", "80%"], //宽高
  873. });
  874. }
  875. //派单
  876. function pd(str) {
  877. layer.open({
  878. type: 2,
  879. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  880. title: "派单",
  881. area: ["87%", "80%"], //宽高
  882. });
  883. }
  884. //督办
  885. function Supervision(str) {
  886. layer.open({
  887. type: 2,
  888. content:
  889. "../CommonHtml/Supervision_.html?wid=" +
  890. str +
  891. "&type=1", //iframe的url,no代表不显示滚动条
  892. title: "督办",
  893. area: ["60%", "80%"], //宽高
  894. });
  895. }
  896. //督查
  897. function Supervision_(str) {
  898. layer.open({
  899. type: 2,
  900. content:
  901. "../CommonHtml/Supervision_.html?wid=" +
  902. str +
  903. "&type=2", //iframe的url,no代表不显示滚动条
  904. title: "监察",
  905. area: ["60%", "80%"], //宽高
  906. });
  907. }
  908. //强制结案
  909. function StrongLawsuit(str) {
  910. layer.open({
  911. type: 2,
  912. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  913. title: "强制结案",
  914. area: ["60%", "80%"], //宽高
  915. });
  916. }
  917. //回退BackDtail
  918. function BackDtail(str) {
  919. layer.open({
  920. type: 2,
  921. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  922. title: "工单回退",
  923. area: ["60%", "80%"], //宽高
  924. });
  925. }
  926. //查收
  927. function cs(str) {
  928. $.post(
  929. huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder",
  930. {
  931. workorderid: str,
  932. token: $.cookie("token"),
  933. },
  934. function (result) {
  935. result = JSON.parse(result);
  936. if (result.state.toLowerCase() == "success") {
  937. layer.msg("查收成功");
  938. load();
  939. }
  940. }
  941. );
  942. layer.open({
  943. type: 2,
  944. content:
  945. "../CommonHtml/WorkDatil.html?wid=" + str + "&check=check", //iframe的url,no代表不显示滚动条
  946. title: "工单详情",
  947. area: ["100%", "100%"], //宽高
  948. });
  949. // layer.confirm(
  950. // "确定要查收?",
  951. // {
  952. // btn: ["是", "否"], //按钮
  953. // },
  954. // function () {}
  955. // );
  956. }
  957. //收回
  958. function sh(str) {
  959. layer.confirm(
  960. "确定要回收?",
  961. {
  962. btn: ["是", "否"], //按钮
  963. },
  964. function () {
  965. $.post(
  966. huayi.config.callcenter_url +
  967. "WorkOrder/TakeBackWorkOrder",
  968. {
  969. workorderid: str,
  970. token: $.cookie("token"),
  971. },
  972. function (result) {
  973. result = JSON.parse(result);
  974. if (result.state.toLowerCase() == "success") {
  975. layer.msg("回收");
  976. load();
  977. }
  978. }
  979. );
  980. }
  981. );
  982. }
  983. //撤回
  984. function withdraw(str) {
  985. layer.confirm(
  986. "确定要撤回吗?",
  987. {
  988. btn: ["是", "否"], //按钮
  989. },
  990. function () {
  991. $.post(
  992. huayi.config.callcenter_url +
  993. "WorkOrder/WithdrawWorkOrder",
  994. {
  995. workorderid: str,
  996. token: $.cookie("token"),
  997. },
  998. function (result) {
  999. result = JSON.parse(result);
  1000. if (result.state.toLowerCase() == "success") {
  1001. layer.msg("撤回成功");
  1002. load();
  1003. }
  1004. }
  1005. );
  1006. }
  1007. );
  1008. }
  1009. //退回申请
  1010. function th(str) {
  1011. layer.open({
  1012. type: 2,
  1013. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1014. title: "申请退回工单",
  1015. area: ["60%", "80%"], //宽高
  1016. });
  1017. }
  1018. //审核退回申请
  1019. function shth(str) {
  1020. layer.open({
  1021. type: 2,
  1022. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1023. title: "审核退回申请",
  1024. area: ["60%", "80%"], //宽高
  1025. });
  1026. }
  1027. //办理
  1028. // function th(str) {
  1029. // layer.open({
  1030. // type: 2,
  1031. // content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1032. // title: '办理工单',
  1033. // area: ['35%', '30%'], //宽高
  1034. // });
  1035. // }
  1036. //处理审核
  1037. function auditdeal(str) {
  1038. layer.open({
  1039. type: 2,
  1040. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1041. title: "处理审核",
  1042. area: ["80%", "80%"], //宽高
  1043. });
  1044. }
  1045. //转督办
  1046. function zdb(str) {
  1047. layer.confirm(
  1048. "确定督办吗?",
  1049. {
  1050. btn: ["是", "否"], //按钮
  1051. },
  1052. function () {
  1053. $.post(
  1054. huayi.config.callcenter_url +
  1055. "WorkOrder/RemindWorkOrder",
  1056. {
  1057. workorderid: str,
  1058. type: 1,
  1059. state: 0,
  1060. token: $.cookie("token"),
  1061. },
  1062. function (result) {
  1063. result = JSON.parse(result);
  1064. if (result.state.toLowerCase() == "success") {
  1065. layer.msg("操作成功");
  1066. load();
  1067. }
  1068. }
  1069. );
  1070. }
  1071. );
  1072. }
  1073. //申请延时
  1074. function ys(str) {
  1075. layer.open({
  1076. type: 2,
  1077. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1078. title: "申请延时",
  1079. area: ["60%", "80%"], //宽高
  1080. });
  1081. }
  1082. //审核申请延时
  1083. function shys(str) {
  1084. layer.open({
  1085. type: 2,
  1086. content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1087. title: "审核延时申请",
  1088. area: ["60%", "80%"], //宽高
  1089. });
  1090. }
  1091. //诉求回访
  1092. function hf(str) {
  1093. layer.open({
  1094. type: 2,
  1095. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1096. title: "工单回访",
  1097. area: ["60%", "80%"], //宽高
  1098. });
  1099. }
  1100. //重办工单
  1101. function cb(str) {
  1102. layer.open({
  1103. type: 2,
  1104. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1105. title: "重办工单",
  1106. area: ["60%", "80%"], //宽高
  1107. });
  1108. }
  1109. //结案
  1110. function Lawsuit(str) {
  1111. layer.open({
  1112. type: 2,
  1113. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1114. title: "诉求单结案",
  1115. area: ["60%", "80%"], //宽高
  1116. });
  1117. }
  1118. $(".Appeal").click(function () {
  1119. layer.open({
  1120. type: 2,
  1121. content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
  1122. title: "新增诉求",
  1123. area: ["85%", "80%"], //宽高
  1124. });
  1125. });
  1126. //上传文件
  1127. function upload() {
  1128. if (document.getElementById("upFile").files.length > 0) {
  1129. var formData = new FormData();
  1130. formData.append(
  1131. "upFile",
  1132. document.getElementById("upFile").files[0]
  1133. );
  1134. formData.append("token", $.cookie("token"));
  1135. $.ajax({
  1136. url:
  1137. huayi.config.callcenter_url +
  1138. "/WorkOrder/UploadFile",
  1139. type: "POST",
  1140. data: formData,
  1141. /**
  1142. *必须false才会自动加上正确的Content-Type
  1143. */
  1144. contentType: false,
  1145. /**
  1146. * 必须false才会避开jQuery对 formdata 的默认处理
  1147. * XMLHttpRequest会对 formdata 进行正确的处理
  1148. */
  1149. processData: false,
  1150. success: function (result) {
  1151. document.getElementById(
  1152. "upFile"
  1153. ).outerHTML = document.getElementById(
  1154. "upFile"
  1155. ).outerHTML;
  1156. $("#upFile").change(function () {
  1157. upload();
  1158. });
  1159. var r = $.parseJSON(result);
  1160. if (r.state.toLowerCase() == "success") {
  1161. $(".fjnr").text(r.data);
  1162. $("#scfj").show();
  1163. }
  1164. },
  1165. });
  1166. } else {
  1167. layer.confirm("请上传文件!", {
  1168. btn: ["确定"],
  1169. });
  1170. }
  1171. }
  1172. //来源
  1173. function LY(obj) {
  1174. obj.empty();
  1175. obj.append(
  1176. '<option selected="selected" value="">请选择</option>'
  1177. );
  1178. $.getJSON(
  1179. huayi.config.callcenter_url +
  1180. "Dictionary/GetDicValueListById",
  1181. {
  1182. token: $.cookie("token"),
  1183. id: 1,
  1184. },
  1185. function (data) {
  1186. if (data.state.toLowerCase() == "success") {
  1187. var content = data.data;
  1188. $(content).each(function (i, n) {
  1189. $(
  1190. "<option value='" +
  1191. n.F_ValueId +
  1192. "'>" +
  1193. n.F_Value +
  1194. "</option>"
  1195. ).appendTo(obj);
  1196. });
  1197. }
  1198. }
  1199. );
  1200. }
  1201. //类别
  1202. function LB(obj) {
  1203. obj.empty();
  1204. obj.append(
  1205. '<option selected="selected" value="">请选择</option>'
  1206. );
  1207. $.getJSON(
  1208. huayi.config.callcenter_url +
  1209. "Dictionary/GetDicValueListById",
  1210. {
  1211. token: $.cookie("token"),
  1212. id: 2,
  1213. },
  1214. function (data) {
  1215. if (data.state.toLowerCase() == "success") {
  1216. var content = data.data;
  1217. $(content).each(function (i, n) {
  1218. $(
  1219. "<option value='" +
  1220. n.F_ValueId +
  1221. "'>" +
  1222. n.F_Value +
  1223. "</option>"
  1224. ).appendTo(obj);
  1225. });
  1226. }
  1227. }
  1228. );
  1229. }
  1230. // 主题
  1231. function ZT(obj) {
  1232. obj.empty();
  1233. obj.append(
  1234. '<option selected="selected" value="">请选择</option>'
  1235. );
  1236. $.getJSON(
  1237. huayi.config.callcenter_url +
  1238. "Dictionary/GetDicValueListById",
  1239. {
  1240. token: $.cookie("token"),
  1241. id: 3,
  1242. },
  1243. function (data) {
  1244. if (data.state.toLowerCase() == "success") {
  1245. var content = data.data;
  1246. $(content).each(function (i, n) {
  1247. $(
  1248. "<option value='" +
  1249. n.F_ValueId +
  1250. "'>" +
  1251. n.F_Value +
  1252. "</option>"
  1253. ).appendTo(obj);
  1254. });
  1255. }
  1256. }
  1257. );
  1258. }
  1259. function tree() {
  1260. $.get(
  1261. huayi.config.callcenter_url + "Department/GetDeptList",
  1262. {
  1263. token: $.cookie("token"),
  1264. // "pid": pid
  1265. },
  1266. function (result) {
  1267. result = $.parseJSON(result);
  1268. $.fn.zTree.init(
  1269. $("#addTreeDemo"),
  1270. setting1,
  1271. result.data
  1272. ); //实例化树形图
  1273. }
  1274. );
  1275. }
  1276. var setting1 = {
  1277. data: {
  1278. key: {
  1279. name: "F_DeptName",
  1280. },
  1281. simpleData: {
  1282. enable: true,
  1283. idKey: "F_DeptId",
  1284. pIdKey: "F_PartentId",
  1285. rootPId: 0,
  1286. },
  1287. },
  1288. callback: {
  1289. onClick: zTreeOnClick,
  1290. },
  1291. };
  1292. function zTreeOnClick(event, treeId, treeNode) {
  1293. if (treeNode.level >= 1) {
  1294. $(".inps").val(treeNode.F_DeptName);
  1295. $("#PID").val(treeNode.F_DeptId);
  1296. $("#Dpment").val(treeNode.F_DeptName);
  1297. $(".Cleans").show();
  1298. }
  1299. }
  1300. </script>
  1301. </body>
  1302. </html>