商丘12345 前端

newRepositoryDetail.html 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  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: 0;
  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: 0;
  61. resize: none;
  62. }
  63. #scwj{
  64. background-color: #FFF;
  65. background-image: none;
  66. border: 1px solid #ccc;
  67. border-radius: 1px;
  68. color: inherit;
  69. padding: 6px 12px!important;
  70. }
  71. .files{
  72. padding: 5px!important;
  73. }
  74. .time-box{
  75. position: relative;
  76. width: 197px!important;
  77. height: 34px;
  78. margin: 0;
  79. }
  80. .tub + input {
  81. padding-right: 30px;
  82. border: 1px solid #e5e6e7!important;
  83. }
  84. i.tub {
  85. position: absolute;
  86. right: 8px;
  87. top: 8px;
  88. font-size: 18px;
  89. color: #00a0ca;
  90. }
  91. .tab_content textarea{
  92. display: block;
  93. background: #f3f3f4;
  94. width: 100%;
  95. height: 298px;
  96. box-sizing: border-box;
  97. text-indent: 28px;
  98. }
  99. .tab_content .cons >div{
  100. background: #f3f3f4;
  101. width: 100%;
  102. min-height: 298px;
  103. box-sizing: border-box;
  104. text-indent: 28px;
  105. word-break:break-all;
  106. word-wrap:break-word;
  107. }
  108. .tab_content .cons >div img{
  109. max-width: 100%;
  110. /*width: 95%;
  111. margin: 0 auto;*/
  112. }
  113. </style>
  114. </head>
  115. <body class="gray-bg">
  116. <div class="container-fluid wrapper-content animated fadeInRight">
  117. <table class="table table-bordered table-condensed">
  118. <tr>
  119. <td width="100">关键词</td>
  120. <td colspan="3"><input type="text" id="key" readonly="readonly"/></td>
  121. </tr>
  122. <tr>
  123. <td width="100">事件名称</td>
  124. <td colspan="3"> <input type="text" id="title" readonly="readonly" /></td>
  125. </tr>
  126. <tr>
  127. <td width="100">主办单位</td>
  128. <td colspan="3"> <input type="text" id="maindept" readonly="readonly" /></td>
  129. </tr>
  130. <tr >
  131. <td rowspan="2" width="100">公开电话</td>
  132. <td> <input type="text" id="publicphone1" readonly="readonly"/></td>
  133. <td rowspan="2" width="100">内部电话</td>
  134. <td> <input type="text" id="privatephone1" readonly="readonly" /></td>
  135. </tr>
  136. <tr>
  137. <td> <input type="text" id="publicphone2" readonly="readonly" /></td>
  138. <td> <input type="text" id="privatephone2" readonly="readonly" /></td>
  139. </tr>
  140. <tr>
  141. <td width="100" height="100"> 咨询要点</td>
  142. <td colspan="3" height="100"> <textarea name="" rows="" cols="" id="points" readonly="readonly"></textarea></td>
  143. </tr>
  144. <tr>
  145. <td width="100"> 标准话术</td>
  146. <td colspan="3"> <textarea name="" rows="" cols="" id="baseanswer" readonly="readonly"></textarea></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><input type="text" id="dealtype" readonly="readonly"/></td>
  155. <td width="100"> 法定办结时限</td>
  156. <td><input type="text" id="legallimittime" readonly="readonly" /></td>
  157. </tr>
  158. <tr>
  159. <td width="100"> 是否收费</td>
  160. <td>
  161. <label class="radio-inline">
  162. <input type="radio" name="ispay" disabled="disabled" id="ispay1" value="1" readonly="readonly"> 是
  163. </label>
  164. <label class="radio-inline">
  165. <input type="radio" name="ispay" disabled="disabled" id="ispay2" value="0" readonly="readonly"> 否
  166. </label>
  167. </td>
  168. <td width="100"> 承诺办结时限</td>
  169. <td><input type="text" id="promiselimittime" readonly="readonly" /></td>
  170. </tr>
  171. <tr>
  172. <td width="100"> 紧急事项</td>
  173. <td>
  174. <label class="radio-inline">
  175. <input type="radio" name="isUrgency" disabled="disabled" id="isUrgency" value="1"> 是
  176. </label>
  177. <label class="radio-inline">
  178. <input type="radio" name="isUrgency" disabled="disabled" id="isUrgency" value="0"> 否
  179. </label>
  180. </td>
  181. </tr>
  182. <tr>
  183. <td width="100"> 收费标准</td>
  184. <td> <input type="text" id="paymoney" readonly="readonly" /></td>
  185. <td width="100"> 办公地点</td>
  186. <td><textarea name="" rows="" cols="" id="officeaddress" readonly="readonly"></textarea></td>
  187. </tr>
  188. <tr>
  189. <td width="100"> 办理对象</td>
  190. <td><input type="text" id="serobject" readonly="readonly" /></td>
  191. <td width="100"> 乘车路线</td>
  192. <td><textarea name="" rows="" cols=""id="busline" readonly="readonly"></textarea></td>
  193. </tr>
  194. <tr>
  195. <td width="100"> 办公时间</td>
  196. <td colspan="3">
  197. <input type="text" id="officetime" readonly="readonly" />
  198. <!--<div class="form-group time-box">
  199. <i class="tub fa fa-calendar"></i>
  200. <input class="form-control" type="text" id="officetime" placeholder="请选择开始时间" readonly="readonly">
  201. </div>-->
  202. </td>
  203. </tr>
  204. <tr>
  205. <td width="100" rowspan="2"> 协办单位</td>
  206. <td rowspan="2"><input type="text" name="otherdept" id="otherdept" readonly="readonly" /></td>
  207. <td width="100"> 公开电话</td>
  208. <td><input type="text" id="otherpublicphone" readonly="readonly" /></td>
  209. </tr>
  210. <tr>
  211. <td width="100"> 内部电话</td>
  212. <td><input type="text" id="otherprivatephone" readonly="readonly" /></td>
  213. </tr>
  214. <tr>
  215. <td width="100" height="100"> 备注</td>
  216. <td colspan="3" height="100"><textarea name="" rows="" cols="" id="remark" readonly="readonly"></textarea> </td>
  217. </tr>
  218. <!--<tr>
  219. <td width="100" > 修改人</td>
  220. <td></td>
  221. <td width="100" > 修改日期</td>
  222. <td></td>
  223. </tr>-->
  224. </table>
  225. <ul class="tab_list clearfix">
  226. <li class="active">设定依据</li>
  227. <li>办理流程</li>
  228. <li>办理材料</li>
  229. <li>办理结果样本</li>
  230. <li>收费标准及依据</li>
  231. <li>附件</li>
  232. </ul>
  233. <div class="tab_content">
  234. <div class="cons" style="display: block;">
  235. <div id="baseon" >
  236. </div>
  237. <!--<textarea name="" readonly="readonly"></textarea>-->
  238. </div>
  239. <div class="cons">
  240. <div id="process" >
  241. </div>
  242. <!--<textarea name="" id="process" readonly="readonly"></textarea>-->
  243. </div>
  244. <div class="cons">
  245. <div id="material" >
  246. </div>
  247. <!--<textarea name="" id="material" readonly="readonly"></textarea>-->
  248. </div>
  249. <div class="cons">
  250. <div id="template" >
  251. </div>
  252. <!--<textarea name="" id="template" readonly="readonly"></textarea>-->
  253. </div>
  254. <div class="cons">
  255. <div id="payinfo" >
  256. </div>
  257. <!--<textarea name="" id="payinfo" readonly="readonly"></textarea>-->
  258. </div>
  259. <div class="cons">
  260. <div>
  261. <table class="table-bordered table-condensed feilTable" style="width: 100%;">
  262. <thead>
  263. <tr>
  264. <th>文件名称</th>
  265. <th>添加时间</th>
  266. <th>文件大小</th>
  267. </tr>
  268. </thead>
  269. <tbody>
  270. </tbody>
  271. </table>
  272. </div>
  273. </div>
  274. </div>
  275. <script src="../js/kindeditor/kindeditor-all-min.js"></script>
  276. <script src="../js/kindeditor/lang/zh-CN.js"></script>
  277. <script src="../js/adjustHeight.js"></script>
  278. <script src="../js/laydate/laydate.js"></script>
  279. <script>
  280. var ids=helper.request.queryString("ids");
  281. $(document).ready(function(){
  282. $('.tab_list li').click(function(){
  283. var index=$(this).index();
  284. $(this).addClass('active').siblings().removeClass('active');
  285. $('.tab_content>div').eq(index).show().siblings().hide();
  286. })
  287. $.ajax({
  288. type:"get",
  289. url:huayi.config.callcenter_url +"Repository/GetRepository",
  290. async:true,
  291. dataType:'json',
  292. data:{
  293. token: $.cookie("token"),
  294. id:ids
  295. },
  296. success:function(res){
  297. if(res.state.toLowerCase()=='success'){
  298. var con=res.data.data;
  299. $('#key').val(con.F_Key);//关键字
  300. $('#title').val(con.F_Title);//事件名称
  301. $('#maindept').val(con.F_MainDept);//主办单位
  302. $('#publicphone1').val(con.F_PublicPhone1);//公开电话1
  303. $('#publicphone2').val(con.F_PublicPhone2);//公开电话2
  304. $('#privatephone1').val(con.F_PrivatePhone1);//内部电话1
  305. $('#privatephone2').val(con.F_PrivatePhone2);//内部电话2
  306. $('#points').val(con.F_Points);//询问要点
  307. $('#baseanswer').val(con.F_BaseAnswer);//标准话术
  308. $('#endanswer').val(con.F_EndAnswer);//结案参考
  309. $('#dealtype').val(con.F_DealType);//办理方式
  310. $('#legallimittime').val(con.F_LegalLimitTime);//法定办结时限
  311. $('#promiselimittime').val(con.F_PromiseLimitTime);//承诺办结时限
  312. // $('input[name="ispay"]:checked ').val(F_PayMoney);//是否收费
  313. $('input[name="ispay"][value="'+con.F_IsPay+'"]').prop("checked","checked");//是否收费
  314. $('input[name="isUrgency"][value="'+con.F_IsUrgent+'"]').prop("checked","checked"),//是否紧急事项
  315. $('#paymoney').val(con.F_PayMoney);//收费标准
  316. $('#officeaddress').val(con.F_OfficeAddress);//办公地点
  317. $('#serobject').val(con.F_Object);//办理对象
  318. $('#busline').val(con.F_BusLine);//乘车路线
  319. $('#officetime').val(con.F_OfficeTime);//办公时间
  320. $('#otherdept').val(con.F_OtherDept);// 协办单位
  321. $('#otherpublicphone').val(con.F_OtherPublicPhone);// 协办单位公开电话
  322. $('#otherprivatephone').val(con.F_OtherPrivatePhone);//协办单位内部电话
  323. $('#remark').val(con.F_Remark);//备注
  324. $('#baseon').html(con.F_BaseOn);//设定依据
  325. $('#process').html(con.F_Process);//办理流程
  326. $('#material').html(con.F_Material);//办理材料
  327. $('#template').html(con.F_Template);//办理结果样本
  328. $('#payinfo').html(con.F_PayInfo);//收费标准及依据
  329. // $('#files').val() //收费标准及依据
  330. console.log()
  331. $(res.data.file).each(function(k,q){
  332. // var strs='<span class="files" fiel-num="'+ q.F_FileId +'">'+ q.F_FileName.substring(19) +'</span>'
  333. var size= (q.F_Size/1024).toFixed(2)
  334. var strs='<tr>'+
  335. '<td><a href="'+ q.F_FileUrl+'" download="test.pdf">'+ q.F_FileName.substring(19) +'</a></td>'+
  336. '<td>'+ q.F_AddTime +'</td>'+
  337. '<td>'+ size +'kb</td>'+
  338. '</tr>'
  339. $(strs).appendTo($('.feilTable tbody'))
  340. })
  341. }
  342. }
  343. });
  344. })
  345. </script>
  346. </body>
  347. </html>