Нет описания

WorkDCMarketing_EJ.html 32KB

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