Нет описания

LawsuitProvincialPlatform.html 51KB

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