暂无描述

WorkYBL_zlei.html 31KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777
  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="javaScript:;">办理单位</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">
  39. </select>
  40. </td>
  41. <th>来电号码:</th>
  42. <td>
  43. <input type="text" id="tel" class="form-control" />
  44. </td>
  45. <th>录入时间:</th>
  46. <td colspan="3">
  47. <input type="text" id="starttime" class="photo x-color laydate-icon"
  48. autocomplete="off" style="height: 35px;" />&nbsp;——&nbsp;<input type="text"
  49. id="endtime" class="photo x-color laydate-icon" autocomplete="off"
  50. style="height: 35px;" />
  51. </td>
  52. </tr>
  53. <tr>
  54. <th>事项编号:</th>
  55. <td>
  56. <input type="text" placeholder="输入工单号" id="wids" class="form-control" />
  57. </td>
  58. <th><span class="nameJustified">来电人:</span></th>
  59. <td>
  60. <input type="text" id="name" class="form-control" />
  61. </td>
  62. <th><span class="nameJustified">关键字:</span></th>
  63. <td>
  64. <input type="text" placeholder="输入关键字" id="key" class="form-control Min-width" />
  65. <botton class="btns Seach">搜索</botton>
  66. </td>
  67. </tr>
  68. <tr>
  69. <!-- <th>受话坐席:</th>
  70. <td>
  71. <select id="ZX" name="select" class="selectpicker show-tick form-control" multiple
  72. data-live-search="true">
  73. <option value="">请选择坐席</option>
  74. </select>
  75. </td>
  76. <th><span class="nameJustified">审核员:</span></th>
  77. <td>
  78. <select id="yardman" name="select" class="selectpicker show-tick form-control"
  79. multiple data-live-search="true">
  80. <option value="">请选择调度员</option>
  81. </select>
  82. </td> -->
  83. </tr>
  84. <tr>
  85. <th>承办单位:</th>
  86. <td style="position: relative;">
  87. <div class="inpBox">
  88. <input type="text" class="inps" />
  89. <i class="Cleans fa fa-close"></i>
  90. <i class="xl xl_one"></i>
  91. <div class="addTree xlAdd">
  92. <ul id="addTreeDemo" class="ztree"></ul>
  93. </div>
  94. </div>
  95. <div class="selDpart1">
  96. <ul id="sponsor">
  97. </ul>
  98. </div>
  99. </td>
  100. <th>来电类型:</th>
  101. <td>
  102. <select class="form-control" id="type">
  103. </select>
  104. </td>
  105. <th>反映区域:</th>
  106. <td>
  107. <select name="" id="sourceAreas" class="form-control Min-width">
  108. </select>
  109. <botton class="btns exportFile">导出</botton>
  110. </td>
  111. </tr>
  112. <tr>
  113. <th>省平台编号:</th>
  114. <td>
  115. <input type="text" placeholder="输入工单号" id="strworkorderid" class="form-control" />
  116. </td>
  117. </tr>
  118. </table>
  119. </div>
  120. </div>
  121. <div>
  122. <div style="width: 100%;padding: 10px;">
  123. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams"
  124. data-pagination="true">
  125. <thead>
  126. <tr>
  127. <th data-formatter="serialNumber" data-align="center">
  128. 序号
  129. </th>
  130. <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单单号</th>
  131. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">诉求标题</th>
  132. <th data-field="DeptName" data-align="center">承办单位</th>
  133. <!-- <th data-field="OtherDeptName" data-align="center">协办单位</th> -->
  134. <!-- <th data-field="UserName" data-align="center">受理人</th> -->
  135. <th data-field="F_WorkState" data-align="center" data-formatter="States">办理状态</th>
  136. <!--<th data-field="FilePath" data-formatter="setCode" data-align="center">录音</th>-->
  137. <th data-field="OverState" data-formatter="OverTime" data-align="center">时限</th>
  138. <th data-field="LimitTime" data-formatter="BanTime" data-align="center">办理时限</th>
  139. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">操作</th>
  140. </tr>
  141. </thead>
  142. <tbody class="list"></tbody>
  143. </table>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. <!--下载框-->
  149. <div class="t-shade lyxz">
  150. <div class="shade_k">
  151. <div class="shade_title">
  152. <span>录音播放与下载<srong class="cknum"></srong></span>
  153. <span class="setwin gbly"><a>x</a></span>
  154. </div>
  155. <div class="shade_content">
  156. <div class="Ly_box audiojs">
  157. </div>
  158. </div>
  159. </div>
  160. </div>
  161. <input type="hidden" id="PID" />
  162. <input type="hidden" id="Dpment" />
  163. </div>
  164. <script src="../js/layui/layui.js"></script>
  165. <script src="../js/bootstrap-select.js"></script>
  166. <script src="../css/laydate/laydate.js"></script>
  167. <script src="../My97DatePicker/WdatePicker.js"></script>
  168. <script src="../js/zTree/jquery.ztree.core.js"></script>
  169. <script src="../js/search/screen.js"></script>
  170. <script src="../js/WorkOrder/WorkOrderList.js"></script>
  171. <script>
  172. var wid = helper.request.queryString("states");
  173. var exportParams; // 导出参数
  174. if (wid) {
  175. $("#state").val(wid);
  176. }
  177. $(document).ready(function () {
  178. load();
  179. laydate.skin('blue');
  180. laydate({
  181. elem: '#starttime',
  182. event: 'focus',
  183. istime: true,
  184. format: 'YYYY-MM-DD hh:mm:ss'
  185. });
  186. laydate({
  187. elem: '#endtime',
  188. event: 'focus',
  189. istime: true,
  190. format: 'YYYY-MM-DD hh:mm:ss'
  191. });
  192. });
  193. //关闭录音弹出
  194. $(".gbly").click(function () {
  195. $(".lyxz").removeClass("cx");
  196. $('audio')[0].pause();
  197. });
  198. $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
  199. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  200. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  201. });
  202. // 导出文件
  203. $(".exportFile").click(function() {
  204. exportParams.isdc = 1;
  205. console.log(exportParams)
  206. exportFileFun("WorkOrder/GetEJDWDealList", exportParams)
  207. })
  208. //获取查询信息
  209. function load() {
  210. //坐席
  211. var usercodeID = "";
  212. var usercode_ = $("#ZX").val(); //坐席
  213. if (usercode_ != null) {
  214. $(usercode_).each(function (i, n) {
  215. var obj1 = '';
  216. obj1 = n + ",";
  217. usercodeID += obj1;
  218. })
  219. } else {
  220. usercodeID = ""
  221. }
  222. // 调度员
  223. var ddusercodeID = "";
  224. var ddusercode_ = $("#yardman").val(); //坐席
  225. if (ddusercode_ != null) {
  226. $(ddusercode_).each(function (i, n) {
  227. var obj2 = '';
  228. obj2 = n + ",";
  229. ddusercodeID += obj2;
  230. })
  231. } else {
  232. ddusercodeID = ""
  233. }
  234. //先销毁表格
  235. $('#orderlist').bootstrapTable('destroy');
  236. //初始化表格,动态从服务器加载数据
  237. $("#orderlist").bootstrapTable({
  238. method: "get", //使用get请求到服务器获取数据
  239. url: huayi.config.callcenter_url + "WorkOrder/GetEJDWDealList", //获取数据的Servlet地址
  240. contentType: "application/x-www-form-urlencoded",
  241. striped: true, //表格显示条纹
  242. pagination: true, //启动分页
  243. pageSize: 10, //每页显示的记录数
  244. pageNumber: 1, //当前第几页
  245. pageList: [10, 20, 50, 100], //记录数可选列表
  246. search: false, //是否启用查询
  247. showColumns: false, //显示下拉框勾选要显示的列
  248. showRefresh: false, //显示刷新按钮
  249. sidePagination: "server", //表示服务端请求
  250. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  251. //设置为limit可以获取limit, offset, search, sort, order
  252. queryParamsType: "undefined",
  253. queryParams: function queryParams(params) { //设置查询参数
  254. var param = {
  255. page: params.pageNumber,
  256. pagesize: params.pageSize,
  257. workid: $("#wids").val(),
  258. state: $("#state").val(), //=工单状态
  259. type: $("#type").val(), //=工单类型
  260. bigtype: $("#bigtype").val(), //=大类别
  261. smalltype: $("#smalltype").val(), //=小类别
  262. key: $("#key").val(), //=关键字
  263. tel: $("#tel").val(), //=客户电话
  264. name: $("#name").val(), //=客户名称
  265. usercode: usercodeID, //=坐席工号
  266. ddusercode: ddusercodeID,
  267. keyid: $("#keyid").val(), //=关键词id
  268. source: $("#source").val(), //=来源&
  269. starttime: $("#starttime").val(), //=开始时间
  270. endtime: $("#endtime").val(), //=结束时间
  271. deptid: $("#PID").val(),
  272. type: $("#type").val(),
  273. sourcearea: $("#sourceAreas").val(), //区域
  274. strworkorderid:$("#strworkorderid").val().replace(/\s+/g, ""),
  275. tab: 1, //待处理
  276. token: $.cookie("token")
  277. };
  278. // 导出参数
  279. exportParams = param;
  280. return param;
  281. },
  282. onLoadSuccess: function (data) { //加载成功时执行
  283. // layer.msg("加载成功");
  284. //console.log(data);
  285. },
  286. onLoadError: function () { //加载失败时执行
  287. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  288. }
  289. });
  290. }
  291. //状态
  292. function States(val, row) {
  293. var html = '';
  294. switch (val + '') {
  295. case '0':
  296. html = '新工单';
  297. if (row.F_IsReturn == 1) {
  298. html = '新工单(回退)';
  299. }
  300. break;
  301. case '1':
  302. html = '待交办';
  303. break;
  304. case '2':
  305. html = '待查收';
  306. break;
  307. case '3':
  308. html = '退回审核中';
  309. break;
  310. case '4':
  311. html = '办理中';
  312. break;
  313. case '5':
  314. html = '延时审核';
  315. break;
  316. case '6':
  317. html = '已办理';
  318. break;
  319. case '7':
  320. html = '已回访';
  321. break;
  322. case '8':
  323. html = '重办中';
  324. break;
  325. case '9':
  326. html = '已结案';
  327. break;
  328. case '10':
  329. html = '待审核';
  330. break;
  331. case '11':
  332. html = '重办待交办';
  333. break;
  334. case '12':
  335. html = '待审核';
  336. break;
  337. case '13':
  338. html = '重办驳回';
  339. break;
  340. }
  341. return html;
  342. }
  343. //时限
  344. function OverTime(val, row) {
  345. if (val == 1) {
  346. return '<div class="" style="cursor: pointer;">' +
  347. '<span class="Greens">' + row.GapTime + '</span>' +
  348. '</div>';
  349. } else if (val == 2) {
  350. return '<div class="" style="cursor: pointer;">' +
  351. '<span class="Yellows">' + row.GapTime + '</span>' +
  352. '</div>';
  353. } else if (val == 3) {
  354. return '<div class="" style="cursor: pointer;">' +
  355. '<span class="Reds">' + row.GapTime + '</span>' +
  356. '</div>';
  357. }
  358. }
  359. //办理时限
  360. function BanTime(val) {
  361. if (val) {
  362. var time = val.substring(0, val.indexOf(' '));
  363. return '<div class="" style="cursor: pointer;">' +
  364. '<span>' + time + '</span>' +
  365. '</div>';
  366. }
  367. }
  368. //音频
  369. function setCode(val) {
  370. if (val) {
  371. return '<div class="imgs" style="cursor: pointer;">' +
  372. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' + val + '" />' +
  373. '</div>';
  374. } else {
  375. return '';
  376. }
  377. }
  378. //编号
  379. function serialNumber(val, row, index) {
  380. return index + 1;
  381. }
  382. function GetCont(val) {
  383. if (val) {
  384. var str = '<div '
  385. if (val.length > 10) {
  386. str = str + ' title="' + val + '" ';
  387. val = val.substr(0, 10) + "...";
  388. }
  389. return str + '>' + val + '</div>';
  390. } else {
  391. return '';
  392. }
  393. }
  394. //操作
  395. function Dispose(val, row) {
  396. var Rows = row.Buttons;
  397. var html = '';
  398. for (var i = 0; i < Rows.length; i++) {
  399. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  400. if (html1) {
  401. html1 = html1.replace("data", val);
  402. html1 = html1.replace("isProtect", row.F_IsProtect);
  403. }
  404. html += html1;
  405. }
  406. return html;
  407. }
  408. //三级单位追加回复 71
  409. function addReplyThird(str,isProtect){
  410. layer.open({
  411. type: 2,
  412. content: "../CommonHtml/addReplyThird.html?wid=" + str + "&isProtect=" + isProtect, //iframe的url,no代表不显示滚动条
  413. title: "办理工单",
  414. area: ["60%", "80%"], //宽高
  415. });
  416. }
  417. //查看详情
  418. function ckxq(str) {
  419. layer.open({
  420. type: 2,
  421. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  422. title: '工单详情',
  423. area: ['100%', '100%'], //宽高
  424. });
  425. }
  426. //编辑
  427. function bj(str) {
  428. layer.open({
  429. type: 2,
  430. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  431. title: '编辑工单',
  432. area: ['96%', '80%'], //宽高
  433. });
  434. }
  435. //删除
  436. function move(str) {
  437. layer.confirm('确定删除工单?', {
  438. btn: ['是', '否'] //按钮
  439. }, function () {
  440. $.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", {
  441. ids: str,
  442. token: $.cookie("token")
  443. }, function (result) {
  444. result = JSON.parse(result);
  445. if (result.state.toLowerCase() == "success") {
  446. layer.msg("删除成功");
  447. load();
  448. }
  449. })
  450. });
  451. }
  452. //提交
  453. function tj(str) {
  454. layer.confirm('确定要提交工单么?', {
  455. btn: ['确定', '取消'] //按钮
  456. }, function () {
  457. //请求后台数据
  458. /*发送请求*/
  459. $.post(huayi.config.callcenter_url + "WorkOrder/SubmitWorkOrder", {
  460. ids: str,
  461. token: $.cookie("token")
  462. }, function (result) {
  463. result = JSON.parse(result);
  464. if (result.state.toLowerCase() == "success") {
  465. layer.msg("提交成功");
  466. load();
  467. }
  468. })
  469. });
  470. }
  471. //交办
  472. function jb(str) {
  473. layer.open({
  474. type: 2,
  475. content: "../CommonHtml/JiaoBan.html?wid=" + str, //iframe的url,no代表不显示滚动条
  476. title: '工单交办',
  477. area: ['87%', '80%'], //宽高
  478. });
  479. }
  480. //领导批示
  481. function lader(str) {
  482. layer.open({
  483. type: 2,
  484. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  485. title: '领导批示',
  486. area: ['60%', '80%'], //宽高
  487. });
  488. }
  489. //市长批示
  490. function city(str) {
  491. layer.open({
  492. type: 2,
  493. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  494. title: '领导批示',
  495. area: ['60%', '80%'], //宽高
  496. });
  497. }
  498. //办理
  499. function bl(str, isProtect) {
  500. layer.open({
  501. type: 2,
  502. content: "../CommonHtml/banli_zilei.html?wid=" + str + "&isProtect=" +
  503. isProtect, //iframe的url,no代表不显示滚动条
  504. title: '办理工单',
  505. area: ['90%', '80%'], //宽高
  506. });
  507. }
  508. //派单
  509. function pd(str) {
  510. layer.open({
  511. type: 2,
  512. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  513. title: '办理工单',
  514. area: ['87%', '80%'], //宽高
  515. });
  516. }
  517. //督办
  518. function Supervision(str) {
  519. layer.open({
  520. type: 2,
  521. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1', //iframe的url,no代表不显示滚动条
  522. title: '督办',
  523. area: ['60%', '80%'], //宽高
  524. });
  525. }
  526. //督查
  527. function Supervision_(str) {
  528. layer.open({
  529. type: 2,
  530. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
  531. title: '监察',
  532. area: ['60%', '80%'], //宽高
  533. });
  534. }
  535. //强制结案
  536. function StrongLawsuit(str) {
  537. layer.open({
  538. type: 2,
  539. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  540. title: '强制结案',
  541. area: ['60%', '80%'], //宽高
  542. });
  543. }
  544. //回退BackDtail
  545. function BackDtail(str) {
  546. layer.open({
  547. type: 2,
  548. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  549. title: '工单回退',
  550. area: ['60%', '80%'], //宽高
  551. });
  552. }
  553. //查收
  554. function cs(str) {
  555. layer.confirm('确定要查收?', {
  556. btn: ['是', '否'] //按钮
  557. }, function () {
  558. $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
  559. workorderid: str,
  560. token: $.cookie("token")
  561. }, function (result) {
  562. result = JSON.parse(result);
  563. if (result.state.toLowerCase() == "success") {
  564. layer.msg("查收成功");
  565. load();
  566. }
  567. })
  568. });
  569. }
  570. //收回
  571. function sh(str) {
  572. layer.confirm('确定要回收?', {
  573. btn: ['是', '否'] //按钮
  574. }, function () {
  575. $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
  576. workorderid: str,
  577. token: $.cookie("token")
  578. }, function (result) {
  579. result = JSON.parse(result);
  580. if (result.state.toLowerCase() == "success") {
  581. layer.msg("回收");
  582. load();
  583. }
  584. })
  585. });
  586. }
  587. //强制回收
  588. function recycles() {
  589. layer.confirm('确定要强制退回吗?', {
  590. btn: ['是', '否'] //按钮
  591. });
  592. }
  593. //退回申请
  594. function th(str) {
  595. layer.open({
  596. type: 2,
  597. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  598. title: '申请退回工单',
  599. area: ['60%', '80%'], //宽高
  600. });
  601. }
  602. //审核退回申请
  603. function shth(str) {
  604. layer.open({
  605. type: 2,
  606. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  607. title: '审核退回申请',
  608. area: ['60%', '80%'], //宽高
  609. });
  610. }
  611. //办理
  612. // function th(str) {
  613. // layer.open({
  614. // type: 2,
  615. // content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  616. // title: '办理工单',
  617. // area: ['35%', '30%'], //宽高
  618. // });
  619. // }
  620. //申请延时
  621. function ys(str) {
  622. layer.open({
  623. type: 2,
  624. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  625. title: '申请延时',
  626. area: ['60%', '80%'], //宽高
  627. });
  628. }
  629. //审核申请延时
  630. function shys(str) {
  631. layer.open({
  632. type: 2,
  633. content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  634. title: '审核延时申请',
  635. area: ['60%', '80%'], //宽高
  636. });
  637. }
  638. //诉求回访
  639. function hf(str) {
  640. layer.open({
  641. type: 2,
  642. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  643. title: '工单回访',
  644. area: ['60%', '80%'], //宽高
  645. });
  646. }
  647. //重办工单
  648. function cb(str) {
  649. layer.open({
  650. type: 2,
  651. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  652. title: '重办工单',
  653. area: ['60%', '80%'], //宽高
  654. });
  655. }
  656. //结案
  657. function Lawsuit(str) {
  658. layer.open({
  659. type: 2,
  660. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  661. title: '诉求单结案',
  662. area: ['60%', '80%'], //宽高
  663. });
  664. }
  665. $('.Appeal').click(function () {
  666. layer.open({
  667. type: 2,
  668. content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
  669. title: '新增诉求',
  670. area: ['85%', '80%'], //宽高
  671. });
  672. })
  673. //来源
  674. function LY(obj) {
  675. obj.empty();
  676. obj.append('<option selected="selected" value="">请选择</option>');
  677. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  678. "token": $.cookie("token"),
  679. id: 1
  680. }, function (data) {
  681. if (data.state.toLowerCase() == "success") {
  682. var content = data.data;
  683. $(content).each(function (i, n) {
  684. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  685. obj);
  686. })
  687. }
  688. })
  689. }
  690. //类别
  691. function LB(obj) {
  692. obj.empty();
  693. obj.append('<option selected="selected" value="">请选择</option>');
  694. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  695. "token": $.cookie("token"),
  696. id: 2
  697. }, function (data) {
  698. if (data.state.toLowerCase() == "success") {
  699. var content = data.data;
  700. $(content).each(function (i, n) {
  701. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  702. obj);
  703. })
  704. }
  705. })
  706. }
  707. // 主题
  708. function ZT(obj) {
  709. obj.empty();
  710. obj.append('<option selected="selected" value="">请选择</option>');
  711. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  712. "token": $.cookie("token"),
  713. id: 3
  714. }, function (data) {
  715. if (data.state.toLowerCase() == "success") {
  716. var content = data.data;
  717. $(content).each(function (i, n) {
  718. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  719. obj);
  720. })
  721. }
  722. })
  723. }
  724. function tree() {
  725. $.get(huayi.config.callcenter_url + 'Department/GetDeptList', {
  726. "token": $.cookie("token"),
  727. // "pid": pid
  728. }, function (result) {
  729. result = $.parseJSON(result);
  730. $.fn.zTree.init($("#addTreeDemo"), setting1, result.data); //实例化树形图
  731. });
  732. }
  733. var setting1 = {
  734. data: {
  735. key: {
  736. name: "F_DeptName"
  737. },
  738. simpleData: {
  739. enable: true,
  740. idKey: "F_DeptId",
  741. pIdKey: "F_PartentId",
  742. rootPId: 0
  743. }
  744. },
  745. callback: {
  746. onClick: zTreeOnClick
  747. }
  748. };
  749. function zTreeOnClick(event, treeId, treeNode) {
  750. // if (treeNode.level >= 1) {
  751. $('.inps').val(treeNode.F_DeptName);
  752. $("#PID").val(treeNode.F_DeptId);
  753. $("#Dpment").val(treeNode.F_DeptName);
  754. $(".Cleans").show();
  755. // }
  756. };
  757. </script>
  758. </body>
  759. </html>