8ca3b6e237b4b09a10c75808e14af80a.php 96 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486
  1. <?php /*a:10:{s:73:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_company\edit.html";i:1723541257;s:59:"D:\phpstudy_pro\WWW\caiping\app\admin\view\common\base.html";i:1723541257;s:79:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_company\edit_first.html";i:1723541257;s:78:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_company\edit_user.html";i:1723541257;s:80:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_company\edit_report.html";i:1723541257;s:81:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_company\edit_contact.html";i:1723541257;s:77:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_company\edit_log.html";i:1723541257;s:80:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_company\edit_record.html";i:1723541257;s:85:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_company\edit_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. /* 倒计时 */
  18. .countdown {
  19. height: 8.5vh;
  20. width: 6.5vw;
  21. font-size: 1vw;
  22. text-align: center;
  23. border: 1px solid #eee;
  24. }
  25. .countdown-top {
  26. height: 3.5vh;
  27. line-height: 3.5vh;
  28. border-bottom: 1px solid #eee;
  29. color: #fff;
  30. background-color: rgb(23, 145, 233);
  31. border-bottom: 1px solid rgb(23, 145, 233);
  32. font-size: 0.95vw;
  33. padding: 0;
  34. margin: 0;
  35. }
  36. .countdown-bottom {
  37. height: 5vh;
  38. line-height: 5vh;
  39. padding: 0;
  40. margin: 0;
  41. background-color: #fff;
  42. }
  43. /* 项目名称下面的字体变大 */
  44. .ziti{
  45. font-size: 1vw;
  46. }
  47. </style>
  48. </head>
  49. <body class="main-body">
  50. <!-- 主体 -->
  51. <div class="layui-form p-4">
  52. <div class="layui-row layui-col-space12">
  53. <div class="layui-col-md10" style="padding: 0;">
  54. <div class="layui-col-md12" style="padding: 8px;">
  55. <h1><?php echo htmlentities($detail['project_name']); ?></h1>
  56. </div>
  57. <div class="layui-col-md3 ziti" style="padding: 8px;font-size:1.1vw;">
  58. <?php echo htmlentities($detail['project_num']); ?>
  59. </div>
  60. <div class="layui-col-md3 ziti" style="padding: 8px;font-size:1.1vw;">
  61. <?php if($detail['unit_type']==0): ?>
  62. <?php echo htmlentities($detail['review_head_name']); elseif($detail['unit_type']==2): ?>
  63. <?php echo htmlentities($detail['entrust_unit_name']); else: ?>
  64. <?php endif; ?>
  65. <!--公司负责人-->
  66. </div>
  67. <div class="layui-col-md3 ziti" style="padding: 8px;font-size:1.1vw;">
  68. <?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; ?>
  69. <?php endif; ?>
  70. </div>
  71. </div>
  72. <div class="layui-col-md1" style="padding: 0;">
  73. <div class="layui-card countdown">
  74. <div class="countdown-top" style="font-weight: 600;font-size:1.1vw;">
  75. <?php if($detail['project_end_time']>time()): ?>剩 余<?php else: ?>逾 期<?php endif; ?>
  76. </div>
  77. <div class="countdown-bottom" style="font-size:1.1vw;">
  78. <?php echo htmlentities($advent_time); ?>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. <div class="layui-tab layui-tab-card" style="margin:0;" lay-filter="project" id="projectTab">
  85. <ul class="layui-tab-title">
  86. <li class="layui-this" lay-id="true">项目概览</li>
  87. <?php if($project_five['project_user'] == 1): ?>
  88. <li data-load="" data-id="4">项目人员</li>
  89. <?php endif; if($project_five['project_report'] == 1): ?>
  90. <li data-load="" data-id="3">项目报告</li>
  91. <?php endif; if($project_five['project_contact'] == 1): ?>
  92. <li data-load="" data-id="7">联系函</li>
  93. <?php endif; if($project_five['project_comments'] == 1): ?>
  94. <li lay-id="22" data-id="1">作业日志</li>
  95. <?php endif; if($project_five['project_record'] == 1): ?>
  96. <li data-load="" data-id="2">工作记录</li>
  97. <?php endif; ?>
  98. <li data-load="" data-id="8">预约看现场</li>
  99. <?php if($project_five['project_log'] == 1): ?>
  100. <li data-load="" data-id="5">项目动态</li>
  101. <?php endif; ?>
  102. </ul>
  103. <div class="layui-tab-content">
  104. <div class="layui-tab-item layui-show">
  105. <style>
  106. .footer{
  107. width: 100%;
  108. height: 25px;
  109. text-align: center;
  110. margin-bottom: 0 !important;
  111. display: none;
  112. }
  113. .heading th {
  114. text-align: center;
  115. }
  116. .form td {
  117. text-align: center;
  118. }
  119. /* 日志 */
  120. .log_top {
  121. padding-left: 1vw;
  122. }
  123. .log_top span {
  124. margin: 0 0.5vw;
  125. }
  126. /* 1,1,1 */
  127. .log_commentary {
  128. color: rgb(0, 176, 80);
  129. }
  130. .log_company {
  131. color: rgb(255, 33, 0);
  132. }
  133. .log_content {
  134. width: fit-content;
  135. margin: 0.3vw 1.5vw 1vw 1.5vw;
  136. padding: 0.5vw 0vw;
  137. text-indent: 1.2em;
  138. line-height: 2.1vh;
  139. background-color: rgb(255, 255, 255);
  140. border-radius: 0.5vw;
  141. box-shadow: 0.19vw 0.16vw 0.4vw 0.03vw rgba(0, 0, 0, 0.13);
  142. }
  143. .log_content_color {
  144. /* background-color: rgb(250,250,250); */
  145. }
  146. .log_content_img img {
  147. /* width: 10%; */
  148. height: 150px;
  149. border-radius: 0.5vw;
  150. margin: 0.3vw 0;
  151. padding-right: 18px;
  152. padding-bottom: 7px;
  153. padding-left: 2px;
  154. }
  155. .log_item_top {
  156. height: 70%;
  157. overflow: scroll;
  158. }
  159. .log_item_top {
  160. height: 60vh;
  161. }
  162. .log_item_bottom {
  163. display: flex;
  164. /* height: 17vh; */
  165. /* border-top: 1px solid #eee; */
  166. margin: 0 1.5vw;
  167. /* background-color: rgb(250,250,250); */
  168. }
  169. .log_input input {
  170. width: 55vw;
  171. height: 10vh;
  172. border: #eee 1px solid;
  173. }
  174. .log_bottom_img {
  175. /* height: 5vh; */
  176. }
  177. .log_bottom_img img {
  178. height: 4vw;
  179. width: 6vw;
  180. border-radius: 0.5vw;
  181. margin: 0.5vw 0vw 0.5vw 0.3vw;
  182. }
  183. .log_bottom_left {
  184. width: 100%;
  185. margin-top: 1.5vh;
  186. }
  187. .log_bottom_right {
  188. width: 5%;
  189. }
  190. /* 上传图片 */
  191. .layui-upload-drag-self {
  192. background-color: #fbfdff;
  193. border: 1px dashed #c0ccda;
  194. border-radius: 6px;
  195. box-sizing: border-box;
  196. line-height: 4vw;
  197. vertical-align: top;
  198. display: inline-block;
  199. text-align: center;
  200. cursor: pointer;
  201. outline: 0;
  202. margin-right: 13px;
  203. float: left;
  204. }
  205. .layui-input-inlines-self {
  206. position: relative;
  207. margin-left: 90px;
  208. min-height: 36px;
  209. text-align: left;
  210. }
  211. .layui-upload-drag-self .layui-icon {
  212. font-size: 28px;
  213. color: #8c939d
  214. }
  215. .layui-upload-drag-self .img {
  216. position: relative;
  217. height: 148px;
  218. width: 148px;
  219. }
  220. .layui-upload-img {
  221. width: 148px;
  222. height: 148px;
  223. border-radius: 6px;
  224. margin-top: -3px;
  225. margin-left: -2px;
  226. }
  227. .handle {
  228. position: absolute;
  229. width: 148px;
  230. height: 100%;
  231. z-index: 100;
  232. border-radius: 6px;
  233. top: 0;
  234. background: rgba(59, 60, 61, 0.6);
  235. text-align: center;
  236. }
  237. .handle .icon-myself {
  238. z-index: 999;
  239. transition: all .3s;
  240. cursor: pointer;
  241. font-size: 25px;
  242. width: 25px;
  243. color: rgba(255, 255, 255, 0.91);
  244. margin: 0 4px;
  245. }
  246. .log_textarea {
  247. width: 89vw;
  248. height: 8vh;
  249. padding: 0.5vw;
  250. /* margin-right: 2vw; */
  251. margin: 1vw;
  252. }
  253. .log_button_img {
  254. width: 2vw;
  255. }
  256. .log_card {
  257. border: none !important;
  258. }
  259. /* 点击图片放大 */
  260. .content_img img {
  261. max-width: 100%;
  262. cursor: pointer;
  263. }
  264. .overlay {
  265. display: none;
  266. position: fixed;
  267. top: 0;
  268. left: 0;
  269. width: 100%;
  270. height: 100%;
  271. background-color: rgba(0, 0, 0, 0.7);
  272. justify-content: center;
  273. z-index: 1;
  274. }
  275. .overlay img {
  276. margin-top: 4%;
  277. max-width: 90%;
  278. max-height: 90%;
  279. object-fit: contain;
  280. }
  281. .p-4 {
  282. background-color: rgb(255, 255, 255);
  283. }
  284. /*表格*/
  285. #tabniubi {
  286. width: 100%;
  287. margin: 10px 0;
  288. background-color: #fff;
  289. color: #5f5f5f;
  290. }
  291. #tabniubi th {
  292. padding: 9px 15px;
  293. min-height: 20px;
  294. height: 40px;
  295. line-height: 40px;
  296. text-align: center;
  297. /* font-size: 14px; */
  298. border-width: 1px;
  299. border-style: solid;
  300. border-color: #e2e2e2;
  301. font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif;
  302. }
  303. #tabniubi tr:first-child {
  304. padding: 0;
  305. min-height: 0;
  306. line-height: 0;
  307. border-width: 0;
  308. border-style: none;
  309. border-color: #fff;
  310. font-size: 0;
  311. }
  312. #tabniubi tr:first-child th {
  313. padding: 0;
  314. min-height: 0;
  315. line-height: 0;
  316. border-width: 0;
  317. border-style: none;
  318. border-color: #fff;
  319. font-size: 0;
  320. }
  321. .form-title {
  322. background-color: rgb(241, 241, 241);
  323. color: rgb(95, 95, 95);
  324. border-color: rgb(241, 241, 241);
  325. font-weight: 600;
  326. }
  327. .forleft {
  328. text-align: left !important;
  329. }
  330. /* .forright{
  331. text-align:right !important;
  332. } */
  333. .layui-form-select dl dd.layui-this {
  334. background-color: #f8f8f8;
  335. color: rgb(23, 145, 233);
  336. font-weight: 700;
  337. }
  338. .layui-input, .layui-textarea {
  339. /* padding-left: 3.75vw; */
  340. color: #5f5f5f;
  341. }
  342. .upimg {
  343. width: 250px;
  344. height: 250px;
  345. }
  346. .fujianimg img {
  347. height: 5.5vh;
  348. }
  349. .filelist{
  350. width: 100%;
  351. overflow: auto;
  352. justify-content:flex-start;
  353. align-content: space-between;
  354. flex-direction: column-reverse;
  355. flex-wrap: wrap;
  356. display: flex;
  357. }
  358. .filelist li{
  359. padding: 0.5vw 0.8vw 0.5vw 0.8vw;
  360. white-space: nowrap;
  361. overflow: hidden;
  362. text-overflow: ellipsis;
  363. display: inline-block;
  364. border-right: 1px solid #e2e2e2;
  365. float: left;
  366. }
  367. .filelist p{
  368. margin: 3px 0 5px 0;
  369. width: 11vw;
  370. overflow: hidden;
  371. text-overflow: ellipsis;
  372. text-align: center;
  373. }
  374. #filesBox2 li{
  375. padding: 0.5vw 0.8vw 0.5vw 0.8vw;
  376. white-space: nowrap;
  377. overflow: hidden;
  378. text-overflow: ellipsis;
  379. display: inline-block;
  380. border-right: 1px solid #e2e2e2;
  381. float: left;
  382. }
  383. #filesBox2 .layui-table-tool{
  384. display: none;
  385. }
  386. #filesBox2 .layui-table-view .layui-table{
  387. width: 100% !important;
  388. }
  389. #filesBox2 .layui-table-cell{
  390. display: flex;
  391. align-items: center;
  392. justify-content: center;
  393. }
  394. .laytable-cell-1-0-1, .laytable-cell-1-0-2{
  395. justify-content: flex-start !important;
  396. }
  397. .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{
  398. display: flex;
  399. font: 14px red;
  400. font-weight: 600;
  401. color: #5f5f5f;
  402. }
  403. #tabniubi tr:first-child th{
  404. border-right: 1px solid #e2e2e2 !important;
  405. }
  406. #filesBox2 th:sixth-child{
  407. border-right: none !important;
  408. }
  409. </style>
  410. <form class="layui-form p-4" method="POST">
  411. <table id="tabniubi" cellpadding="1" cellspacing="1">
  412. <tr>
  413. <th style="width: 10%;height: 0;"></th>
  414. <th style="width: 10%;height: 0;"></th>
  415. <th style="width: 10%;height: 0;"></th>
  416. <th style="width: 10%;height: 0;"></th>
  417. <th style="width: 10%;height: 0;"></th>
  418. <th style="width: 10%;height: 0;"></th>
  419. <th style="width: 10%;height: 0;"></th>
  420. <th style="width: 10%;height: 0;"></th>
  421. <th style="width: 10%;height: 0;"></th>
  422. </tr>
  423. <tr border="1">
  424. <?php if($field['project_status'] == 1): ?>
  425. <th class="form-title">项目状态</th>
  426. <th>
  427. <?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: ?>未知
  428. <?php endswitch; ?>
  429. </th>
  430. <?php endif; if($field['project_name'] == 1): ?>
  431. <th class="form-title">项目名称</th>
  432. <th colspan="3"><?php echo htmlentities($detail['project_name']); ?></th>
  433. <?php endif; if($field['project_num'] == 1): ?>
  434. <th class="form-title">项目编号</th>
  435. <th colspan="2"><?php echo htmlentities($detail['project_num']); ?></th>
  436. <?php endif; ?>
  437. </tr>
  438. <tr>
  439. <?php if($field['project_time'] == 1): ?>
  440. <th class="form-title">项目周期</th>
  441. <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'])); ?> 至
  442. <?php echo htmlentities(date("Y-m-d",!is_numeric($detail['project_end_time'])? strtotime($detail['project_end_time']) : $detail['project_end_time'])); ?>
  443. </th>
  444. <?php endif; ?>
  445. </tr>
  446. <tr>
  447. <?php if($field['engineering_type'] == 1): ?>
  448. <th class="form-title">项目类型</th>
  449. <th>
  450. <div>
  451. <select name="engineering_type1" lay-verify="required" lay-filter="aihao"
  452. <?php if($field_edit['engineering_type_edit'] != 1): ?>
  453. disabled
  454. <?php endif; ?>
  455. >
  456. <option value="1" <?php if($detail['engineering_type1'] == '1'): ?> selected <?php endif; ?>>预算</option>
  457. <option value="2" <?php if($detail['engineering_type1'] == '2'): ?> selected <?php endif; ?>>结算</option>
  458. <option value="3" <?php if($detail['engineering_type1'] == '3'): ?> selected <?php endif; ?>>概算</option>
  459. <option value="4" <?php if($detail['engineering_type1'] == '4'): ?> selected <?php endif; ?>>决算</option>
  460. <option value="5" <?php if($detail['engineering_type1'] == '5'): ?> selected <?php endif; ?>>工程总承包(EPC)</option>
  461. </select>
  462. </div>
  463. </th>
  464. <th class="form-title">——</th>
  465. <th>
  466. <div>
  467. <select name="engineering_type2" lay-verify="required" lay-filter="aihao"
  468. <?php if($field_edit['engineering_type_edit'] != 1): ?>
  469. disabled
  470. <?php endif; ?>
  471. >
  472. <option value="1" <?php if($detail['engineering_type2'] == '1'): ?> selected <?php endif; ?>>审核</option>
  473. <option value="2" <?php if($detail['engineering_type2'] == '2'): ?> selected <?php endif; ?>>编制</option>
  474. </select>
  475. </div>
  476. </th>
  477. <?php endif; if($field['engineering_category'] == 1): ?>
  478. <th class="form-title">工程类别</th>
  479. <th>
  480. <div>
  481. <select name="engineering_category" lay-filter="engineering_category"
  482. <?php if($field_edit['engineering_category_edit'] != 1): ?>
  483. disabled
  484. <?php endif; ?>>
  485. <option value="">请选择工程类别</option>
  486. <option value="建筑物" <?php if($detail['engineering_category'] == '建筑物'): ?> selected <?php endif; ?>>建筑物</option>
  487. <option value="交通" <?php if($detail['engineering_category'] == '交通'): ?> selected <?php endif; ?>>交通</option>
  488. <option value="水利" <?php if($detail['engineering_category'] == '水利'): ?> selected <?php endif; ?>>水利</option>
  489. <option value="土地整治" <?php if($detail['engineering_category'] == '土地整治'): ?> selected <?php endif; ?>>土地整治</option>
  490. <option value="市政园林" <?php if($detail['engineering_category'] == '市政园林'): ?> selected <?php endif; ?>>市政园林</option>
  491. <option value="信息网络" <?php if($detail['engineering_category'] == '信息网络'): ?> selected <?php endif; ?>>信息网络</option>
  492. <option value="其他" <?php if($detail['engineering_category'] == '其他'): ?> selected <?php endif; ?>>其他</option>
  493. </select>
  494. </div>
  495. </th>
  496. <?php endif; if($field['project_region'] == 1): ?>
  497. <th class="form-title">项目区域</th>
  498. <th colspan="2">
  499. <div>
  500. <div class="layui-form-item"
  501. style="margin-bottom: 0;display: flex;flex-direction: row;justify-content: space-between;">
  502. <div class="layui-input-inline" style="width: 6.5vw;">
  503. <select id="province" lay-filter="province" name="province"
  504. <?php if($field_edit['project_region_edit'] != 1): ?>
  505. disabled
  506. <?php endif; ?>
  507. ></select>
  508. </div>
  509. <div class="layui-input-inline area" style="width: 6.5vw;">
  510. <select id="city" lay-filter="city" name="city"
  511. <?php if($field_edit['project_region_edit'] != 1): ?>
  512. disabled
  513. <?php endif; ?>
  514. ></select>
  515. </div>
  516. <div class="layui-input-inline area" style="width: 6.5vw;">
  517. <select id="area" lay-filter="area" name="area"
  518. <?php if($field_edit['project_region_edit'] != 1): ?>
  519. disabled
  520. <?php endif; ?>
  521. ></select>
  522. </div>
  523. </div>
  524. </div>
  525. </th>
  526. <?php endif; ?>
  527. </tr>
  528. <tr>
  529. <?php if($field['fiscal_nature'] == 1): ?>
  530. <th class="form-title">资金性质</th>
  531. <th>
  532. <div>
  533. <select name="fiscal_nature" lay-filter="aihao"
  534. <?php if($field_edit['fiscal_nature_edit'] != 1): ?>
  535. disabled
  536. <?php endif; ?>
  537. >
  538. <option value="">请选择资金性质</option>
  539. <option value="财政资金" <?php if($detail['fiscal_nature'] == '财政资金'): ?> selected <?php endif; ?>>财政资金</option>
  540. <option value="非财政资金" <?php if($detail['fiscal_nature'] == '非财政资金'): ?> selected <?php endif; ?>>非财政资金</option>
  541. </select>
  542. </div>
  543. </th>
  544. <?php endif; if($field['project_scale'] == 1): ?>
  545. <th class="form-title">项目规模</th>
  546. <th colspan="3">
  547. <input type="text" name="project_scale" value="<?php echo htmlentities($detail['project_scale']); ?>" autocomplete="off"
  548. placeholder="请输入项目规模"
  549. <?php if($field_edit['project_scale_edit'] != 1): ?>
  550. readonly
  551. <?php endif; ?>
  552. class="layui-input">
  553. </th>
  554. <?php endif; if($field['charge_standard'] == 1): ?>
  555. <th class="form-title">收费标准</th>
  556. <th colspan="2">
  557. <input type="text" name="charge_standard" value="<?php echo htmlentities($detail['charge_standard']); ?>" autocomplete="off"
  558. placeholder="请输入收费标准"
  559. <?php if($field_edit['charge_standard_edit'] != 1): ?>
  560. readonly
  561. <?php endif; ?>
  562. class="layui-input">
  563. </th>
  564. <?php endif; ?>
  565. </tr>
  566. <?php if($field['entrust_unit'] == 1 || $field['entrust_head'] == 1 || $field['sent_review_unit'] == 1 || $field['sent_review_head'] == 1
  567. || $field['review_unit'] == 1 || $field['review_head'] == 1 || $field['operate_name'] == 1 || $field['operate_team_names'] == 1): ?>
  568. <tr>
  569. <th colspan="9" class="forleft">相关单位</th>
  570. </tr>
  571. <tr>
  572. <?php if($field['entrust_unit'] == 1): ?>
  573. <th class="form-title">委托单位</th>
  574. <th>
  575. <?php echo htmlentities($detail['entrust_unit_name']); ?>
  576. </th>
  577. <?php endif; if($field['entrust_head'] == 1): ?>
  578. <th class="form-title">负责人</th>
  579. <th>
  580. <?php echo htmlentities($detail['entrust_maker_name']); ?>
  581. </th>
  582. <?php endif; if($field['sent_review_unit'] == 1): ?>
  583. <th class="form-title">送审单位</th>
  584. <th>
  585. <?php echo htmlentities($detail['sent_review_unit_name']); ?>
  586. </th>
  587. <?php endif; if($field['sent_review_head'] == 1): ?>
  588. <th class="form-title">负责人</th>
  589. <th colspan="2">
  590. <?php echo htmlentities($detail['sent_review_head_name']); ?>
  591. </th>
  592. <?php endif; ?>
  593. </tr>
  594. <tr>
  595. <?php if($field['review_unit'] == 1): ?>
  596. <th class="form-title">评审机构</th>
  597. <th>
  598. <?php echo htmlentities($detail['review_unit_name']); ?>
  599. </th>
  600. <?php endif; if($field['review_head'] == 1): ?>
  601. <th class="form-title">项目负责人</th>
  602. <th>
  603. <?php echo htmlentities($detail['review_head_name']); ?>
  604. </th>
  605. <?php endif; if($field['operate_name'] == 1): ?>
  606. <th class="form-title">作业负责人</th>
  607. <th>
  608. <?php echo htmlentities($detail['operate_head_name']); ?>
  609. </th>
  610. <?php endif; if($field['operate_team_names'] == 1): ?>
  611. <th class="form-title">作业成员</th>
  612. <th colspan="2">
  613. <?php echo htmlentities($detail['operate_team_names']); ?>
  614. </th>
  615. <?php endif; ?>
  616. </tr>
  617. <?php endif; ?>
  618. <tr>
  619. <th colspan="9" class="forleft">金额详情</th>
  620. </tr>
  621. <tr>
  622. <?php if($field['sent_review_amount'] == 1): ?>
  623. <th class="form-title" colspan="1">送审金额(元)</th>
  624. <th colspan="2">
  625. <input type="text" id="sent_review_amount" name="sent_review_amount" onkeyup="Add()"
  626. value="<?php echo htmlentities($detail['sent_review_amount']); ?>" autocomplete="off" placeholder="请输入送审金额"
  627. <?php if($field_edit['sent_review_amount_edit'] != 1): ?>
  628. readonly
  629. <?php endif; ?>
  630. class="layui-input">
  631. </th>
  632. <?php endif; if($field['review_add_reduce_amount'] == 1): ?>
  633. <th class="form-title" colspan="1">审增金额(元)</th>
  634. <th colspan="2">
  635. <input type="text" id="review_add_amount" name="review_add_amount" value="<?php echo htmlentities($detail['review_add_amount']); ?>" onkeyup="Add()"
  636. autocomplete="off" placeholder="请输入审增额"
  637. <?php if($field_edit['authorize_amount_edit'] != 1): ?>
  638. readonly
  639. <?php endif; ?>
  640. class="layui-input">
  641. </th>
  642. <?php endif; if($field['review_add_reduce_amount'] == 1): ?>
  643. <th class="form-title" colspan="1">审减金额(元)</th>
  644. <th colspan="2">
  645. <input type="text" id="review_reduce_amount" name="review_reduce_amount" value="<?php echo htmlentities($detail['review_reduce_amount']); ?>" onkeyup="Add()"
  646. autocomplete="off" placeholder="请输入审减额"
  647. <?php if($field_edit['authorize_amount_edit'] != 1): ?>
  648. readonly
  649. <?php endif; ?>
  650. class="layui-input">
  651. </th>
  652. <?php endif; ?>
  653. </tr>
  654. <tr>
  655. <?php if($field['authorize_amount'] == 1): ?>
  656. <th class="form-title" colspan="1">审定金额(元)</th>
  657. <th colspan="2" style="text-align: left;">
  658. <input type="text" id="authorize_amount" name="authorize_amount" value="<?php echo htmlentities($detail['authorize_amount']); ?>" onkeyup="Add()"
  659. autocomplete="off" placeholder="请输入审定金额"
  660. <?php if($field_edit['authorize_amount_edit'] != 1): ?>
  661. readonly
  662. <?php endif; ?>
  663. class="layui-input">
  664. </th>
  665. <?php endif; if($field['review_add_reduce_rate'] == 1): ?>
  666. <th class="form-title" colspan="1">审增减率(%)</th>
  667. <th colspan="2">
  668. <span id="review_add_reduce_rate"><?php echo htmlentities($detail['review_add_reduce_rate']); ?></span>
  669. <input type="hidden" name="review_add_reduce_rate" value="<?php echo htmlentities($detail['review_add_reduce_rate']); ?>" autocomplete="off" placeholder="请输入审增减率" class="layui-input">
  670. </th>
  671. <?php endif; if($field['sent_review_cost'] == 1): ?>
  672. <th class="form-title" colspan="1">送审服务费 (元)</th>
  673. <th colspan="2" style="text-align: left;">
  674. <input type="text" name="sent_review_cost" value="<?php echo htmlentities($detail['sent_review_cost']); ?>" autocomplete="off" placeholder="请输入送审服务费"
  675. <?php if($field_edit['sent_review_cost_edit'] != 1): ?>
  676. readonly
  677. <?php endif; ?>
  678. class="layui-input">
  679. </th>
  680. <?php endif; ?>
  681. </tr>
  682. <!-- <tr>
  683. <th class="form-title" colspan="1">报告时间</th>
  684. <th colspan="8" style="text-align: left;"><?php echo htmlentities($detail['report_time']); ?></th>
  685. </tr>-->
  686. <tr>
  687. <th colspan="9" class="forleft">相关附件
  688. <button type="button" class="layui-btn layui-btn-xs layui-btn-danger" lay-on="test-iframe-handle" style="float: right;">
  689. 上传附件
  690. <span id="ID-test-iframe-mark"></span>
  691. </button>
  692. </th>
  693. </tr>
  694. <tr>
  695. <th colspan="9" class="fujianimg" style="padding: 0px 0px;">
  696. <div id="filesBox2">
  697. <table class="layui-hide" id="get_file" lay-filter="get_file"></table>
  698. </div>
  699. </th>
  700. </tr>
  701. </table>
  702. <div class="py-3">
  703. <input type="hidden" name="id" value="<?php echo htmlentities($detail['id']); ?>"/>
  704. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="save">保存</button>
  705. </div>
  706. </form>
  707. <script>
  708. //审定金额=送审金额+审增金额+审减金额
  709. //(审定金额-送审金额)/送审金额*100%
  710. function Add(){
  711. var input1 = 0,input2 = 0,input3 = 0,input4 = 0;
  712. input1 = Number(document.getElementById("sent_review_amount").value).toFixed(2);
  713. input2 = Number(document.getElementById("authorize_amount").value).toFixed(2);
  714. // input3 = Number(document.getElementById("review_add_amount").value).toFixed(2);
  715. // input4 = Number(document.getElementById("review_reduce_amount").value).toFixed(2);
  716. if (input1!=="0.00" && input2!=="0.00") {
  717. var aa= (input2-input1).toFixed(2);
  718. var bb = aa/input1*100;
  719. bb = bb.toFixed(2);
  720. $('[name="review_add_reduce_rate"]').val(bb);
  721. $('#review_add_reduce_rate').html(bb)
  722. }else {
  723. $('[name="review_add_reduce_rate"]').val('0.00');
  724. $('#review_add_reduce_rate').html('0.00')
  725. }
  726. // 总审定金额-总送审金额
  727. }
  728. function first() {
  729. var form = layui.form, tool = layui.tool, oaTool = layui.oaTool;
  730. let table = layui.table;
  731. //附件表格
  732. var allcount;
  733. parent.layui.get_fileTable = table.render({
  734. elem: '#get_file',
  735. title: '文档列表',
  736. toolbar: '#toolbarget_file',
  737. cellMinWidth: 80,
  738. parseData: function (res) { // 数据解析回调函数
  739. // 在这里可以获取数据总数
  740. allcount = res.data.length;
  741. return {
  742. code: res.code, // 数据状态码
  743. msg: res.msg, // 状态信息
  744. count: res.count, // 数据总数
  745. data: res.data // 当前页数据
  746. };
  747. },
  748. // className: 'layui-table-testcss', // 用于给表格主容器追加 css 类名
  749. // lineStyle: 'height: 151px;', // 定义表格的多行样式
  750. url: "/admin/project.api/get_file",
  751. where: {'id': project_id},
  752. page: true, //开启分页
  753. limit: 20,
  754. cols: [[
  755. {field: 'id', title: '序号', width: 80, align: 'center',
  756. templet: function (d) {
  757. console.log(allcount,d.LAY_NUM)
  758. return allcount - (d.LAY_NUM - 1);
  759. }
  760. },
  761. {field: 'name', title: '附件名称', align: 'left',
  762. },
  763. {field: 'remark', title: '附件说明', align: 'left',
  764. },
  765. {field: 'admin_name', title: '上传人', align: 'center', width: 150},
  766. {field: 'create_time', title: '上传时间', align: 'center', width: 150,
  767. templet:"<div>{{layui.util.toDateString(d.create_time*1000, 'yyyy-MM-dd HH:mm:ss')}}</div>"},
  768. {field: 'right', fixed: 'right', title: '操作', width: 150, align: 'center',
  769. templet: function (d) {
  770. var html = '<div class="layui-btn-group">';
  771. var btn1 = `<a href="https://view.officeapps.live.com/op/view.aspx?src=${d.filepath}" target="_blank" class="layui-btn layui-btn-xs">预览</a>`;
  772. var btn2 = `<a class="layui-btn layui-btn-xs layui-bg-blue" href="${d.filepath}" download="${d.name}" lay-event="">下载</a>`;
  773. var btn3 = `<span data-id="${d.id}" class="layui-btn layui-btn-xs layui-btn-danger file-del ">删除</span>`;
  774. return html + btn1 + btn2 + btn3 +'</div>';
  775. }
  776. }
  777. ]]
  778. });
  779. //上传附件弹出窗
  780. layui.use(function(){
  781. var $ = layui.$;
  782. var layer = layui.layer;
  783. var upload = layui.upload;
  784. var util = layui.util;
  785. // 事件
  786. util.on('lay-on', {
  787. 'test-iframe-handle': function(){
  788. layer.open({
  789. type: 2,
  790. area: ['680px', '520px'],
  791. content: 'ceshi?id=<?php echo htmlentities($detail['id']); ?>',
  792. fixed: false, // 不固定
  793. maxmin: true,
  794. shadeClose: true,
  795. title: '上传附件',
  796. btnAlign: 'c',
  797. yes: function(index, layero){
  798. // 获取 iframe 的窗口对象
  799. var iframeWin = window[layero.find('iframe')[0]['name']];
  800. var elemMark = iframeWin.$('#mark'); // 获得 iframe 中某个输入框元素
  801. var value = elemMark.val();
  802. if($.trim(value) === '') return elemMark.focus();
  803. // 显示获得的值
  804. layer.msg('获得 iframe 中的输入框标记值:'+ value);
  805. }
  806. });
  807. },
  808. })
  809. });
  810. let adress;
  811. //日期选择
  812. layui.laydate.render({
  813. elem: '#date',
  814. range: ['#start_time', '#end_time'],
  815. rangeLinked: true
  816. });
  817. let c = 1;
  818. //监听提交
  819. form.on('submit(save)', function (data) {
  820. if(c){
  821. let callback = function (e) {
  822. c = 1
  823. layer.msg(e.msg);
  824. if (e.code == 0) {
  825. tool.sideClose(1000);
  826. }
  827. }
  828. var engineering_type1 ='';
  829. if(data.field.engineering_type1==1){
  830. engineering_type1 ='预算';
  831. }else if(data.field.engineering_type1==2){
  832. engineering_type1 ='结算';
  833. }else if(data.field.engineering_type1==3){
  834. engineering_type1 ='概算';
  835. }else if(data.field.engineering_type1==4){
  836. engineering_type1 ='决算';
  837. }else if(data.field.engineering_type1==5){
  838. engineering_type1 ='工程总承包(EPC)';
  839. }
  840. var engineering_type2 = '';
  841. if(data.field.engineering_type2==1){
  842. engineering_type2 ='审核';
  843. }else if(data.field.engineering_type2==2) {
  844. engineering_type2 = '编制';
  845. }
  846. if(engineering_type1!==""&&engineering_type2!==""){
  847. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  848. }
  849. tool.post("/admin/project.cost_company/edit", data.field, callback);
  850. }
  851. c = 0
  852. return false;
  853. });
  854. oaTool.addFile({
  855. type: 1,
  856. isSave: true,
  857. ajaxSave: function (res) {
  858. let callback = function (e) {
  859. if(e.code == 202){
  860. layer.msg(e.msg);
  861. }else{
  862. layer.msg('上传成功!');
  863. }
  864. setTimeout(function () {
  865. $("#filesBox2").load(location.href+" #filesBox>*","type=2")
  866. }, 500)
  867. }
  868. // console.log(res,"<?php echo htmlentities($detail['id']); ?>")
  869. tool.post("/admin/project.api/add_file_company", {
  870. 'topic_id': "<?php echo htmlentities($detail['id']); ?>",
  871. 'file_id': res.data.id,
  872. 'file_name': res.data.name,
  873. 'module': 'project'
  874. }, callback);
  875. }
  876. });
  877. $('#filesBox2').on('click', '.file-del', function () {
  878. let id = $(this).parent().parent().data('id');
  879. layer.confirm('确定要删除该文件吗?请慎重', {icon: 3, title: '提示'}, function (index) {
  880. let callback = function (e) {
  881. $("#" + id + "").remove();
  882. layer.closeAll();
  883. layer.msg(e.msg);
  884. $('[lay-filter="webform"]').click();
  885. }
  886. tool.delete("/admin/project.api/delete_file_company", {id: id}, callback);
  887. });
  888. })
  889. layui.use(['form', 'jquery'], function () {
  890. var form = layui.form;
  891. const $ = layui.jquery;
  892. let adress;
  893. $.ajax({
  894. type: "get", //使用get方式
  895. url: "/static/assets/layui/adress.json", //json文件相对于这个HTML的路径
  896. dataType: "json",
  897. async: false,
  898. success: function (data) {
  899. //这个data就是json数据
  900. adress = data
  901. var province = Object.keys(adress)
  902. var proStrs = '<option value="">省</option>';
  903. for (var i = 0; i < province.length; i++) {
  904. proStrs += '<option value="' + province[i] + '">' + province[i] + '</option>';
  905. }
  906. $("#province").html(proStrs);
  907. layui.form.render("select")
  908. },
  909. error: function () {
  910. layer.alert("地址请求失败!! ");
  911. }
  912. });
  913. function getFirstAttr(obj) {
  914. for (var k in obj) return k;
  915. }
  916. function selectOption(selectedProvince, selectedCity = '', selectedArea = '') {
  917. var proStr = '<option value="">省</option>', cityStr = '<option value="">市</option>',
  918. areaStr = '<option value="">县</option>';
  919. var pro = adress[selectedProvince], ci = adress[selectedProvince][selectedCity];
  920. for (var province in adress) {
  921. if (province == selectedProvince) proStr += '<option value="' + province + '" selected>' + province + '</option>';
  922. else proStr += '<option value="' + province + '">' + province + '</option>';
  923. }
  924. $("#province").html(proStr);
  925. for (var city in pro) {
  926. if (city == selectedCity) cityStr += '<option value="' + city + '" selected>' + city + '</option>';
  927. else cityStr += '<option value="' + city + '">' + city + '</option>';
  928. }
  929. $("#city").html(cityStr);
  930. for (var area in ci) {
  931. if (area == "remove") {
  932. continue;
  933. }
  934. if (ci[area] == selectedArea) areaStr += '<option value="' + ci[area] + '" selected>' + ci[area] + '</option>';
  935. else areaStr += '<option value="' + ci[area] + '">' + ci[area] + '</option>';
  936. }
  937. $("#area").html(areaStr);
  938. form.render();
  939. }
  940. /*selectOption(1,2, 3);*/
  941. form.on('select(province)', function (data) {
  942. let thisProvince = data.value;
  943. let thisCity = getFirstAttr(adress[thisProvince]);
  944. selectOption(data.value);
  945. });
  946. form.on('select(city)', function (data) {
  947. selectOption($("#province").val(), data.value, getFirstAttr(data.value));
  948. });
  949. selectOption("<?php echo htmlentities($detail['province']); ?>","<?php echo htmlentities($detail['city']); ?>","<?php echo htmlentities($detail['area']); ?>")
  950. })
  951. }
  952. </script>
  953. <script>
  954. // 获取具有指定 ID 的 <ul> 元素
  955. var ulElement = document.getElementById("filesBox");
  956. // 检查 <ul> 元素的子元素数量
  957. if (ulElement.children.length === 0) {
  958. // 如果子元素数量为 0,隐藏 <ul> 元素
  959. ulElement.style.display = "none";
  960. }
  961. </script>
  962. </div>
  963. <?php if($project_five['project_user'] == 1): ?>
  964. <div class="layui-tab-item">
  965. <div class="p-3 bg-white">
  966. <table class="layui-hide" id="user" lay-filter="user"></table>
  967. </div>
  968. <script type="text/html" id="toolbaruser">
  969. <div class="layui-btn-container">
  970. <?php if($detail['maker_type']==2): ?><button class="layui-btn layui-btn-sm" lay-event="addEntrust">+ 新增委托单位成员</button><?php endif; ?>
  971. <button class="layui-btn layui-btn-sm" lay-event="add_head">+ 新增项目负责人</button>
  972. <button class="layui-btn layui-btn-sm" lay-event="add">+ 新增作业负责人</button>
  973. <button class="layui-btn layui-btn-sm picker-more" lay-event="adda">+ 新增作业成员</button>
  974. <button class="layui-btn layui-btn-sm picker-more" lay-event="adc">+ 新增送审单位成员</button>
  975. </div>
  976. </script>
  977. <script>
  978. function project_user() {
  979. let tool = layui.tool, table = layui.table, employeepicker = layui.employeepicker;
  980. //项目成员
  981. parent.layui.userTable = table.render({
  982. elem: '#user',
  983. title: '项目成员列表',
  984. cellMinWidth: 80,
  985. toolbar: '#toolbaruser',
  986. url: "/admin/project.cost_company/project_user", //数据接口
  987. where: {'project_id': project_id},
  988. page: false, //开启分页
  989. limit: 20,
  990. cols: [[ //表头
  991. {field: 'nickname', fixed: 'left', title: '成员姓名', width: 200, align: 'center', rowspan: 2},
  992. {field: 'unit_name', title: '所在单位', align: 'center', width: 200, rowspan: 2},
  993. {
  994. field: 'type', title: '成员类型', align: 'center', width: 200, rowspan: 2,
  995. templet: function (a) {
  996. var html = "";
  997. if (a.type == 1) {
  998. html = "项目负责人"
  999. } else if (a.type == 2) {
  1000. html = "项目负责人"
  1001. } else if (a.type == 3) {
  1002. html = "作业负责人"
  1003. } else if (a.type == 4) {
  1004. html = "作业成员"
  1005. } else if (a.type == 5) {
  1006. html = "项目负责人"
  1007. } else if (a.type == 6) {
  1008. html = "项目负责人"
  1009. }
  1010. return html;
  1011. }
  1012. },
  1013. {field: 'unit_type', title: '单位类型', align: 'center', width: 200, rowspan: 2},
  1014. {field: 'mobile', title: '手机号码', align: 'center', rowspan: 2},
  1015. {field: 'email', title: '单位邮箱', align: 'center', rowspan: 2},
  1016. {
  1017. title: '操作', fixed: 'right', align: 'center', width: 150, rowspan: 2, templet: function (d) {
  1018. var html = '<span class="layui-btn layui-btn-danger layui-btn-xs" lay-event="remove">移除</span>';
  1019. return html;
  1020. }
  1021. }
  1022. ]]
  1023. });
  1024. //触发事件
  1025. table.on('toolbar(user)', function (obj) {
  1026. var checkStatus = table.checkStatus(obj.config.id);
  1027. switch (obj.event) {
  1028. case 'addEntrust':
  1029. // let callback = function (){
  1030. // layui.alert("hhh")
  1031. // }
  1032. aaa()
  1033. break;
  1034. case 'add':
  1035. employeepicker.init({
  1036. type: 0,
  1037. department_url: "/admin/project.cost_company/get_department_tree",
  1038. employee_url: "/admin/project.cost_company/get_employee",
  1039. callback: function (ids, names, dids, departments) {
  1040. let callback = function (e) {
  1041. layer.msg(e.msg);
  1042. if (e.code == 0) {
  1043. parent.layui.userTable.reload();
  1044. }
  1045. }
  1046. tool.post("/admin/project.cost_company/add_user_company_type1", {
  1047. id: ids,
  1048. project_id: project_id,
  1049. type: 1
  1050. }, callback);
  1051. }
  1052. })
  1053. break;
  1054. case "adda":
  1055. employeepicker.init({
  1056. type: 0,
  1057. department_url: "/admin/project.cost_company/get_department_tree",
  1058. employee_url: "/admin/project.cost_company/get_employee",
  1059. callback: function (ids, names, dids, departments) {
  1060. let callback = function (e) {
  1061. layer.msg(e.msg);
  1062. if (e.code == 0) {
  1063. parent.layui.userTable.reload();
  1064. }
  1065. }
  1066. tool.post("/admin/project.cost_company/add_user_company_type2", {
  1067. id: ids,
  1068. project_id: project_id,
  1069. type: 2
  1070. }, callback);
  1071. }
  1072. })
  1073. break;
  1074. case "adc":
  1075. // getSentReview()
  1076. let call = function () {
  1077. layer.msg(e.msg);
  1078. if (e.code == 0) {
  1079. parent.layui.userTable.reload();
  1080. }
  1081. }
  1082. // employeepicker.init({
  1083. // type: 0,
  1084. // department_url: "/admin/project.cost_company/get_department_tree",
  1085. // employee_url: "/admin/project.cost_company/get_employee",
  1086. // callback: function (ids, names, dids, departments) {
  1087. // let callback = function (e) {
  1088. // layer.msg(e.msg);
  1089. // if (e.code == 0) {
  1090. // parent.layui.userTable.reload();
  1091. // }
  1092. // }
  1093. // tool.post("/admin/project.cost_company/add_sent_review_unit", {
  1094. // id: ids,
  1095. // project_id: project_id,
  1096. // }, callback);
  1097. // }
  1098. // })
  1099. parent.layui.tool.side('/admin/project.cost_company/add_sent_review_unit?project_id=' + project_id, call);
  1100. break;
  1101. case "add_head":
  1102. employeepicker.init({
  1103. type: 0,
  1104. department_url: "/admin/project.cost_company/get_department_tree",
  1105. employee_url: "/admin/project.cost_company/get_employee",
  1106. callback: function (ids, names, dids, departments) {
  1107. let callback = function (e) {
  1108. layer.msg(e.msg);
  1109. if (e.code == 0) {
  1110. parent.layui.userTable.reload();
  1111. }
  1112. }
  1113. tool.post("/admin/project.cost_company/add_user_company_head", {
  1114. id: ids,
  1115. project_id: project_id,
  1116. }, callback);
  1117. }
  1118. })
  1119. break;
  1120. }
  1121. });
  1122. //监听行工具事件
  1123. table.on('tool(user)', function (obj) {
  1124. let postData = {"id": obj.data.id, "project_id": project_id, "type": obj.data.type};
  1125. let callback = function (e) {
  1126. layer.closeAll();
  1127. layer.msg(e.msg);
  1128. if (e.code == 0) {
  1129. parent.layui.userTable.reload();
  1130. }
  1131. }
  1132. if (obj.event === 'remove') {
  1133. if (obj.data.type == 3 || obj.data.type == 4) {
  1134. console.log(postData);
  1135. layer.confirm('确定要移除该项目成员吗?', {icon: 3, title: '提示'}, function (index) {
  1136. tool.delete("/admin/project.cost_company/remove_user_company", postData, callback);
  1137. });
  1138. } else if (obj.data.type == 6) {
  1139. layer.confirm('确定要移除该送审单位成员吗?', {icon: 3, title: '提示'}, function (index) {
  1140. tool.delete("/admin/project.cost_company/remove_sent_review", {
  1141. "id": obj.data.id,
  1142. "project_id": project_id,
  1143. "type": obj.data.type,
  1144. "nickname": obj.data.nickname
  1145. }, callback);
  1146. });
  1147. } else if (obj.data.type == 2) {
  1148. layer.confirm('确定要移除该送审单位成员吗?', {icon: 3, title: '提示'}, function (index) {
  1149. tool.delete("/admin/project.cost_company/remove_review_head", postData, callback);
  1150. });
  1151. } else if (obj.data.type == 1) {
  1152. layer.confirm('确定要移除该委托单位成员吗?', {icon: 3, title: '提示'}, function (index) {
  1153. tool.delete("/admin/project.cost_company/remove_entrust_head", postData, callback);
  1154. });
  1155. }else {
  1156. layer.msg("该成员不可移除");
  1157. }
  1158. }
  1159. return;
  1160. });
  1161. //委托单位
  1162. function aaa(callback){
  1163. var customeTable,form = layui.form;
  1164. const a = layer.open({
  1165. title: '选择委托单位',
  1166. area: ['600px', '580px'],
  1167. type: 1,
  1168. content: '<div class="picker-table">\
  1169. <form class="layui-form pb-2">\
  1170. <div class="layui-input-inline" style="width:480px;">\
  1171. <input type="text" name="keywords" placeholder="委托单位" class="layui-input" autocomplete="off" />\
  1172. </div>\
  1173. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="search_customer">提交搜索</button>\
  1174. </form>\
  1175. <div id="customerTable"></div></div>',
  1176. success: function () {
  1177. customeTable = table.render({
  1178. elem: '#customerTable'
  1179. , url: '/admin/project.api/get_entrust'
  1180. , page: true //开启分页
  1181. , limit: 10
  1182. , cols: [[
  1183. {type: 'radio', title: '选择'},
  1184. {field: 'title', title: '委托单位名称', align: 'center'},
  1185. {field: 'address', title: ' 评审单位地址', align: 'center'}
  1186. ]]
  1187. });
  1188. //客户搜索提交
  1189. form.on('submit(search_customer)', function (data) {
  1190. customeTable.reload({where: {keywords: data.field.keywords}, page: {curr: 1}});
  1191. return false;
  1192. });
  1193. },
  1194. btn: ['确定'],
  1195. btnAlign: 'c',
  1196. yes: function () {
  1197. var checkStatus = table.checkStatus(customeTable.config.id);
  1198. var data = checkStatus.data;
  1199. console.log(data)
  1200. if (data.length > 0) {
  1201. bbb(data);
  1202. layer.close(a);
  1203. } else {
  1204. layer.msg('请先选择委托单位');
  1205. return false;
  1206. }
  1207. }
  1208. })
  1209. }
  1210. function bbb(e){
  1211. var entrustPeopleTable,form = layui.form;
  1212. layer.open({
  1213. title: '选择委托单位',
  1214. area: ['600px', '580px'],
  1215. type: 1,
  1216. content: '<div class="picker-table">\
  1217. <form class="layui-form pb-2">\
  1218. <div class="layui-input-inline" style="width:480px;">\
  1219. <input type="text" name="keywords" placeholder="委托单位" class="layui-input" autocomplete="off" />\
  1220. </div>\
  1221. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="entrustPeople">提交搜索</button>\
  1222. </form>\
  1223. <div id="entrustPeopleTable"></div></div>',
  1224. success: function () {
  1225. entrustPeopleTable = table.render({
  1226. elem: '#entrustPeopleTable'
  1227. , url: '/admin/project.api/get_entrust_people'
  1228. , where:{unit_id:e[0]["id"]}
  1229. , page: true //开启分页
  1230. , limit: 10
  1231. , cols: [[
  1232. {type: 'radio', title: '选择'},
  1233. {field: 'id', width: 80, title: '编号', align: 'center'},
  1234. {field: 'nickname', title: '昵称', align: 'center'},
  1235. ]]
  1236. });
  1237. //客户搜索提交
  1238. form.on('submit(entrustPeople)', function (data) {
  1239. entrustPeopleTable.reload({where: {keywords: data.field.keywords,unit_id:e[0]["id"]}, page: {curr: 1}});
  1240. return false;
  1241. });
  1242. },
  1243. btn: ['确定'],
  1244. btnAlign: 'c',
  1245. yes: function () {
  1246. var checkStatus = table.checkStatus(entrustPeopleTable.config.id);
  1247. var data = checkStatus.data;
  1248. console.log(data)
  1249. if (data.length > 0) {
  1250. let callback = function (e) {
  1251. layer.msg(e.msg);
  1252. if (e.code == 0) {
  1253. layer.closeAll();
  1254. parent.layui.userTable.reload();
  1255. }
  1256. }
  1257. tool.post("/admin/project.cost_company/add_entrust_people", {
  1258. id: data[0]["id"],
  1259. project_id: project_id,
  1260. }, callback);
  1261. } else {
  1262. layer.msg('请先选择委托单位人员');
  1263. return false;
  1264. }
  1265. }
  1266. })
  1267. }
  1268. function getSentReview(){
  1269. var sentReviewTable,form = layui.form;
  1270. const a = layer.open({
  1271. title: '选择送审单位',
  1272. area: ['600px', '580px'],
  1273. type: 1,
  1274. content: '<div class="picker-table">\
  1275. <form class="layui-form pb-2">\
  1276. <div class="layui-input-inline" style="width:480px;">\
  1277. <input type="text" name="keywords" placeholder="委托单位" class="layui-input" autocomplete="off" />\
  1278. </div>\
  1279. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="search_customer">提交搜索</button>\
  1280. </form>\
  1281. <div id="sentReviewTable"></div></div>',
  1282. success: function () {
  1283. sentReviewTable = table.render({
  1284. elem: '#sentReviewTable'
  1285. , url: '/admin/project.api/get_sent_review'
  1286. , page: true //开启分页
  1287. , limit: 10
  1288. , cols: [[
  1289. {type: 'radio', title: '选择'},
  1290. {field: 'id', width: 80, title: '编号', align: 'center'},
  1291. {field: 'title', title: '送审单位名称', align: 'center'},
  1292. {field: 'address', title: ' 送审单位地址', align: 'center'}
  1293. ]]
  1294. });
  1295. //客户搜索提交
  1296. form.on('submit(search_customer)', function (data) {
  1297. sentReviewTable.reload({where: {keywords: data.field.keywords}, page: {curr: 1}});
  1298. return false;
  1299. });
  1300. },
  1301. btn: ['确定'],
  1302. btnAlign: 'c',
  1303. yes: function () {
  1304. var checkStatus = table.checkStatus(sentReviewTable.config.id);
  1305. var data = checkStatus.data;
  1306. console.log(data)
  1307. if (data.length > 0) {
  1308. getSentReviewPeople(data);
  1309. layer.close(a);
  1310. } else {
  1311. layer.msg('请先选择送审单位');
  1312. return false;
  1313. }
  1314. }
  1315. })
  1316. }
  1317. function getSentReviewPeople(e){
  1318. var sentReviewPeople,form = layui.form;
  1319. layer.open({
  1320. title: '选择送审单位',
  1321. area: ['600px', '580px'],
  1322. type: 1,
  1323. content: '<div class="picker-table">\
  1324. <form class="layui-form pb-2">\
  1325. <div class="layui-input-inline" style="width:480px;">\
  1326. <input type="text" name="keywords" placeholder="委托单位" class="layui-input" autocomplete="off" />\
  1327. </div>\
  1328. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="entrustPeople">提交搜索</button>\
  1329. </form>\
  1330. <div id="sentReviewPeople"></div></div>',
  1331. success: function () {
  1332. sentReviewPeople = table.render({
  1333. elem: '#sentReviewPeople'
  1334. , url: '/admin/project.api/get_sent_review_people'
  1335. , where:{unit_id:e[0]["id"]}
  1336. , page: true //开启分页
  1337. , limit: 10
  1338. , cols: [[
  1339. {type: 'radio', title: '选择'},
  1340. {field: 'id', width: 80, title: '编号', align: 'center'},
  1341. {field: 'nickname', title: '昵称', align: 'center'},
  1342. ]]
  1343. });
  1344. //客户搜索提交
  1345. form.on('submit(entrustPeople)', function (data) {
  1346. sentReviewPeople.reload({where: {keywords: data.field.keywords,unit_id:e[0]["id"]}, page: {curr: 1}});
  1347. return false;
  1348. });
  1349. },
  1350. btn: ['确定'],
  1351. btnAlign: 'c',
  1352. yes: function () {
  1353. var checkStatus = table.checkStatus(sentReviewPeople.config.id);
  1354. var data = checkStatus.data;
  1355. console.log(data)
  1356. if (data.length > 0) {
  1357. let callback = function (e) {
  1358. layer.msg(e.msg);
  1359. if (e.code == 0) {
  1360. layer.closeAll();
  1361. parent.layui.userTable.reload();
  1362. }
  1363. }
  1364. tool.post("/admin/project.cost_company/add_sent_review_unit", {
  1365. id: data[0]["id"],
  1366. project_id: project_id,
  1367. }, callback);
  1368. } else {
  1369. layer.msg('请先选择送审单位人员');
  1370. return false;
  1371. }
  1372. }
  1373. })
  1374. }
  1375. }
  1376. </script>
  1377. </div>
  1378. <?php endif; if($project_five['project_report'] == 1): ?>
  1379. <div class="layui-tab-item">
  1380. <div class="p-3 bg-white">
  1381. <table class="layui-hide" id="report" lay-filter="report"></table>
  1382. </div>
  1383. <script type="text/html" id="toolbarreport">
  1384. <div class="layui-btn-container">
  1385. <button class="layui-btn layui-btn-sm" lay-event="add">+ 新建报告</button>
  1386. </div>
  1387. </script>
  1388. <script>
  1389. function report() {
  1390. let tool = layui.tool, table = layui.table;
  1391. //项目任务
  1392. var allcount;
  1393. parent.layui.reportTable = table.render({
  1394. elem: '#report',
  1395. title: '文档列表',
  1396. toolbar: '#toolbarreport',
  1397. cellMinWidth: 80,
  1398. parseData: function (res) { // 数据解析回调函数
  1399. // 在这里可以获取数据总数
  1400. allcount = res.data.length;
  1401. return {
  1402. code: res.code, // 数据状态码
  1403. msg: res.msg, // 状态信息
  1404. count: res.count, // 数据总数
  1405. data: res.data // 当前页数据
  1406. };
  1407. },
  1408. url: "/admin/project.report/datalist_company",
  1409. where: {'project_id': project_id},
  1410. page: true, //开启分页
  1411. limit: 20,
  1412. cols: [[
  1413. {field: 'id', title: '序号', width: 110, align: 'center',
  1414. templet: function (d) {
  1415. console.log(allcount,d.LAY_NUM)
  1416. return allcount - (d.LAY_NUM - 1);
  1417. }
  1418. },
  1419. {field: 'title', title: '报告名称',align: 'center',
  1420. templet: function (d) {
  1421. var html = "";
  1422. if(d.status == 4||d.status == 7){
  1423. html = '<a class="side-a" lay-event="detail" style="color: grey;text-decoration:line-through" lay-event="detail">' + d.title + '</a>';
  1424. }else{
  1425. html = '<a class="side-a" lay-event="detail" lay-event="detail">' + d.title + '</a>';
  1426. }
  1427. return '<div style="text-align:left">' + html + '</div>'
  1428. }
  1429. },
  1430. {field: 'type', title: '报告类型', align: 'center', width: 100,templet:function (item){
  1431. var html = '';
  1432. if(item.type === 0){
  1433. html = "<span>初审报告</span>";
  1434. }else if(item.type === 1){
  1435. html = "<span>对数报告</span>";
  1436. }else if(item.type === 2){
  1437. html = "<span>审定报告</span>";
  1438. }
  1439. return html;
  1440. }},
  1441. {field: 'status', title: '审批状态', align: 'center', width: 150,
  1442. templet:function (d){
  1443. var abc = '';
  1444. if(d.status==0){
  1445. abc = "<span>未审核(新建)</span>";
  1446. }else if(d.status==1){
  1447. abc = "<span>已通过(新建)</span>";
  1448. }else if(d.status==2){
  1449. abc = "<span>已拒绝(新建)</span>";
  1450. }else if(d.status==3){
  1451. abc = "<span>未审核(删除)</span>";
  1452. }else if(d.status==4){
  1453. abc = "<span>已通过(删除)</span>";
  1454. }else if(d.status==5){
  1455. abc = "<span>已拒绝(删除)</span>";
  1456. }else if(d.status==6){
  1457. abc = "<span>未审核(内部)</span>";
  1458. }else if(d.status==7){
  1459. abc = "<span>已拒绝(内部)</span>";
  1460. }
  1461. return abc;
  1462. }
  1463. },
  1464. {field: 'create_time', title: '创建时间', align: 'center', width: 150},
  1465. {field: 'admin_name', title: '创建人', align: 'center', width: 100},
  1466. {field: 'right', fixed: 'right', title: '操作', width: 150, align: 'center',
  1467. templet: function (d) {
  1468. var html = '<div class="layui-btn-group">';
  1469. var btn3 = `<a class="layui-btn layui-btn-xs" lay-event="progress">进度</a>`;
  1470. var btn1 = `<a class="layui-btn layui-btn-xs" href=${d.filepath} download=${d.name} lay-event="">下载</a>`;
  1471. var btn2 = '<span class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</span>';
  1472. return html + btn3 +btn1 + btn2 + '</div>';
  1473. }
  1474. }
  1475. ]]
  1476. });
  1477. //触发事件
  1478. table.on('toolbar(report)', function (obj) {
  1479. var checkStatus = table.checkStatus(obj.config.id);
  1480. switch (obj.event) {
  1481. case 'add':
  1482. parent.layui.tool.side('/admin/project.report/add_company?project_id=' + project_id); // 项目id
  1483. break;
  1484. }
  1485. });
  1486. table.on('tool(report)', function (obj) {
  1487. var data = obj.data; //获得当前行数据
  1488. if (obj.event === 'detail') { //查看
  1489. let url = '/admin/project.report/view_company?id=' + data.id;// 项目id
  1490. parent.layui.tool.side(url);
  1491. }
  1492. if (obj.event === 'del') {
  1493. if(data.status==7){
  1494. layer.msg("已拒绝,请重新创建");
  1495. }else if(data.status==1 ){
  1496. layer.prompt({title: '请输入<span style="color: red">删除</span>原因', formType: 2,area: ['35vw', '15vw']}, function(text, index){
  1497. let callback = function (e) {
  1498. parent.layui.reportTable.reload()
  1499. layer.msg(e.msg);
  1500. setTimeout(function (){
  1501. layer.close(index);
  1502. },2000)
  1503. }
  1504. tool.post("/admin/project.report/delete_company", {id: data.id ,project_id:data.project_id,remark:text}, callback);// 项目id
  1505. });
  1506. }else {
  1507. layer.msg("不可操作");
  1508. }
  1509. }
  1510. if (obj.event === 'progress') { //查看
  1511. let url = '/admin/project.report/progress?id=' + data.id;
  1512. parent.layui.tool.side(url);
  1513. }
  1514. })
  1515. }
  1516. </script>
  1517. </div>
  1518. <?php endif; if($project_five['project_contact'] == 1): ?>
  1519. <div class="layui-tab-item">
  1520. <div class="p-3 bg-white">
  1521. <table class="layui-hide" id="contact" lay-filter="contact"></table>
  1522. </div>
  1523. <script type="text/html" id="toolbarcontact">
  1524. <div class="layui-btn-container">
  1525. <button class="layui-btn layui-btn-sm" lay-event="add">+ 新增联系函</button>
  1526. </div>
  1527. </script>
  1528. <script>
  1529. function contact() {
  1530. let tool = layui.tool, table = layui.table;
  1531. //项目任务
  1532. var allcount;
  1533. parent.layui.contactTable = table.render({
  1534. elem: '#contact',
  1535. title: '文档列表',
  1536. toolbar: '#toolbarcontact',
  1537. cellMinWidth: 80,
  1538. parseData: function (res) { // 数据解析回调函数
  1539. // 在这里可以获取数据总数
  1540. allcount = res.data.length;
  1541. return {
  1542. code: res.code, // 数据状态码
  1543. msg: res.msg, // 状态信息
  1544. count: res.count, // 数据总数
  1545. data: res.data // 当前页数据
  1546. };
  1547. },
  1548. url: "/admin/project.contact/conlist_company",
  1549. where: {'project_id': project_id},
  1550. page: true, //开启分页
  1551. limit: 20,
  1552. cols: [[
  1553. {field: 'id', title: '序号', width: 80, align: 'center',
  1554. templet: function (d) {
  1555. console.log(allcount,d.LAY_NUM)
  1556. return allcount - (d.LAY_NUM - 1);
  1557. }
  1558. },
  1559. {field: 'title', title: '联系函名称',align: 'center',
  1560. templet: function (d) {
  1561. var html = "";
  1562. if(d.status == 5){
  1563. html = '<a class="side-a" lay-event="detail" style="color: grey;text-decoration:line-through" lay-event="detail">' + d.title + '</a>';
  1564. }else{
  1565. html = '<a class="side-a" lay-event="detail" lay-event="detail">' + d.title + '</a>';
  1566. }
  1567. return '<div style="text-align:left">' + html + '</div>'
  1568. }
  1569. },
  1570. {
  1571. field: 'status',
  1572. title: '审批状态',
  1573. align: 'center',
  1574. width: 150,
  1575. templet:function (d){
  1576. var abc = '';
  1577. if(d.status==0){
  1578. abc = "<span>未审核(新建)</span>";
  1579. }else if(d.status==1){
  1580. abc = "<span>已通过(新建)</span>";
  1581. }else if(d.status==2){
  1582. abc = "<span>已拒绝(新建)</span>";
  1583. }else if(d.status==3){
  1584. abc = "<span>未审核(删除)</span>";
  1585. }else if(d.status==4){
  1586. abc = "<span>已通过(删除)</span>";
  1587. }else if(d.status==5){
  1588. abc = "<span>已拒绝(删除)</span>";
  1589. } else if (d.status == 8) {
  1590. abc = "<span>回复</span>";
  1591. }
  1592. return abc;
  1593. }
  1594. },
  1595. {field: 'create_time', title: '创建时间', align: 'center', width: 150},
  1596. {field: 'admin_name', title: '创建人', align: 'center', width: 100},
  1597. {field: 'approver', title: '审批人', align: 'center', width: 100},
  1598. {field: 'right', fixed: 'right', title: '操作', width: 100, align: 'center',
  1599. templet: function (d) {
  1600. var html = '<div class="layui-btn-group">';
  1601. var btn1 = `<a class="layui-btn layui-btn-xs" href=${d.filepath} download=${d.name} lay-event="">下载</a>`;
  1602. var btn2 = '<span class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</span>';
  1603. return html + btn1 + btn2 + '</div>';
  1604. }
  1605. }
  1606. ]]
  1607. });
  1608. //触发事件
  1609. table.on('toolbar(contact)', function (obj) {
  1610. var checkStatus = table.checkStatus(obj.config.id);
  1611. switch (obj.event) {
  1612. case 'add':
  1613. let callback = function (e) {
  1614. window.location.reload()
  1615. layer.msg(e.msg);
  1616. setTimeout(function (){
  1617. layer.close(index);
  1618. },2000)
  1619. }
  1620. parent.layui.tool.side('/admin/project.contact/add_company?project_id=' + project_id,callback); // 项目id
  1621. break;
  1622. }
  1623. });
  1624. table.on('tool(contact)', function (obj) {
  1625. var data = obj.data; //获得当前行数据
  1626. console.log(data.status);
  1627. if (obj.event === 'detail') { //查看
  1628. let url = '/admin/project.contact/view_company?id=' + data.id;// 项目id
  1629. parent.layui.tool.side(url);
  1630. }
  1631. if (obj.event === 'del') {
  1632. if(data.status==1){
  1633. layer.prompt({title: '请输入<span style="color: red">删除</span>原因', formType: 2,area: ['35vw', '15vw']}, function(text, index){
  1634. let callback = function (e) {
  1635. parent.layui.contactTable.reload()
  1636. layer.msg(e.msg);
  1637. setTimeout(function (){
  1638. layer.close(index);
  1639. },2000)
  1640. }
  1641. tool.post("/admin/project.contact/delete_company", {id: data.id ,project_id:data.project_id,remark:text}, callback);// 项目id
  1642. });
  1643. }else {
  1644. layer.msg("不可操作");
  1645. }
  1646. }
  1647. })
  1648. }
  1649. </script>
  1650. </div>
  1651. <?php endif; if($project_five['project_comments'] == 1): ?>
  1652. <div class="layui-tab-item">
  1653. <style>
  1654. #imgdel {
  1655. font-size: 30px;
  1656. position: absolute;
  1657. top: -30px;
  1658. right: -12px;
  1659. display: none;
  1660. color: red;
  1661. }
  1662. .wrapper{
  1663. display: flex;
  1664. justify-content: space-between;
  1665. padding-top: 3px;
  1666. }
  1667. </style>
  1668. <div class="log_item_top" id="comments">
  1669. <div class="layui-tab-content">
  1670. <?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;?>
  1671. <div class="log_top">
  1672. <span><?php echo htmlentities($vo['maker']); ?></span><span
  1673. 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>
  1674. </div>
  1675. <div class="log_content">
  1676. <div style="word-wrap:break-word;padding: 5px 10px;width: fit-content;">
  1677. <?php echo htmlentities($vo['content']); ?>
  1678. </div>
  1679. <?php if(!empty($vo['thumb'])): ?>
  1680. <div class="log_content_img" style="width: fit-content;">
  1681. <img src="<?php echo htmlentities($vo['thumb']); ?>" alt="" class="img-responsive">
  1682. <span></span>
  1683. </div>
  1684. <?php endif; ?>
  1685. </div>
  1686. <?php endforeach; endif; else: echo "" ;endif; ?>
  1687. </div>
  1688. </div>
  1689. <div class="log_item_bottom" style="border-top: 2px solid #e2e2e2;">
  1690. <div class="layui-form log_bottom_left">
  1691. <form class="layui-form" action="">
  1692. <div class="layui-form-item layui-form-text" style="float: left;width: 95%;">
  1693. <label class="layui-form-label">普通文本域</label>
  1694. <div class="layui-input-block" style="margin-left: 100px;">
  1695. <textarea id="text" name="content" placeholder="请输入内容" class="layui-textarea" maxlength="3000" onkeyup="setLength(this,3000,'wordsLength');"></textarea>
  1696. </div>
  1697. <div class="wrapper">
  1698. <span></span><span class="total">0/3000字</span>
  1699. </div>
  1700. </div>
  1701. <div class="layui-form-item" style="float: left;width: 4.5%;">
  1702. <div class="layui-input-block">
  1703. <button type="submit" class="layui-btn" lay-submit lay-filter="caca" type="button"
  1704. style="width: 100%;height: 100% !important;background-color: #16baaa00 !important;margin-top: 30%;">
  1705. <img src="/static/home/images/allupload.png" height="100"
  1706. style="max-width: 40px;height: 40px;"/>
  1707. </button>
  1708. </div>
  1709. </div>
  1710. <div style="clear: both;"></div>
  1711. <div class="layui-form-item" id="imgItem">
  1712. <label class="layui-form-label">上传图片:</label>
  1713. <div>
  1714. <div class="layui-upload-drag-self">
  1715. <div id="uploada" style="position:relative;">
  1716. <img src="/static/home/images/upload.png" height="100"
  1717. style="max-width: 100%; width: 100%;"/>
  1718. <input type="hidden" name="thumb" value="">
  1719. <i class="layui-icon layui-icon-clear" id="imgdel"></i>
  1720. </div>
  1721. </div>
  1722. </div>
  1723. <!--<label class="layui-form-label">通信对象:</label>-->
  1724. <!--<div>-->
  1725. <!-- <div class="layui-upload-drag-self">-->
  1726. <!-- <div id="uploadBtn3" style="position:relative;">-->
  1727. <!-- <select lay-filter="uploadBtn3" name="type">-->
  1728. <!-- <option value="0">全部</option>-->
  1729. <!-- <option value="1">财政局to公司</option>-->
  1730. <!--<option value="2">财政局to业主</option>-->
  1731. <!-- <option value="3">公司to业主</option>-->
  1732. <!-- </select>-->
  1733. <!-- </div>-->
  1734. <!-- </div>-->
  1735. <!--</div>-->
  1736. </div>
  1737. </form>
  1738. </div>
  1739. <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;">
  1740. <div id="innerdiv" style="position:absolute;">
  1741. <img id="bigimg" style="" src="" />
  1742. </div>
  1743. </div>
  1744. </div>
  1745. <!--zjl,懂的都懂-->
  1746. <script>
  1747. function comment() {
  1748. var form = layui.form,tool=layui.tool,upload = layui.upload;
  1749. //头像上传
  1750. var uploadInst = upload.render({
  1751. elem: '#uploada'
  1752. , url: '/admin/api/upload'
  1753. , done: function (e) {
  1754. //如果上传失败
  1755. if (e.code == 1) {
  1756. return layer.msg('上传失败');
  1757. }
  1758. //上传成功
  1759. $('#uploada input').attr('value', e.data.filepath);
  1760. $('#uploada img').attr('src', e.data.filepath);
  1761. $('#imgdel').show();
  1762. }
  1763. });
  1764. $('#imgdel').click(()=>{
  1765. $('#uploada input').attr('value', '');
  1766. $('#uploada img').attr('src', '/static/home/images/upload.png');
  1767. $('#imgdel').hide();
  1768. return false;
  1769. })
  1770. $('#uploada').click(()=>{
  1771. console.log(1)
  1772. return false;
  1773. })
  1774. form.on('select(uploadBtn3)', function (data) {
  1775. console.log(data)
  1776. $("#comments").load(location.href + " #comments>*", "type=2&comment_type=" + data.value)
  1777. return false;
  1778. });
  1779. let d = 1;
  1780. //监听提交
  1781. form.on('submit(caca)', function (data) {
  1782. if(d){
  1783. let callback = function (e) {
  1784. d = 1
  1785. layer.msg(e.msg);
  1786. $("#text").val("");
  1787. $('#uploada input').attr('value', '');
  1788. $('#uploada img').attr('src', '/static/home/images/upload.png');
  1789. $('#imgdel').hide();
  1790. $("#comments").load(location.href + " #comments>*", "type=2&comment_type=" + data.field.type)
  1791. console.log(location.href+" #comments>*","type=2");
  1792. }
  1793. if(data.field.content === '' && data.field.thumb === ''){
  1794. console.log(data.field)
  1795. layer.msg("请完善内容");
  1796. }else {
  1797. data.field["project_id"] = project_id;
  1798. tool.post("/admin/project.comment/add_company", data.field, callback);
  1799. }
  1800. }
  1801. d = 0
  1802. return false;
  1803. });
  1804. }
  1805. </script>
  1806. <script>
  1807. // 限制文本框字数
  1808. function setLength(obj,maxlength,id){
  1809. var num=maxlength-obj.value.length;//获取文本框输入内容的长度
  1810. var leng=id;//获取右下角显示的id
  1811. if(num<0){
  1812. num=0;//如果文本框文字小于零则让它显示为零
  1813. }
  1814. document.getElementById(leng).innerHTML=num+"/50";
  1815. //通过id获取到span标签在页面上的显示并对它的值进行拼接,就是把计算出来的结果+最大限制字数
  1816. }
  1817. </script>
  1818. <script>
  1819. const tx = document.querySelector('#text')
  1820. const total = document.querySelector('.total')
  1821. tx.addEventListener('input', function () {
  1822. console.log(tx.value.length)
  1823. total.innerHTML = `${tx.value.length}/3000字`
  1824. })
  1825. </script>
  1826. <!-- 点击放大图片 -->
  1827. <script src="/static/mobile/js/jquery.min.js"></script>
  1828. <script>
  1829. $(function() {
  1830. $(".img-responsive").click(function (){
  1831. // debugger
  1832. var _this=$(this);
  1833. imgShow("#outerdiv","#innerdiv","#bigimg",_this);
  1834. });
  1835. });
  1836. function imgShow(outerdiv,innerdiv,bigimg,_this){
  1837. // debugger
  1838. var src=_this.attr("src");
  1839. $(bigimg).attr("src",src);
  1840. $("<img/>").attr("src",src).on('load',function () {
  1841. // debugger
  1842. var windowW=$(window).width()
  1843. var windowH=$(window).height();
  1844. var realWidth=this.width;
  1845. var readHeight=this.height;
  1846. var imgWidth,imgHeight;
  1847. var scale=0.8;
  1848. if(realWidth>windowW+scale){
  1849. imgHeight=windowH*scale;
  1850. imgWidth=imgHeight/readHeight*realWidth;
  1851. if(imgWidth>windowW*scale){
  1852. imgWidth=windowW*scale;
  1853. }
  1854. }else if(realWidth>windowW*scale){
  1855. imgWidth=windowW*scale;
  1856. imgHeight=imgWidth/realWidth*readHeight;
  1857. }else {
  1858. imgWidth=realWidth;
  1859. imgHeight=readHeight;
  1860. }
  1861. $(bigimg).css("width",imgWidth);
  1862. var w=(windowW-imgWidth)/2;
  1863. var h=(windowH-imgHeight)/2;
  1864. $(innerdiv).css({"top":h,"left":w});
  1865. $(outerdiv).fadeIn("fast");
  1866. });
  1867. $(outerdiv).click(function (){
  1868. $(this).fadeOut("fast");
  1869. });
  1870. };
  1871. </script>
  1872. </div>
  1873. <?php endif; if($project_five['project_record'] == 1): ?>
  1874. <div class="layui-tab-item">
  1875. <div class="p-3 bg-white">
  1876. <table class="layui-hide" id="record" lay-filter="record"></table>
  1877. </div>
  1878. <script type="text/html" id="toolbarrecord">
  1879. <div class="layui-btn-container">
  1880. <button class="layui-btn layui-btn-sm" lay-event="add">+ 新建记录</button>
  1881. </div>
  1882. </script>
  1883. <script>
  1884. function record() {
  1885. let tool = layui.tool, table = layui.table;
  1886. //项目任务
  1887. var allcount;
  1888. parent.layui.recordTable = table.render({
  1889. elem: '#record',
  1890. title: '文档列表',
  1891. toolbar: '#toolbarrecord',
  1892. cellMinWidth: 80,
  1893. parseData: function (res) { // 数据解析回调函数
  1894. // 在这里可以获取数据总数
  1895. allcount = res.data.length;
  1896. return {
  1897. code: res.code, // 数据状态码
  1898. msg: res.msg, // 状态信息
  1899. count: res.count, // 数据总数
  1900. data: res.data // 当前页数据
  1901. };
  1902. },
  1903. url: "/admin/project.record/gslist",
  1904. where: {'project_id': project_id},
  1905. page: false, //开启分页
  1906. limit: 20,
  1907. cols: [[
  1908. {field: 'id', title: '记录编号', width: 80, align: 'center',
  1909. templet: function (d) {
  1910. console.log(allcount,d.LAY_NUM)
  1911. return allcount - (d.LAY_NUM - 1);
  1912. }
  1913. },
  1914. {field: 'title', title: '记录内容',
  1915. templet: function (d) {
  1916. var html = '<a class="side-a" lay-event="detail">' + d.content + '</a>';
  1917. return html;
  1918. }
  1919. },
  1920. {field: 'create_time', title: '创建时间', align: 'center', width: 150},
  1921. {field: 'admin_name', title: '创建人', align: 'center', width: 100},
  1922. {field: 'right', fixed: 'right', title: '操作', width: 100, align: 'center',
  1923. templet: function (d) {
  1924. var html = '<div class="layui-btn-group">';
  1925. var btn1 = '<span class="layui-btn layui-btn-xs" lay-event="edit">编辑</span>';
  1926. var btn2 = '<span class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</span>';
  1927. return html + btn1 + btn2 + '</div>';
  1928. }
  1929. }
  1930. ]]
  1931. });
  1932. //触发事件
  1933. table.on('toolbar(record)', function (obj) {
  1934. var checkStatus = table.checkStatus(obj.config.id);
  1935. switch (obj.event) {
  1936. case 'add':
  1937. parent.layui.tool.side('/admin/project.record/add_company?project_id=' + project_id); // 项目id
  1938. break;
  1939. }
  1940. });
  1941. table.on('tool(record)', function (obj) {
  1942. var data = obj.data; //获得当前行数据
  1943. if (obj.event === 'detail') { //查看
  1944. let url = '/admin/project.record/view_company?id=' + data.id;// 项目id
  1945. parent.layui.tool.side(url);
  1946. }
  1947. if (obj.event === 'edit') {
  1948. parent.layui.tool.side('/admin/project.record/edit_company?id=' + data.id); // 项目id
  1949. return;
  1950. }
  1951. if (obj.event === 'del') {
  1952. layer.confirm('确定要删除吗?', {
  1953. icon: 3,
  1954. title: '提示'
  1955. }, function (index) {
  1956. let callback = function (e) {
  1957. layer.msg(e.msg);
  1958. if (e.code == 0) {
  1959. obj.del();
  1960. }
  1961. }
  1962. tool.delete("/admin/project.record/del_company", {id: data.id}, callback);// 项目id
  1963. layer.close(index);
  1964. });
  1965. }
  1966. })
  1967. }
  1968. </script>
  1969. </div>
  1970. <?php endif; ?>
  1971. <div class="layui-tab-item">
  1972. <div class="p-3 bg-white">
  1973. <table class="layui-hide" id="appointment" lay-filter="appointment"></table>
  1974. </div>
  1975. <script type="text/html" id="toolbarappointment">
  1976. <div class="layui-btn-container">
  1977. <button class="layui-btn layui-btn-sm" lay-event="add">+ 新增预约</button>
  1978. </div>
  1979. </script>
  1980. <script>
  1981. function appointment() {
  1982. let tool = layui.tool, table = layui.table;
  1983. //项目任务
  1984. var allcount;
  1985. parent.layui.appointmentTable = table.render({
  1986. elem: '#appointment',
  1987. title: '文档列表',
  1988. toolbar: '#toolbarappointment',
  1989. cellMinWidth: 80,
  1990. parseData: function (res) { // 数据解析回调函数
  1991. // 在这里可以获取数据总数
  1992. allcount = res.data.length;
  1993. return {
  1994. code: res.code, // 数据状态码
  1995. msg: res.msg, // 状态信息
  1996. count: res.count, // 数据总数
  1997. data: res.data // 当前页数据
  1998. };
  1999. },
  2000. url: "/admin/project.appointment/datalist_company",
  2001. where: {'project_id': project_id},
  2002. page: false, //开启分页
  2003. limit: 20,
  2004. cols: [[
  2005. {field: 'id', title: '记录编号', width: 80, align: 'center',
  2006. templet: function (d) {
  2007. console.log(allcount,d.LAY_NUM)
  2008. return allcount - (d.LAY_NUM - 1);
  2009. }
  2010. },
  2011. {field: 'appointment_time', title: '预约时间',align: 'center', width: 200},
  2012. {field: 'dispatch_num', title: '派遣人数', align: 'center', width: 100},
  2013. {field: 'address_or_remark', title: '地址/备注', align: 'center'},
  2014. {field: 'sponsor_name', title: '发起人', align: 'center', width: 100},
  2015. {field: 'approval_name', title: '审批人', align: 'center', width: 100},
  2016. {field: 'audit_status', title: '状态', align: 'center', width: 100,templet:function(d){
  2017. if(d.audit_status==0){
  2018. return "待审核"
  2019. }else if(d.audit_status==1){
  2020. return "通过"
  2021. }else if(d.audit_status==2){
  2022. return "拒绝"
  2023. }
  2024. }},
  2025. {field: 'audit_remark', title: '回执', align: 'center', width: 150},
  2026. {field: 'right', fixed: 'right', title: '操作', width: 100, align: 'center',
  2027. templet: function (d) {
  2028. if(d.operate && d.audit_status==0){
  2029. var html = '<div class="layui-btn-group">';
  2030. var btn1 = '<span class="layui-btn layui-btn-xs" lay-event="agree">同意</span>';
  2031. var btn2 = '<span class="layui-btn layui-btn-danger layui-btn-xs" lay-event="disagree">拒绝</span>';
  2032. return html + btn1 + btn2 + '</div>';
  2033. }else{
  2034. return "";
  2035. }
  2036. }
  2037. }
  2038. ]]
  2039. });
  2040. //触发事件
  2041. table.on('toolbar(appointment)', function (obj) {
  2042. var checkStatus = table.checkStatus(obj.config.id);
  2043. switch (obj.event) {
  2044. case 'add':
  2045. parent.layui.tool.side('/admin/project.appointment/add_company?project_id=' + project_id); // 项目id
  2046. break;
  2047. }
  2048. });
  2049. table.on('tool(appointment)', function (obj) {
  2050. var data = obj.data; //获得当前行数据
  2051. console.log(data);
  2052. if (obj.event === 'agree') {
  2053. layer.prompt({
  2054. title: '请输入<span style="color: green">回执</span>',
  2055. formType: 2,
  2056. area: ['35vw', '15vw']
  2057. }, function (text, index) {
  2058. let callback = function (e) {
  2059. parent.layui.appointmentTable.reload()
  2060. layer.msg(e.msg);
  2061. setTimeout(function () {
  2062. layer.close(index);
  2063. }, 2000)
  2064. }
  2065. if (text !== "") {
  2066. tool.post("/admin/project.appointment/agree_company", {id: data.id,audit_remark:text,project_id:data.project_id}, callback);// 项目id
  2067. } else {
  2068. layer.msg("回执不能为空")
  2069. }
  2070. })
  2071. return;
  2072. }
  2073. if (obj.event === 'disagree') {
  2074. layer.prompt({
  2075. title: '请输入<span style="color: red">回执</span>',
  2076. formType: 2,
  2077. area: ['35vw', '15vw']
  2078. }, function (text, index) {
  2079. let callback = function (e) {
  2080. parent.layui.appointmentTable.reload()
  2081. layer.msg(e.msg);
  2082. setTimeout(function () {
  2083. layer.close(index);
  2084. }, 2000)
  2085. }
  2086. if (text !== "") {
  2087. tool.post("/admin/project.appointment/disagree_company", {id: data.id,audit_remark:text,project_id:data.project_id}, callback);// 项目id
  2088. } else {
  2089. layer.msg("回执不能为空")
  2090. }
  2091. })
  2092. return;
  2093. }
  2094. })
  2095. }
  2096. </script>
  2097. </div>
  2098. <?php if($project_five['project_log'] == 1): ?>
  2099. <div class="layui-tab-item">
  2100. <div class="layui-form p-4" style="height: 80vh;overflow: auto">
  2101. <?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;?>
  2102. <div class="layui-timeline" style="padding-left: 0;">
  2103. <div class="layui-timeline-item">
  2104. <i class="layui-icon layui-timeline-axis"></i>
  2105. <div class="layui-timeline-content layui-text">
  2106. <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>
  2107. <p>
  2108. <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>
  2109. </p>
  2110. </div>
  2111. </div>
  2112. <?php endforeach; endif; else: echo "" ;endif; ?>
  2113. </div>
  2114. </div>
  2115. </div>
  2116. <?php endif; ?>
  2117. </div>
  2118. </div>
  2119. <!-- /主体 -->
  2120. <!-- 底部 -->
  2121. <div class="footer">
  2122. 逸管工程项目管理系统 © www.yiguanfep.com
  2123. <img src="/static/home/images/police.png" alt="" style="width:14.5px;height:16px;">
  2124. <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>
  2125. <a href="https://beian.miit.gov.cn/#/Integrated/index" onclick="window.open(this.href); return false;">桂ICP备17000971号</a>
  2126. </div>
  2127. <!-- /底部 -->
  2128. <!-- 脚本 -->
  2129. <script>
  2130. var moduleInit = ['tool', 'oaTool', 'employeepicker'];
  2131. var project_id = '<?php echo htmlentities($detail['id']); ?>';
  2132. function gouguInit() {
  2133. var element = layui.element,
  2134. form = layui.form,
  2135. tool = layui.tool;
  2136. first();
  2137. console.log($('#hha').css("display",'block'))
  2138. element.on('tab(project)', function (data) {
  2139. let index = $(this).attr('data-id');
  2140. console.log(index)
  2141. if (index == 1) {
  2142. comment();
  2143. } else if (index == 2) {
  2144. record();
  2145. } else if (index == 3) {
  2146. report();
  2147. } else if (index == 4) {
  2148. project_user()
  2149. } else if (index == 5) {
  2150. } else if (index == 6) {
  2151. console.log("aaa")
  2152. } else if (index == 7) {
  2153. contact()
  2154. } else if (index == 8) {
  2155. appointment();
  2156. }
  2157. });
  2158. }
  2159. </script>
  2160. <!-- /脚本 -->
  2161. <!-- <script src="/static/assets/layui/layui.js"></script> -->
  2162. <script src="/static/assets/layui/layui.js"></script>
  2163. <script src="/static/assets/third_party/echart/echarts.min.js"></script>
  2164. <script src="/static/assets/gougu/gouguInit.js"></script>
  2165. <script src="https://unpkg.com/pinyin-pro"></script>
  2166. <script>
  2167. var { pinyin } = pinyinPro;
  2168. </script>
  2169. <!-- 统计代码 -->
  2170. <!-- /统计代码 -->
  2171. </body>
  2172. </html>