b101a2317695425f661b3a602bceb536.php 67 KB

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