Нет описания

newRepositoryDetail.html 16KB

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