read.html 9.8 KB

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