Bez popisu

commentList.html 33KB

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