Nenhuma Descrição

Lawsuit.html 36KB

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