No Description

WorkDC.html 52KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341
  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: $("#state").val(), //=工单状态
  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. sourcearea: $("#sourceAreas").val(), //区域
  613. token: $.cookie("token"),
  614. };
  615. return param;
  616. },
  617. onLoadSuccess: function (data) {
  618. //加载成功时执行
  619. // layer.msg("加载成功");
  620. //console.log(data);
  621. },
  622. onLoadError: function () {
  623. //加载失败时执行
  624. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  625. },
  626. });
  627. }
  628. //状态
  629. function States(val, row) {
  630. var html = "";
  631. switch (val + "") {
  632. case "0":
  633. html = "新工单";
  634. if (row.F_IsReturn == 1) {
  635. html = "新工单(回退)";
  636. }
  637. break;
  638. case "1":
  639. html = "待审核";
  640. break;
  641. case "2":
  642. <span style="color:#FF0000;">待查收</span> ;
  643. break;
  644. case "3":
  645. html = "退回审核中";
  646. break;
  647. case "4":
  648. html = "办理中";
  649. break;
  650. case "5":
  651. html = "延时审核";
  652. break;
  653. case "6":
  654. html = "待审核";
  655. break;
  656. case "7":
  657. html = "已回访";
  658. break;
  659. case "8":
  660. html = "重办中";
  661. break;
  662. case "9":
  663. html = "已结案";
  664. break;
  665. case "10":
  666. html = "待审核";
  667. break;
  668. case "11":
  669. html = "重办待交办";
  670. break;
  671. case "12":
  672. html = "待审核";
  673. break;
  674. case "13":
  675. html = "待督办";
  676. break;
  677. }
  678. return html;
  679. }
  680. //时限
  681. function OverTime(val, row) {
  682. if (val == 1) {
  683. return (
  684. '<div class="" style="cursor: pointer;">' +
  685. '<span class="Greens">' +
  686. row.GapTime +
  687. "</span>" +
  688. "</div>"
  689. );
  690. } else if (val == 2) {
  691. return (
  692. '<div class="" style="cursor: pointer;">' +
  693. '<span class="Yellows">' +
  694. row.GapTime +
  695. "</span>" +
  696. "</div>"
  697. );
  698. } else if (val == 3) {
  699. return (
  700. '<div class="" style="cursor: pointer;">' +
  701. '<span class="Reds">' +
  702. row.GapTime +
  703. "</span>" +
  704. "</div>"
  705. );
  706. }
  707. }
  708. //办理时限
  709. function BanTime(val) {
  710. if (val) {
  711. var time = val.substring(0, val.indexOf(" "));
  712. return (
  713. '<div class="" style="cursor: pointer;">' +
  714. "<span>" +
  715. time +
  716. "</span>" +
  717. "</div>"
  718. );
  719. }
  720. }
  721. //音频
  722. function setCode(val) {
  723. if (val) {
  724. return (
  725. '<div class="imgs" style="cursor: pointer;">' +
  726. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' +
  727. val +
  728. '" />' +
  729. "</div>"
  730. );
  731. } else {
  732. return "";
  733. }
  734. }
  735. function GetCont(val) {
  736. if (val) {
  737. var str = "<div ";
  738. if (val.length > 10) {
  739. str = str + ' title="' + val + '" ';
  740. val = val.substr(0, 10) + "...";
  741. }
  742. return str + ">" + val + "</div>";
  743. } else {
  744. return "";
  745. }
  746. }
  747. //操作
  748. function Dispose(val, row) {
  749. var Rows = row.Buttons;
  750. var html = "";
  751. for (var i = 0; i < Rows.length; i++) {
  752. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  753. if (html1) {
  754. html1 = html1.replace("data", val);
  755. html1 = html1.replace("isProtect", row.F_IsProtect);
  756. html1 = html1.replace("row", row.F_MainDeptId);
  757. }
  758. html += html1;
  759. }
  760. return html;
  761. }
  762. //查看详情
  763. function ckxq(str) {
  764. layer.open({
  765. type: 2,
  766. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  767. title: "工单详情",
  768. area: ["100%", "100%"], //宽高
  769. });
  770. }
  771. //编辑
  772. function bj(str) {
  773. layer.open({
  774. type: 2,
  775. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  776. title: "审核工单",
  777. area: ["96%", "80%"], //宽高
  778. });
  779. }
  780. //删除
  781. function move(str) {
  782. layer.confirm(
  783. "确定删除工单?",
  784. {
  785. btn: ["是", "否"], //按钮
  786. },
  787. function () {
  788. $.post(
  789. huayi.config.callcenter_url +
  790. "WorkOrder/DelWorkOrder",
  791. {
  792. ids: str,
  793. token: $.cookie("token"),
  794. },
  795. function (result) {
  796. result = JSON.parse(result);
  797. if (result.state.toLowerCase() == "success") {
  798. layer.msg("删除成功");
  799. load();
  800. }
  801. }
  802. );
  803. }
  804. );
  805. }
  806. //提交
  807. function tj(str) {
  808. layer.confirm(
  809. "确定要提交工单么?",
  810. {
  811. btn: ["确定", "取消"], //按钮
  812. },
  813. function () {
  814. //请求后台数据
  815. /*发送请求*/
  816. $.post(
  817. huayi.config.callcenter_url +
  818. "WorkOrder/SubmitWorkOrder",
  819. {
  820. ids: str,
  821. token: $.cookie("token"),
  822. },
  823. function (result) {
  824. result = JSON.parse(result);
  825. if (result.state.toLowerCase() == "success") {
  826. layer.msg("提交成功");
  827. load();
  828. }
  829. }
  830. );
  831. }
  832. );
  833. }
  834. //交办
  835. function jb(str) {
  836. layer.open({
  837. type: 2,
  838. content: "../CommonHtml/JiaoBan.html?wid=" + str, //iframe的url,no代表不显示滚动条
  839. title: "工单交办",
  840. area: ["87%", "80%"], //宽高
  841. });
  842. }
  843. //领导批示
  844. function lader(str) {
  845. layer.open({
  846. type: 2,
  847. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  848. title: "领导批示",
  849. area: ["60%", "80%"], //宽高
  850. });
  851. }
  852. //市长批示
  853. function city(str) {
  854. layer.open({
  855. type: 2,
  856. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  857. title: "领导批示",
  858. area: ["60%", "80%"], //宽高
  859. });
  860. }
  861. //办理
  862. function bl(str, isProtect) {
  863. layer.open({
  864. type: 2,
  865. content:
  866. "../CommonHtml/banli.html?wid=" +
  867. str +
  868. "&isProtect=" +
  869. isProtect, //iframe的url,no代表不显示滚动条
  870. title: "办理工单",
  871. area: ["60%", "80%"], //宽高
  872. });
  873. }
  874. //派单
  875. function pd(str) {
  876. layer.open({
  877. type: 2,
  878. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  879. title: "派单",
  880. area: ["87%", "80%"], //宽高
  881. });
  882. }
  883. //督办
  884. function Supervision(str) {
  885. layer.open({
  886. type: 2,
  887. content:
  888. "../CommonHtml/Supervision_.html?wid=" +
  889. str +
  890. "&type=1", //iframe的url,no代表不显示滚动条
  891. title: "督办",
  892. area: ["60%", "80%"], //宽高
  893. });
  894. }
  895. //督查
  896. function Supervision_(str) {
  897. layer.open({
  898. type: 2,
  899. content:
  900. "../CommonHtml/Supervision_.html?wid=" +
  901. str +
  902. "&type=2", //iframe的url,no代表不显示滚动条
  903. title: "监察",
  904. area: ["60%", "80%"], //宽高
  905. });
  906. }
  907. //强制结案
  908. function StrongLawsuit(str) {
  909. layer.open({
  910. type: 2,
  911. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  912. title: "强制结案",
  913. area: ["60%", "80%"], //宽高
  914. });
  915. }
  916. //回退BackDtail
  917. function BackDtail(str) {
  918. layer.open({
  919. type: 2,
  920. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  921. title: "工单回退",
  922. area: ["60%", "80%"], //宽高
  923. });
  924. }
  925. //查收
  926. function cs(str) {
  927. $.post(
  928. huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder",
  929. {
  930. workorderid: str,
  931. token: $.cookie("token"),
  932. },
  933. function (result) {
  934. result = JSON.parse(result);
  935. if (result.state.toLowerCase() == "success") {
  936. layer.msg("查收成功");
  937. load();
  938. }
  939. }
  940. );
  941. layer.open({
  942. type: 2,
  943. content:
  944. "../CommonHtml/WorkDatil.html?wid=" + str + "&check=check", //iframe的url,no代表不显示滚动条
  945. title: "工单详情",
  946. area: ["100%", "100%"], //宽高
  947. });
  948. // layer.confirm(
  949. // "确定要查收?",
  950. // {
  951. // btn: ["是", "否"], //按钮
  952. // },
  953. // function () {}
  954. // );
  955. }
  956. //收回
  957. function sh(str) {
  958. layer.confirm(
  959. "确定要回收?",
  960. {
  961. btn: ["是", "否"], //按钮
  962. },
  963. function () {
  964. $.post(
  965. huayi.config.callcenter_url +
  966. "WorkOrder/TakeBackWorkOrder",
  967. {
  968. workorderid: str,
  969. token: $.cookie("token"),
  970. },
  971. function (result) {
  972. result = JSON.parse(result);
  973. if (result.state.toLowerCase() == "success") {
  974. layer.msg("回收");
  975. load();
  976. }
  977. }
  978. );
  979. }
  980. );
  981. }
  982. //撤回
  983. function withdraw(str) {
  984. layer.confirm(
  985. "确定要撤回吗?",
  986. {
  987. btn: ["是", "否"], //按钮
  988. },
  989. function () {
  990. $.post(
  991. huayi.config.callcenter_url +
  992. "WorkOrder/WithdrawWorkOrder",
  993. {
  994. workorderid: str,
  995. token: $.cookie("token"),
  996. },
  997. function (result) {
  998. result = JSON.parse(result);
  999. if (result.state.toLowerCase() == "success") {
  1000. layer.msg("撤回成功");
  1001. load();
  1002. }
  1003. }
  1004. );
  1005. }
  1006. );
  1007. }
  1008. //退回申请
  1009. function th(str) {
  1010. layer.open({
  1011. type: 2,
  1012. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1013. title: "申请退回工单",
  1014. area: ["60%", "80%"], //宽高
  1015. });
  1016. }
  1017. //审核退回申请
  1018. function shth(str) {
  1019. layer.open({
  1020. type: 2,
  1021. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1022. title: "审核退回申请",
  1023. area: ["60%", "80%"], //宽高
  1024. });
  1025. }
  1026. //办理
  1027. // function th(str) {
  1028. // layer.open({
  1029. // type: 2,
  1030. // content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1031. // title: '办理工单',
  1032. // area: ['35%', '30%'], //宽高
  1033. // });
  1034. // }
  1035. //处理审核
  1036. function auditdeal(str) {
  1037. layer.open({
  1038. type: 2,
  1039. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1040. title: "处理审核",
  1041. area: ["80%", "80%"], //宽高
  1042. });
  1043. }
  1044. //转督办
  1045. function zdb(str) {
  1046. layer.confirm(
  1047. "确定督办吗?",
  1048. {
  1049. btn: ["是", "否"], //按钮
  1050. },
  1051. function () {
  1052. $.post(
  1053. huayi.config.callcenter_url +
  1054. "WorkOrder/RemindWorkOrder",
  1055. {
  1056. workorderid: str,
  1057. type: 1,
  1058. state: 0,
  1059. token: $.cookie("token"),
  1060. },
  1061. function (result) {
  1062. result = JSON.parse(result);
  1063. if (result.state.toLowerCase() == "success") {
  1064. layer.msg("操作成功");
  1065. load();
  1066. }
  1067. }
  1068. );
  1069. }
  1070. );
  1071. }
  1072. //申请延时
  1073. function ys(str) {
  1074. layer.open({
  1075. type: 2,
  1076. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1077. title: "申请延时",
  1078. area: ["60%", "80%"], //宽高
  1079. });
  1080. }
  1081. //审核申请延时
  1082. function shys(str) {
  1083. layer.open({
  1084. type: 2,
  1085. content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1086. title: "审核延时申请",
  1087. area: ["60%", "80%"], //宽高
  1088. });
  1089. }
  1090. //诉求回访
  1091. function hf(str) {
  1092. layer.open({
  1093. type: 2,
  1094. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1095. title: "工单回访",
  1096. area: ["60%", "80%"], //宽高
  1097. });
  1098. }
  1099. //重办工单
  1100. function cb(str) {
  1101. layer.open({
  1102. type: 2,
  1103. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1104. title: "重办工单",
  1105. area: ["60%", "80%"], //宽高
  1106. });
  1107. }
  1108. //结案
  1109. function Lawsuit(str) {
  1110. layer.open({
  1111. type: 2,
  1112. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1113. title: "诉求单结案",
  1114. area: ["60%", "80%"], //宽高
  1115. });
  1116. }
  1117. $(".Appeal").click(function () {
  1118. layer.open({
  1119. type: 2,
  1120. content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
  1121. title: "新增诉求",
  1122. area: ["85%", "80%"], //宽高
  1123. });
  1124. });
  1125. //上传文件
  1126. function upload() {
  1127. if (document.getElementById("upFile").files.length > 0) {
  1128. var formData = new FormData();
  1129. formData.append(
  1130. "upFile",
  1131. document.getElementById("upFile").files[0]
  1132. );
  1133. formData.append("token", $.cookie("token"));
  1134. $.ajax({
  1135. url:
  1136. huayi.config.callcenter_url +
  1137. "/WorkOrder/UploadFile",
  1138. type: "POST",
  1139. data: formData,
  1140. /**
  1141. *必须false才会自动加上正确的Content-Type
  1142. */
  1143. contentType: false,
  1144. /**
  1145. * 必须false才会避开jQuery对 formdata 的默认处理
  1146. * XMLHttpRequest会对 formdata 进行正确的处理
  1147. */
  1148. processData: false,
  1149. success: function (result) {
  1150. document.getElementById(
  1151. "upFile"
  1152. ).outerHTML = document.getElementById(
  1153. "upFile"
  1154. ).outerHTML;
  1155. $("#upFile").change(function () {
  1156. upload();
  1157. });
  1158. var r = $.parseJSON(result);
  1159. if (r.state.toLowerCase() == "success") {
  1160. $(".fjnr").text(r.data);
  1161. $("#scfj").show();
  1162. }
  1163. },
  1164. });
  1165. } else {
  1166. layer.confirm("请上传文件!", {
  1167. btn: ["确定"],
  1168. });
  1169. }
  1170. }
  1171. //来源
  1172. function LY(obj) {
  1173. obj.empty();
  1174. obj.append(
  1175. '<option selected="selected" value="">请选择</option>'
  1176. );
  1177. $.getJSON(
  1178. huayi.config.callcenter_url +
  1179. "Dictionary/GetDicValueListById",
  1180. {
  1181. token: $.cookie("token"),
  1182. id: 1,
  1183. },
  1184. function (data) {
  1185. if (data.state.toLowerCase() == "success") {
  1186. var content = data.data;
  1187. $(content).each(function (i, n) {
  1188. $(
  1189. "<option value='" +
  1190. n.F_ValueId +
  1191. "'>" +
  1192. n.F_Value +
  1193. "</option>"
  1194. ).appendTo(obj);
  1195. });
  1196. }
  1197. }
  1198. );
  1199. }
  1200. //类别
  1201. function LB(obj) {
  1202. obj.empty();
  1203. obj.append(
  1204. '<option selected="selected" value="">请选择</option>'
  1205. );
  1206. $.getJSON(
  1207. huayi.config.callcenter_url +
  1208. "Dictionary/GetDicValueListById",
  1209. {
  1210. token: $.cookie("token"),
  1211. id: 2,
  1212. },
  1213. function (data) {
  1214. if (data.state.toLowerCase() == "success") {
  1215. var content = data.data;
  1216. $(content).each(function (i, n) {
  1217. $(
  1218. "<option value='" +
  1219. n.F_ValueId +
  1220. "'>" +
  1221. n.F_Value +
  1222. "</option>"
  1223. ).appendTo(obj);
  1224. });
  1225. }
  1226. }
  1227. );
  1228. }
  1229. // 主题
  1230. function ZT(obj) {
  1231. obj.empty();
  1232. obj.append(
  1233. '<option selected="selected" value="">请选择</option>'
  1234. );
  1235. $.getJSON(
  1236. huayi.config.callcenter_url +
  1237. "Dictionary/GetDicValueListById",
  1238. {
  1239. token: $.cookie("token"),
  1240. id: 3,
  1241. },
  1242. function (data) {
  1243. if (data.state.toLowerCase() == "success") {
  1244. var content = data.data;
  1245. $(content).each(function (i, n) {
  1246. $(
  1247. "<option value='" +
  1248. n.F_ValueId +
  1249. "'>" +
  1250. n.F_Value +
  1251. "</option>"
  1252. ).appendTo(obj);
  1253. });
  1254. }
  1255. }
  1256. );
  1257. }
  1258. function tree() {
  1259. $.get(
  1260. huayi.config.callcenter_url + "Department/GetDeptList",
  1261. {
  1262. token: $.cookie("token"),
  1263. // "pid": pid
  1264. },
  1265. function (result) {
  1266. result = $.parseJSON(result);
  1267. $.fn.zTree.init(
  1268. $("#addTreeDemo"),
  1269. setting1,
  1270. result.data
  1271. ); //实例化树形图
  1272. }
  1273. );
  1274. }
  1275. var setting1 = {
  1276. data: {
  1277. key: {
  1278. name: "F_DeptName",
  1279. },
  1280. simpleData: {
  1281. enable: true,
  1282. idKey: "F_DeptId",
  1283. pIdKey: "F_PartentId",
  1284. rootPId: 0,
  1285. },
  1286. },
  1287. callback: {
  1288. onClick: zTreeOnClick,
  1289. },
  1290. };
  1291. function zTreeOnClick(event, treeId, treeNode) {
  1292. if (treeNode.level >= 2) {
  1293. $(".inps").val(treeNode.F_DeptName);
  1294. $("#PID").val(treeNode.F_DeptId);
  1295. $("#Dpment").val(treeNode.F_DeptName);
  1296. $(".Cleans").show();
  1297. }
  1298. }
  1299. </script>
  1300. </body>
  1301. </html>