Aucune description

integratedQuery.html 52KB

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