No Description

WorkIsproresultOtherPhone.html 50KB

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