5838a9b0c8c700719d404c40b9c199d1.php 69 KB

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