41f8928a6f1875a947325241887798f9.php 56 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550
  1. <?php /*a:8:{s:74:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\audit_company\read.html";i:1723541257;s:59:"D:\phpstudy_pro\WWW\caiping\app\admin\view\common\base.html";i:1723541257;s:85:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_company\project_overview.html";i:1723541257;s:80:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_company\project_log.html";i:1723541257;s:83:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_company\project_record.html";i:1723541257;s:83:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_company\project_report.html";i:1723541257;s:81:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_company\project_user.html";i:1723541257;s:72:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\projectlog\index.html";i:1723541257;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta name="360-site-verification" content="a7c876fae8b6e3175a52ea9f19543f51" />
  9. <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0">
  10. <script src="/static/dist/xm-select.js"></script>
  11. <link rel="mobile-prefetch" href=""/>
  12. <title><?php echo get_system_config('web','admin_title'); ?></title>
  13. <meta name="keywords" content="<?php echo get_system_config('web','keywords'); ?>"/>
  14. <meta name="description" content="<?php echo get_system_config('web','desc'); ?>"/>
  15. <link rel="stylesheet" href="/static/assets/gougu/css/gougu.css?v=<?php echo get_system_config('web','version'); ?>" media="all">
  16. <style>
  17. .footer{
  18. display: none;
  19. }
  20. .heading th {
  21. text-align: center;
  22. }
  23. .form td {
  24. text-align: center;
  25. }
  26. /* 日志 */
  27. .log_top {
  28. padding-left: 1vw;
  29. }
  30. .log_top span {
  31. margin: 0 0.5vw;
  32. }
  33. /* 1,1,1 */
  34. .log_commentary {
  35. color: rgb(0, 176, 80);
  36. }
  37. .log_company {
  38. color: rgb(255, 33, 0);
  39. }
  40. .log_content {
  41. margin: 0.3vw 1.5vw 1vw 1.5vw;
  42. padding: 0.5vw 0vw;
  43. text-indent: 2em;
  44. line-height: 2.1vh;
  45. background-color: rgb(255, 255, 255);
  46. /* background-color: aqua; */
  47. border-radius: 0.5vw;
  48. /* box-shadow:4px 4px 6px 2px rgba(0,0,0,0.3); */
  49. /* box-shadow: 0.17vw 0.17vw 0.4vw 0.03vw rgba(0, 0, 0, 0.1); */
  50. box-shadow: 0.19vw 0.16vw 0.4vw 0.03vw rgba(0, 0, 0, 0.1);
  51. }
  52. .log_content_color {
  53. /* background-color: rgb(250,250,250); */
  54. }
  55. .log_content_img img {
  56. height: 100%;
  57. width: 10%;
  58. border-radius: 0.5vw;
  59. margin: 0.3vw 0;
  60. }
  61. .log_item_top {
  62. height: 70%;
  63. overflow: scroll;
  64. }
  65. .log_item_top {
  66. height: 60vh;
  67. }
  68. .log_item_bottom {
  69. display: flex;
  70. /* height: 17vh; */
  71. /* border-top: 1px solid #eee; */
  72. margin: 0 1.5vw;
  73. /* background-color: rgb(250,250,250); */
  74. }
  75. .log_input input {
  76. width: 55vw;
  77. height: 10vh;
  78. border: #eee 1px solid;
  79. }
  80. .log_bottom_img {
  81. /* height: 5vh; */
  82. }
  83. .log_bottom_img img {
  84. height: 4vw;
  85. width: 6vw;
  86. border-radius: 0.5vw;
  87. margin: 0.5vw 0vw 0.5vw 0.3vw;
  88. }
  89. .log_bottom_left {
  90. width: 100%;
  91. margin-top: 1.5vh;
  92. }
  93. .log_bottom_right {
  94. width: 5%;
  95. }
  96. /* 上传图片 */
  97. .layui-upload-drag-self {
  98. background-color: #fbfdff;
  99. border: 1px dashed #c0ccda;
  100. border-radius: 6px;
  101. box-sizing: border-box;
  102. line-height: 4vw;
  103. vertical-align: top;
  104. display: inline-block;
  105. text-align: center;
  106. cursor: pointer;
  107. outline: 0;
  108. margin-right: 13px;
  109. float: left;
  110. }
  111. .layui-input-inlines-self {
  112. position: relative;
  113. margin-left: 90px;
  114. min-height: 36px;
  115. text-align: left;
  116. }
  117. .layui-upload-drag-self .layui-icon {
  118. font-size: 28px;
  119. color: #8c939d
  120. }
  121. .layui-upload-drag-self .img {
  122. position: relative;
  123. height: 148px;
  124. width: 148px;
  125. }
  126. .layui-upload-img {
  127. width: 148px;
  128. height: 148px;
  129. border-radius: 6px;
  130. margin-top: -3px;
  131. margin-left: -2px;
  132. }
  133. .handle {
  134. position: absolute;
  135. width: 148px;
  136. height: 100%;
  137. z-index: 100;
  138. border-radius: 6px;
  139. top: 0;
  140. background: rgba(59, 60, 61, 0.6);
  141. text-align: center;
  142. }
  143. .handle .icon-myself {
  144. z-index: 999;
  145. transition: all .3s;
  146. cursor: pointer;
  147. font-size: 25px;
  148. width: 25px;
  149. color: rgba(255, 255, 255, 0.91);
  150. margin: 0 4px;
  151. }
  152. .log_textarea {
  153. width: 89vw;
  154. height: 8vh;
  155. padding: 0.5vw;
  156. /* margin-right: 2vw; */
  157. margin: 1vw;
  158. }
  159. .log_button_img {
  160. width: 2vw;
  161. }
  162. .log_card {
  163. border: none !important;
  164. }
  165. /* 点击图片放大 */
  166. .content_img img {
  167. max-width: 100%;
  168. cursor: pointer;
  169. }
  170. .overlay {
  171. display: none;
  172. position: fixed;
  173. top: 0;
  174. left: 0;
  175. width: 100%;
  176. height: 100%;
  177. background-color: rgba(0, 0, 0, 0.7);
  178. justify-content: center;
  179. z-index: 1;
  180. }
  181. .overlay img {
  182. margin-top: 4%;
  183. max-width: 90%;
  184. max-height: 90%;
  185. object-fit: contain;
  186. }
  187. .p-4 {
  188. background-color: rgb(255, 255, 255);
  189. }
  190. /*表格*/
  191. #tabniubi {
  192. width: 100%;
  193. margin: 10px 0;
  194. background-color: #fff;
  195. color: #5f5f5f;
  196. }
  197. #tabniubi th {
  198. padding: 9px 15px;
  199. min-height: 20px;
  200. height: 40px;
  201. line-height: 40px;
  202. text-align: center;
  203. /* font-size: 14px; */
  204. border-width: 1px;
  205. border-style: solid;
  206. border-color: #e2e2e2;
  207. font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif;
  208. }
  209. #tabniubi tr:first-child {
  210. padding: 0;
  211. min-height: 0;
  212. line-height: 0;
  213. border-width: 0;
  214. border-style: none;
  215. border-color: #fff;
  216. font-size: 0;
  217. }
  218. #tabniubi tr:first-child th {
  219. padding: 0;
  220. min-height: 0;
  221. line-height: 0;
  222. border-width: 0;
  223. border-style: none;
  224. border-color: #fff;
  225. font-size: 0;
  226. }
  227. .form-title {
  228. background-color: rgb(241, 241, 241);
  229. color: rgb(95, 95, 95);
  230. border-color: rgb(241, 241, 241);
  231. font-weight: 600;
  232. }
  233. .fujianimg img {
  234. width: 5vw;
  235. height: 5vh;
  236. }
  237. .forleft {
  238. text-align: left !important;
  239. }
  240. /* .forright{
  241. text-align:right !important;
  242. } */
  243. .layui-form-select dl dd.layui-this {
  244. background-color: #f8f8f8;
  245. color: rgb(23, 145, 233);
  246. font-weight: 700;
  247. }
  248. .layui-input, .layui-textarea {
  249. /* padding-left: 3.75vw; */
  250. color: #5f5f5f;
  251. }
  252. .upimg {
  253. width: 250px;
  254. height: 250px;
  255. }
  256. .filelist{
  257. width: 100%;
  258. overflow: scroll;
  259. height: 8vw;
  260. justify-content:flex-start;
  261. align-content: space-between;
  262. /* flex-direction: column-reverse; */
  263. flex-wrap: wrap;
  264. display: flex;
  265. }
  266. .filelist li{
  267. padding: 0.5vw 0.7vw 0.5vw 0.7vw;
  268. white-space: nowrap;
  269. overflow: hidden;
  270. text-overflow: ellipsis;
  271. display: inline-block;
  272. border-right: 1px solid #e2e2e2;
  273. }
  274. .filelist p{
  275. margin: 3px 0 5px 0;
  276. width: 5vw;
  277. text-align: center;
  278. }
  279. .filelist:hover li{
  280. /* display: initial; */
  281. }
  282. </style>
  283. </head>
  284. <body class="main-body">
  285. <!-- 主体 -->
  286. <div class="layui-form p-4">
  287. <div class="layui-row layui-col-space12">
  288. <div class="layui-col-md12">
  289. <h2><?php echo htmlentities($detail['project_name']); ?></h2>
  290. </div>
  291. <div class="layui-col-md3">
  292. <?php echo htmlentities($detail['project_num']); ?>
  293. </div>
  294. <div class="layui-col-md3">
  295. <?php if($detail['unit_type']==0): ?>
  296. <?php echo htmlentities($detail['review_head_name']); elseif($detail['unit_type']==2): ?>
  297. <?php echo htmlentities($detail['entrust_unit_name']); ?>
  298. <?php endif; ?>
  299. </div>
  300. <div class="layui-col-md3">
  301. 接收时间于:<?php if($detail['project_receive_time']==0): ?>未接收<?php else: ?><?php echo htmlentities(date("Y-m-d",!is_numeric($detail['project_receive_time'])? strtotime($detail['project_receive_time']) : $detail['project_receive_time'])); ?><?php endif; ?>
  302. </div>
  303. </div>
  304. </div>
  305. <div class="layui-tab layui-tab-card" lay-filter="test-hash" style="margin: 0;">
  306. <ul class="layui-tab-title">
  307. <li class="layui-this" lay-id="11">项目概览</li>
  308. <?php if($project_five['project_comments'] == 1): ?>
  309. <li lay-id="22">作业日志</li>
  310. <?php endif; if($project_five['project_record'] == 1): ?>
  311. <li data-load="">工作记录</li>
  312. <?php endif; if($project_five['project_report'] == 1): ?>
  313. <li data-load="">项目报告</li>
  314. <?php endif; if($project_five['project_user'] == 1): ?>
  315. <li data-load="">项目人员</li>
  316. <?php endif; if($project_five['project_log'] == 1): ?>
  317. <li data-load="">项目动态</li>
  318. <?php endif; ?>
  319. </ul>
  320. <div class="layui-tab-content" style="padding: 16px;">
  321. <div class="layui-tab-item layui-show">
  322. <!DOCTYPE html>
  323. <html lang="en">
  324. <head>
  325. <meta charset="UTF-8">
  326. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  327. <title>Document</title>
  328. <style>
  329. .attachment{
  330. overflow-y: auto;
  331. display: -webkit-box;
  332. -webkit-overflow-scrolling: touch;
  333. }
  334. .attachment li{
  335. padding: 0.5vw 0.7vw 0.5vw 0.7vw;
  336. white-space: nowrap;
  337. display: inline-block;
  338. border-right: 1px solid #e2e2e2;
  339. }
  340. .attachment p{
  341. margin: 3px 0 5px 0;
  342. width: 11vw;
  343. overflow: hidden;
  344. text-overflow: ellipsis;
  345. text-align: center;
  346. }
  347. /* #filesBox li{
  348. width: 145px;
  349. } */
  350. .heading th, .form th{
  351. height: 54.8px;
  352. }
  353. .report-title{
  354. height: 54.8px;
  355. }
  356. .report-title th{
  357. padding-left: 15px;
  358. border: 1px solid #e2e2e2;
  359. font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif;
  360. }
  361. .heading th{
  362. border: 1px solid #e2e2e2;
  363. }
  364. .form th{
  365. border: 1px solid #e2e2e2;
  366. }
  367. #filesBox2 .layui-table-tool{
  368. display: none;
  369. }
  370. #filesBox2 .layui-table-view .layui-table{
  371. width: 100% !important;
  372. }
  373. #filesBox2 .layui-table-cell{
  374. display: flex;
  375. align-items: center;
  376. justify-content: center;
  377. }
  378. .laytable-cell-1-0-1, .laytable-cell-1-0-2{
  379. justify-content: flex-start !important;
  380. }
  381. .laytable-cell-1-0-0 span, .laytable-cell-1-0-1 span, .laytable-cell-1-0-2 span, .laytable-cell-1-0-3 span, .laytable-cell-1-0-4 span, th>.laytable-cell-1-0-5 span{
  382. display: flex;
  383. font: 14px red;
  384. font-weight: 600;
  385. color: #5f5f5f;
  386. }
  387. #tabniubi tr:first-child th{
  388. border-right: 1px solid #e2e2e2 !important;
  389. }
  390. #filesBox2 th:sixth-child{
  391. border-right: none !important;
  392. }
  393. </style>
  394. </head>
  395. <body>
  396. <table id="tabniubi" cellpadding="1" cellspacing="1">
  397. <tr>
  398. <th style="width: 10%;height: 0;"></th>
  399. <th style="width: 10%;height: 0;"></th>
  400. <th style="width: 10%;height: 0;"></th>
  401. <th style="width: 10%;height: 0;"></th>
  402. <th style="width: 10%;height: 0;"></th>
  403. <th style="width: 10%;height: 0;"></th>
  404. <th style="width: 10%;height: 0;"></th>
  405. <th style="width: 10%;height: 0;"></th>
  406. <th style="width: 10%;height: 0;"></th>
  407. </tr>
  408. <tr border="1">
  409. <?php if($field['project_status'] == 1): ?>
  410. <th class="form-title">项目状态</th>
  411. <th>
  412. <?php switch($detail['project_status']): case "1": ?>立项中<?php break; case "2": ?>审批中<?php break; case "3": ?>待接收<?php break; case "4": ?>待分配<?php break; case "5": ?>作业中<?php break; case "6": ?>归档中<?php break; case "7": ?>退审中<?php break; case "8": ?>已归档<?php break; case "9": ?>已退审<?php break; default: ?>未知
  413. <?php endswitch; ?>
  414. </th>
  415. <?php endif; if($field['project_name'] == 1): ?>
  416. <th class="form-title">项目名称</th>
  417. <th colspan="3"><?php echo htmlentities($detail['project_name']); ?></th>
  418. <?php endif; if($field['project_num'] == 1): ?>
  419. <th class="form-title">项目编号</th>
  420. <th colspan="2"><?php echo htmlentities($detail['project_num']); ?></th>
  421. <?php endif; ?>
  422. </tr>
  423. <tr>
  424. <?php if($field['project_time'] == 1): ?>
  425. <th class="form-title">项目周期</th>
  426. <th colspan="8" style="text-align: left; padding-left: 3.5vw;"><?php echo htmlentities(date("Y-m-d",!is_numeric($detail['project_start_time'])? strtotime($detail['project_start_time']) : $detail['project_start_time'])); ?> 至 <?php echo htmlentities(date("Y-m-d",!is_numeric($detail['project_end_time'])? strtotime($detail['project_end_time']) : $detail['project_end_time'])); ?></th>
  427. <?php endif; ?>
  428. </tr>
  429. <tr>
  430. <?php if($field['engineering_type'] == 1): ?>
  431. <th class="form-title">项目类型</th>
  432. <th>
  433. <?php if($detail['engineering_type1']==1): ?>
  434. 预算
  435. <?php elseif($detail['engineering_type1']==2): ?>
  436. 结算
  437. <?php elseif($detail['engineering_type1']==3): ?>
  438. 概算
  439. <?php elseif($detail['engineering_type1']==4): ?>
  440. 决算
  441. <?php elseif($detail['engineering_type1']==5): ?>
  442. 工程总承包(EPC)
  443. <?php endif; ?>
  444. <!-- <div>
  445. <select name="type" lay-verify="required" lay-filter="aihao">
  446. <option value="1" style="align-items: center;">预算</option>
  447. <option value="2">结算</option>
  448. </select>
  449. </div>-->
  450. </th>
  451. <th class="form-title">——</th>
  452. <th>
  453. <?php if($detail['engineering_type2']==1): ?>
  454. 审核
  455. <?php elseif($detail['engineering_type2']==2): ?>
  456. 编制
  457. <?php endif; ?>
  458. </th>
  459. <?php endif; if($field['engineering_category'] == 1): ?>
  460. <th class="form-title">工程类别</th>
  461. <th><?php echo htmlentities($detail['engineering_category']); ?></th>
  462. <?php endif; if($field['project_region'] == 1): ?>
  463. <th class="form-title">项目区域</th>
  464. <th colspan="2">
  465. <?php echo htmlentities($detail['province']); ?>-<?php echo htmlentities($detail['city']); ?>-<?php echo htmlentities($detail['area']); ?>
  466. <!--<div>
  467. <form class="layui-form">
  468. <div class="layui-form-item" style="margin-bottom: 0;">
  469. <div class="layui-input-inline" style="width: 6vw;">
  470. <select id="province" lay-filter="province" name="province">
  471. </select>
  472. </div>
  473. <div class="layui-input-inline area" style="width: 6vw;">
  474. <select id="city" lay-filter="city" name="city">
  475. </select>
  476. </div>
  477. <div class="layui-input-inline area" style="width: 6vw;">
  478. <select id="area" lay-filter="area" name="area">
  479. </select>
  480. </div>
  481. </div>
  482. </form>
  483. </div>-->
  484. </th>
  485. <?php endif; ?>
  486. </tr>
  487. <tr>
  488. <?php if($field['fiscal_nature'] == 1): ?>
  489. <th class="form-title">资金性质</th>
  490. <th><?php echo htmlentities($detail['fiscal_nature']); ?></th>
  491. <?php endif; if($field['project_scale'] == 1): ?>
  492. <th class="form-title">项目规模</th>
  493. <th colspan="3"><?php echo htmlentities($detail['project_scale']); ?></th>
  494. <?php endif; if($field['charge_standard'] == 1): ?>
  495. <th class="form-title">收费标准</th>
  496. <th colspan="2"><?php echo htmlentities($detail['charge_standard']); ?></th>
  497. <?php endif; ?>
  498. </tr>
  499. <?php if($field['entrust_unit'] == 1 || $field['entrust_head'] == 1 || $field['sent_review_unit'] == 1 || $field['sent_review_head'] == 1
  500. || $field['review_unit'] == 1 || $field['review_head'] == 1 || $field['operate_name'] == 1 || $field['operate_team_names'] == 1): ?>
  501. <tr>
  502. <th colspan="9" class="forleft">相关单位</th>
  503. </tr>
  504. <tr>
  505. <?php if($field['entrust_unit'] == 1): ?>
  506. <th class="form-title">委托单位</th>
  507. <th><?php echo htmlentities($detail['entrust_unit_name']); ?></th>
  508. <?php endif; if($field['entrust_head'] == 1): ?>
  509. <th class="form-title">负责人</th>
  510. <th><?php echo htmlentities($detail['entrust_maker_name']); ?></th>
  511. <?php endif; if($field['sent_review_unit'] == 1): ?>
  512. <th class="form-title">送审单位</th>
  513. <th><?php echo htmlentities($detail['sent_review_unit_name']); ?></th>
  514. <?php endif; if($field['sent_review_head'] == 1): ?>
  515. <th class="form-title">负责人</th>
  516. <th colspan="2"><?php echo htmlentities($detail['sent_review_head_name']); ?></th>
  517. <?php endif; ?>
  518. </tr>
  519. <tr>
  520. <?php if($field['review_unit'] == 1): ?>
  521. <th class="form-title">评审机构</th>
  522. <th><?php echo htmlentities($detail['review_unit_name']); ?></th>
  523. <?php endif; if($field['review_head'] == 1): ?>
  524. <th class="form-title">项目负责人</th>
  525. <th><?php echo htmlentities($detail['review_head_name']); ?></th>
  526. <?php endif; if($field['operate_name'] == 1): ?>
  527. <th class="form-title">作业负责人</th>
  528. <th><?php echo htmlentities($detail['operate_head_name']); ?></th>
  529. <?php endif; if($field['operate_team_names'] == 1): ?>
  530. <th class="form-title">作业成员</th>
  531. <th colspan="2"><?php echo htmlentities($detail['operate_team_names']); ?></th>
  532. <?php endif; ?>
  533. </tr>
  534. <?php endif; if($field['sent_review_amount'] == 1 || $field['authorize_amount'] == 1
  535. || $field['review_add_reduce_amount'] == 1 || $field['review_add_reduce_rate'] == 1 || $field['sent_review_cost'] == 1): ?>
  536. <tr>
  537. <th colspan="9" class="forleft">金额详情</th>
  538. </tr>
  539. <tr>
  540. <?php if($field['sent_review_amount'] == 1): ?>
  541. <th class="form-title" colspan="1">送审金额(元)</th>
  542. <th colspan="3" style="text-align: left;"><?php echo htmlentities($detail['sent_review_amount']); ?></th>
  543. <?php endif; if($field['authorize_amount'] == 1): ?>
  544. <th class="form-title" colspan="1">审定金额(元)</th>
  545. <th colspan="4" style="text-align: left;"><?php echo htmlentities($detail['authorize_amount']); ?></th>
  546. <?php endif; ?>
  547. </tr>
  548. <tr>
  549. <?php if($field['review_add_reduce_amount'] == 1): ?>
  550. <th class="form-title" colspan="1">审增额(元)</th>
  551. <th colspan="1"><?php echo htmlentities($detail['review_add_amount']); ?></th>
  552. <th class="form-title" colspan="1">审减额(元)</th>
  553. <th colspan="1"><?php echo htmlentities($detail['review_reduce_amount']); ?></th>
  554. <?php endif; if($field['review_add_reduce_rate'] == 1): ?>
  555. <th class="form-title" colspan="1">审增减率(%)</th>
  556. <th colspan="1"><?php echo htmlentities($detail['review_add_reduce_rate']); ?></th>
  557. <?php endif; if($field['sent_review_cost'] == 1): ?>
  558. <th class="form-title" colspan="1">送审服务费 (元)</th>
  559. <th colspan="4" style="text-align: left;"><?php echo htmlentities($detail['sent_review_cost']); ?></th>
  560. <?php endif; ?>
  561. </tr>
  562. <?php endif; ?>
  563. <!-- <tr>
  564. <th class="form-title" colspan="1">报告时间</th>
  565. <th colspan="8" style="text-align: left;"><?php echo htmlentities($detail['report_time']); ?></th>
  566. </tr>-->
  567. <tr>
  568. <th colspan="9" class="forleft">相关附件
  569. </th>
  570. </tr>
  571. <tr>
  572. <th colspan="9" class="fujianimg" style="padding: 0px;">
  573. <div id="filesBox2">
  574. <table class="layui-hide" id="get_file" lay-filter="get_file"></table>
  575. </div>
  576. </th>
  577. </tr>
  578. </table>
  579. <table class="layui-table layui-table-form">
  580. <table class="layui-table">
  581. <colgroup>
  582. <col width="110">
  583. <col width="800">
  584. <col width="250">
  585. <col width="250">
  586. <col width="250">
  587. </colgroup>
  588. <thead class="report-title">
  589. <tr>
  590. <th class="layui-th-gray-1 " colspan=9 style="height: 36px;">项目报告
  591. </th>
  592. </tr>
  593. <?php if(!empty($report)): ?>
  594. <thead>
  595. <tr class="heading" style="background-color:rgb(241, 241, 241);">
  596. <th>序号</th>
  597. <th style="text-align: left;">报告名称</th>
  598. <th>报告类型</th>
  599. <th>上传时间</th>
  600. <th>发布人</th>
  601. </tr>
  602. </thead>
  603. <tbody class="form">
  604. <?php if(is_array($report) || $report instanceof \think\Collection || $report instanceof \think\Paginator): $i = 0; $__LIST__ = $report;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
  605. <tr>
  606. <th><?php echo htmlentities($vo['id']); ?></th>
  607. <th style="text-align: left;"><a data-id="<?php echo htmlentities($vo['id']); ?>" lay-data="readreport" style="color: #187FDD;"><?php echo htmlentities($vo['title']); ?></a></th>
  608. <th> <?php switch($vo['type']): case "0": ?>初审报告<?php break; case "1": ?>对数报告<?php break; case "2": ?>审定报告<?php break; default: ?>未知
  609. <?php endswitch; ?>
  610. </th>
  611. <th><?php echo htmlentities(date("Y-m-d",!is_numeric($vo['create_time'])? strtotime($vo['create_time']) : $vo['create_time'])); ?></th>
  612. <th><?php echo htmlentities($vo['nickname']); ?></th>
  613. </tr>
  614. <?php endforeach; endif; else: echo "" ;endif; ?>
  615. </tbody>
  616. <?php endif; ?>
  617. </table>
  618. <?php if(empty($report) || (($report instanceof \think\Collection || $report instanceof \think\Paginator ) && $report->isEmpty())): ?>
  619. <div class="layui-data-none">暂无项目报告</div>
  620. <?php endif; ?>
  621. <table class="layui-table" >
  622. <colgroup>
  623. <col width="110">
  624. <col width="800">
  625. <col width="250">
  626. <col width="250">
  627. <col width="250">
  628. </colgroup>
  629. <thead class="heading-1">
  630. <tr>
  631. <th class="layui-td-gray-1" colspan=9 style="height: 36px;font-weight: 500;"> &nbsp;&nbsp;项目合同</th>
  632. </tr>
  633. <?php if(!empty($contract)): ?>
  634. <thead>
  635. <tr class="heading" >
  636. <th>序号</th>
  637. <th style="text-align: left;">合同名称</th>
  638. <th>合同性质</th>
  639. <th>签订时间</th>
  640. <th>签订人</th>
  641. </tr>
  642. </thead>
  643. <tbody class="form">
  644. <?php if(is_array($contract) || $contract instanceof \think\Collection || $contract instanceof \think\Paginator): $i = 0; $__LIST__ = $contract;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
  645. <tr>
  646. <td><?php echo htmlentities($vo['id']); ?></td>
  647. <td style="text-align: left;"><a data-id="<?php echo htmlentities($vo['id']); ?>" lay-data="readContract" href="" style="color: #187FDD;"><?php echo htmlentities($vo['name']); ?></a></td>
  648. <td> <?php switch($vo['type']): case "1": ?>普通合同<?php break; case "2": ?>框架合同<?php break; case "3": ?>补充协议<?php break; case "3": ?>其他合同<?php break; default: ?>未设置
  649. <?php endswitch; ?>
  650. </td>
  651. <td><?php echo htmlentities(date('Y-m-d',!is_numeric($vo['sign_time'])? strtotime($vo['sign_time']) : $vo['sign_time'])); ?></td>
  652. <td><?php echo htmlentities($vo['sign_name']); ?></td>
  653. </tr>
  654. <?php endforeach; endif; else: echo "" ;endif; ?>
  655. </tbody>
  656. <?php endif; ?>
  657. </table>
  658. <?php if(empty($contract) || (($contract instanceof \think\Collection || $contract instanceof \think\Paginator ) && $contract->isEmpty())): ?>
  659. <div class="layui-data-none">暂无项目合同</div>
  660. <?php endif; ?>
  661. </table>
  662. <script>
  663. function first(){
  664. let table = layui.table;
  665. //项目任务
  666. var allcount;
  667. parent.layui.get_fileTable = table.render({
  668. elem: '#get_file',
  669. title: '文档列表',
  670. toolbar: '#toolbarget_file',
  671. cellMinWidth: 80,
  672. parseData: function (res) { // 数据解析回调函数
  673. // 在这里可以获取数据总数
  674. allcount = res.data.length;
  675. return {
  676. code: res.code, // 数据状态码
  677. msg: res.msg, // 状态信息
  678. count: res.count, // 数据总数
  679. data: res.data // 当前页数据
  680. };
  681. },
  682. // className: 'layui-table-testcss', // 用于给表格主容器追加 css 类名
  683. // lineStyle: 'height: 151px;', // 定义表格的多行样式
  684. url: "/admin/project.api/get_file",
  685. where: {'id': project_id},
  686. page: true, //开启分页
  687. limit: 20,
  688. cols: [[
  689. {field: 'id', title: '序号', width: 80, align: 'center',
  690. templet: function (d) {
  691. console.log(allcount,d.LAY_NUM)
  692. return allcount - (d.LAY_NUM - 1);
  693. }
  694. },
  695. {field: 'name', title: '附件名称', align: 'left',
  696. },
  697. {field: 'remark', title: '附件说明', align: 'left',
  698. },
  699. {field: 'admin_name', title: '上传人', align: 'center', width: 150},
  700. {field: 'create_time', title: '上传时间', align: 'center', width: 100},
  701. {field: 'right', fixed: 'right', title: '操作', width: 150, align: 'center',
  702. templet: function (d) {
  703. var html = '<div class="layui-btn-group">';
  704. var btn1 = `<a href="https://view.officeapps.live.com/op/view.aspx?src=${d.filepath}" target="_blank" class="layui-btn layui-btn-xs">预览</a>`;
  705. var btn2 = `<a class="layui-btn layui-btn-xs layui-bg-blue" href="${d.filepath}" download="${d.name}" lay-event="">下载</a>`;
  706. return html + btn1 + btn2 +'</div>';
  707. }
  708. }
  709. ]]
  710. });
  711. layui.use(['form', 'jquery'], function () {
  712. var form = layui.form;
  713. const $ = layui.jquery;
  714. let adress;
  715. $.ajax({
  716. type:"get", //使用get方式
  717. url: "/static/assets/layui/adress.json", //json文件相对于这个HTML的路径
  718. dataType:"json",
  719. async: false,
  720. success:function(data) {
  721. //这个data就是json数据
  722. adress = data
  723. },
  724. error:function() {
  725. layer.alert("地址请求失败!! ");
  726. }
  727. });
  728. function getFirstAttr(obj) {
  729. for (var k in obj) return k;
  730. }
  731. function selectOption(selectedProvince, selectedCity,selectedArea) {
  732. var proStr = '', cityStr = '', areaStr = '';
  733. var pro = adress[selectedProvince], ci = adress[selectedProvince][selectedCity];
  734. for (var province in adress) {
  735. if (province == selectedProvince) proStr += '<option value="' + province + '" selected>' + province + '</option>';
  736. else proStr += '<option value="' + province + '">' + province + '</option>';
  737. }
  738. $("#province").html(proStr);
  739. for (var city in pro) {
  740. if (city == selectedCity) cityStr += '<option value="' + city + '" selected>' + city + '</option>';
  741. else cityStr += '<option value="' + city + '">' + city + '</option>';
  742. }
  743. $("#city").html(cityStr);
  744. for (var area in ci) {
  745. if(area == "remove"){
  746. continue;
  747. }
  748. if (ci[area] == selectedArea) areaStr += '<option value="' + ci[area] + '" selected>' + ci[area] + '</option>';
  749. else areaStr += '<option value="' + ci[area] + '">' + ci[area] + '</option>';
  750. }
  751. $("#area").html(areaStr);
  752. form.render();
  753. }
  754. selectOption('湖北省', getFirstAttr(adress['湖北省']),'硚口区');
  755. form.on('select(province)', function (data) {
  756. let thisProvince = data.value;
  757. let thisCity = getFirstAttr(adress[thisProvince]);
  758. selectOption(data.value, thisCity,thisCity[0]);
  759. });
  760. form.on('select(city)', function (data) {
  761. selectOption($("#province").val(), data.value,getFirstAttr(data.value));
  762. });
  763. })
  764. $('#filesBox').on('click','.file-del',function(){
  765. layer.msg("不可删除");
  766. })
  767. }
  768. </script>
  769. <script>
  770. // 获取具有指定 ID 的 <ul> 元素
  771. var ulElement = document.getElementById("filesBox");
  772. // 检查 <ul> 元素的子元素数量
  773. if (ulElement.children.length === 0) {
  774. // 如果子元素数量为 0,隐藏 <ul> 元素
  775. ulElement.style.display = "none";
  776. }
  777. </script>
  778. </body>
  779. </html>
  780. </div>
  781. <?php if($project_five['project_comments'] == 1): ?>
  782. <div class="layui-tab-item" >
  783. <style>
  784. #imgdel {
  785. font-size: 30px;
  786. position: absolute;
  787. top: -30px;
  788. right: -12px;
  789. display: none;
  790. color: red;
  791. }
  792. .wrapper{
  793. display: flex;
  794. justify-content: space-between;
  795. padding-top: 3px;
  796. }
  797. /* 点击图片放大 */
  798. .img-responsive{
  799. /* width: 150px; */
  800. height: 150px;
  801. /* padding: 10px; */
  802. }
  803. </style>
  804. <div class="log_item_top" id="comments">
  805. <div class="layui-tab-content">
  806. <?php if(is_array($comment) || $comment instanceof \think\Collection || $comment instanceof \think\Paginator): $i = 0; $__LIST__ = $comment;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
  807. <div class="log_top">
  808. <span><?php echo htmlentities($vo['maker']); ?></span><span
  809. class="<?php if($vo['unit_type']==2): ?>log_commentary<?php else: ?>log_company<?php endif; ?>"><?php echo htmlentities($vo['unit_name']); ?></span><span><?php echo htmlentities(date("y-m-d H:i",!is_numeric($vo['create_time'])? strtotime($vo['create_time']) : $vo['create_time'])); ?></span>
  810. </div>
  811. <div class="log_content">
  812. <div style="word-wrap: break-word;padding: 5px 10px;width: fit-content;">
  813. <?php echo htmlentities($vo['content']); ?>
  814. </div>
  815. <?php if(!empty($vo['thumb'])): ?>
  816. <div class="log_content_img" style="width: fit-content;">
  817. <img src="<?php echo htmlentities($vo['thumb']); ?>" alt="" class="img-responsive">
  818. <span></span>
  819. </div>
  820. <?php endif; ?>
  821. </div>
  822. <?php endforeach; endif; else: echo "" ;endif; ?>
  823. </div>
  824. </div>
  825. <div id="outerdiv" style="position:fixed;top:0;left:0;background:rgba(0,0,0,0.7);z-index:2;width:100%;height:100%;display:none;">
  826. <div id="innerdiv" style="position:absolute;">
  827. <img id="bigimg" style="" src="" />
  828. </div>
  829. </div>
  830. <!--zjl,懂的都懂-->
  831. <script>
  832. function comment() {
  833. var form = layui.form,tool=layui.tool,upload = layui.upload;
  834. //头像上传
  835. var uploadInst = upload.render({
  836. elem: '#uploada'
  837. , url: '/admin/api/upload'
  838. , done: function (e) {
  839. //如果上传失败
  840. if (e.code == 1) {
  841. return layer.msg('上传失败');
  842. }
  843. //上传成功
  844. $('#uploada input').attr('value', e.data.filepath);
  845. $('#uploada img').attr('src', e.data.filepath);
  846. $('#imgdel').show();
  847. }
  848. });
  849. $('#imgdel').click(()=>{
  850. $('#uploada input').attr('value', '');
  851. $('#uploada img').attr('src', '/static/home/images/upload.png');
  852. $('#imgdel').hide();
  853. return false;
  854. })
  855. $('#uploada').click(()=>{
  856. console.log(1)
  857. return false;
  858. })
  859. //监听提交
  860. form.on('submit(caca)', function (data) {
  861. let callback = function (e) {
  862. layer.msg(e.msg);
  863. $("#text").val("");
  864. $('#uploada input').attr('value', '');
  865. $('#uploada img').attr('src', '/static/home/images/upload.png');
  866. $("#comments").load(location.href+" #comments>*","type=2")
  867. console.log(location.href+" #comments>*","type=2");
  868. }
  869. if(data.field.content === '' && data.field.thumb === ''){
  870. console.log(data.field)
  871. }else {
  872. data.field["project_id"] = project_id;
  873. tool.post("/admin/project.comment/add_company", data.field, callback);
  874. }
  875. return false;
  876. });
  877. }
  878. </script>
  879. <!-- 点击放大图片 -->
  880. <script src="/static/mobile/js/jquery.min.js"></script>
  881. <script>
  882. $(function() {
  883. $(".img-responsive").click(function (){
  884. // debugger
  885. var _this=$(this);
  886. imgShow("#outerdiv","#innerdiv","#bigimg",_this);
  887. });
  888. });
  889. function imgShow(outerdiv,innerdiv,bigimg,_this){
  890. // debugger
  891. var src=_this.attr("src");
  892. $(bigimg).attr("src",src);
  893. $("<img/>").attr("src",src).on('load',function () {
  894. // debugger
  895. var windowW=$(window).width()
  896. var windowH=$(window).height();
  897. var realWidth=this.width;
  898. var readHeight=this.height;
  899. var imgWidth,imgHeight;
  900. var scale=0.8;
  901. if(realWidth>windowW+scale){
  902. imgHeight=windowH*scale;
  903. imgWidth=imgHeight/readHeight*realWidth;
  904. if(imgWidth>windowW*scale){
  905. imgWidth=windowW*scale;
  906. }
  907. }else if(realWidth>windowW*scale){
  908. imgWidth=windowW*scale;
  909. imgHeight=imgWidth/realWidth*readHeight;
  910. }else {
  911. imgWidth=realWidth;
  912. imgHeight=readHeight;
  913. }
  914. $(bigimg).css("width",imgWidth);
  915. var w=(windowW-imgWidth)/2;
  916. var h=(windowH-imgHeight)/2;
  917. $(innerdiv).css({"top":h,"left":w});
  918. $(outerdiv).fadeIn("fast");
  919. });
  920. $(outerdiv).click(function (){
  921. $(this).fadeOut("fast");
  922. });
  923. };
  924. </script>
  925. </div>
  926. <?php endif; if($project_five['project_record'] == 1): ?>
  927. <div class="layui-tab-item">
  928. <div class="p-3 bg-white">
  929. <table class="layui-hide" id="record" lay-filter="record"></table>
  930. </div>
  931. <script>
  932. function record() {
  933. console.log('woshi record')
  934. let tool = layui.tool, table = layui.table;
  935. //项目任务
  936. var allcount;
  937. parent.layui.recordTable = table.render({
  938. elem: '#record',
  939. title: '文档列表',
  940. toolbar: '#toolbarrecord',
  941. cellMinWidth: 80,
  942. parseData: function (res) { // 数据解析回调函数
  943. // 在这里可以获取数据总数
  944. allcount = res.data.length;
  945. return {
  946. code: res.code, // 数据状态码
  947. msg: res.msg, // 状态信息
  948. count: res.count, // 数据总数
  949. data: res.data // 当前页数据
  950. };
  951. },
  952. url: "/admin/project.record/gslist",
  953. where: {'project_id': project_id},
  954. page: true, //开启分页
  955. limit: 20,
  956. cols: [[
  957. {field: 'id', title: '记录编号', width: 80, align: 'center',
  958. templet: function (d) {
  959. console.log(allcount,d.LAY_NUM)
  960. return allcount - (d.LAY_NUM - 1);
  961. }
  962. },
  963. {field: 'title', title: '记录内容',
  964. templet: function (d) {
  965. var html = '<a class="side-a" lay-event="detail">' + d.content + '</a>';
  966. return html;
  967. }
  968. },
  969. {field: 'create_time', title: '创建时间', align: 'center', width: 150},
  970. {field: 'admin_name', title: '创建人', align: 'center', width: 100},
  971. ]]
  972. });
  973. //触发事件
  974. table.on('toolbar(record)', function (obj) {
  975. var checkStatus = table.checkStatus(obj.config.id);
  976. switch (obj.event) {
  977. case 'add':
  978. parent.layui.tool.side('/admin/project.record/add?project_id=' + project_id); // 项目id
  979. break;
  980. }
  981. });
  982. table.on('tool(record)', function (obj) {
  983. var data = obj.data; //获得当前行数据
  984. if (obj.event === 'detail') { //查看
  985. let url = '/admin/project.record/view_company?id=' + data.id;// 项目id
  986. parent.layui.tool.side(url);
  987. }
  988. if (obj.event === 'edit') {
  989. parent.layui.tool.side('/admin/project.record/edit?id=' + data.id); // 项目id
  990. return;
  991. }
  992. if (obj.event === 'del') {
  993. layer.confirm('确定要删除吗?', {
  994. icon: 3,
  995. title: '提示'
  996. }, function (index) {
  997. let callback = function (e) {
  998. layer.msg(e.msg);
  999. if (e.code == 0) {
  1000. obj.del();
  1001. }
  1002. }
  1003. tool.delete("/admin/project.record/del", {id: data.id}, callback);// 项目id
  1004. layer.close(index);
  1005. });
  1006. }
  1007. })
  1008. }
  1009. </script>
  1010. </div>
  1011. <?php endif; if($project_five['project_report'] == 1): ?>
  1012. <div class="layui-tab-item">
  1013. <div className="p-3 bg-white">
  1014. <table className="layui-hide" id="reports" lay-filter="reports"></table>
  1015. </div>
  1016. <script>
  1017. function report() {
  1018. console.log("我已经执行了")
  1019. let tool = layui.tool, table = layui.table;
  1020. //项目任务
  1021. var allcount;
  1022. parent.layui.reportTable = table.render({
  1023. elem: '#reports',
  1024. title: '文档列表',
  1025. toolbar: '#toolbarreports',
  1026. cellMinWidth: 80,
  1027. parseData: function (res) { // 数据解析回调函数
  1028. // 在这里可以获取数据总数
  1029. allcount = res.data.length;
  1030. return {
  1031. code: res.code, // 数据状态码
  1032. msg: res.msg, // 状态信息
  1033. count: res.count, // 数据总数
  1034. data: res.data // 当前页数据
  1035. };
  1036. },
  1037. url: "/admin/project.report/datalist_company",
  1038. where: {'project_id': project_id},
  1039. page: true, //开启分页
  1040. limit: 20,
  1041. cols: [[
  1042. {field: 'id', title: '序号', width: 80, align: 'center',
  1043. templet: function (d) {
  1044. console.log(allcount,d.LAY_NUM)
  1045. return allcount - (d.LAY_NUM - 1);
  1046. }
  1047. },
  1048. {
  1049. field: 'title', title: '报告名称', align: 'center',
  1050. templet: function (d) {
  1051. var html = "";
  1052. if (d.status == 4 || d.status == 7) {
  1053. html = '<a class="side-a" lay-event="detail" style="color: grey;text-decoration:line-through" lay-event="detail">' + d.title + '</a>';
  1054. } else {
  1055. html = '<a class="side-a" lay-event="detail" lay-event="detail">' + d.title + '</a>';
  1056. }
  1057. return '<div style="text-align:left">' + html + '</div>'
  1058. }
  1059. },
  1060. {
  1061. field: 'type', title: '报告类型', align: 'center', width: 100, templet: function (item) {
  1062. var html = '';
  1063. if (item.type === 0) {
  1064. html = "<span>初审报告</span>";
  1065. } else if (item.type === 1) {
  1066. html = "<span>对数报告</span>";
  1067. } else if (item.type === 2) {
  1068. html = "<span>审定报告</span>";
  1069. }
  1070. return html;
  1071. }
  1072. },
  1073. {
  1074. field: 'status', title: '审批状态', align: 'center', width: 150, templet: function (d) {
  1075. var abc = '';
  1076. if (d.status == 0) {
  1077. abc = "<span>未审核(新建)</span>";
  1078. } else if (d.status == 1) {
  1079. abc = "<span>已通过(新建)</span>";
  1080. } else if (d.status == 2) {
  1081. abc = "<span>已拒绝(新建)</span>";
  1082. } else if (d.status == 3) {
  1083. abc = "<span>未审核(删除)</span>";
  1084. } else if (d.status == 4) {
  1085. abc = "<span>已通过(删除)</span>";
  1086. } else if (d.status == 5) {
  1087. abc = "<span>已拒绝(删除)</span>";
  1088. } else if (d.status == 6) {
  1089. abc = "<span>未审核(内部)</span>";
  1090. } else if (d.status == 7) {
  1091. abc = "<span>已拒绝(内部)</span>";
  1092. }
  1093. return abc;
  1094. }
  1095. },
  1096. {field: 'create_time', title: '创建时间', align: 'center', width: 150},
  1097. {field: 'admin_name', title: '创建人', align: 'center', width: 100},
  1098. {
  1099. field: 'right', fixed: 'right', title: '操作', width: 150, align: 'center',
  1100. templet: function (d) {
  1101. var html = '<div class="layui-btn-group">';
  1102. var btn3 = `<a class="layui-btn layui-btn-xs" lay-event="progress">进度</a>`;
  1103. var btn1 = `<a class="layui-btn layui-btn-xs" href=${d.filepath} download=${d.name} lay-event="">下载</a>`;
  1104. return html + btn1 + btn3 + '</div>';
  1105. }
  1106. }
  1107. ]]
  1108. });
  1109. //触发事件
  1110. table.on('toolbar(reports)', function (obj) {
  1111. var checkStatus = table.checkStatus(obj.config.id);
  1112. switch (obj.event) {
  1113. case 'add':
  1114. parent.layui.tool.side('/admin/project.report/add?project_id=' + project_id); // 项目id
  1115. break;
  1116. }
  1117. });
  1118. table.on('tool(reports)', function (obj) {
  1119. var data = obj.data; //获得当前行数据
  1120. if (obj.event === 'detail') { //查看
  1121. let url = '/admin/project.report/view_company?id=' + data.id;// 项目id
  1122. parent.layui.tool.side(url);
  1123. }
  1124. if (obj.event === 'del') {
  1125. layer.prompt({
  1126. title: '请输入<span style="color: red">删除</span>原因',
  1127. formType: 2,
  1128. area: ['35vw', '15vw']
  1129. }, function (text, index) {
  1130. let callback = function (e) {
  1131. window.location.reload()
  1132. layer.msg(e.msg);
  1133. setTimeout(function () {
  1134. layer.close(index);
  1135. }, 2000)
  1136. }
  1137. tool.post("/admin/project.report/delete", {id: data.id, remark: text}, callback);// 项目id
  1138. });
  1139. }
  1140. if (obj.event === 'progress') { //查看
  1141. let url = '/admin/project.report/progress?id=' + data.id;
  1142. parent.layui.tool.side(url);
  1143. }
  1144. })
  1145. }
  1146. </script>
  1147. </div>
  1148. <?php endif; if($project_five['project_user'] == 1): ?>
  1149. <div class="layui-tab-item">
  1150. <div class="p-3 bg-white">
  1151. <table class="layui-hide" id="user" lay-filter="user"></table>
  1152. </div>
  1153. <script>
  1154. function project_user() {
  1155. let tool = layui.tool, table = layui.table, employeepicker = layui.employeepicker;
  1156. //项目成员
  1157. layui.userTable = table.render({
  1158. elem: '#user',
  1159. title: '项目成员列表',
  1160. cellMinWidth: 80,
  1161. toolbar: '#toolbaruser',
  1162. url: "/admin/project.cost_company/project_user", //数据接口
  1163. where: {'project_id': project_id},
  1164. page: false, //开启分页
  1165. limit: 20,
  1166. cols: [[ //表头
  1167. {field: 'nickname', fixed: 'left', title: '成员姓名', width: 200, align: 'center', rowspan: 2},
  1168. {field: 'unit_name', title: '所在单位', align: 'center', width: 200, rowspan: 2},
  1169. {field: 'type', title: '成员类型', align: 'center', width: 200, rowspan: 2,
  1170. templet:function (a){
  1171. var html= "";
  1172. if(a.type==1){
  1173. html = "项目负责人"
  1174. }else if(a.type==2) {
  1175. html = "项目负责人"
  1176. }else if(a.type==3) {
  1177. html = "作业负责人"
  1178. }else if(a.type==4) {
  1179. html = "作业成员"
  1180. }else if(a.type==5) {
  1181. html = "项目负责人"
  1182. }else if(a.type==6) {
  1183. html = "项目负责人"
  1184. }
  1185. return html;
  1186. }},
  1187. {field: 'unit_type', title: '单位类型', align: 'center', width: 200, rowspan: 2},
  1188. {field: 'mobile', title: '手机号码', align: 'center', rowspan: 2},
  1189. {field: 'email', title: '单位邮箱', align: 'center', rowspan: 2},
  1190. // {
  1191. // title: '操作', fixed: 'right', align: 'center', width: 150, rowspan: 2, templet: function (d) {
  1192. // var html = '<span class="layui-btn layui-btn-danger layui-btn-xs" lay-event="remove">移除</span>';
  1193. // return html;
  1194. // }
  1195. // }
  1196. ]]
  1197. });
  1198. //触发事件
  1199. table.on('toolbar(user)', function (obj) {
  1200. var checkStatus = table.checkStatus(obj.config.id);
  1201. switch (obj.event) {
  1202. case 'add':
  1203. employeepicker.init({
  1204. type: 0,
  1205. department_url: "/admin/project.cost_company/get_department_tree",
  1206. employee_url: "/admin/project.cost_company/get_employee",
  1207. callback: function (ids, names, dids, departments) {
  1208. let callback = function (e) {
  1209. layer.msg(e.msg);
  1210. if (e.code == 0) {
  1211. layui.userTable.reload();
  1212. }
  1213. }
  1214. tool.post("/admin/project.cost_company/add_user_company_type1", {id: ids, project_id: project_id,type:1}, callback);
  1215. }
  1216. })
  1217. break;
  1218. case "adda":
  1219. employeepicker.init({
  1220. type: 0,
  1221. department_url: "/admin/project.cost_company/get_department_tree",
  1222. employee_url: "/admin/project.cost_company/get_employee",
  1223. callback: function (ids, names, dids, departments) {
  1224. let callback = function (e) {
  1225. layer.msg(e.msg);
  1226. if (e.code == 0) {
  1227. layui.userTable.reload();
  1228. }
  1229. }
  1230. tool.post("/admin/project.cost_company/add_user_company_type2", {id: ids, project_id: project_id,type:2}, callback);
  1231. }
  1232. })
  1233. break;
  1234. };
  1235. });
  1236. //监听行工具事件
  1237. table.on('tool(user)', function (obj) {
  1238. let postData = {"id": obj.data.id,"project_id":project_id,"type":obj.data.type};
  1239. let callback = function (e) {
  1240. layer.closeAll();
  1241. layer.msg(e.msg);
  1242. if (e.code == 0) {
  1243. layui.userTable.reload();
  1244. }
  1245. }
  1246. if (obj.event === 'remove') {
  1247. if(obj.data.type == 3 || obj.data.type == 4){
  1248. console.log(postData);
  1249. layer.confirm('确定要移除该项目成员吗?', {icon: 3, title: '提示'}, function (index) {
  1250. tool.delete("/admin/project.cost_company/remove_user_company", postData, callback);
  1251. });
  1252. }else {
  1253. layer.msg("该成员不可移除");
  1254. }
  1255. }
  1256. if (obj.event === 'recover') {
  1257. console.log(postData);
  1258. layer.confirm('确定要恢复该项目成员吗?', {icon: 3, title: '提示'}, function (index) {
  1259. tool.post("/project/api/recover_user", postData, callback);
  1260. });
  1261. }
  1262. return;
  1263. });
  1264. }
  1265. </script>
  1266. </div>
  1267. <?php endif; if($project_five['project_log'] == 1): ?>
  1268. <div class="layui-tab-item">
  1269. <div class="layui-form p-4" style="height: 80vh;overflow: auto">
  1270. <?php if(is_array($project_log) || $project_log instanceof \think\Collection || $project_log instanceof \think\Paginator): $i = 0; $__LIST__ = $project_log;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
  1271. <div class="layui-timeline" style="padding-left: 0;">
  1272. <div class="layui-timeline-item">
  1273. <i class="layui-icon layui-timeline-axis"></i>
  1274. <div class="layui-timeline-content layui-text">
  1275. <h3 class="layui-timeline-title" style="font-size: 16px;"><?php echo htmlentities(date("Y-m-d H:i:s",!is_numeric($vo['create_time'])? strtotime($vo['create_time']) : $vo['create_time'])); ?></h3>
  1276. <p>
  1277. <span><?php echo htmlentities($vo['nickname']); ?></span><span>&nbsp;<b><?php echo htmlentities($vo['action']); ?></b>&nbsp;</span> <span style="color: #187FDD;"> 《<?php echo htmlentities($vo['content']); ?>》</span>
  1278. </p>
  1279. </div>
  1280. </div>
  1281. <?php endforeach; endif; else: echo "" ;endif; ?>
  1282. </div>
  1283. </div>
  1284. </div>
  1285. <?php endif; ?>
  1286. </div>
  1287. </div>
  1288. <!--zjl,懂的都懂-->
  1289. <script>
  1290. var project_id = '<?php echo htmlentities($project_id); ?>'
  1291. const moduleInit = ['tool','employeepicker'];
  1292. function gouguInit() {
  1293. var innow = false;
  1294. var form = layui.form,tool=layui.tool,upload = layui.upload;
  1295. var element = layui.element;
  1296. first()
  1297. element.on('tab(test-hash)', function (data) {
  1298. let index = data.index;
  1299. if (index == 1) {
  1300. comment()
  1301. } else if (index == 2) {
  1302. record(index);
  1303. } else if (index == 3) {
  1304. report(index);
  1305. } else if (index == 4) {
  1306. project_user(index)
  1307. } else if (index == 5) {
  1308. } else if (index == 6) {
  1309. }
  1310. });
  1311. //看报告
  1312. $('[lay-data="readreport"]').click(function (){
  1313. var id = $(this).attr('data-id');
  1314. parent.layui.tool.side('/admin/project.report/view/id/' + id); // 项目id
  1315. })
  1316. }
  1317. </script>
  1318. <!-- /主体 -->
  1319. <!-- 底部 -->
  1320. <div class="footer">
  1321. 逸管工程项目管理系统 © www.yiguanfep.com
  1322. <img src="/static/home/images/police.png" alt="" style="width:14.5px;height:16px;">
  1323. <a href="https://beian.mps.gov.cn/#/query/websearch?code=45030202000160 " rel="\&quot;noreferrer'target=\”blank\&quot;" onclick="window.open(this.href); return false;">桂公网安备45030202000160号</a>
  1324. <a href="https://beian.miit.gov.cn/#/Integrated/index" onclick="window.open(this.href); return false;">桂ICP备17000971号</a>
  1325. </div>
  1326. <!-- /底部 -->
  1327. <!-- 脚本 -->
  1328. <!-- /脚本 -->
  1329. <!-- <script src="/static/assets/layui/layui.js"></script> -->
  1330. <script src="/static/assets/layui/layui.js"></script>
  1331. <script src="/static/assets/third_party/echart/echarts.min.js"></script>
  1332. <script src="/static/assets/gougu/gouguInit.js"></script>
  1333. <script src="https://unpkg.com/pinyin-pro"></script>
  1334. <script>
  1335. var { pinyin } = pinyinPro;
  1336. </script>
  1337. <!-- 统计代码 -->
  1338. <!-- /统计代码 -->
  1339. </body>
  1340. </html>