Bez popisu

ZXDCL.html 31KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765
  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" autocomplete="off" style="height: 35px;" />&nbsp;——&nbsp;<input type="text" id="endtime" class="photo x-color laydate-icon" autocomplete="off" style="height: 35px;" />
  48. </td>
  49. </tr>
  50. <tr>
  51. <th>事项编号:</th>
  52. <td>
  53. <input type="text" placeholder="输入工单号" id="wids" class="form-control" />
  54. </td>
  55. <th><span class="nameJustified">来电人:</span></th>
  56. <td>
  57. <input type="text" id="name" class="form-control" />
  58. </td>
  59. <th><span class="nameJustified">关键字:</span></th>
  60. <td>
  61. <input type="text" placeholder="输入关键字" id="key" class="form-control Min-width" />
  62. <botton class="btns Seach">搜索</botton>
  63. </td>
  64. </tr>
  65. <tr>
  66. <th>受话坐席:</th>
  67. <td>
  68. <select id="ZX" name="select" class="selectpicker show-tick form-control" multiple
  69. data-live-search="true">
  70. <option value="">请选择坐席</option>
  71. </select>
  72. </td>
  73. <th><span class="nameJustified">审核员:</span></th>
  74. <td>
  75. <select id="yardman" name="select" class="selectpicker show-tick form-control"
  76. multiple data-live-search="true">
  77. <option value="">请选择调度员</option>
  78. </select>
  79. </td>
  80. <th>反映区域:</th>
  81. <td>
  82. <select name="" id="sourceAreas" class="form-control Min-width">
  83. </select>
  84. <botton class="btns exportFile">导出</botton>
  85. </td>
  86. </tr>
  87. <tr>
  88. <th>承办单位:</th>
  89. <td style="position: relative;">
  90. <div class="inpBox">
  91. <input type="text" class="inps" />
  92. <i class="Cleans fa fa-close"></i>
  93. <i class="xl xl_one"></i>
  94. <div class="addTree xlAdd">
  95. <ul id="addTreeDemo" class="ztree"></ul>
  96. </div>
  97. </div>
  98. <div class="selDpart1">
  99. <ul id="sponsor">
  100. </ul>
  101. </div>
  102. </td>
  103. <th>来电类型:</th>
  104. <td>
  105. <select class="form-control" id="type">
  106. </select>
  107. </td>
  108. <th>是否紧急:</th>
  109. <td>
  110. <select class="form-control Min-width" id="islevel">
  111. <option value="">请选择</option>
  112. <option value="1">普通</option>
  113. <option value="2">紧急</option>
  114. </select>
  115. </td>
  116. </tr>
  117. </table>
  118. </div>
  119. </div>
  120. <div>
  121. <div style="width: 100%;padding: 10px;">
  122. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams"
  123. data-pagination="true">
  124. <thead>
  125. <tr>
  126. <!-- <th data-checkbox="true"></th> -->
  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. function load() {
  204. //坐席
  205. var usercodeID = "";
  206. var usercode_ = $("#ZX").val(); //坐席
  207. if (usercode_ != null) {
  208. $(usercode_).each(function (i, n) {
  209. var obj1 = '';
  210. obj1 = n + ",";
  211. usercodeID += obj1;
  212. })
  213. } else {
  214. usercodeID = ""
  215. }
  216. // 调度员
  217. var ddusercodeID = "";
  218. var ddusercode_ = $("#yardman").val(); //坐席
  219. if (ddusercode_ != null) {
  220. $(ddusercode_).each(function (i, n) {
  221. var obj2 = '';
  222. obj2 = n + ",";
  223. ddusercodeID += obj2;
  224. })
  225. } else {
  226. ddusercodeID = ""
  227. }
  228. //先销毁表格
  229. $('#orderlist').bootstrapTable('destroy');
  230. //初始化表格,动态从服务器加载数据
  231. $("#orderlist").bootstrapTable({
  232. method: "get", //使用get请求到服务器获取数据
  233. url: huayi.config.callcenter_url + "WorkOrder/GetZXDealList", //获取数据的Servlet地址
  234. contentType: "application/x-www-form-urlencoded",
  235. striped: true, //表格显示条纹
  236. pagination: true, //启动分页
  237. pageSize: 10, //每页显示的记录数
  238. pageNumber: 1, //当前第几页
  239. pageList: [10, 20, 50, 100], //记录数可选列表
  240. search: false, //是否启用查询
  241. showColumns: false, //显示下拉框勾选要显示的列
  242. showRefresh: false, //显示刷新按钮
  243. sidePagination: "server", //表示服务端请求
  244. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  245. //设置为limit可以获取limit, offset, search, sort, order
  246. queryParamsType: "undefined",
  247. queryParams: function queryParams(params) { //设置查询参数
  248. var param = {
  249. page: params.pageNumber,
  250. pagesize: params.pageSize,
  251. workid: $("#wids").val(),
  252. state: $("#state").val(), //=工单状态
  253. type: $("#type").val(), //=工单类型
  254. bigtype: $("#bigtype").val(), //=大类别
  255. smalltype: $("#smalltype").val(), //=小类别
  256. key: $("#key").val(), //=关键字
  257. tel: $("#tel").val(), //=客户电话
  258. name: $("#name").val(), //=客户名称
  259. usercode: usercodeID, //=坐席工号
  260. ddusercode: ddusercodeID,
  261. keyid: $("#keyid").val(), //=关键词id
  262. source: $("#source").val(), //=来源&
  263. starttime: $("#starttime").val(), //=开始时间
  264. endtime: $("#endtime").val(), //=结束时间
  265. deptid: $("#PID").val(),
  266. type: $("#type").val(),
  267. tab: 0, //待处理
  268. sourcearea: $('#sourceAreas').val(), //区域
  269. level: $('#islevel').val(),
  270. token: $.cookie("token")
  271. };
  272. // 导出参数
  273. exportParams = param;
  274. return param;
  275. },
  276. onLoadSuccess: function (data) { //加载成功时执行
  277. // layer.msg("加载成功");
  278. //console.log(data);
  279. },
  280. onLoadError: function () { //加载失败时执行
  281. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  282. }
  283. });
  284. }
  285. //状态
  286. function States(val, row) {
  287. var html = '';
  288. switch (val + '') {
  289. case '0':
  290. html = '新工单';
  291. if (row.F_IsReturn == 1) {
  292. html = '新工单(回退)';
  293. }
  294. break;
  295. case '1':
  296. html = '待交办';
  297. break;
  298. case '2':
  299. html = '待查收';
  300. break;
  301. case '3':
  302. html = '退回审核中';
  303. break;
  304. case '4':
  305. html = '办理中';
  306. break;
  307. case '5':
  308. html = '延时审核';
  309. break;
  310. case '6':
  311. html = '已办理';
  312. break;
  313. case '7':
  314. html = '已回访';
  315. break;
  316. case '8':
  317. html = '重办中';
  318. break;
  319. case '9':
  320. html = '已结案';
  321. break;
  322. case '10':
  323. html = '待审核';
  324. break;
  325. case '11':
  326. html = '重办待交办';
  327. break;
  328. case '12':
  329. html = '待审核';
  330. break;
  331. case '13':
  332. html = '重办驳回';
  333. break;
  334. }
  335. return html;
  336. }
  337. //时限
  338. function OverTime(val, row) {
  339. if (val == 1) {
  340. return '<div class="" style="cursor: pointer;">' +
  341. '<span class="Greens">' + row.GapTime + '</span>' +
  342. '</div>';
  343. } else if (val == 2) {
  344. return '<div class="" style="cursor: pointer;">' +
  345. '<span class="Yellows">' + row.GapTime + '</span>' +
  346. '</div>';
  347. } else if (val == 3) {
  348. return '<div class="" style="cursor: pointer;">' +
  349. '<span class="Reds">' + row.GapTime + '</span>' +
  350. '</div>';
  351. }
  352. }
  353. //办理时限
  354. function BanTime(val) {
  355. if (val) {
  356. var time = val.substring(0, val.indexOf(' '));
  357. return '<div class="" style="cursor: pointer;">' +
  358. '<span>' + time + '</span>' +
  359. '</div>';
  360. }
  361. }
  362. //音频
  363. function setCode(val) {
  364. if (val) {
  365. return '<div class="imgs" style="cursor: pointer;">' +
  366. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' + val + '" />' +
  367. '</div>';
  368. } else {
  369. return '';
  370. }
  371. }
  372. //编号
  373. function serialNumber(val, row, index) {
  374. return index + 1;
  375. }
  376. function GetCont(val) {
  377. if (val) {
  378. var str = '<div '
  379. if (val.length > 10) {
  380. str = str + ' title="' + val + '" ';
  381. val = val.substr(0, 10) + "...";
  382. }
  383. return str + '>' + val + '</div>';
  384. } else {
  385. return '';
  386. }
  387. }
  388. //操作
  389. function Dispose(val, row) {
  390. var Rows = row.Buttons;
  391. var html = '';
  392. for (var i = 0; i < Rows.length; i++) {
  393. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  394. if (html1) {
  395. html1 = html1.replace("data", val);
  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. function tjcb(str) {
  437. layer.open({
  438. type: 2,
  439. content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  440. title: "提交重办",
  441. area: ["50%", "40%"], //宽高
  442. });
  443. }
  444. //提交
  445. function tj(str) {
  446. layer.confirm('确定要提交工单么?', {
  447. btn: ['确定', '取消'] //按钮
  448. }, function () {
  449. //请求后台数据
  450. /*发送请求*/
  451. $.post(huayi.config.callcenter_url + "WorkOrder/SubmitWorkOrder", {
  452. ids: str,
  453. token: $.cookie("token")
  454. }, function (result) {
  455. result = JSON.parse(result);
  456. if (result.state.toLowerCase() == "success") {
  457. layer.msg("提交成功");
  458. load();
  459. }
  460. })
  461. });
  462. }
  463. //交办
  464. function jb(str) {
  465. layer.open({
  466. type: 2,
  467. content: "../CommonHtml/JiaoBan.html?wid=" + str, //iframe的url,no代表不显示滚动条
  468. title: '工单交办',
  469. area: ['87%', '80%'], //宽高
  470. });
  471. }
  472. //领导批示
  473. function lader(str) {
  474. layer.open({
  475. type: 2,
  476. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  477. title: '领导批示',
  478. area: ['45%', '40%'], //宽高
  479. });
  480. }
  481. //市长批示
  482. function city(str) {
  483. layer.open({
  484. type: 2,
  485. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  486. title: '领导批示',
  487. area: ['45%', '40%'], //宽高
  488. });
  489. }
  490. //办理
  491. function bl(str) {
  492. layer.open({
  493. type: 2,
  494. content: "../CommonHtml/banli.html?wid=" + str, //iframe的url,no代表不显示滚动条
  495. title: '办理工单',
  496. area: ['45%', '40%'], //宽高
  497. });
  498. }
  499. //督办
  500. function Supervision(str) {
  501. layer.open({
  502. type: 2,
  503. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1', //iframe的url,no代表不显示滚动条
  504. title: '督办',
  505. area: ['35%', '30%'], //宽高
  506. });
  507. }
  508. //督查
  509. function Supervision_(str) {
  510. layer.open({
  511. type: 2,
  512. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
  513. title: '监察',
  514. area: ['35%', '30%'], //宽高
  515. });
  516. }
  517. //强制结案
  518. function StrongLawsuit(str) {
  519. layer.open({
  520. type: 2,
  521. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  522. title: '强制结案',
  523. area: ['45%', '52%'], //宽高
  524. });
  525. }
  526. //回退BackDtail
  527. function BackDtail(str) {
  528. layer.open({
  529. type: 2,
  530. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  531. title: '工单回退',
  532. area: ['45%', '40%'], //宽高
  533. });
  534. }
  535. //查收
  536. function cs(str) {
  537. layer.confirm('确定要查收?', {
  538. btn: ['是', '否'] //按钮
  539. }, function () {
  540. $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
  541. workorderid: str,
  542. token: $.cookie("token")
  543. }, function (result) {
  544. result = JSON.parse(result);
  545. if (result.state.toLowerCase() == "success") {
  546. layer.msg("查收成功");
  547. load();
  548. }
  549. })
  550. });
  551. }
  552. //收回
  553. function sh(str) {
  554. layer.confirm('确定要回收?', {
  555. btn: ['是', '否'] //按钮
  556. }, function () {
  557. $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
  558. workorderid: str,
  559. token: $.cookie("token")
  560. }, function (result) {
  561. result = JSON.parse(result);
  562. if (result.state.toLowerCase() == "success") {
  563. layer.msg("回收");
  564. load();
  565. }
  566. })
  567. });
  568. }
  569. //强制回收
  570. function recycles() {
  571. layer.confirm('确定要强制退回吗?', {
  572. btn: ['是', '否'] //按钮
  573. });
  574. }
  575. //退回申请
  576. function th(str) {
  577. layer.open({
  578. type: 2,
  579. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  580. title: '申请退回工单',
  581. area: ['35%', '30%'], //宽高
  582. });
  583. }
  584. //审核退回申请
  585. function shth(str) {
  586. layer.open({
  587. type: 2,
  588. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  589. title: '审核退回申请',
  590. area: ['35%', '30%'], //宽高
  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: ['35%', '30%'], //宽高
  600. // });
  601. // }
  602. //申请延时
  603. function ys(str) {
  604. layer.open({
  605. type: 2,
  606. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  607. title: '申请延时',
  608. area: ['45%', '40%'], //宽高
  609. });
  610. }
  611. //审核申请延时
  612. function shys(str) {
  613. layer.open({
  614. type: 2,
  615. content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  616. title: '审核延时申请',
  617. area: ['45%', '40%'], //宽高
  618. });
  619. }
  620. //诉求回访
  621. function hf(str) {
  622. layer.open({
  623. type: 2,
  624. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  625. title: '工单回访',
  626. area: ['45%', '40%'], //宽高
  627. });
  628. }
  629. //重办工单
  630. function cb(str) {
  631. layer.open({
  632. type: 2,
  633. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  634. title: '重办工单',
  635. area: ['45%', '40%'], //宽高
  636. });
  637. }
  638. //结案
  639. function Lawsuit(str) {
  640. layer.open({
  641. type: 2,
  642. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  643. title: '诉求单结案',
  644. area: ['45%', '40%'], //宽高
  645. });
  646. }
  647. $('.Appeal').click(function () {
  648. layer.open({
  649. type: 2,
  650. content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
  651. title: '新增诉求',
  652. area: ['85%', '80%'], //宽高
  653. });
  654. })
  655. //来源
  656. function LY(obj) {
  657. obj.empty();
  658. obj.append('<option selected="selected" value="">请选择</option>');
  659. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  660. "token": $.cookie("token"),
  661. id: 1
  662. }, function (data) {
  663. if (data.state.toLowerCase() == "success") {
  664. var content = data.data;
  665. $(content).each(function (i, n) {
  666. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  667. obj);
  668. })
  669. }
  670. })
  671. }
  672. //类别
  673. function LB(obj) {
  674. obj.empty();
  675. obj.append('<option selected="selected" value="">请选择</option>');
  676. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  677. "token": $.cookie("token"),
  678. id: 2
  679. }, function (data) {
  680. if (data.state.toLowerCase() == "success") {
  681. var content = data.data;
  682. $(content).each(function (i, n) {
  683. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  684. obj);
  685. })
  686. }
  687. })
  688. }
  689. // 主题
  690. function ZT(obj) {
  691. obj.empty();
  692. obj.append('<option selected="selected" value="">请选择</option>');
  693. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  694. "token": $.cookie("token"),
  695. id: 3
  696. }, function (data) {
  697. if (data.state.toLowerCase() == "success") {
  698. var content = data.data;
  699. $(content).each(function (i, n) {
  700. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  701. obj);
  702. })
  703. }
  704. })
  705. }
  706. function tree() {
  707. $.get(huayi.config.callcenter_url + 'Department/GetDeptList', {
  708. "token": $.cookie("token"),
  709. // "pid": pid
  710. }, function (result) {
  711. result = $.parseJSON(result);
  712. $.fn.zTree.init($("#addTreeDemo"), setting1, result.data); //实例化树形图
  713. });
  714. }
  715. var setting1 = {
  716. data: {
  717. key: {
  718. name: "F_DeptName"
  719. },
  720. simpleData: {
  721. enable: true,
  722. idKey: "F_DeptId",
  723. pIdKey: "F_PartentId",
  724. rootPId: 0
  725. }
  726. },
  727. callback: {
  728. onClick: zTreeOnClick
  729. }
  730. };
  731. function zTreeOnClick(event, treeId, treeNode) {
  732. // if (treeNode.level >= 1) {
  733. $('.inps').val(treeNode.F_DeptName);
  734. $("#PID").val(treeNode.F_DeptId);
  735. $("#Dpment").val(treeNode.F_DeptName);
  736. $(".Cleans").show();
  737. // }
  738. };
  739. // 导出文件
  740. $(".exportFile").click(function() {
  741. exportParams.isdc = 1;
  742. exportFileFun("WorkOrder/GetZXDealList", exportParams)
  743. })
  744. </script>
  745. </body>
  746. </html>