read.html 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  1. {extend name="common/base"/}
  2. <!-- 主体 -->
  3. {block name="style"}
  4. <style>
  5. .heading th {
  6. text-align: center;
  7. }
  8. .form td {
  9. text-align: center;
  10. }
  11. /* 日志 */
  12. .log_top {
  13. padding-left: 1vw;
  14. }
  15. .log_top span {
  16. margin: 0 0.5vw;
  17. }
  18. /* 1,1,1 */
  19. .log_commentary {
  20. color: rgb(0, 176, 80);
  21. }
  22. .log_company {
  23. color: rgb(255, 33, 0);
  24. }
  25. .log_content {
  26. margin: 0.3vw 1.5vw 1vw 1.5vw;
  27. padding: 0.5vw 0vw;
  28. text-indent: 2em;
  29. line-height: 2.1vh;
  30. background-color: rgb(255, 255, 255);
  31. /* background-color: aqua; */
  32. border-radius: 0.5vw;
  33. /* box-shadow:4px 4px 6px 2px rgba(0,0,0,0.3); */
  34. /* box-shadow: 0.17vw 0.17vw 0.4vw 0.03vw rgba(0, 0, 0, 0.1); */
  35. box-shadow: 0.19vw 0.16vw 0.4vw 0.03vw rgba(0, 0, 0, 0.1);
  36. }
  37. .log_content_color {
  38. /* background-color: rgb(250,250,250); */
  39. }
  40. .log_content_img img {
  41. height: 100%;
  42. width: 10%;
  43. border-radius: 0.5vw;
  44. margin: 0.3vw 0;
  45. }
  46. .log_item_top {
  47. height: 70%;
  48. overflow: scroll;
  49. }
  50. .log_item_top {
  51. height: 60vh;
  52. }
  53. .log_item_bottom {
  54. display: flex;
  55. /* height: 17vh; */
  56. /* border-top: 1px solid #eee; */
  57. margin: 0 1.5vw;
  58. /* background-color: rgb(250,250,250); */
  59. }
  60. .log_input input {
  61. width: 55vw;
  62. height: 10vh;
  63. border: #eee 1px solid;
  64. }
  65. .log_bottom_img {
  66. /* height: 5vh; */
  67. }
  68. .log_bottom_img img {
  69. height: 4vw;
  70. width: 6vw;
  71. border-radius: 0.5vw;
  72. margin: 0.5vw 0vw 0.5vw 0.3vw;
  73. }
  74. .log_bottom_left {
  75. width: 100%;
  76. margin-top: 1.5vh;
  77. }
  78. .log_bottom_right {
  79. width: 5%;
  80. }
  81. /* 上传图片 */
  82. .layui-upload-drag-self {
  83. background-color: #fbfdff;
  84. border: 1px dashed #c0ccda;
  85. border-radius: 6px;
  86. box-sizing: border-box;
  87. line-height: 4vw;
  88. vertical-align: top;
  89. display: inline-block;
  90. text-align: center;
  91. cursor: pointer;
  92. outline: 0;
  93. margin-right: 13px;
  94. float: left;
  95. }
  96. .layui-input-inlines-self {
  97. position: relative;
  98. margin-left: 90px;
  99. min-height: 36px;
  100. text-align: left;
  101. }
  102. .layui-upload-drag-self .layui-icon {
  103. font-size: 28px;
  104. color: #8c939d
  105. }
  106. .layui-upload-drag-self .img {
  107. position: relative;
  108. height: 148px;
  109. width: 148px;
  110. }
  111. .layui-upload-img {
  112. width: 148px;
  113. height: 148px;
  114. border-radius: 6px;
  115. margin-top: -3px;
  116. margin-left: -2px;
  117. }
  118. .handle {
  119. position: absolute;
  120. width: 148px;
  121. height: 100%;
  122. z-index: 100;
  123. border-radius: 6px;
  124. top: 0;
  125. background: rgba(59, 60, 61, 0.6);
  126. text-align: center;
  127. }
  128. .handle .icon-myself {
  129. z-index: 999;
  130. transition: all .3s;
  131. cursor: pointer;
  132. font-size: 25px;
  133. width: 25px;
  134. color: rgba(255, 255, 255, 0.91);
  135. margin: 0 4px;
  136. }
  137. .log_textarea {
  138. width: 89vw;
  139. height: 8vh;
  140. padding: 0.5vw;
  141. /* margin-right: 2vw; */
  142. margin: 1vw;
  143. }
  144. .log_button_img {
  145. width: 2vw;
  146. }
  147. .log_card {
  148. border: none !important;
  149. }
  150. /* 点击图片放大 */
  151. .content_img img {
  152. max-width: 100%;
  153. cursor: pointer;
  154. }
  155. .overlay {
  156. display: none;
  157. position: fixed;
  158. top: 0;
  159. left: 0;
  160. width: 100%;
  161. height: 100%;
  162. background-color: rgba(0, 0, 0, 0.7);
  163. justify-content: center;
  164. z-index: 1;
  165. }
  166. .overlay img {
  167. margin-top: 4%;
  168. max-width: 90%;
  169. max-height: 90%;
  170. object-fit: contain;
  171. }
  172. .p-4 {
  173. background-color: rgb(255, 255, 255);
  174. }
  175. /*表格*/
  176. #tabniubi {
  177. width: 100%;
  178. margin: 10px 0;
  179. background-color: #fff;
  180. color: #5f5f5f;
  181. }
  182. #tabniubi th {
  183. padding: 9px 15px;
  184. min-height: 20px;
  185. height: 40px;
  186. line-height: 40px;
  187. text-align: center;
  188. /* font-size: 14px; */
  189. border-width: 1px;
  190. border-style: solid;
  191. border-color: #e2e2e2;
  192. font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif;
  193. }
  194. #tabniubi tr:first-child {
  195. padding: 0;
  196. min-height: 0;
  197. line-height: 0;
  198. border-width: 0;
  199. border-style: none;
  200. border-color: #fff;
  201. font-size: 0;
  202. }
  203. #tabniubi tr:first-child th {
  204. padding: 0;
  205. min-height: 0;
  206. line-height: 0;
  207. border-width: 0;
  208. border-style: none;
  209. border-color: #fff;
  210. font-size: 0;
  211. }
  212. .form-title {
  213. background-color: rgb(241, 241, 241);
  214. color: rgb(95, 95, 95);
  215. border-color: rgb(241, 241, 241);
  216. font-weight: 600;
  217. }
  218. .fujianimg img {
  219. width: 5vw;
  220. height: 5vh;
  221. }
  222. .forleft {
  223. text-align: left !important;
  224. }
  225. /* .forright{
  226. text-align:right !important;
  227. } */
  228. .layui-form-select dl dd.layui-this {
  229. background-color: #f8f8f8;
  230. color: rgb(23, 145, 233);
  231. font-weight: 700;
  232. }
  233. .layui-input, .layui-textarea {
  234. /* padding-left: 3.75vw; */
  235. color: #5f5f5f;
  236. }
  237. .upimg {
  238. width: 250px;
  239. height: 250px;
  240. }
  241. .filelist{
  242. width: 100%;
  243. overflow: scroll;
  244. height: 8vw;
  245. justify-content:flex-start;
  246. align-content: space-between;
  247. /* flex-direction: column-reverse; */
  248. flex-wrap: wrap;
  249. display: flex;
  250. }
  251. .filelist li{
  252. padding: 0.5vw 0.7vw 0.5vw 0.7vw;
  253. white-space: nowrap;
  254. overflow: hidden;
  255. text-overflow: ellipsis;
  256. display: inline-block;
  257. border-right: 1px solid #e2e2e2;
  258. }
  259. .filelist p{
  260. margin: 3px 0 5px 0;
  261. width: 5vw;
  262. text-align: center;
  263. }
  264. .filelist:hover li{
  265. /* display: initial; */
  266. }
  267. </style>
  268. {/block}
  269. {block name="body"}
  270. <div class="layui-form p-4">
  271. <div class="layui-row layui-col-space12">
  272. <div class="layui-col-md12">
  273. <h2>{$detail.project_name}</h2>
  274. </div>
  275. <div class="layui-col-md3">
  276. {$detail.project_num}
  277. </div>
  278. <div class="layui-col-md3">
  279. {if $detail.unit_type==0}
  280. {$detail.review_head_name}
  281. {elseif $detail.unit_type==2}
  282. {$detail.entrust_unit_name}
  283. {/if}
  284. </div>
  285. <div class="layui-col-md3">
  286. 接收时间于:{if $detail.project_receive_time==0}未接收{else}{$detail.project_receive_time|date="Y-m-d"}{/if}
  287. </div>
  288. </div>
  289. </div>
  290. <div class="layui-tab layui-tab-card" lay-filter="test-hash" style="margin: 0;">
  291. <ul class="layui-tab-title">
  292. <li class="layui-this" lay-id="11">项目概览</li>
  293. {if $project_five.project_comments == 1}
  294. <li lay-id="22" data-id="1">作业日志</li>
  295. {/if}
  296. {if $project_five.project_record == 1}
  297. <li data-load="" data-id="2">工作记录</li>
  298. {/if}
  299. {if $project_five.project_report == 1}
  300. <li data-load="" data-id="3">项目报告</li>
  301. {/if}
  302. {if $project_five.project_user == 1}
  303. <li data-load="" data-id="4">项目人员</li>
  304. {/if}
  305. {if $project_five.project_log == 1}
  306. <li data-load="" data-id="5">项目动态</li>
  307. {/if}
  308. </ul>
  309. <div class="layui-tab-content" style="padding: 16px;">
  310. <div class="layui-tab-item layui-show">
  311. {include file="/project/cost/project_overview"/}
  312. </div>
  313. {if $project_five.project_comments == 1}
  314. <div class="layui-tab-item" >
  315. {include file="/project/cost/project_comments"/}
  316. </div>
  317. {/if}
  318. {if $project_five.project_record == 1}
  319. <div class="layui-tab-item">
  320. {include file="/project/cost/project_record" /}
  321. </div>
  322. {/if}
  323. {if $project_five.project_report == 1}
  324. <div class="layui-tab-item">
  325. {include file="/project/cost/project_report" /}
  326. </div>
  327. {/if}
  328. {if $project_five.project_user == 1}
  329. <div class="layui-tab-item">
  330. {include file="/project/cost/project_user" /}
  331. </div>
  332. {/if}
  333. {if $project_five.project_log == 1}
  334. <div class="layui-tab-item">
  335. {include file="/project/projectlog/index" /}
  336. </div>
  337. {/if}
  338. </div>
  339. </div>
  340. <!--zjl,懂的都懂-->
  341. <script>
  342. var project_id = '{$project_id}'
  343. const moduleInit = ['tool','employeepicker'];
  344. function gouguInit() {
  345. var innow = false;
  346. var form = layui.form,tool=layui.tool,upload = layui.upload;
  347. var element = layui.element;
  348. first()
  349. element.on('tab(test-hash)', function (data) {
  350. let index = $(this).attr('data-id');
  351. console.log(index)
  352. if (index == 1) {
  353. comment()
  354. } else if (index == 2) {
  355. record(index);
  356. } else if (index == 3) {
  357. report(index);
  358. } else if (index == 4) {
  359. project_user(index)
  360. } else if (index == 5) {
  361. } else if (index == 6) {
  362. }
  363. });
  364. //看报告
  365. $('[lay-data="readreport"]').click(function (){
  366. var id = $(this).attr('data-id');
  367. parent.layui.tool.side('/admin/project.report/view/id/' + id); // 项目id
  368. })
  369. }
  370. </script>
  371. {/block}