w-project-section-files.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  1. <!DOCTYPE html>
  2. <html lang=zh-cn>
  3. <head>
  4. <meta charset=utf-8>
  5. <title>纵横计量支付系统</title>
  6. <meta name=description content=计量支付>
  7. <meta name=copyright content=smartcost.com.cn>
  8. <link rel=stylesheet href={{rootUrl}}global/css/fixedheadertable.css>
  9. <link rel=stylesheet href="{{rootUrl}}global/css/bootstrap.css">
  10. <link rel=stylesheet href="{{rootUrl}}global/css/style.css">
  11. <script src="{{rootUrl}}global/js/jquery-1.9.1.min.js"></script>
  12. <script src="{{rootUrl}}global/js/bootstrap.js"></script>
  13. <script src="{{rootUrl}}global/js/jl.js"></script>
  14. <script src={{rootUrl}}global/js/jquery.fixedheadertable.js></script>
  15. </head>
  16. <body>
  17. <!-- include "top" -->
  18. <div class="wrapContent">
  19. <!-- include "left" -->
  20. <div class="mainContainer">
  21. <!--内容-->
  22. <div class="mainContent">
  23. <div class="title clearfix">
  24. <ul class="nav nav-pills">
  25. <li class="dropdown"><a title="返回" href="{{rootUrl}}project/{{currproArray.pid}}/section"><span
  26. class="closePanel" aria-hidden="true" data-icon="Z"></span></a></li>
  27. <li class="dropdown">
  28. </li>
  29. <li class="dropdown">
  30. <a href="{{rootUrl}}project/{{currproArray.pid}}/section" data-toggle="dropdown"
  31. class="dropdown-toggle">
  32. {{currconArray.stname}}<b class="caret"></b>
  33. </a>
  34. <ul class="dropdown-menu">
  35. <!-- loop allconArray -->
  36. <li><a href="{{rootUrl}}project/{{currproArray.pid}}/section">{{allconArray'
  37. value.stname}}</a></li>
  38. <!-- endloop -->
  39. </ul>
  40. </li>
  41. <li class="dropdown">
  42. <a href="{{rootUrl}}project/{{currproArray.pid}}/section" data-toggle="dropdown"
  43. class="dropdown-toggle">
  44. {{curractmeasureArray.pmname}}<b class="caret"></b>
  45. </a>
  46. <ul class="dropdown-menu">
  47. <!-- loop allactmeasureArray -->
  48. <li>
  49. <a href="{{rootUrl}}project/{{currproArray.pid}}/section/{{allactmeasureArray' value.pmid}}/detail">{{allactmeasureArray' value.pmname}}</a></li>
  50. <!-- endloop -->
  51. <!-- <li class="divider"></li>
  52. <li><a href="#">共18标段,查看更多</a></li>-->
  53. </ul>
  54. </li>
  55. </ul>
  56. </div>
  57. <!--导航-->
  58. <ul class="nav nav-tabs">
  59. <li>
  60. <a href="{{rootUrl}}project/{{pid}}/section/{{pmid}}/detail">标段概况</a>
  61. </li>
  62. <li class="active"><a href="{{rootUrl}}project/{{pid}}/section/{{pmid}}/files">附件</a></li>
  63. <!--<li><a href="w-project-section-measure.html">计量台帐</a></li>-->
  64. </ul>
  65. <!--导航-->
  66. <!--筛选工具-->
  67. <div class="clearfix">
  68. <form class="form-inline">
  69. <select class="span2">
  70. <option>不限期数</option>
  71. <option>第二期</option>
  72. <option>第一期</option>
  73. </select>
  74. <select class="span2">
  75. <option>上传者</option>
  76. <option>陈特</option>
  77. <option>任杰</option>
  78. </select>
  79. <select class="span2">
  80. <option>清单</option>
  81. <option>203-1-a 挖土方</option>
  82. </select>
  83. <a href="/project/{{pid}}/section/{{pmid}}/files/recover" class="fR">附件回收站</a>
  84. </form>
  85. </div>
  86. <!--筛选工具-->
  87. <!--文件管理-->
  88. <div class="filesWrap">
  89. <div class="filesList">
  90. <table class="table table-striped table-hover">
  91. <thead>
  92. <tr>
  93. <th width="">文件名</th>
  94. <th width="">期</th>
  95. <th width="">节点</th>
  96. <th width="">上传者</th>
  97. <th width="">上传时间</th>
  98. <th width="40">操作</th>
  99. </tr>
  100. </thead>
  101. <tbody>
  102. <!-- loop itemMeasureArray -->
  103. <tr>
  104. <td width=""><span class="fileico ico-jpg"></span><a
  105. fileext="{{itemMeasureArray' value.fileext}}"
  106. imnid="{{itematta' value.imnid}}"
  107. filename="{{itemMeasureArray' value.filename}}"
  108. realname="{{itemMeasureArray' value.realname}}"
  109. intime="{{formatDate(itemMeasureArray' value.intime,'Y-m-d')}}"
  110. tips="{{itemMeasureArray' value.tips}}"
  111. href="#"
  112. numpname="第{{ToChinaseNum(itemMeasureArray' value.numpname)}}期"
  113. id="fname_{{itemMeasureArray' value.imnid}}">{{itemMeasureArray' value.filename}}</a></td>
  114. <td>第{{ToChinaseNum(itemMeasureArray' value.numpname)}}期</td>
  115. <td>{{itemMeasureArray' value.pmname}}</td>
  116. <td width="">{{itemMeasureArray' value.realname}}</td>
  117. <td width="">{{formatDate(itemMeasureArray' value.intime,'Y-m-d')}}</td>
  118. <td>
  119. <div class="btn-group">
  120. <a imnid="{{itemMeasureArray' value.imnid}}" id="dropdown_{{itemMeasureArray' value.imnid}}"
  121. class="btn btn-mini dropdown-toggle" data-toggle="dropdown" href="#">
  122. <span class="caret"></span>
  123. </a>
  124. <ul class="dropdown-menu">
  125. <li><a><i class="icon-eye-open"></i>&nbsp;预览</a></li>
  126. <li><a href="#file-edit" data-toggle="modal"><i class="icon-pencil"></i>&nbsp;编辑</a>
  127. </li>
  128. <li><a><i class="icon-download-alt"></i>&nbsp;下载</a></li>
  129. </ul>
  130. </div>
  131. </td>
  132. </tr>
  133. <!-- endloop -->
  134. </tbody>
  135. </table>
  136. <div class="pagination">
  137. <ul>
  138. <li class="disabled"><a href="#">&laquo;</a></li>
  139. <li class="active"><a href="#">1</a></li>
  140. <li><a href="#">2</a></li>
  141. <li><a href="#">3</a></li>
  142. <li><a href="#">4</a></li>
  143. <li><a href="#">5</a></li>
  144. </ul>
  145. </div>
  146. </div>
  147. <div class="filesDetail hide">
  148. <table class="table table-striped">
  149. <thead>
  150. <tr>
  151. <th colspan="4">文件详情</th>
  152. </tr>
  153. </thead>
  154. <tr>
  155. <th width="60">文件名</th>
  156. <td colspan="3" id="fn"> K0+800-K1+000图纸</td>
  157. </tr>
  158. <tr>
  159. <th width="60">格式</th>
  160. <td id="fileico"><span class="fileico ico-jpg"></span>.jpg</td>
  161. <th width="60">所在期</th>
  162. <td id="numpname">第二期</td>
  163. </tr>
  164. <tr>
  165. <th width="60">上传者</th>
  166. <td id="realname">陈工</td>
  167. <th width="60">上传时间</th>
  168. <td id="intime">2014-11-20 14:20</td>
  169. </tr>
  170. <tr>
  171. <th width="60">备注/描述</th>
  172. <td colspan="3" id="tips">内容内容内容内容</td>
  173. </tr>
  174. <tr>
  175. <th width="60">更多操作</th>
  176. <td colspan="3">
  177. <button class="btn btn-mini btn-primary" type="button" href="#file-replace"
  178. data-toggle="modal"><i class="icon-retweet icon-white"></i>替换
  179. </button>
  180. <button class="btn btn-mini btn-info" type="button" href="#file-history"
  181. data-toggle="modal"><i class="icon-time icon-white"></i>历史版本
  182. </button>
  183. &nbsp;&nbsp;&nbsp;&nbsp;
  184. <button id="del_{{itemMeasureArray' value.imnid}}" imnid="{{itemMeasureArray' value.imnid}}" class="btn btn-mini btn-danger" type="button" href="#file-del"
  185. data-toggle="modal"><i class="icon-remove icon-white"></i>删除
  186. </button>
  187. </td>
  188. </tr>
  189. </table>
  190. </div>
  191. </div>
  192. <!--文件管理-->
  193. </div>
  194. <!--内容-->
  195. </div>
  196. </div>
  197. <!-- 编辑弹出 -->
  198. <div id="file-edit" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
  199. aria-hidden="true">
  200. <div class="modal-header">
  201. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
  202. <h3 id="myModalLabel">文件编辑</h3>
  203. </div>
  204. <div class="modal-body">
  205. <div class="form">
  206. <form class="form-horizontal">
  207. <input type="hidden" id="upimnid" name="upimnid" value=""/>
  208. <div class="control-group">
  209. <label class="control-label" for="inputEmail">文件名称</label>
  210. <div class="controls">
  211. <input name="upfilename" id="upfilename" type="text"/>
  212. </div>
  213. </div>
  214. <div class="control-group">
  215. <label class="control-label" for="inputEmail">备注/描述</label>
  216. <div class="controls">
  217. <textarea name="upfiledesc" id="upfiledesc"></textarea>
  218. </div>
  219. </div>
  220. </form>
  221. </div>
  222. </div>
  223. <div class="modal-footer">
  224. <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
  225. <button id="updateFileDesc" class="btn btn-primary">确定修改</button>
  226. </div>
  227. </div>
  228. <!-- 编辑弹出 -->
  229. <!-- 替换弹出 -->
  230. <div id="file-replace" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
  231. aria-hidden="true">
  232. <div class="modal-header">
  233. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
  234. <h3 id="myModalLabel">文件替换</h3>
  235. </div>
  236. <div class="modal-body">
  237. <div class="form">
  238. <form class="form-horizontal">
  239. <div class="control-group">
  240. <label class="control-label" for="inputEmail">选择文件</label>
  241. <div class="controls">
  242. <input type="file">
  243. <span class="help-block">替换新文件后,所有已下挂该文件的清单都将更新。</span>
  244. </div>
  245. </div>
  246. </form>
  247. </div>
  248. </div>
  249. <div class="modal-footer">
  250. <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
  251. <button class="btn btn-primary">确定替换</button>
  252. </div>
  253. </div>
  254. <!-- 替换弹出 -->
  255. <!-- 删除弹出 -->
  256. <div id="file-del" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
  257. aria-hidden="true">
  258. <div class="modal-header">
  259. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
  260. <h3 id="myModalLabel">文件删除</h3>
  261. </div>
  262. <div class="modal-body">
  263. <h5 class="text-success">文件删除成功,您可以在附件回收站恢复它。</h5>
  264. </div>
  265. <div class="modal-footer">
  266. <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
  267. </div>
  268. </div>
  269. </div>
  270. <!-- 删除弹出 -->
  271. <!-- 历史版本弹出 -->
  272. <div id="file-history" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
  273. aria-hidden="true">
  274. <div class="modal-header">
  275. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
  276. <h3 id="myModalLabel">历史版本</h3>
  277. </div>
  278. <div class="modal-body">
  279. <div class="media">
  280. <div class="pull-left">
  281. <h4>#1</h4>
  282. </div>
  283. <div class="media-body">
  284. <h5>陈特&nbsp;上传于 2016-10-10 10:10</h5>
  285. <a href="#" target="_blank">QQ截图20160629164352.png</a>
  286. </div>
  287. </div>
  288. <div class="media">
  289. <div class="pull-left">
  290. <h4>#2</h4>
  291. </div>
  292. <div class="media-body">
  293. <h5>陈特&nbsp;上传于 2016-9-24 17:30</h5>
  294. <a href="#" target="_blank">dfsdf.png</a>
  295. </div>
  296. </div>
  297. </div>
  298. <div class="modal-footer">
  299. <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
  300. </div>
  301. </div>
  302. </div>
  303. <!-- 历史版本1弹出 -->
  304. <script type="text/javascript">autoFlashHeight();</script>
  305. <script type="text/javascript">
  306. $(document).ready(function () {
  307. $("a[id^='fname_']").click(function () {
  308. var fileext = $(this).attr('fileext');
  309. var filename = $(this).attr('filename');
  310. var realname = $(this).attr('realname');
  311. var intime = $(this).attr('intime');
  312. var tips = $(this).attr('tips');
  313. var numpname = $(this).attr('numpname');
  314. $("#fn").html(filename);
  315. $("#fileico").html(fileext);
  316. $("#realname").html(realname);
  317. $("#intime").html(intime);
  318. $("#tips").html(tips);
  319. $("#numpname").html(numpname);
  320. $(".filesDetail").show();
  321. });
  322. $("a[id^='dropdown_']").click(function () {
  323. var imnid = $(this).attr('imnid');
  324. $("#upimnid").val(imnid);
  325. });
  326. $("button[id^='del_']").click(function () {
  327. var imnid = $(this).attr('imnid');
  328. $.ajax({
  329. type: "POST",
  330. dataType: "json",
  331. cache: false,
  332. data: {"imnid": imnid, "optype": 'del'},
  333. url: "/project/{{pid}}/section/{{pmid}}/files",
  334. success: function (data) {
  335. if (data['status'] == 1) {
  336. window.location.href = "{{rootUrl}}project/{{pid}}/section/{{pmid}}/files";
  337. }
  338. }
  339. });
  340. });
  341. $("#updateFileDesc").click(function () {
  342. var upfilename = $("#upfilename").val();
  343. var upfiledesc = $("#upfiledesc").val();
  344. var imnid = $("#upimnid").val();
  345. $.ajax({
  346. type: "POST",
  347. dataType: "json",
  348. cache: false,
  349. data: {"upimnid": imnid, "filename": upfilename, "filedesc": upfiledesc},
  350. url: "/project/{{pid}}/section/{{pmid}}/files",
  351. success: function (data) {
  352. if (data['status'] == 1) {
  353. window.location.href = "{{rootUrl}}project/{{pid}}/section/{{pmid}}/files";
  354. }
  355. }
  356. });
  357. });
  358. });
  359. </script>
  360. </body>