2ffb5d9d89ed154d7e0521e4fef08193.php 76 KB

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