Brak opisu

newRepositoryDetail.html 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <script src="../Script/Common/huayi.load.js"></script>
  6. <script src="../Script/Common/huayi.config.js"></script>
  7. <link rel="stylesheet" href="../css/init.css" />
  8. <title>新版知识库添加</title>
  9. <style type="text/css">
  10. ul,li{
  11. padding: 0;
  12. margin: 0;
  13. list-style: none;
  14. }
  15. .tab_list{
  16. border-bottom: 1px solid #d5d5d5;
  17. }
  18. .tab_list li{
  19. padding: 10px 15px;
  20. float: left;
  21. color: #333333;
  22. font-size: 14px;
  23. position: relative;
  24. }
  25. .tab_list li.active{
  26. color: #19aad0;
  27. }
  28. .tab_list li.active:after{
  29. content: "";
  30. width: 100%;
  31. height: 2px;
  32. background: #19aad0;
  33. position: absolute;
  34. bottom: -1px;
  35. left: 0;
  36. }
  37. .tab_content{
  38. font-size: 14px;
  39. color: #4c4c4c;
  40. padding: 15px 0;
  41. /*text-indent: 28px;*/
  42. }
  43. .tab_content>div{
  44. display: none;
  45. }
  46. .table tr td input[type="text"]{
  47. width: 100%;
  48. height: 30px;
  49. background: #f3f3f4;
  50. border: 1px solid #e7e7e7;
  51. outline: none;
  52. }
  53. .radio-inline input[type=radio]{
  54. margin-top: 2px;
  55. }
  56. .table tr td textarea{
  57. width: 100%;
  58. height: 100%;
  59. background: #f3f3f4;
  60. border: 1px solid #e7e7e7;
  61. padding: 0px;
  62. resize: none;
  63. }
  64. #scwj{
  65. background-color: #FFF;
  66. background-image: none;
  67. border: 1px solid #ccc;
  68. border-radius: 1px;
  69. color: inherit;
  70. padding: 6px 12px!important;
  71. }
  72. .files{
  73. padding: 5px!important;
  74. }
  75. .time-box{
  76. position: relative;
  77. width: 197px!important;
  78. height: 34px;
  79. margin: 0;
  80. }
  81. .tub + input {
  82. padding-right: 30px;
  83. border: 1px solid #e5e6e7!important;
  84. }
  85. i.tub {
  86. position: absolute;
  87. right: 8px;
  88. top: 8px;
  89. font-size: 18px;
  90. color: #00a0ca;
  91. }
  92. .tab_content textarea{
  93. display: block;
  94. background: #f3f3f4;
  95. width: 100%;
  96. height: 298px;
  97. box-sizing: border-box;
  98. text-indent: 28px;
  99. }
  100. .tab_content .cons >div{
  101. background: #f3f3f4;
  102. width: 100%;
  103. min-height: 298px;
  104. box-sizing: border-box;
  105. text-indent: 28px;
  106. word-break:break-all;
  107. word-wrap:break-word;
  108. }
  109. .tab_content .cons >div img{
  110. max-width: 100%;
  111. /*width: 95%;
  112. margin: 0 auto;*/
  113. }
  114. .shdetail table{
  115. width: 100%;
  116. line-height: 30px;
  117. text-align: center;
  118. }
  119. .result_str{
  120. display: block;
  121. float: left;
  122. text-align: center;
  123. }
  124. #result{
  125. min-width: 370px;
  126. min-height: 140px;
  127. }
  128. .operation_bj{
  129. float: right;
  130. display: none;
  131. }
  132. .msg_time{
  133. max-width: 240px;
  134. min-width: 190px;
  135. text-indent: 0px;
  136. }
  137. /*评分cs*/
  138. .star {
  139. position: relative;
  140. }
  141. .star span {
  142. float: left;
  143. height: 19px;
  144. line-height: 19px;
  145. }
  146. .star li {
  147. float: left;
  148. width: 24px;
  149. height: 22px;
  150. text-indent: -9999px;
  151. background: url('../img/star.png') no-repeat;
  152. cursor: pointer;
  153. }
  154. .star li.on {
  155. background-position: 0 -28px;
  156. }
  157. .star p {
  158. background: url('../img/icon.gif') no-repeat;
  159. padding: 10px 10px 0;
  160. position: absolute;
  161. top: 20px;
  162. width: 159px;
  163. height: 30px;
  164. z-index: 100;
  165. }
  166. .star p em {
  167. color: #FF6600;
  168. display: block;
  169. font-style: normal;
  170. }
  171. .star strong {
  172. color: #ff6600;
  173. padding-left: 10px;
  174. }
  175. .hidden {
  176. display: none;
  177. }
  178. /*评分cs结束*/
  179. </style>
  180. </head>
  181. <body class="gray-bg">
  182. <div class="container-fluid wrapper-content animated fadeInRight">
  183. <div class="star">
  184. <ul>
  185. <li><a href="javascript:;">1</a></li>
  186. <li><a href="javascript:;">2</a></li>
  187. <li><a href="javascript:;">3</a></li>
  188. <li><a href="javascript:;">4</a></li>
  189. <li><a href="javascript:;">5</a></li>
  190. </ul>
  191. </div>
  192. <div class="operation_bj">
  193. </div>
  194. <table class="table table-bordered table-condensed">
  195. <tr>
  196. <td width="100">标题</td>
  197. <td colspan="3"> <input type="text" id="title" readonly="readonly" /></td>
  198. </tr>
  199. <tr>
  200. <td width="100" height="100"> 参考答案(修改后)</td>
  201. <td colspan="3" height="100"> <textarea name="" rows="" cols="" id="endanswer" readonly="readonly"></textarea></td>
  202. </tr>
  203. <tr>
  204. <td width="100" height="100"> 参考答案(修改前)</td>
  205. <td colspan="3" height="100"> <textarea name="" rows="" cols="" id="change" readonly="readonly"></textarea></td>
  206. </tr>
  207. <tr>
  208. <td width="100" height="100"> 参考答案(修改前后结果对比)</td>
  209. <td colspan="3" height="100"> <textarea name="" rows="" cols="" id="diff1" readonly="readonly"></textarea></td>
  210. </tr>
  211. <tr>
  212. <td width="100">单位</td>
  213. <td colspan="3"> <input type="text" id="maindept" readonly="readonly" /></td>
  214. </tr>
  215. <tr>
  216. <td width="100"> 办公地点</td>
  217. <td colspan="3"><textarea name="" rows="" cols="" id="officeaddress" readonly="readonly"></textarea></td>
  218. </tr>
  219. <tr >
  220. <td rowspan="2" width="100">公开电话</td>
  221. <td> <input type="text" id="publicphone1" readonly="readonly"/></td>
  222. <td rowspan="2" width="100">内部电话</td>
  223. <td> <input type="text" id="privatephone1" readonly="readonly" /></td>
  224. </tr>
  225. <tr>
  226. <td> <input type="text" id="publicphone2" readonly="readonly" /></td>
  227. <td> <input type="text" id="privatephone2" readonly="readonly" /></td>
  228. </tr>
  229. <tr>
  230. <td width="100"> 办理方式</td>
  231. <td><input type="text" id="dealtype" readonly="readonly"/></td>
  232. <td width="100"> 收费标准</td>
  233. <td> <input type="text" id="paymoney" readonly="readonly" /></td>
  234. </tr>
  235. <tr>
  236. <td width="100"> 办理对象</td>
  237. <td><input type="text" id="serobject" readonly="readonly" /></td>
  238. <td width="100"> 乘车路线</td>
  239. <td><textarea name="" rows="" cols=""id="busline" readonly="readonly"></textarea></td>
  240. </tr>
  241. <tr>
  242. <td width="100" height="100"> 备注</td>
  243. <td colspan="3" height="100"><textarea name="" rows="" cols="" id="remark" readonly="readonly"></textarea> </td>
  244. </tr>
  245. <tr class='mechanism'>
  246. <td width="100" height="100"> 机构职能</td>
  247. <td colspan="3" height="100">
  248. <textarea name="" rows="" cols="" id="mechanism" disabled></textarea>
  249. </td>
  250. </tr>
  251. </table>
  252. <ul class="tab_list clearfix">
  253. <li class="active">设定依据</li>
  254. <li>办理流程</li>
  255. <li>办理材料</li>
  256. <li>办理结果样本</li>
  257. <li>收费标准及依据</li>
  258. <li>附件</li>
  259. <li>纠错记录</li>
  260. </ul>
  261. <div class="tab_content">
  262. <div class="cons" style="display: block;">
  263. <div id="baseon" >
  264. </div>
  265. <!--<textarea name="" readonly="readonly"></textarea>-->
  266. </div>
  267. <div class="cons">
  268. <div id="process" >
  269. </div>
  270. <!--<textarea name="" id="process" readonly="readonly"></textarea>-->
  271. </div>
  272. <div class="cons">
  273. <div id="material" >
  274. </div>
  275. <!--<textarea name="" id="material" readonly="readonly"></textarea>-->
  276. </div>
  277. <div class="cons">
  278. <div id="template" >
  279. </div>
  280. <!--<textarea name="" id="template" readonly="readonly"></textarea>-->
  281. </div>
  282. <div class="cons">
  283. <div id="payinfo" >
  284. </div>
  285. <!--<textarea name="" id="payinfo" readonly="readonly"></textarea>-->
  286. </div>
  287. <div class="cons">
  288. <div>
  289. <table class="table-bordered table-condensed feilTable" style="width: 100%;">
  290. <thead>
  291. <tr>
  292. <th>文件名称</th>
  293. <th>添加时间</th>
  294. <th>文件大小</th>
  295. </tr>
  296. </thead>
  297. <tbody>
  298. </tbody>
  299. </table>
  300. </div>
  301. </div>
  302. <div class="cons">
  303. <table id="error_record" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  304. <thead>
  305. <tr>
  306. <th data-field="F_OptOn" data-align="center" class="msg_time">纠错时间</th>
  307. <th data-field="F_Reason" data-align="center">纠错原因</th>
  308. </tr>
  309. </thead>
  310. </table>
  311. <!--<div id="error_record" >
  312. 纠错记录
  313. </div>-->
  314. <!--<textarea name="" id="process" readonly="readonly"></textarea>-->
  315. </div>
  316. </div>
  317. <script src="../js/kindeditor/kindeditor-all-min.js"></script>
  318. <script src="../js/kindeditor/lang/zh-CN.js"></script>
  319. <script src="../js/adjustHeight.js"></script>
  320. <script src="../js/laydate/laydate.js"></script>
  321. <script>
  322. var ids=helper.request.queryString("ids");
  323. var depId=helper.request.queryString("DeptId");
  324. $(document).ready(function(){
  325. //展示评价星级
  326. var num =5;
  327. if(num==3){
  328. $('.star li:lt(3)').addClass('on')
  329. }else if(num==4){
  330. $('.star li:lt(4)').addClass('on')
  331. }else if(num==5){
  332. $('.star li:lt(5)').addClass('on')
  333. }
  334. //关闭自身
  335. window.formClose = function(){
  336. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  337. //layer.msg(index);
  338. parent.layer.close(index); //再执行关闭
  339. }
  340. $('.tab_list li').click(function(){
  341. var index=$(this).index();
  342. $(this).addClass('active').siblings().removeClass('active');
  343. $('.tab_content>div').eq(index).show().siblings().hide();
  344. })
  345. if(depId&&depId!=99999&&depId!=0){
  346. $.ajax({
  347. type:"get",
  348. url:huayi.config.callcenter_url +"Department/GetDept",
  349. async:true,
  350. dataType:'json',
  351. data:{
  352. token: $.cookie("token"),
  353. id:depId
  354. },
  355. success:function(result){
  356. if(result.state.toLowerCase()=='success'){
  357. var con=result.data;
  358. $('#mechanism').val(con.F_Remark);
  359. }
  360. }
  361. });
  362. }else{
  363. $('.mechanism').css('display','none')
  364. }
  365. //按钮【按钮一】的回调
  366. $.ajax({
  367. type: "post",
  368. url: huayi.config.callcenter_url + "Repository/OptRep",
  369. async: true,
  370. dataType: 'json',
  371. data: {
  372. token: $.cookie("token"),
  373. repid: ids,
  374. type:0
  375. },
  376. success: function(data) {
  377. if(data.state.toLowerCase() == 'success') {
  378. // debugger
  379. }
  380. }
  381. });
  382. $.ajax({
  383. type:"get",
  384. url:huayi.config.callcenter_url +"Repository/GetRepository",
  385. async:true,
  386. dataType:'json',
  387. data:{
  388. token: $.cookie("token"),
  389. id:ids
  390. },
  391. success:function(res){
  392. var Rows = res.data.button;
  393. var html = '';
  394. for (var i = 1; i < Rows.length; i++) {
  395. var html1 = huayi.config.kapArr[Rows[i].key * 1 - 1];
  396. if (html1) {
  397. html1 = html1.replace("data", res.data.data.F_Id);
  398. html1 = html1.replace("data_id", res.data.data.F_DeptId);
  399. }
  400. html += html1;
  401. }
  402. $('.operation_bj').append(html);
  403. if(res.state.toLowerCase()=='success'){
  404. var con=res.data.data;
  405. $('#key').val(con.F_Key);//关键字
  406. $('#title').val(con.F_Title);//事件名称
  407. $('#maindept').val(con.F_MainDept);//主办单位
  408. $('#publicphone1').val(con.F_PublicPhone1);//公开电话1
  409. $('#publicphone2').val(con.F_PublicPhone2);//公开电话2
  410. $('#privatephone1').val(con.F_PrivatePhone1);//内部电话1
  411. $('#privatephone2').val(con.F_PrivatePhone2);//内部电话2
  412. $('#points').val(con.F_Points);//询问要点
  413. $('#baseanswer').val(con.F_BaseAnswer);//标准话术
  414. $('#endanswer').val(con.F_EndAnswer);//结案参考
  415. $('#dealtype').val(con.F_DealType);//办理方式
  416. $('#legallimittime').val(con.F_LegalLimitTime);//法定办结时限
  417. $('#promiselimittime').val(con.F_PromiseLimitTime);//承诺办结时限
  418. // $('input[name="ispay"]:checked ').val(F_PayMoney);//是否收费
  419. $('input[name="ispay"][value="'+con.F_IsPay+'"]').prop("checked","checked");//是否收费
  420. $('input[name="isUrgency"][value="'+con.F_IsUrgent+'"]').prop("checked","checked"),//是否紧急事项
  421. $('#paymoney').val(con.F_PayMoney);//收费标准
  422. $('#officeaddress').val(con.F_OfficeAddress);//办公地点
  423. $('#serobject').val(con.F_Object);//办理对象
  424. $('#busline').val(con.F_BusLine);//乘车路线
  425. $('#officetime').val(con.F_OfficeTime);//办公时间
  426. $('#otherdept').val(con.F_OtherDept);// 协办单位
  427. $('#otherpublicphone').val(con.F_OtherPublicPhone);// 协办单位公开电话
  428. $('#otherprivatephone').val(con.F_OtherPrivatePhone);//协办单位内部电话
  429. $('#remark').val(con.F_Remark);//备注
  430. $('#baseon').html(con.F_BaseOn);//设定依据
  431. $('#process').html(con.F_Process);//办理流程
  432. $('#material').html(con.F_Material);//办理材料
  433. $('#template').html(con.F_Template);//办理结果样本
  434. $('#payinfo').html(con.F_PayInfo);//收费标准及依据
  435. var wjjlistdata=res.data.wjjlist
  436. $('#error_record').bootstrapTable('load', wjjlistdata);//纠错信息
  437. // $('#files').val() //收费标准及依据
  438. console.log()
  439. $(res.data.file).each(function(k,q){
  440. // var strs='<span class="files" fiel-num="'+ q.F_FileId +'">'+ q.F_FileName.substring(19) +'</span>'
  441. var size= (q.F_Size/1024).toFixed(2)
  442. var strs='<tr>'+
  443. '<td><a href="'+ q.F_FileUrl+'" download="test.pdf">'+ q.F_FileName.substring(19) +'</a></td>'+
  444. '<td>'+ q.F_AddTime +'</td>'+
  445. '<td>'+ size +'kb</td>'+
  446. '</tr>'
  447. $(strs).appendTo($('.feilTable tbody'))
  448. })
  449. var shaudit;
  450. $(res.data.shData).each(function(k,q){
  451. if (q.F_ISPass==2) {
  452. shaudit="未通过"
  453. }else if(q.F_ISPass==1){
  454. shaudit="通过"
  455. }
  456. var num=k+1;
  457. var strs='<tr>'+
  458. '<td>'+ num +'</td>'+
  459. '<td>'+ q.F_AuditBy +'</td>'+
  460. '<td>'+ q.F_AuditRemark +'</td>'+
  461. '<td>'+ q.F_CreateOn +'</td>'+
  462. '<td>'+ shaudit +'</td>'+
  463. '</tr>'
  464. $(strs).appendTo($('.SHXX'))
  465. })
  466. }
  467. }
  468. });
  469. $.ajax({
  470. type:"get",
  471. url:huayi.config.callcenter_url +"Knowledge/GetAuditCompareInfo",
  472. async:true,
  473. dataType:'json',
  474. data:{
  475. token: $.cookie("token"),
  476. auditid:ids
  477. },
  478. success:function(res){
  479. console.log(res)
  480. }
  481. })
  482. $('#error_record').bootstrapTable('destroy').bootstrapTable({ striped: true });
  483. })
  484. //解决
  485. function solve(id) {
  486. var laye = layer.confirm('确定解决?', {
  487. btn: ['确定', '取消'] //可以无限个按钮
  488. }, function() {
  489. //按钮【按钮一】的回调
  490. $.ajax({
  491. type: "post",
  492. url: huayi.config.callcenter_url + "Repository/OptRep",
  493. async: true,
  494. dataType: 'json',
  495. data: {
  496. token: $.cookie("token"),
  497. repid: id,
  498. type:1
  499. },
  500. success: function(data) {
  501. if(data.state.toLowerCase() == 'success') {
  502. layer.msg("提交成功!");
  503. layer.close(laye);
  504. table.bootstrapTable('refresh');
  505. }
  506. }
  507. });
  508. }, function(index) {
  509. //按钮【按钮二】的回调
  510. layer.close(laye)
  511. });
  512. }
  513. //未解决
  514. function noSolve(id){
  515. var laye=layer.open({
  516. type: 1,
  517. shade: false,
  518. area: ['430px', '260px'],
  519. title: '请输入未解决原因', //不显示标题
  520. content:
  521. '<div style="padding-top:10px;padding-left:20px;">\n' +
  522. '<textarea id="result" type="text" placeholder="请输入未解决原因"></textarea>' +
  523. '</div>',
  524. cancel: function(){
  525. layer.close();
  526. },
  527. btn: ['确定','取消'],//按钮
  528. yes: function(){
  529. if(!$('#result').val()){
  530. layer.msg('请填写未解决原因!');
  531. return false;
  532. }else{
  533. $.ajax({
  534. type: "post",
  535. url: huayi.config.callcenter_url + "Repository/OptRep",
  536. async: true,
  537. dataType: 'json',
  538. data: {
  539. token: $.cookie("token"),
  540. repid: id,
  541. reason:$('#result').val(),
  542. type:2
  543. },
  544. success: function(data) {
  545. if(data.state.toLowerCase() == 'success') {
  546. layer.msg("提交成功!");
  547. layer.close(laye);
  548. table.bootstrapTable('refresh');
  549. }
  550. }
  551. });
  552. }
  553. }
  554. });
  555. }
  556. //编辑
  557. function goEdit(ids,DeptId){
  558. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  559. parent.layer.close(index); //再执行关闭
  560. window.parent.goEdit(ids,DeptId);//执行父页面的事件
  561. }
  562. //删除
  563. function goDel(id) {
  564. var arr=[];
  565. arr.push(id);
  566. var laye = layer.confirm('您确定要删除吗?', {
  567. btn: ['确定', '取消'] //可以无限个按钮
  568. }, function() {
  569. //按钮【按钮一】的回调
  570. $.ajax({
  571. type: "post",
  572. url: huayi.config.callcenter_url + "Repository/DelRepository",
  573. async: true,
  574. dataType: 'json',
  575. data: {
  576. token: $.cookie("token"),
  577. ids: arr
  578. },
  579. success: function(data) {
  580. if(data.state.toLowerCase() == 'success') {
  581. layer.msg("删除成功!");
  582. layer.close(laye);
  583. table.bootstrapTable('refresh');
  584. }
  585. }
  586. });
  587. }, function(index) {
  588. //按钮【按钮二】的回调
  589. layer.close(laye)
  590. });
  591. }
  592. </script>
  593. </body>
  594. </html>