商丘12345 前端

newRepositoryDetail.html 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545
  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. }
  131. .msg_time{
  132. max-width: 240px;
  133. min-width: 190px;
  134. text-indent: 0px;
  135. }
  136. </style>
  137. </head>
  138. <body class="gray-bg">
  139. <div class="container-fluid wrapper-content animated fadeInRight">
  140. <div class="operation_bj">
  141. </div>
  142. <table class="table table-bordered table-condensed">
  143. <tr>
  144. <td width="100">标题</td>
  145. <td colspan="3"> <input type="text" id="title" readonly="readonly" /></td>
  146. </tr>
  147. <tr>
  148. <td width="100" height="100"> 参考答案</td>
  149. <td colspan="3" height="100"> <textarea name="" rows="" cols="" id="endanswer" readonly="readonly"></textarea></td>
  150. </tr>
  151. <tr>
  152. <td width="100">单位</td>
  153. <td colspan="3"> <input type="text" id="maindept" readonly="readonly" /></td>
  154. </tr>
  155. <tr>
  156. <td width="100"> 办公地点</td>
  157. <td colspan="3"><textarea name="" rows="" cols="" id="officeaddress" readonly="readonly"></textarea></td>
  158. </tr>
  159. <tr >
  160. <td rowspan="2" width="100">公开电话</td>
  161. <td> <input type="text" id="publicphone1" readonly="readonly"/></td>
  162. <td rowspan="2" width="100">内部电话</td>
  163. <td> <input type="text" id="privatephone1" readonly="readonly" /></td>
  164. </tr>
  165. <tr>
  166. <td> <input type="text" id="publicphone2" readonly="readonly" /></td>
  167. <td> <input type="text" id="privatephone2" readonly="readonly" /></td>
  168. </tr>
  169. <tr>
  170. <td width="100"> 办理方式</td>
  171. <td><input type="text" id="dealtype" readonly="readonly"/></td>
  172. <td width="100"> 收费标准</td>
  173. <td> <input type="text" id="paymoney" readonly="readonly" /></td>
  174. </tr>
  175. <tr>
  176. <td width="100"> 办理对象</td>
  177. <td><input type="text" id="serobject" readonly="readonly" /></td>
  178. <td width="100"> 乘车路线</td>
  179. <td><textarea name="" rows="" cols=""id="busline" readonly="readonly"></textarea></td>
  180. </tr>
  181. <tr>
  182. <td width="100" height="100"> 备注</td>
  183. <td colspan="3" height="100"><textarea name="" rows="" cols="" id="remark" readonly="readonly"></textarea> </td>
  184. </tr>
  185. <tr class='mechanism'>
  186. <td width="100" height="100"> 机构职能</td>
  187. <td colspan="3" height="100">
  188. <textarea name="" rows="" cols="" id="mechanism" disabled></textarea>
  189. </td>
  190. </tr>
  191. </table>
  192. <ul class="tab_list clearfix">
  193. <li class="active">设定依据</li>
  194. <li>办理流程</li>
  195. <li>办理材料</li>
  196. <li>办理结果样本</li>
  197. <li>收费标准及依据</li>
  198. <li>附件</li>
  199. <li>纠错记录</li>
  200. </ul>
  201. <div class="tab_content">
  202. <div class="cons" style="display: block;">
  203. <div id="baseon" >
  204. </div>
  205. <!--<textarea name="" readonly="readonly"></textarea>-->
  206. </div>
  207. <div class="cons">
  208. <div id="process" >
  209. </div>
  210. <!--<textarea name="" id="process" readonly="readonly"></textarea>-->
  211. </div>
  212. <div class="cons">
  213. <div id="material" >
  214. </div>
  215. <!--<textarea name="" id="material" readonly="readonly"></textarea>-->
  216. </div>
  217. <div class="cons">
  218. <div id="template" >
  219. </div>
  220. <!--<textarea name="" id="template" readonly="readonly"></textarea>-->
  221. </div>
  222. <div class="cons">
  223. <div id="payinfo" >
  224. </div>
  225. <!--<textarea name="" id="payinfo" readonly="readonly"></textarea>-->
  226. </div>
  227. <div class="cons">
  228. <div>
  229. <table class="table-bordered table-condensed feilTable" style="width: 100%;">
  230. <thead>
  231. <tr>
  232. <th>文件名称</th>
  233. <th>添加时间</th>
  234. <th>文件大小</th>
  235. </tr>
  236. </thead>
  237. <tbody>
  238. </tbody>
  239. </table>
  240. </div>
  241. </div>
  242. <div class="cons">
  243. <table id="error_record" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  244. <thead>
  245. <tr>
  246. <th data-field="F_OptOn" data-align="center" class="msg_time">纠错时间</th>
  247. <th data-field="F_Reason" data-align="center">纠错原因</th>
  248. </tr>
  249. </thead>
  250. </table>
  251. <!--<div id="error_record" >
  252. 纠错记录
  253. </div>-->
  254. <!--<textarea name="" id="process" readonly="readonly"></textarea>-->
  255. </div>
  256. </div>
  257. <script src="../js/kindeditor/kindeditor-all-min.js"></script>
  258. <script src="../js/kindeditor/lang/zh-CN.js"></script>
  259. <script src="../js/adjustHeight.js"></script>
  260. <script src="../js/laydate/laydate.js"></script>
  261. <script>
  262. var ids=helper.request.queryString("ids");
  263. var depId=helper.request.queryString("DeptId");
  264. $(document).ready(function(){
  265. //关闭自身
  266. window.formClose = function(){
  267. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  268. //layer.msg(index);
  269. parent.layer.close(index); //再执行关闭
  270. }
  271. $('.tab_list li').click(function(){
  272. var index=$(this).index();
  273. $(this).addClass('active').siblings().removeClass('active');
  274. $('.tab_content>div').eq(index).show().siblings().hide();
  275. })
  276. if(depId&&depId!=99999&&depId!=0){
  277. $.ajax({
  278. type:"get",
  279. url:huayi.config.callcenter_url +"Department/GetDept",
  280. async:true,
  281. dataType:'json',
  282. data:{
  283. token: $.cookie("token"),
  284. id:depId
  285. },
  286. success:function(result){
  287. if(result.state.toLowerCase()=='success'){
  288. var con=result.data;
  289. $('#mechanism').val(con.F_Remark);
  290. }
  291. }
  292. });
  293. }else{
  294. $('.mechanism').css('display','none')
  295. }
  296. //按钮【按钮一】的回调
  297. $.ajax({
  298. type: "post",
  299. url: huayi.config.callcenter_url + "Repository/OptRep",
  300. async: true,
  301. dataType: 'json',
  302. data: {
  303. token: $.cookie("token"),
  304. repid: ids,
  305. type:0
  306. },
  307. success: function(data) {
  308. if(data.state.toLowerCase() == 'success') {
  309. // debugger
  310. }
  311. }
  312. });
  313. $.ajax({
  314. type:"get",
  315. url:huayi.config.callcenter_url +"Repository/GetRepository",
  316. async:true,
  317. dataType:'json',
  318. data:{
  319. token: $.cookie("token"),
  320. id:ids
  321. },
  322. success:function(res){
  323. var Rows = res.data.button;
  324. var html = '';
  325. for (var i = 1; i < Rows.length; i++) {
  326. var html1 = huayi.config.kapArr[Rows[i].key * 1 - 1];
  327. if (html1) {
  328. html1 = html1.replace("data", res.data.data.F_Id);
  329. html1 = html1.replace("data_id", res.data.data.F_DeptId);
  330. }
  331. html += html1;
  332. }
  333. $('.operation_bj').append(html);
  334. if(res.state.toLowerCase()=='success'){
  335. var con=res.data.data;
  336. $('#key').val(con.F_Key);//关键字
  337. $('#title').val(con.F_Title);//事件名称
  338. $('#maindept').val(con.F_MainDept);//主办单位
  339. $('#publicphone1').val(con.F_PublicPhone1);//公开电话1
  340. $('#publicphone2').val(con.F_PublicPhone2);//公开电话2
  341. $('#privatephone1').val(con.F_PrivatePhone1);//内部电话1
  342. $('#privatephone2').val(con.F_PrivatePhone2);//内部电话2
  343. $('#points').val(con.F_Points);//询问要点
  344. $('#baseanswer').val(con.F_BaseAnswer);//标准话术
  345. $('#endanswer').val(con.F_EndAnswer);//结案参考
  346. $('#dealtype').val(con.F_DealType);//办理方式
  347. $('#legallimittime').val(con.F_LegalLimitTime);//法定办结时限
  348. $('#promiselimittime').val(con.F_PromiseLimitTime);//承诺办结时限
  349. // $('input[name="ispay"]:checked ').val(F_PayMoney);//是否收费
  350. $('input[name="ispay"][value="'+con.F_IsPay+'"]').prop("checked","checked");//是否收费
  351. $('input[name="isUrgency"][value="'+con.F_IsUrgent+'"]').prop("checked","checked"),//是否紧急事项
  352. $('#paymoney').val(con.F_PayMoney);//收费标准
  353. $('#officeaddress').val(con.F_OfficeAddress);//办公地点
  354. $('#serobject').val(con.F_Object);//办理对象
  355. $('#busline').val(con.F_BusLine);//乘车路线
  356. $('#officetime').val(con.F_OfficeTime);//办公时间
  357. $('#otherdept').val(con.F_OtherDept);// 协办单位
  358. $('#otherpublicphone').val(con.F_OtherPublicPhone);// 协办单位公开电话
  359. $('#otherprivatephone').val(con.F_OtherPrivatePhone);//协办单位内部电话
  360. $('#remark').val(con.F_Remark);//备注
  361. $('#baseon').html(con.F_BaseOn);//设定依据
  362. $('#process').html(con.F_Process);//办理流程
  363. $('#material').html(con.F_Material);//办理材料
  364. $('#template').html(con.F_Template);//办理结果样本
  365. $('#payinfo').html(con.F_PayInfo);//收费标准及依据
  366. var wjjlistdata=res.data.wjjlist
  367. $('#error_record').bootstrapTable('load', wjjlistdata);//纠错信息
  368. // $('#files').val() //收费标准及依据
  369. console.log()
  370. $(res.data.file).each(function(k,q){
  371. // var strs='<span class="files" fiel-num="'+ q.F_FileId +'">'+ q.F_FileName.substring(19) +'</span>'
  372. var size= (q.F_Size/1024).toFixed(2)
  373. var strs='<tr>'+
  374. '<td><a href="'+ q.F_FileUrl+'" download="test.pdf">'+ q.F_FileName.substring(19) +'</a></td>'+
  375. '<td>'+ q.F_AddTime +'</td>'+
  376. '<td>'+ size +'kb</td>'+
  377. '</tr>'
  378. $(strs).appendTo($('.feilTable tbody'))
  379. })
  380. var shaudit;
  381. $(res.data.shData).each(function(k,q){
  382. if (q.F_ISPass==2) {
  383. shaudit="未通过"
  384. }else if(q.F_ISPass==1){
  385. shaudit="通过"
  386. }
  387. var num=k+1;
  388. var strs='<tr>'+
  389. '<td>'+ num +'</td>'+
  390. '<td>'+ q.F_AuditBy +'</td>'+
  391. '<td>'+ q.F_AuditRemark +'</td>'+
  392. '<td>'+ q.F_CreateOn +'</td>'+
  393. '<td>'+ shaudit +'</td>'+
  394. '</tr>'
  395. $(strs).appendTo($('.SHXX'))
  396. })
  397. }
  398. }
  399. });
  400. $('#error_record').bootstrapTable('destroy').bootstrapTable({ striped: true });
  401. })
  402. //解决
  403. function solve(id) {
  404. var laye = layer.confirm('确定解决?', {
  405. btn: ['确定', '取消'] //可以无限个按钮
  406. }, function() {
  407. //按钮【按钮一】的回调
  408. $.ajax({
  409. type: "post",
  410. url: huayi.config.callcenter_url + "Repository/OptRep",
  411. async: true,
  412. dataType: 'json',
  413. data: {
  414. token: $.cookie("token"),
  415. repid: id,
  416. type:1
  417. },
  418. success: function(data) {
  419. if(data.state.toLowerCase() == 'success') {
  420. layer.msg("提交成功!");
  421. layer.close(laye);
  422. table.bootstrapTable('refresh');
  423. }
  424. }
  425. });
  426. }, function(index) {
  427. //按钮【按钮二】的回调
  428. layer.close(laye)
  429. });
  430. }
  431. //未解决
  432. function noSolve(id){
  433. var laye=layer.open({
  434. type: 1,
  435. shade: false,
  436. area: ['430px', '260px'],
  437. title: '请输入未解决原因', //不显示标题
  438. content:
  439. '<div style="padding-top:10px;padding-left:20px;">\n' +
  440. '<textarea id="result" type="text" placeholder="请输入未解决原因"></textarea>' +
  441. '</div>',
  442. cancel: function(){
  443. layer.close();
  444. },
  445. btn: ['确定','取消'],//按钮
  446. yes: function(){
  447. if(!$('#result').val()){
  448. layer.msg('请填写未解决原因!');
  449. return false;
  450. }else{
  451. $.ajax({
  452. type: "post",
  453. url: huayi.config.callcenter_url + "Repository/OptRep",
  454. async: true,
  455. dataType: 'json',
  456. data: {
  457. token: $.cookie("token"),
  458. repid: id,
  459. reason:$('#result').val(),
  460. type:2
  461. },
  462. success: function(data) {
  463. if(data.state.toLowerCase() == 'success') {
  464. layer.msg("提交成功!");
  465. layer.close(laye);
  466. table.bootstrapTable('refresh');
  467. }
  468. }
  469. });
  470. }
  471. }
  472. });
  473. }
  474. //编辑
  475. function goEdit(ids,DeptId){
  476. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  477. parent.layer.close(index); //再执行关闭
  478. window.parent.goEdit(ids,DeptId);//执行父页面的事件
  479. }
  480. //删除
  481. function goDel(id) {
  482. var arr=[];
  483. arr.push(id);
  484. var laye = layer.confirm('您确定要删除吗?', {
  485. btn: ['确定', '取消'] //可以无限个按钮
  486. }, function() {
  487. //按钮【按钮一】的回调
  488. $.ajax({
  489. type: "post",
  490. url: huayi.config.callcenter_url + "Repository/DelRepository",
  491. async: true,
  492. dataType: 'json',
  493. data: {
  494. token: $.cookie("token"),
  495. ids: arr
  496. },
  497. success: function(data) {
  498. if(data.state.toLowerCase() == 'success') {
  499. layer.msg("删除成功!");
  500. layer.close(laye);
  501. table.bootstrapTable('refresh');
  502. }
  503. }
  504. });
  505. }, function(index) {
  506. //按钮【按钮二】的回调
  507. layer.close(laye)
  508. });
  509. }
  510. </script>
  511. </body>
  512. </html>