Нет описания

2016HistoryWorkOrder.html 51KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8" />
  5. <title>2016年历史工单</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">2016年历史工单</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;" disabled="disabled" />-<input id="endtime"
  49. class="photo x-color laydate-icon" type="text" autocomplete="off"
  50. style="height: 35px;" disabled="disabled" />
  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. $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
  354. $(".success").removeClass("success"); //去除之前选中的行的,选中样式
  355. $(ele).addClass("success"); //添加当前选中的 success样式用于区别
  356. });
  357. //获取查询信息
  358. function load() {
  359. //坐席
  360. var usercodeID = "";
  361. var usercode_ = $("#ZX").val(); //坐席
  362. if (usercode_ != null) {
  363. $(usercode_).each(function (i, n) {
  364. var obj1 = "";
  365. obj1 = n + ",";
  366. usercodeID += obj1;
  367. });
  368. } else {
  369. usercodeID = "";
  370. }
  371. // 调度员
  372. var ddusercodeID = "";
  373. var ddusercode_ = $("#yardman").val(); //坐席
  374. if (ddusercode_ != null) {
  375. $(ddusercode_).each(function (i, n) {
  376. var obj2 = "";
  377. obj2 = n + ",";
  378. ddusercodeID += obj2;
  379. });
  380. } else {
  381. ddusercodeID = "";
  382. }
  383. //三方通话
  384. var threeWayCall;
  385. if ($("#dealtype").val() === "2") {
  386. threeWayCall = 1
  387. } else {
  388. threeWayCall = 0
  389. }
  390. //先销毁表格
  391. $("#orderlist").bootstrapTable("destroy");
  392. //初始化表格,动态从服务器加载数据
  393. $("#orderlist").bootstrapTable({
  394. method: "get", //使用get请求到服务器获取数据
  395. url: huayi.config.callcenter_url + "WorkOrder/GetList", //获取数据的Servlet地址
  396. contentType: "application/x-www-form-urlencoded",
  397. striped: true, //表格显示条纹
  398. pagination: true, //启动分页
  399. pageSize: 10, //每页显示的记录数
  400. pageNumber: 1, //当前第几页
  401. pageList: [10, 20, 50, 100], //记录数可选列表
  402. search: false, //是否启用查询
  403. showColumns: false, //显示下拉框勾选要显示的列
  404. showRefresh: false, //显示刷新按钮
  405. sidePagination: "server", //表示服务端请求
  406. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  407. //设置为limit可以获取limit, offset, search, sort, order
  408. queryParamsType: "undefined",
  409. queryParams: function queryParams(params) {
  410. //设置查询参数
  411. //alert(params.pageNumber)
  412. var param = {
  413. page: params.pageNumber,
  414. pagesize: params.pageSize,
  415. workid: $("#wids").val().replace(/\s+/g, ""),
  416. state: $("#state").val(), //=工单状态
  417. type: $("#type").val(), //=工单类型
  418. //bigtype: $("#bigtype").val(), //=大类别
  419. //smalltype: $("#smalltype").val(), //=小类别
  420. key: $("#key").val(), //=关键字
  421. tel: $("#tel").val().replace(/\s+/g, ""), //=客户电话
  422. name: $("#name").val().replace(/\s+/g, ""), //=客户名称
  423. usercode: usercodeID, //=坐席工号
  424. ddusercode: ddusercodeID,
  425. keyid: $("#keyid").val(), //=关键词id
  426. source: $("#source").val(), //=来源&
  427. // starttime: $("#starttime").val(), //=开始时间
  428. // endtime: $("#endtime").val(), //=结束时间
  429. starttime: $("#starttime").val(), //=开始时间
  430. endtime: "2016-12-31 23:59:59", //=结束时间
  431. deptid: $("#PID").val(),
  432. type: $("#type").val(),
  433. dealtype: $("#dealtype").val(),
  434. business: threeWayCall,
  435. sourcearea: $("#sourceAreas").val(), // 区域
  436. ComTitle: $("#workOrderTitle").val().replace(/\s+/g, ""), // 工单标题
  437. ComContent: $("#workOrderContent").val().replace(/\s+/g, ""), // 工单内容
  438. Result: $("#workOrderProcessingResult").val().replace(/\s+/g, ""), // 办理结果
  439. dealstarttime: $("#dealstarttime").val(), //办理开始时间
  440. dealstrendtime: $("#dealstrendtime").val(), //办理结束时间
  441. isopen: $("#isopen").val(),
  442. business: $("#threeWayCall").val(), // 三方通话
  443. splituser: $("#leaderCharge").val(), // 分管领导
  444. islike: $("#islike").val(), // 查询类型
  445. comprehensive: 1,
  446. token: $.cookie("token"),
  447. };
  448. return param;
  449. },
  450. onLoadSuccess: function (data) {
  451. //加载成功时执行
  452. // layer.msg("加载成功");
  453. //console.log(data);
  454. },
  455. onLoadError: function () {
  456. //加载失败时执行
  457. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  458. },
  459. });
  460. }
  461. //状态
  462. function States(val, row) {
  463. var html = "";
  464. switch (val + "") {
  465. case "0":
  466. html = "新工单";
  467. if (row.F_IsReturn == 1) {
  468. html = "新工单(回退)";
  469. }
  470. break;
  471. case "1":
  472. html = "待交办";
  473. break;
  474. case "2":
  475. html = '<span style="color:#FF0000;">待查收</span>';
  476. break;
  477. case "3":
  478. html = "退回审核中";
  479. break;
  480. case "4":
  481. html = "办理中";
  482. break;
  483. case "5":
  484. html = "延时审核";
  485. break;
  486. case "6":
  487. if (row.F_IsProtect === 2 || row.F_IsProtect === 3) {
  488. html = "已办未果"
  489. } else {
  490. html = "已办理";
  491. }
  492. break;
  493. case "7":
  494. html = "已回访";
  495. break;
  496. case "8":
  497. html = "重办中";
  498. break;
  499. case "9":
  500. html = "已结案";
  501. break;
  502. case "10":
  503. html = "待审核";
  504. break;
  505. case "11":
  506. html = "重办待交办";
  507. break;
  508. // case '12':
  509. // html = '待审核';
  510. // break;
  511. case "13":
  512. html = "重办驳回";
  513. break;
  514. }
  515. return html;
  516. }
  517. //音频
  518. function setCode(val) {
  519. if (val) {
  520. return (
  521. '<div class="imgs" style="cursor: pointer;">' +
  522. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' +
  523. val +
  524. '" />' +
  525. "</div>"
  526. );
  527. } else {
  528. return "";
  529. }
  530. }
  531. //编号
  532. function serialNumber(val, row, index) {
  533. return index + 1;
  534. }
  535. function GetCont(val) {
  536. if (val) {
  537. var str = "<div ";
  538. if (val.length > 10) {
  539. str = str + ' title="' + val + '" ';
  540. val = val.substr(0, 10) + "...";
  541. }
  542. return str + ">" + val + "</div>";
  543. } else {
  544. return "";
  545. }
  546. }
  547. //操作
  548. function Dispose(val, row) {
  549. var Rows = row.Buttons;
  550. var html = "";
  551. for (var i = 0; i < Rows.length; i++) {
  552. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  553. if (html1) {
  554. html1 = html1.replace("data", val);
  555. html1 = html1.replace("isProtect", row.F_IsProtect);
  556. html1 = html1.replace("row", row.F_MainDeptId);
  557. }
  558. html += html1;
  559. }
  560. return html;
  561. }
  562. //查看详情
  563. function ckxq(str) {
  564. layer.open({
  565. type: 2,
  566. // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  567. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  568. title: "工单详情",
  569. area: ["100%", "100%"], //宽高
  570. });
  571. }
  572. //时限
  573. function OverTime(val, row) {
  574. if (val == 1) {
  575. return (
  576. '<div class="" style="cursor: pointer;">' +
  577. '<span class="Greens">' +
  578. row.GapTime +
  579. "</span>" +
  580. "</div>"
  581. );
  582. } else if (val == 2) {
  583. return (
  584. '<div class="" style="cursor: pointer;">' +
  585. '<span class="Yellows">' +
  586. row.GapTime +
  587. "</span>" +
  588. "</div>"
  589. );
  590. } else if (val == 3) {
  591. return (
  592. '<div class="" style="cursor: pointer;">' +
  593. '<span class="Reds">' +
  594. row.GapTime +
  595. "</span>" +
  596. "</div>"
  597. );
  598. }
  599. }
  600. //办理时限
  601. function BanTime(val) {
  602. if (val) {
  603. var time = val.substring(0, val.indexOf(" "));
  604. return (
  605. '<div class="" style="cursor: pointer;">' +
  606. "<span>" +
  607. time +
  608. "</span>" +
  609. "</div>"
  610. );
  611. }
  612. }
  613. //派单
  614. function pd(str) {
  615. layer.open({
  616. type: 2,
  617. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  618. title: "办理工单",
  619. area: ["87%", "80%"], //宽高
  620. });
  621. }
  622. //处理审核
  623. function auditdeal(str) {
  624. layer.open({
  625. type: 2,
  626. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  627. title: "处理审核",
  628. area: ["80%", "80%"], //宽高
  629. });
  630. }
  631. //编辑
  632. function bj(str) {
  633. layer.open({
  634. type: 2,
  635. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  636. title: "编辑工单",
  637. area: ["96%", "80%"], //宽高
  638. });
  639. }
  640. //删除
  641. function move(str) {
  642. layer.confirm(
  643. "确定删除工单?", {
  644. btn: ["是", "否"], //按钮
  645. },
  646. function () {
  647. $.post(
  648. huayi.config.callcenter_url +
  649. "WorkOrder/DelWorkOrder", {
  650. ids: str,
  651. token: $.cookie("token"),
  652. },
  653. function (result) {
  654. result = JSON.parse(result);
  655. if (result.state.toLowerCase() == "success") {
  656. debugger;
  657. layer.msg("删除成功");
  658. $("#orderlist").bootstrapTable("refresh");
  659. }
  660. }
  661. );
  662. }
  663. );
  664. }
  665. //提交
  666. function tj(str) {
  667. layer.confirm(
  668. "确定要提交工单么?", {
  669. btn: ["确定", "取消"], //按钮
  670. },
  671. function () {
  672. //请求后台数据
  673. /*发送请求*/
  674. $.post(
  675. huayi.config.callcenter_url +
  676. "WorkOrder/SubmitWorkOrder", {
  677. ids: str,
  678. token: $.cookie("token"),
  679. },
  680. function (result) {
  681. result = JSON.parse(result);
  682. if (result.state.toLowerCase() == "success") {
  683. layer.msg("提交成功");
  684. $("#orderlist").bootstrapTable("refresh");
  685. //load();
  686. }
  687. }
  688. );
  689. }
  690. );
  691. }
  692. //交办
  693. function jb(str) {
  694. layer.open({
  695. type: 2,
  696. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  697. title: "工单交办",
  698. area: ["87%", "80%"], //宽高
  699. });
  700. }
  701. //领导批示
  702. function lader(str) {
  703. layer.open({
  704. type: 2,
  705. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  706. title: "领导批示",
  707. area: ["60%", "80%"], //宽高
  708. });
  709. }
  710. //市长批示
  711. function city(str) {
  712. layer.open({
  713. type: 2,
  714. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  715. title: "市长批示",
  716. area: ["60%", "80%"], //宽高
  717. });
  718. }
  719. //办理
  720. function bl(str, isProtect) {
  721. layer.open({
  722. type: 2,
  723. content: "../CommonHtml/banli.html?wid=" +
  724. str +
  725. "&isProtect=" +
  726. isProtect, //iframe的url,no代表不显示滚动条
  727. title: "办理工单",
  728. area: ["60%", "80%"], //宽高
  729. });
  730. }
  731. //督办
  732. function Supervision(str) {
  733. layer.open({
  734. type: 2,
  735. content: "../CommonHtml/Supervision_.html?wid=" +
  736. str +
  737. "&type=1", //iframe的url,no代表不显示滚动条
  738. title: "督办",
  739. area: ["60%", "80%"], //宽高
  740. });
  741. }
  742. //督查
  743. function Supervision_(str) {
  744. layer.open({
  745. type: 2,
  746. content: "../CommonHtml/Supervision_.html?wid=" +
  747. str +
  748. "&type=2", //iframe的url,no代表不显示滚动条
  749. title: "监察",
  750. area: ["60%", "80%"], //宽高
  751. });
  752. }
  753. //审核
  754. function audit(str) {
  755. layer.open({
  756. type: 2,
  757. content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  758. title: "审核",
  759. area: ["60%", "80%"], //宽高
  760. });
  761. }
  762. //转督办
  763. function zdb(str, row) {
  764. layer.open({
  765. type: 2,
  766. content: "../CommonHtml/superTrunl.html?wid=" +
  767. str +
  768. "&depId=" +
  769. row, //iframe的url,no代表不显示滚动条
  770. title: "督办工单",
  771. area: ["60%", "80%"], //宽高
  772. });
  773. }
  774. //不督办
  775. function ndb(str) {
  776. layer.confirm(
  777. "确定督办吗?", {
  778. btn: ["是", "否"], //按钮
  779. },
  780. function () {
  781. $.post(
  782. huayi.config.callcenter_url +
  783. "WorkOrder/RemindWorkOrder", {
  784. workorderid: str,
  785. type: 1,
  786. state: 2,
  787. token: $.cookie("token"),
  788. },
  789. function (result) {
  790. result = JSON.parse(result);
  791. if (result.state.toLowerCase() == "success") {
  792. layer.msg("操作成功");
  793. //load();
  794. $("#orderlist").bootstrapTable("refresh");
  795. }
  796. }
  797. );
  798. }
  799. );
  800. }
  801. //强制结案
  802. function StrongLawsuit(str) {
  803. layer.open({
  804. type: 2,
  805. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  806. title: "强制结案",
  807. area: ["60%", "80%"], //宽高
  808. });
  809. }
  810. //回退BackDtail
  811. function BackDtail(str) {
  812. layer.open({
  813. type: 2,
  814. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  815. title: "工单督办",
  816. area: ["60%", "80%"], //宽高
  817. });
  818. }
  819. //查收
  820. function cs(str) {
  821. layer.confirm(
  822. "确定要查收?", {
  823. btn: ["是", "否"], //按钮
  824. },
  825. function () {
  826. $.post(
  827. huayi.config.callcenter_url +
  828. "WorkOrder/ReceiveWorkOrder", {
  829. workorderid: str,
  830. token: $.cookie("token"),
  831. },
  832. function (result) {
  833. result = JSON.parse(result);
  834. if (result.state.toLowerCase() == "success") {
  835. layer.msg("查收成功");
  836. //load();
  837. $("#orderlist").bootstrapTable("refresh");
  838. }
  839. }
  840. );
  841. }
  842. );
  843. }
  844. //收回
  845. function sh(str) {
  846. layer.confirm(
  847. "确定要回收?", {
  848. btn: ["是", "否"], //按钮
  849. },
  850. function () {
  851. $.post(
  852. huayi.config.callcenter_url +
  853. "WorkOrder/TakeBackWorkOrder", {
  854. workorderid: str,
  855. token: $.cookie("token"),
  856. },
  857. function (result) {
  858. result = JSON.parse(result);
  859. if (result.state.toLowerCase() == "success") {
  860. layer.msg("回收");
  861. //load();
  862. $("#orderlist").bootstrapTable("refresh");
  863. }
  864. }
  865. );
  866. }
  867. );
  868. }
  869. //强制回收
  870. function recycles() {
  871. layer.confirm("确定要强制退回吗?", {
  872. btn: ["是", "否"], //按钮
  873. });
  874. }
  875. //审核退回申请
  876. function shth(str) {
  877. layer.open({
  878. type: 2,
  879. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  880. title: "审核退回申请",
  881. area: ["60%", "80%"], //宽高
  882. });
  883. }
  884. //申请延时
  885. function ys(str) {
  886. layer.open({
  887. type: 2,
  888. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  889. title: "申请延时",
  890. area: ["60%", "80%"], //宽高
  891. });
  892. }
  893. //审核申请延时
  894. function shys(str) {
  895. layer.open({
  896. type: 2,
  897. content: "../CommonHtml/shTime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  898. title: "审核延时申请",
  899. area: ["60%", "80%"], //宽高
  900. });
  901. }
  902. //审核
  903. function hf(str) {
  904. layer.open({
  905. type: 2,
  906. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  907. title: "工单审核",
  908. area: ["60%", "80%"], //宽高
  909. });
  910. }
  911. //重办工单
  912. function cb(str) {
  913. layer.open({
  914. type: 2,
  915. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  916. title: "重办工单",
  917. area: ["60%", "80%"], //宽高
  918. });
  919. }
  920. //提交重办
  921. function bhcb(str) {
  922. //回退BackDtail
  923. layer.open({
  924. type: 2,
  925. content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  926. title: "驳回重办",
  927. area: ["60%", "80%"], //宽高
  928. });
  929. }
  930. //提交重办
  931. function tjcb(str) {
  932. layer.open({
  933. type: 2,
  934. content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  935. title: "提交重办",
  936. area: ["50%", "40%"], //宽高
  937. });
  938. // layer.confirm('确认提交重办吗?', {
  939. // btn: ['是', '否'] //按钮
  940. // }, function () {
  941. // $.post(huayi.config.callcenter_url + 'WorkOrder/SubReloadWorkOrder', {
  942. // ids: str,
  943. // "token": $.cookie("token")
  944. // }, function(result) {
  945. // result = JSON.parse(result);
  946. // if(result.state.toLowerCase() == "success") {
  947. // layer.msg("操作成功");
  948. // //load();
  949. // $("#orderlist").bootstrapTable('refresh');
  950. // }
  951. // })
  952. // });
  953. }
  954. //结案
  955. function Lawsuit(str) {
  956. layer.open({
  957. type: 2,
  958. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  959. title: "诉求单结案",
  960. area: ["60%", "80%"], //宽高
  961. });
  962. }
  963. //退回
  964. function returnRedo(str) {
  965. layer.open({
  966. type: 2,
  967. content: "../CommonHtml/returnRedo.html?wid=" + str, //iframe的url,no代表不显示滚动条
  968. title: "退回",
  969. area: ["50%", "40%"], //宽高
  970. });
  971. }
  972. //退回
  973. function returnAuditor(str) {
  974. layer.open({
  975. type: 2,
  976. content: "../CommonHtml/returnAuditor.html?wid=" + str, //iframe的url,no代表不显示滚动条
  977. title: "退回",
  978. area: ["50%", "40%"], //宽高
  979. });
  980. }
  981. //修改
  982. function editProcessingResult(str) {
  983. layer.open({
  984. type: 2,
  985. content: "../CommonHtml/editProcessingResult.html?wid=" + str, //iframe的url,no代表不显示滚动条
  986. title: "修改",
  987. area: ["50%", "70%"], //宽高
  988. });
  989. }
  990. //来源
  991. function LY(obj) {
  992. obj.empty();
  993. obj.append(
  994. '<option selected="selected" value="">请选择</option>'
  995. );
  996. $.getJSON(
  997. huayi.config.callcenter_url +
  998. "Dictionary/GetDicValueListById", {
  999. token: $.cookie("token"),
  1000. id: 1,
  1001. },
  1002. function (data) {
  1003. if (data.state.toLowerCase() == "success") {
  1004. var content = data.data;
  1005. $(content).each(function (i, n) {
  1006. $(
  1007. "<option value='" +
  1008. n.F_ValueId +
  1009. "'>" +
  1010. n.F_Value +
  1011. "</option>"
  1012. ).appendTo(obj);
  1013. });
  1014. }
  1015. }
  1016. );
  1017. }
  1018. //类别
  1019. function LB(obj) {
  1020. obj.empty();
  1021. obj.append(
  1022. '<option selected="selected" value="">请选择</option>'
  1023. );
  1024. $.getJSON(
  1025. huayi.config.callcenter_url +
  1026. "Dictionary/GetDicValueListById", {
  1027. token: $.cookie("token"),
  1028. id: 2,
  1029. },
  1030. function (data) {
  1031. if (data.state.toLowerCase() == "success") {
  1032. var content = data.data;
  1033. $(content).each(function (i, n) {
  1034. $(
  1035. "<option value='" +
  1036. n.F_ValueId +
  1037. "'>" +
  1038. n.F_Value +
  1039. "</option>"
  1040. ).appendTo(obj);
  1041. });
  1042. }
  1043. }
  1044. );
  1045. }
  1046. // 主题
  1047. function ZT(obj) {
  1048. obj.empty();
  1049. obj.append(
  1050. '<option selected="selected" value="">请选择</option>'
  1051. );
  1052. $.getJSON(
  1053. huayi.config.callcenter_url +
  1054. "Dictionary/GetDicValueListById", {
  1055. token: $.cookie("token"),
  1056. id: 3,
  1057. },
  1058. function (data) {
  1059. if (data.state.toLowerCase() == "success") {
  1060. var content = data.data;
  1061. $(content).each(function (i, n) {
  1062. $(
  1063. "<option value='" +
  1064. n.F_ValueId +
  1065. "'>" +
  1066. n.F_Value +
  1067. "</option>"
  1068. ).appendTo(obj);
  1069. });
  1070. }
  1071. }
  1072. );
  1073. }
  1074. function tree() {
  1075. $.get(
  1076. huayi.config.callcenter_url + "Department/GetDeptList", {
  1077. token: $.cookie("token"),
  1078. // "pid": pid
  1079. },
  1080. function (result) {
  1081. result = $.parseJSON(result);
  1082. $.fn.zTree.init(
  1083. $("#addTreeDemo"),
  1084. setting1,
  1085. result.data
  1086. ); //实例化树形图
  1087. }
  1088. );
  1089. }
  1090. var setting1 = {
  1091. data: {
  1092. key: {
  1093. name: "F_DeptName",
  1094. },
  1095. simpleData: {
  1096. enable: true,
  1097. idKey: "F_DeptId",
  1098. pIdKey: "F_PartentId",
  1099. rootPId: 0,
  1100. },
  1101. },
  1102. callback: {
  1103. onClick: zTreeOnClick,
  1104. },
  1105. };
  1106. function zTreeOnClick(event, treeId, treeNode) {
  1107. if (treeNode.level >= 1) {
  1108. $(".inps").val(treeNode.F_DeptName);
  1109. $("#PID").val(treeNode.F_DeptId);
  1110. $("#Dpment").val(treeNode.F_DeptId);
  1111. $(".Cleans").show();
  1112. }
  1113. }
  1114. function Close() {
  1115. $(".lyxz").removeClass("cx");
  1116. if ($("audio").length > 0) {
  1117. $("audio")[0].pause();
  1118. }
  1119. }
  1120. //导出
  1121. $(".exportFile").click(function () {
  1122. dcexcel(this);
  1123. });
  1124. // 导出
  1125. function dcexcel(obj) {
  1126. //坐席
  1127. var usercodeID = "";
  1128. var usercode_ = $("#ZX").val(); //坐席
  1129. if (usercode_ != null) {
  1130. $(usercode_).each(function (i, n) {
  1131. var obj1 = "";
  1132. obj1 = n + ",";
  1133. usercodeID += obj1;
  1134. });
  1135. } else {
  1136. usercodeID = "";
  1137. }
  1138. // var sponsorID = "";
  1139. // var sponsor = $("#sponsor").text(); //坐席
  1140. // if(sponsor != null) {
  1141. // sponsorID = $("#sponsor").attr();
  1142. // } else {
  1143. // sponsorID = ""
  1144. // }
  1145. //调度员
  1146. var ddusercodeID = "";
  1147. var ddusercode_ = $("#yardman").val(); //坐席
  1148. if (ddusercode_ != null) {
  1149. $(ddusercode_).each(function (i, n) {
  1150. var obj2 = "";
  1151. obj2 = n + ",";
  1152. ddusercodeID += obj2;
  1153. });
  1154. } else {
  1155. ddusercodeID = "";
  1156. }
  1157. var startTime;
  1158. var endTime;
  1159. if ($("#starttime").val()) {
  1160. startTime = $("#starttime").val();
  1161. endTime = $("#endtime").val();
  1162. } else {
  1163. startTime = "";
  1164. endTime = "";
  1165. }
  1166. var ComTitle = $("#workOrderTitle").val().replace(/\s+/g, ""); // 工单标题
  1167. var ComContent = $("#workOrderContent").val().replace(/\s+/g, ""); // 工单内容
  1168. var Result = $("#workOrderProcessingResult").val().replace(/\s+/g, ""); // 办理结果
  1169. var dealstarttime = $("#dealstarttime").val(); //办理开始时间
  1170. var dealstrendtime = $("#dealstrendtime").val(); //办理结束时间
  1171. var isopen = $("#isopen").val(); // 是否公开
  1172. var url =
  1173. huayi.config.callcenter_url +
  1174. "WorkOrder/GetList?token=" +
  1175. $.cookie("token") +
  1176. "&isdc=1";
  1177. url +=
  1178. "&starttime=" +
  1179. startTime +
  1180. "&endtime=" +
  1181. endTime +
  1182. "&workid=" +
  1183. $("#wids").val() +
  1184. "&state=" +
  1185. $("#state").val() +
  1186. "&type=" +
  1187. $("#type").val() +
  1188. "&key=" +
  1189. $("#key").val() +
  1190. "&tel=" +
  1191. $("#tel").val() +
  1192. "&name=" +
  1193. $("#name").val() +
  1194. "&keyid=" +
  1195. $("#keyid").val() +
  1196. "&source=" +
  1197. $("#source").val() +
  1198. "&usercode=" +
  1199. usercodeID +
  1200. "&ddusercode=" +
  1201. ddusercodeID +
  1202. "&deptid=" +
  1203. $("#Dpment").val() +
  1204. "&type=" +
  1205. $("#type").val() +
  1206. "&dealtype=" +
  1207. $("#dealtype").val() +
  1208. "&sourcearea=" +
  1209. $("#sourceAreas").val() +
  1210. "&ComTitle=" +
  1211. ComTitle +
  1212. "&ComContent=" +
  1213. ComContent +
  1214. "&Result=" +
  1215. Result +
  1216. "&dealstarttime=" +
  1217. dealstarttime +
  1218. "&dealstrendtime=" +
  1219. dealstrendtime +
  1220. "&isopen=" +
  1221. isopen +
  1222. "&isdc=1" +
  1223. "&comprehensive=1";
  1224. window.location.href = url;
  1225. }
  1226. </script>
  1227. </body>
  1228. </html>