Açıklama Yok

Lawsuit.html 37KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248
  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. <tr>
  297. <th>联系电话:</th>
  298. <td>
  299. <input type="text" id="contel" class="form-control" placeholder="请输入联系电话" />
  300. </td>
  301. </tr>
  302. </table>
  303. </div>
  304. </div>
  305. <div>
  306. <div style="width: 100%; padding: 10px">
  307. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  308. <thead>
  309. <tr>
  310. <th data-formatter="serialNumber" data-align="center">序号</th>
  311. <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单单号</th>
  312. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">诉求标题</th>
  313. <th data-field="F_ComContent" data-formatter="GetCont" data-align="center">来电内容</th>
  314. <th data-field="DeptName" data-align="center">承办单位</th>
  315. <th data-field="UserName" data-align="center">受理人</th>
  316. <th data-field="F_WorkState" data-align="center" data-formatter="States">办理状态</th>
  317. <th data-field="OverState" data-formatter="OverTime" data-align="center">时限</th>
  318. <th data-field="LimitTime" data-formatter="BanTime" data-align="center">办理时限</th>
  319. <th data-field="F_Result" data-formatter="GetCont" data-align="center">办理结果</th>
  320. <th data-field="FilePath" data-formatter="setCode" data-align="center">录音</th>
  321. <th data-field="Supervise" data-formatter="superviseFormatter" data-align="center">是否督办</th>
  322. <th data-field="F_IsRelease" data-align="center" data-formatter="isReleaseFormatter">关联工单类型</th>
  323. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">操作</th>
  324. </tr>
  325. </thead>
  326. <tbody class="list"></tbody>
  327. </table>
  328. </div>
  329. </div>
  330. </div>
  331. </div>
  332. <!--下载框-->
  333. <div class="t-shade lyxz">
  334. <div class="shade_k">
  335. <div class="shade_title">
  336. <span>录音播放与下载<srong class="cknum"></srong></span>
  337. <span class="setwin gbly"><a>x</a></span>
  338. </div>
  339. <div class="shade_content">
  340. <div class="Ly_box audiojs"></div>
  341. </div>
  342. </div>
  343. </div>
  344. <input type="hidden" id="PID" />
  345. <input type="hidden" id="Dpment" />
  346. <input type="hidden" id="phoneType" value="2" />
  347. <input type="hidden" id="jianhang" value="0" />
  348. </div>
  349. <script src="../js/layui/layui.js"></script>
  350. <script src="../js/bootstrap-select.js"></script>
  351. <script src="../css/laydate/laydate.js"></script>
  352. <script src="../My97DatePicker/WdatePicker.js"></script>
  353. <script src="../js/zTree/jquery.ztree.core.js"></script>
  354. <script src="../js/search/screen.js"></script>
  355. <script src="../js/WorkOrder/WorkOrderList.js"></script>
  356. <script src="../Script/Common/huayi.common.js"></script>
  357. <script>
  358. var wid = helper.request.queryString("wid");
  359. var jianhang = helper.request.queryString("jianhang");
  360. var exportParams; // 导出参数
  361. $(document).ready(function() {
  362. if(wid) {
  363. $("#tel").val(wid);
  364. load();
  365. }
  366. laydate.skin('blue');
  367. laydate({
  368. elem: '#starttime',
  369. event: 'focus',
  370. istime: true,
  371. format: 'YYYY-MM-DD hh:mm:ss'
  372. });
  373. laydate({
  374. elem: '#endtime',
  375. event: 'focus',
  376. istime: true,
  377. format: 'YYYY-MM-DD hh:mm:ss'
  378. });
  379. laydate({
  380. elem: '#dealstarttime',
  381. event: 'focus',
  382. istime: true,
  383. format: 'YYYY-MM-DD hh:mm:ss'
  384. });
  385. laydate({
  386. elem: '#dealstrendtime',
  387. event: 'focus',
  388. istime: true,
  389. format: 'YYYY-MM-DD hh:mm:ss'
  390. });
  391. // $("#starttime").val(helper.DateFormat.getNowDate()+" 00:00:00")
  392. // $("#endtime").val(helper.DateFormat.getNowDate()+" 23:59:59")
  393. load();
  394. getPhoneType($("#phoneType"));
  395. });
  396. //关闭录音弹出
  397. $(".gbly").click(function() {
  398. $(".lyxz").removeClass("cx");
  399. $("audio")[0].pause();
  400. });
  401. $("#orderlist").on("click-row.bs.table", function(e, row, ele) {
  402. $(".success").removeClass("success"); //去除之前选中的行的,选中样式
  403. $(ele).addClass("success"); //添加当前选中的 success样式用于区别
  404. });
  405. //获取查询信息
  406. function load() {
  407. console.log(selectMultiple($("#closeuser")))
  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. key: $("#key").val(), //=关键字
  437. tel: $("#tel").val().replace(/\s+/g, ""), //=客户电话
  438. conphone: $("#contel").val().replace(/\s+/g, ""), //=客户电话
  439. name: $("#name").val().replace(/\s+/g, ""), //=客户名称
  440. usercode: selectMultiple($("#ZX")), //=坐席工号
  441. ddusercode: selectMultiple($("#yardman")),
  442. closeuser:$("#closeuser").val(),
  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. dbgd: $("#whetherSupervisor").val(), // 是否督办
  461. edituser: $("#edituser").val(), // 供暖工单
  462. workordertype: $("#workordertype").val(), // 添加方式
  463. IsRelease: $("#IsRelease").val(),
  464. jianhang: jianhang?jianhang:0,
  465. phoneType: 2, // 12345来电
  466. myd: $("#satisfaction").val(), //满意度
  467. isbusiness: $("#isbusiness").val(),
  468. overtime:$("#overtime").val(),
  469. phoneTypes:$("#phoneType").val(),
  470. token: $.cookie("token"),
  471. };
  472. // 导出参数
  473. exportParams = param;
  474. return param;
  475. },
  476. onLoadSuccess: function(data) {
  477. //加载成功时执行
  478. // layer.msg("加载成功");
  479. //console.log(data);
  480. },
  481. onLoadError: function() {
  482. //加载失败时执行
  483. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  484. },
  485. });
  486. }
  487. //状态
  488. function States(val, row) {
  489. var html = "";
  490. switch(val + "") {
  491. case "0":
  492. html = "新工单";
  493. if(row.F_IsReturn == 1) {
  494. html = "新工单(回退)";
  495. }
  496. break;
  497. case "1":
  498. html = "待交办";
  499. break;
  500. case "2":
  501. html = '<span style="color:#FF0000;">待查收</span>';
  502. break;
  503. case "3":
  504. html = "退回审核中";
  505. break;
  506. case "4":
  507. html = "办理中";
  508. break;
  509. case "5":
  510. html = "延时审核";
  511. break;
  512. case "6":
  513. if(row.F_IsProtect === 2 || row.F_IsProtect === 3) {
  514. html = "已办未果"
  515. } else {
  516. html = "已办理";
  517. }
  518. break;
  519. case "7":
  520. html = "待回访";
  521. break;
  522. case "8":
  523. if(row.F_Identification === 0) {
  524. html = "重置转发";
  525. } else if(row.F_Identification === 1) {
  526. html = "退回重办";
  527. } else {
  528. html = "重办中";
  529. }
  530. break;
  531. case "9":
  532. html = "已结案";
  533. break;
  534. case "10":
  535. html = "待审核";
  536. break;
  537. case "11":
  538. html = "重办待交办";
  539. break;
  540. // case '12':
  541. // html = '待审核';
  542. // break;
  543. case "13":
  544. html = "重办驳回";
  545. break;
  546. }
  547. return html;
  548. }
  549. //音频
  550. function setCode(val) {
  551. if(val) {
  552. return(
  553. '<div class="imgs" style="cursor: pointer;">' +
  554. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' +
  555. val +
  556. '" />' +
  557. "</div>"
  558. );
  559. } else {
  560. return "";
  561. }
  562. }
  563. //编号
  564. function serialNumber(val, row, index) {
  565. return index + 1;
  566. }
  567. //电话类别
  568. function getPhoneType(obj) {
  569. obj.empty();
  570. $("<option value=''>请选择</option>").appendTo(obj);
  571. $.ajax({
  572. type: "get",
  573. url: huayi.config.callcenter_url + "Dictionary/GetDicValueListById",
  574. dataType: "json",
  575. async: true,
  576. data: {
  577. "token": $.cookie("token"),
  578. id: 2498,
  579. },
  580. success: function (data) {
  581. if (data.state.toLowerCase() == "success") {
  582. var content = data.data;
  583. $(content).each(function (i, n) {
  584. $("<option value='" + n.F_Value + "'>" + n.F_Remark + "</option>")
  585. .appendTo(obj);
  586. })
  587. }
  588. }
  589. });
  590. }
  591. // 关联工单类型
  592. function isReleaseFormatter(val, row) {
  593. if(String(val) === "2") {
  594. return "<span style='color: #e02433'>主工单</span>"
  595. } else if(String(val) === "3") {
  596. return "<span style='color: #e02433'>子工单</span>"
  597. }
  598. }
  599. function GetCont(val) {
  600. if(val) {
  601. var str = "<div ";
  602. if(val.length > 10) {
  603. str = str + ' title="' + val + '" ';
  604. val = val.substr(0, 10) + "...";
  605. }
  606. return str + ">" + val + "</div>";
  607. } else {
  608. return "";
  609. }
  610. }
  611. // 是否督办
  612. function superviseFormatter(val, row) {
  613. var arr = ["否", "是"];
  614. var str = arr[val];
  615. return str;
  616. }
  617. //操作
  618. function Dispose(val, row) {
  619. var Rows = row.Buttons;
  620. var html = "";
  621. for(var i = 0; i < Rows.length; i++) {
  622. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  623. if(html1) {
  624. html1 = html1.replace("data", val);
  625. html1 = html1.replace("isProtect", row.F_IsProtect);
  626. html1 = html1.replace("row", row.F_MainDeptId);
  627. html1 = html1.replace("state", row.F_WorkState);
  628. }
  629. html += html1;
  630. }
  631. return html;
  632. }
  633. // 监察督办派发
  634. function jcsuperviseSend(str) {
  635. layer.open({
  636. type: 2,
  637. content: "../CommonHtml/jcsuperviseSend.html?wid=" + str, //iframe的url,no代表不显示滚动条
  638. title: "监察督办派发",
  639. area: ["80%", "80%"], //宽高
  640. });
  641. }
  642. // 督查督办派发
  643. function jdcsuperviseSend(str) {
  644. layer.open({
  645. type: 2,
  646. content: "../CommonHtml/jdcsuperviseSend.html?wid=" + str, //iframe的url,no代表不显示滚动条
  647. title: "督查督办派发",
  648. area: ["80%", "80%"], //宽高
  649. });
  650. }
  651. //查看详情
  652. function ckxq(str) {
  653. layer.open({
  654. type: 2,
  655. // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  656. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  657. title: "工单详情",
  658. area: ["100%", "100%"], //宽高
  659. });
  660. }
  661. //时限
  662. function OverTime(val, row) {
  663. if(val == 1) {
  664. return(
  665. '<div class="" style="cursor: pointer;">' +
  666. '<span class="Greens">' +
  667. row.GapTime +
  668. "</span>" +
  669. "</div>"
  670. );
  671. } else if(val == 2) {
  672. return(
  673. '<div class="" style="cursor: pointer;">' +
  674. '<span class="Yellows">' +
  675. row.GapTime +
  676. "</span>" +
  677. "</div>"
  678. );
  679. } else if(val == 3) {
  680. return(
  681. '<div class="" style="cursor: pointer;">' +
  682. '<span class="Reds">' +
  683. row.GapTime +
  684. "</span>" +
  685. "</div>"
  686. );
  687. }
  688. }
  689. //办理时限
  690. function BanTime(val) {
  691. if(val) {
  692. var time = val.substring(0, val.indexOf(" "));
  693. return(
  694. '<div class="" style="cursor: pointer;">' +
  695. "<span>" +
  696. time +
  697. "</span>" +
  698. "</div>"
  699. );
  700. }
  701. }
  702. //派单
  703. function pd(str) {
  704. layer.open({
  705. type: 2,
  706. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  707. title: "办理工单",
  708. area: ["87%", "80%"], //宽高
  709. });
  710. }
  711. //处理审核
  712. function auditdeal(str) {
  713. layer.open({
  714. type: 2,
  715. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  716. title: "处理审核",
  717. area: ["80%", "80%"], //宽高
  718. });
  719. }
  720. //编辑
  721. function bj(str) {
  722. var workType = ""
  723. if (Number(state) ===1) {
  724. workType="jb"
  725. }
  726. layer.open({
  727. type: 2,
  728. content: "../CommonHtml/AddAppeal.html?wid=" + str+"&workType=jb", //iframe的url,no代表不显示滚动条
  729. title: "编辑工单",
  730. area: ["96%", "80%"], //宽高
  731. });
  732. }
  733. //删除
  734. function move(str) {
  735. layer.confirm(
  736. "确定删除工单?", {
  737. btn: ["是", "否"], //按钮
  738. },
  739. function() {
  740. $.post(
  741. huayi.config.callcenter_url +
  742. "WorkOrder/DelWorkOrder", {
  743. ids: str,
  744. token: $.cookie("token"),
  745. },
  746. function(result) {
  747. result = JSON.parse(result);
  748. if(result.state.toLowerCase() == "success") {
  749. debugger;
  750. layer.msg("删除成功");
  751. $("#orderlist").bootstrapTable("refresh");
  752. }
  753. }
  754. );
  755. }
  756. );
  757. }
  758. //提交
  759. function tj(str) {
  760. layer.confirm(
  761. "确定要提交工单么?", {
  762. btn: ["确定", "取消"], //按钮
  763. },
  764. function() {
  765. //请求后台数据
  766. /*发送请求*/
  767. $.post(
  768. huayi.config.callcenter_url +
  769. "WorkOrder/SubmitWorkOrder", {
  770. ids: str,
  771. token: $.cookie("token"),
  772. },
  773. function(result) {
  774. result = JSON.parse(result);
  775. if(result.state.toLowerCase() == "success") {
  776. layer.msg("提交成功");
  777. $("#orderlist").bootstrapTable("refresh");
  778. //load();
  779. }
  780. }
  781. );
  782. }
  783. );
  784. }
  785. //交办
  786. function jb(str) {
  787. layer.open({
  788. type: 2,
  789. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  790. title: "工单交办",
  791. area: ["87%", "80%"], //宽高
  792. });
  793. }
  794. //领导批示
  795. function lader(str) {
  796. layer.open({
  797. type: 2,
  798. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  799. title: "领导批示",
  800. area: ["60%", "80%"], //宽高
  801. });
  802. }
  803. //市长批示
  804. function city(str) {
  805. layer.open({
  806. type: 2,
  807. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  808. title: "市长批示",
  809. area: ["60%", "80%"], //宽高
  810. });
  811. }
  812. //办理
  813. function bl(str, isProtect) {
  814. layer.open({
  815. type: 2,
  816. content: "../CommonHtml/banli.html?wid=" +
  817. str +
  818. "&isProtect=" +
  819. isProtect, //iframe的url,no代表不显示滚动条
  820. title: "办理工单",
  821. area: ["60%", "80%"], //宽高
  822. });
  823. }
  824. //督办
  825. function Supervision(str) {
  826. layer.open({
  827. type: 2,
  828. content: "../CommonHtml/Supervision_.html?wid=" +
  829. str +
  830. "&type=1", //iframe的url,no代表不显示滚动条
  831. title: "督办",
  832. area: ["60%", "80%"], //宽高
  833. });
  834. }
  835. //督查
  836. function Supervision_(str) {
  837. layer.open({
  838. type: 2,
  839. content: "../CommonHtml/Supervision_.html?wid=" +
  840. str +
  841. "&type=2", //iframe的url,no代表不显示滚动条
  842. title: "监察",
  843. area: ["60%", "80%"], //宽高
  844. });
  845. }
  846. //审核
  847. function audit(str) {
  848. layer.open({
  849. type: 2,
  850. content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  851. title: "审核",
  852. area: ["60%", "80%"], //宽高
  853. });
  854. }
  855. //转督办
  856. function zdb(str, row) {
  857. layer.open({
  858. type: 2,
  859. content: "../CommonHtml/superTrunl.html?wid=" +
  860. str +
  861. "&depId=" +
  862. row, //iframe的url,no代表不显示滚动条
  863. title: "督办工单",
  864. area: ["60%", "80%"], //宽高
  865. });
  866. }
  867. //不督办
  868. function ndb(str) {
  869. layer.confirm(
  870. "确定督办吗?", {
  871. btn: ["是", "否"], //按钮
  872. },
  873. function() {
  874. $.post(
  875. huayi.config.callcenter_url +
  876. "WorkOrder/RemindWorkOrder", {
  877. workorderid: str,
  878. type: 1,
  879. state: 2,
  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 StrongLawsuit(str) {
  896. layer.open({
  897. type: 2,
  898. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  899. title: "强制结案",
  900. area: ["60%", "80%"], //宽高
  901. });
  902. }
  903. //回退BackDtail
  904. function BackDtail(str) {
  905. layer.open({
  906. type: 2,
  907. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  908. title: "工单督办",
  909. area: ["60%", "80%"], //宽高
  910. });
  911. }
  912. //查收
  913. function cs(str) {
  914. layer.confirm(
  915. "确定要查收?", {
  916. btn: ["是", "否"], //按钮
  917. },
  918. function() {
  919. $.post(
  920. huayi.config.callcenter_url +
  921. "WorkOrder/ReceiveWorkOrder", {
  922. workorderid: str,
  923. token: $.cookie("token"),
  924. },
  925. function(result) {
  926. result = JSON.parse(result);
  927. if(result.state.toLowerCase() == "success") {
  928. layer.msg("查收成功");
  929. //load();
  930. $("#orderlist").bootstrapTable("refresh");
  931. }
  932. }
  933. );
  934. }
  935. );
  936. }
  937. //收回
  938. function sh(str) {
  939. layer.confirm(
  940. "确定要回收?", {
  941. btn: ["是", "否"], //按钮
  942. },
  943. function() {
  944. $.post(
  945. huayi.config.callcenter_url +
  946. "WorkOrder/TakeBackWorkOrder", {
  947. workorderid: str,
  948. token: $.cookie("token"),
  949. },
  950. function(result) {
  951. result = JSON.parse(result);
  952. if(result.state.toLowerCase() == "success") {
  953. layer.msg("回收");
  954. //load();
  955. $("#orderlist").bootstrapTable("refresh");
  956. }
  957. }
  958. );
  959. }
  960. );
  961. }
  962. //强制回收
  963. function recycles() {
  964. layer.confirm("确定要强制退回吗?", {
  965. btn: ["是", "否"], //按钮
  966. });
  967. }
  968. //审核退回申请
  969. function shth(str) {
  970. layer.open({
  971. type: 2,
  972. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  973. title: "审核退回申请",
  974. area: ["60%", "80%"], //宽高
  975. });
  976. }
  977. //申请延时
  978. function ys(str) {
  979. layer.open({
  980. type: 2,
  981. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  982. title: "申请延时",
  983. area: ["60%", "80%"], //宽高
  984. });
  985. }
  986. //审核申请延时
  987. function shys(str) {
  988. layer.open({
  989. type: 2,
  990. content: "../CommonHtml/shTime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  991. title: "审核延时申请",
  992. area: ["60%", "80%"], //宽高
  993. });
  994. }
  995. //审核
  996. function hf(str) {
  997. layer.open({
  998. type: 2,
  999. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1000. title: "工单审核",
  1001. area: ["60%", "80%"], //宽高
  1002. });
  1003. }
  1004. //重办工单
  1005. function cb(str) {
  1006. layer.open({
  1007. type: 2,
  1008. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1009. title: "重办工单",
  1010. area: ["60%", "80%"], //宽高
  1011. });
  1012. }
  1013. //提交重办
  1014. function bhcb(str) {
  1015. //回退BackDtail
  1016. layer.open({
  1017. type: 2,
  1018. content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1019. title: "驳回重办",
  1020. area: ["60%", "80%"], //宽高
  1021. });
  1022. }
  1023. //提交重办
  1024. function tjcb(str) {
  1025. layer.open({
  1026. type: 2,
  1027. content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1028. title: "提交重办",
  1029. area: ["50%", "40%"], //宽高
  1030. });
  1031. // layer.confirm('确认提交重办吗?', {
  1032. // btn: ['是', '否'] //按钮
  1033. // }, function () {
  1034. // $.post(huayi.config.callcenter_url + 'WorkOrder/SubReloadWorkOrder', {
  1035. // ids: str,
  1036. // "token": $.cookie("token")
  1037. // }, function(result) {
  1038. // result = JSON.parse(result);
  1039. // if(result.state.toLowerCase() == "success") {
  1040. // layer.msg("操作成功");
  1041. // //load();
  1042. // $("#orderlist").bootstrapTable('refresh');
  1043. // }
  1044. // })
  1045. // });
  1046. }
  1047. //结案
  1048. function Lawsuit(str) {
  1049. layer.open({
  1050. type: 2,
  1051. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1052. title: "诉求单结案",
  1053. area: ["60%", "80%"], //宽高
  1054. });
  1055. }
  1056. //退回
  1057. function returnRedo(str) {
  1058. layer.open({
  1059. type: 2,
  1060. content: "../CommonHtml/returnRedo.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1061. title: "退回",
  1062. area: ["50%", "40%"], //宽高
  1063. });
  1064. }
  1065. //退回
  1066. function returnAuditor(str) {
  1067. layer.open({
  1068. type: 2,
  1069. content: "../CommonHtml/returnAuditor.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1070. title: "退回",
  1071. area: ["50%", "40%"], //宽高
  1072. });
  1073. }
  1074. //修改
  1075. function editProcessingResult(str) {
  1076. layer.open({
  1077. type: 2,
  1078. content: "../CommonHtml/editProcessingResult.html?wid=" + str, //iframe的url,no代表不显示滚动条
  1079. title: "修改",
  1080. area: ["50%", "70%"], //宽高
  1081. });
  1082. }
  1083. //来源
  1084. function LY(obj) {
  1085. obj.empty();
  1086. obj.append(
  1087. '<option selected="selected" value="">请选择</option>'
  1088. );
  1089. $.getJSON(
  1090. huayi.config.callcenter_url +
  1091. "Dictionary/GetDicValueListById", {
  1092. token: $.cookie("token"),
  1093. id: 1,
  1094. },
  1095. function(data) {
  1096. if(data.state.toLowerCase() == "success") {
  1097. var content = data.data;
  1098. $(content).each(function(i, n) {
  1099. $(
  1100. "<option value='" +
  1101. n.F_ValueId +
  1102. "'>" +
  1103. n.F_Value +
  1104. "</option>"
  1105. ).appendTo(obj);
  1106. });
  1107. }
  1108. }
  1109. );
  1110. }
  1111. //类别
  1112. function LB(obj) {
  1113. obj.empty();
  1114. obj.append(
  1115. '<option selected="selected" value="">请选择</option>'
  1116. );
  1117. $.getJSON(
  1118. huayi.config.callcenter_url +
  1119. "Dictionary/GetDicValueListById", {
  1120. token: $.cookie("token"),
  1121. id: 2,
  1122. },
  1123. function(data) {
  1124. if(data.state.toLowerCase() == "success") {
  1125. var content = data.data;
  1126. $(content).each(function(i, n) {
  1127. $(
  1128. "<option value='" +
  1129. n.F_ValueId +
  1130. "'>" +
  1131. n.F_Value +
  1132. "</option>"
  1133. ).appendTo(obj);
  1134. });
  1135. }
  1136. }
  1137. );
  1138. }
  1139. // 主题
  1140. function ZT(obj) {
  1141. obj.empty();
  1142. obj.append(
  1143. '<option selected="selected" value="">请选择</option>'
  1144. );
  1145. $.getJSON(
  1146. huayi.config.callcenter_url +
  1147. "Dictionary/GetDicValueListById", {
  1148. token: $.cookie("token"),
  1149. id: 3,
  1150. },
  1151. function(data) {
  1152. if(data.state.toLowerCase() == "success") {
  1153. var content = data.data;
  1154. $(content).each(function(i, n) {
  1155. $(
  1156. "<option value='" +
  1157. n.F_ValueId +
  1158. "'>" +
  1159. n.F_Value +
  1160. "</option>"
  1161. ).appendTo(obj);
  1162. });
  1163. }
  1164. }
  1165. );
  1166. }
  1167. function tree() {
  1168. $.get(
  1169. huayi.config.callcenter_url + "Department/GetDeptList", {
  1170. token: $.cookie("token"),
  1171. // "pid": pid
  1172. },
  1173. function(result) {
  1174. result = $.parseJSON(result);
  1175. $.fn.zTree.init(
  1176. $("#addTreeDemo"),
  1177. setting1,
  1178. result.data
  1179. ); //实例化树形图
  1180. }
  1181. );
  1182. }
  1183. var setting1 = {
  1184. data: {
  1185. key: {
  1186. name: "F_DeptName",
  1187. },
  1188. simpleData: {
  1189. enable: true,
  1190. idKey: "F_DeptId",
  1191. pIdKey: "F_PartentId",
  1192. rootPId: 0,
  1193. },
  1194. },
  1195. callback: {
  1196. onClick: zTreeOnClick,
  1197. },
  1198. };
  1199. function zTreeOnClick(event, treeId, treeNode) {
  1200. // if(treeNode.level >= 1) {
  1201. $(".inps").val(treeNode.F_DeptName);
  1202. $("#PID").val(treeNode.F_DeptId);
  1203. $("#Dpment").val(treeNode.F_DeptId);
  1204. $(".Cleans").show();
  1205. // }
  1206. }
  1207. function Close() {
  1208. $(".lyxz").removeClass("cx");
  1209. if($("audio").length > 0) {
  1210. $("audio")[0].pause();
  1211. }
  1212. }
  1213. // 导出文件
  1214. $(".exportFile").click(function() {
  1215. exportParams.isdc = 1;
  1216. exportFileFun("WorkOrder/GetList", exportParams)
  1217. })
  1218. </script>
  1219. </body>
  1220. </html>