5e8fc919bbb8a9bbff5fd1ffe72e41cd.php 68 KB

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