No Description

commentList.html 33KB

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