12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550 |
- <?php /*a:8:{s:74:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\audit_company\read.html";i:1723541257;s:59:"D:\phpstudy_pro\WWW\caiping\app\admin\view\common\base.html";i:1723541257;s:85:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_company\project_overview.html";i:1723541257;s:80:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_company\project_log.html";i:1723541257;s:83:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_company\project_record.html";i:1723541257;s:83:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_company\project_report.html";i:1723541257;s:81:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_company\project_user.html";i:1723541257;s:72:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\projectlog\index.html";i:1723541257;}*/ ?>
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="renderer" content="webkit">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="360-site-verification" content="a7c876fae8b6e3175a52ea9f19543f51" />
- <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0">
- <script src="/static/dist/xm-select.js"></script>
- <link rel="mobile-prefetch" href=""/>
- <title><?php echo get_system_config('web','admin_title'); ?></title>
- <meta name="keywords" content="<?php echo get_system_config('web','keywords'); ?>"/>
- <meta name="description" content="<?php echo get_system_config('web','desc'); ?>"/>
- <link rel="stylesheet" href="/static/assets/gougu/css/gougu.css?v=<?php echo get_system_config('web','version'); ?>" media="all">
- <style>
- .footer{
- display: none;
- }
- .heading th {
- text-align: center;
- }
- .form td {
- text-align: center;
- }
- /* 日志 */
- .log_top {
- padding-left: 1vw;
- }
- .log_top span {
- margin: 0 0.5vw;
- }
- /* 1,1,1 */
- .log_commentary {
- color: rgb(0, 176, 80);
- }
- .log_company {
- color: rgb(255, 33, 0);
- }
- .log_content {
- margin: 0.3vw 1.5vw 1vw 1.5vw;
- padding: 0.5vw 0vw;
- text-indent: 2em;
- line-height: 2.1vh;
- background-color: rgb(255, 255, 255);
- /* background-color: aqua; */
- border-radius: 0.5vw;
- /* box-shadow:4px 4px 6px 2px rgba(0,0,0,0.3); */
- /* box-shadow: 0.17vw 0.17vw 0.4vw 0.03vw rgba(0, 0, 0, 0.1); */
- box-shadow: 0.19vw 0.16vw 0.4vw 0.03vw rgba(0, 0, 0, 0.1);
- }
- .log_content_color {
- /* background-color: rgb(250,250,250); */
- }
- .log_content_img img {
- height: 100%;
- width: 10%;
- border-radius: 0.5vw;
- margin: 0.3vw 0;
- }
- .log_item_top {
- height: 70%;
- overflow: scroll;
- }
- .log_item_top {
- height: 60vh;
- }
- .log_item_bottom {
- display: flex;
- /* height: 17vh; */
- /* border-top: 1px solid #eee; */
- margin: 0 1.5vw;
- /* background-color: rgb(250,250,250); */
- }
- .log_input input {
- width: 55vw;
- height: 10vh;
- border: #eee 1px solid;
- }
- .log_bottom_img {
- /* height: 5vh; */
- }
- .log_bottom_img img {
- height: 4vw;
- width: 6vw;
- border-radius: 0.5vw;
- margin: 0.5vw 0vw 0.5vw 0.3vw;
- }
- .log_bottom_left {
- width: 100%;
- margin-top: 1.5vh;
- }
- .log_bottom_right {
- width: 5%;
- }
- /* 上传图片 */
- .layui-upload-drag-self {
- background-color: #fbfdff;
- border: 1px dashed #c0ccda;
- border-radius: 6px;
- box-sizing: border-box;
- line-height: 4vw;
- vertical-align: top;
- display: inline-block;
- text-align: center;
- cursor: pointer;
- outline: 0;
- margin-right: 13px;
- float: left;
- }
- .layui-input-inlines-self {
- position: relative;
- margin-left: 90px;
- min-height: 36px;
- text-align: left;
- }
- .layui-upload-drag-self .layui-icon {
- font-size: 28px;
- color: #8c939d
- }
- .layui-upload-drag-self .img {
- position: relative;
- height: 148px;
- width: 148px;
- }
- .layui-upload-img {
- width: 148px;
- height: 148px;
- border-radius: 6px;
- margin-top: -3px;
- margin-left: -2px;
- }
- .handle {
- position: absolute;
- width: 148px;
- height: 100%;
- z-index: 100;
- border-radius: 6px;
- top: 0;
- background: rgba(59, 60, 61, 0.6);
- text-align: center;
- }
- .handle .icon-myself {
- z-index: 999;
- transition: all .3s;
- cursor: pointer;
- font-size: 25px;
- width: 25px;
- color: rgba(255, 255, 255, 0.91);
- margin: 0 4px;
- }
- .log_textarea {
- width: 89vw;
- height: 8vh;
- padding: 0.5vw;
- /* margin-right: 2vw; */
- margin: 1vw;
- }
- .log_button_img {
- width: 2vw;
- }
- .log_card {
- border: none !important;
- }
- /* 点击图片放大 */
- .content_img img {
- max-width: 100%;
- cursor: pointer;
- }
- .overlay {
- display: none;
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background-color: rgba(0, 0, 0, 0.7);
- justify-content: center;
- z-index: 1;
- }
- .overlay img {
- margin-top: 4%;
- max-width: 90%;
- max-height: 90%;
- object-fit: contain;
- }
- .p-4 {
- background-color: rgb(255, 255, 255);
- }
- /*表格*/
- #tabniubi {
- width: 100%;
- margin: 10px 0;
- background-color: #fff;
- color: #5f5f5f;
- }
- #tabniubi th {
- padding: 9px 15px;
- min-height: 20px;
- height: 40px;
- line-height: 40px;
- text-align: center;
- /* font-size: 14px; */
- border-width: 1px;
- border-style: solid;
- border-color: #e2e2e2;
- font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif;
- }
- #tabniubi tr:first-child {
- padding: 0;
- min-height: 0;
- line-height: 0;
- border-width: 0;
- border-style: none;
- border-color: #fff;
- font-size: 0;
- }
- #tabniubi tr:first-child th {
- padding: 0;
- min-height: 0;
- line-height: 0;
- border-width: 0;
- border-style: none;
- border-color: #fff;
- font-size: 0;
- }
- .form-title {
- background-color: rgb(241, 241, 241);
- color: rgb(95, 95, 95);
- border-color: rgb(241, 241, 241);
- font-weight: 600;
- }
- .fujianimg img {
- width: 5vw;
- height: 5vh;
- }
- .forleft {
- text-align: left !important;
- }
- /* .forright{
- text-align:right !important;
- } */
- .layui-form-select dl dd.layui-this {
- background-color: #f8f8f8;
- color: rgb(23, 145, 233);
- font-weight: 700;
- }
- .layui-input, .layui-textarea {
- /* padding-left: 3.75vw; */
- color: #5f5f5f;
- }
- .upimg {
- width: 250px;
- height: 250px;
- }
- .filelist{
- width: 100%;
- overflow: scroll;
- height: 8vw;
- justify-content:flex-start;
- align-content: space-between;
- /* flex-direction: column-reverse; */
- flex-wrap: wrap;
- display: flex;
- }
- .filelist li{
- padding: 0.5vw 0.7vw 0.5vw 0.7vw;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- display: inline-block;
- border-right: 1px solid #e2e2e2;
- }
- .filelist p{
- margin: 3px 0 5px 0;
- width: 5vw;
- text-align: center;
- }
- .filelist:hover li{
- /* display: initial; */
- }
- </style>
- </head>
- <body class="main-body">
- <!-- 主体 -->
-
- <div class="layui-form p-4">
- <div class="layui-row layui-col-space12">
- <div class="layui-col-md12">
- <h2><?php echo htmlentities($detail['project_name']); ?></h2>
- </div>
- <div class="layui-col-md3">
- <?php echo htmlentities($detail['project_num']); ?>
- </div>
- <div class="layui-col-md3">
- <?php if($detail['unit_type']==0): ?>
- <?php echo htmlentities($detail['review_head_name']); elseif($detail['unit_type']==2): ?>
- <?php echo htmlentities($detail['entrust_unit_name']); ?>
- <?php endif; ?>
- </div>
- <div class="layui-col-md3">
- 接收时间于:<?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; ?>
- </div>
- </div>
- </div>
- <div class="layui-tab layui-tab-card" lay-filter="test-hash" style="margin: 0;">
- <ul class="layui-tab-title">
- <li class="layui-this" lay-id="11">项目概览</li>
- <?php if($project_five['project_comments'] == 1): ?>
- <li lay-id="22">作业日志</li>
- <?php endif; if($project_five['project_record'] == 1): ?>
- <li data-load="">工作记录</li>
- <?php endif; if($project_five['project_report'] == 1): ?>
- <li data-load="">项目报告</li>
- <?php endif; if($project_five['project_user'] == 1): ?>
- <li data-load="">项目人员</li>
- <?php endif; if($project_five['project_log'] == 1): ?>
- <li data-load="">项目动态</li>
- <?php endif; ?>
- </ul>
- <div class="layui-tab-content" style="padding: 16px;">
- <div class="layui-tab-item layui-show">
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Document</title>
- <style>
- .attachment{
- overflow-y: auto;
- display: -webkit-box;
- -webkit-overflow-scrolling: touch;
-
- }
- .attachment li{
- padding: 0.5vw 0.7vw 0.5vw 0.7vw;
- white-space: nowrap;
- display: inline-block;
- border-right: 1px solid #e2e2e2;
- }
- .attachment p{
- margin: 3px 0 5px 0;
- width: 11vw;
- overflow: hidden;
- text-overflow: ellipsis;
- text-align: center;
- }
- /* #filesBox li{
- width: 145px;
- } */
- .heading th, .form th{
- height: 54.8px;
- }
- .report-title{
- height: 54.8px;
-
- }
- .report-title th{
- padding-left: 15px;
- border: 1px solid #e2e2e2;
- font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif;
- }
-
- .heading th{
- border: 1px solid #e2e2e2;
- }
-
- .form th{
- border: 1px solid #e2e2e2;
- }
-
- #filesBox2 .layui-table-tool{
- display: none;
- }
-
- #filesBox2 .layui-table-view .layui-table{
- width: 100% !important;
- }
-
- #filesBox2 .layui-table-cell{
- display: flex;
- align-items: center;
- justify-content: center;
- }
-
- .laytable-cell-1-0-1, .laytable-cell-1-0-2{
- justify-content: flex-start !important;
- }
-
- .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{
- display: flex;
- font: 14px red;
- font-weight: 600;
- color: #5f5f5f;
-
- }
- #tabniubi tr:first-child th{
- border-right: 1px solid #e2e2e2 !important;
- }
-
- #filesBox2 th:sixth-child{
- border-right: none !important;
- }
-
- </style>
- </head>
- <body>
- <table id="tabniubi" cellpadding="1" cellspacing="1">
- <tr>
- <th style="width: 10%;height: 0;"></th>
- <th style="width: 10%;height: 0;"></th>
- <th style="width: 10%;height: 0;"></th>
- <th style="width: 10%;height: 0;"></th>
- <th style="width: 10%;height: 0;"></th>
- <th style="width: 10%;height: 0;"></th>
- <th style="width: 10%;height: 0;"></th>
- <th style="width: 10%;height: 0;"></th>
- <th style="width: 10%;height: 0;"></th>
- </tr>
- <tr border="1">
- <?php if($field['project_status'] == 1): ?>
- <th class="form-title">项目状态</th>
- <th>
- <?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: ?>未知
- <?php endswitch; ?>
- </th>
- <?php endif; if($field['project_name'] == 1): ?>
- <th class="form-title">项目名称</th>
- <th colspan="3"><?php echo htmlentities($detail['project_name']); ?></th>
- <?php endif; if($field['project_num'] == 1): ?>
- <th class="form-title">项目编号</th>
- <th colspan="2"><?php echo htmlentities($detail['project_num']); ?></th>
- <?php endif; ?>
- </tr>
- <tr>
- <?php if($field['project_time'] == 1): ?>
- <th class="form-title">项目周期</th>
- <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>
- <?php endif; ?>
- </tr>
- <tr>
- <?php if($field['engineering_type'] == 1): ?>
- <th class="form-title">项目类型</th>
- <th>
- <?php if($detail['engineering_type1']==1): ?>
- 预算
- <?php elseif($detail['engineering_type1']==2): ?>
- 结算
- <?php elseif($detail['engineering_type1']==3): ?>
- 概算
- <?php elseif($detail['engineering_type1']==4): ?>
- 决算
- <?php elseif($detail['engineering_type1']==5): ?>
- 工程总承包(EPC)
- <?php endif; ?>
- <!-- <div>
- <select name="type" lay-verify="required" lay-filter="aihao">
- <option value="1" style="align-items: center;">预算</option>
- <option value="2">结算</option>
- </select>
- </div>-->
- </th>
- <th class="form-title">——</th>
- <th>
- <?php if($detail['engineering_type2']==1): ?>
- 审核
- <?php elseif($detail['engineering_type2']==2): ?>
- 编制
- <?php endif; ?>
- </th>
- <?php endif; if($field['engineering_category'] == 1): ?>
- <th class="form-title">工程类别</th>
- <th><?php echo htmlentities($detail['engineering_category']); ?></th>
- <?php endif; if($field['project_region'] == 1): ?>
- <th class="form-title">项目区域</th>
- <th colspan="2">
- <?php echo htmlentities($detail['province']); ?>-<?php echo htmlentities($detail['city']); ?>-<?php echo htmlentities($detail['area']); ?>
- <!--<div>
- <form class="layui-form">
- <div class="layui-form-item" style="margin-bottom: 0;">
- <div class="layui-input-inline" style="width: 6vw;">
- <select id="province" lay-filter="province" name="province">
- </select>
- </div>
- <div class="layui-input-inline area" style="width: 6vw;">
- <select id="city" lay-filter="city" name="city">
- </select>
- </div>
- <div class="layui-input-inline area" style="width: 6vw;">
- <select id="area" lay-filter="area" name="area">
- </select>
- </div>
- </div>
- </form>
- </div>-->
- </th>
- <?php endif; ?>
- </tr>
- <tr>
- <?php if($field['fiscal_nature'] == 1): ?>
- <th class="form-title">资金性质</th>
- <th><?php echo htmlentities($detail['fiscal_nature']); ?></th>
- <?php endif; if($field['project_scale'] == 1): ?>
- <th class="form-title">项目规模</th>
- <th colspan="3"><?php echo htmlentities($detail['project_scale']); ?></th>
- <?php endif; if($field['charge_standard'] == 1): ?>
- <th class="form-title">收费标准</th>
- <th colspan="2"><?php echo htmlentities($detail['charge_standard']); ?></th>
- <?php endif; ?>
- </tr>
- <?php if($field['entrust_unit'] == 1 || $field['entrust_head'] == 1 || $field['sent_review_unit'] == 1 || $field['sent_review_head'] == 1
- || $field['review_unit'] == 1 || $field['review_head'] == 1 || $field['operate_name'] == 1 || $field['operate_team_names'] == 1): ?>
- <tr>
- <th colspan="9" class="forleft">相关单位</th>
- </tr>
- <tr>
- <?php if($field['entrust_unit'] == 1): ?>
- <th class="form-title">委托单位</th>
- <th><?php echo htmlentities($detail['entrust_unit_name']); ?></th>
- <?php endif; if($field['entrust_head'] == 1): ?>
- <th class="form-title">负责人</th>
- <th><?php echo htmlentities($detail['entrust_maker_name']); ?></th>
- <?php endif; if($field['sent_review_unit'] == 1): ?>
- <th class="form-title">送审单位</th>
- <th><?php echo htmlentities($detail['sent_review_unit_name']); ?></th>
- <?php endif; if($field['sent_review_head'] == 1): ?>
- <th class="form-title">负责人</th>
- <th colspan="2"><?php echo htmlentities($detail['sent_review_head_name']); ?></th>
- <?php endif; ?>
- </tr>
- <tr>
- <?php if($field['review_unit'] == 1): ?>
- <th class="form-title">评审机构</th>
- <th><?php echo htmlentities($detail['review_unit_name']); ?></th>
- <?php endif; if($field['review_head'] == 1): ?>
- <th class="form-title">项目负责人</th>
- <th><?php echo htmlentities($detail['review_head_name']); ?></th>
- <?php endif; if($field['operate_name'] == 1): ?>
- <th class="form-title">作业负责人</th>
- <th><?php echo htmlentities($detail['operate_head_name']); ?></th>
- <?php endif; if($field['operate_team_names'] == 1): ?>
- <th class="form-title">作业成员</th>
- <th colspan="2"><?php echo htmlentities($detail['operate_team_names']); ?></th>
- <?php endif; ?>
- </tr>
- <?php endif; if($field['sent_review_amount'] == 1 || $field['authorize_amount'] == 1
- || $field['review_add_reduce_amount'] == 1 || $field['review_add_reduce_rate'] == 1 || $field['sent_review_cost'] == 1): ?>
- <tr>
- <th colspan="9" class="forleft">金额详情</th>
- </tr>
- <tr>
- <?php if($field['sent_review_amount'] == 1): ?>
- <th class="form-title" colspan="1">送审金额(元)</th>
- <th colspan="3" style="text-align: left;"><?php echo htmlentities($detail['sent_review_amount']); ?></th>
- <?php endif; if($field['authorize_amount'] == 1): ?>
- <th class="form-title" colspan="1">审定金额(元)</th>
- <th colspan="4" style="text-align: left;"><?php echo htmlentities($detail['authorize_amount']); ?></th>
- <?php endif; ?>
- </tr>
- <tr>
- <?php if($field['review_add_reduce_amount'] == 1): ?>
- <th class="form-title" colspan="1">审增额(元)</th>
- <th colspan="1"><?php echo htmlentities($detail['review_add_amount']); ?></th>
- <th class="form-title" colspan="1">审减额(元)</th>
- <th colspan="1"><?php echo htmlentities($detail['review_reduce_amount']); ?></th>
- <?php endif; if($field['review_add_reduce_rate'] == 1): ?>
- <th class="form-title" colspan="1">审增减率(%)</th>
- <th colspan="1"><?php echo htmlentities($detail['review_add_reduce_rate']); ?></th>
- <?php endif; if($field['sent_review_cost'] == 1): ?>
- <th class="form-title" colspan="1">送审服务费 (元)</th>
- <th colspan="4" style="text-align: left;"><?php echo htmlentities($detail['sent_review_cost']); ?></th>
- <?php endif; ?>
- </tr>
- <?php endif; ?>
- <!-- <tr>
- <th class="form-title" colspan="1">报告时间</th>
- <th colspan="8" style="text-align: left;"><?php echo htmlentities($detail['report_time']); ?></th>
- </tr>-->
- <tr>
- <th colspan="9" class="forleft">相关附件
- </th>
- </tr>
- <tr>
- <th colspan="9" class="fujianimg" style="padding: 0px;">
- <div id="filesBox2">
- <table class="layui-hide" id="get_file" lay-filter="get_file"></table>
- </div>
- </th>
- </tr>
- </table>
- <table class="layui-table layui-table-form">
- <table class="layui-table">
- <colgroup>
- <col width="110">
- <col width="800">
- <col width="250">
- <col width="250">
- <col width="250">
- </colgroup>
- <thead class="report-title">
- <tr>
- <th class="layui-th-gray-1 " colspan=9 style="height: 36px;">项目报告
- </th>
- </tr>
- <?php if(!empty($report)): ?>
- <thead>
- <tr class="heading" style="background-color:rgb(241, 241, 241);">
- <th>序号</th>
- <th style="text-align: left;">报告名称</th>
- <th>报告类型</th>
- <th>上传时间</th>
- <th>发布人</th>
- </tr>
- </thead>
- <tbody class="form">
- <?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;?>
- <tr>
- <th><?php echo htmlentities($vo['id']); ?></th>
- <th style="text-align: left;"><a data-id="<?php echo htmlentities($vo['id']); ?>" lay-data="readreport" style="color: #187FDD;"><?php echo htmlentities($vo['title']); ?></a></th>
- <th> <?php switch($vo['type']): case "0": ?>初审报告<?php break; case "1": ?>对数报告<?php break; case "2": ?>审定报告<?php break; default: ?>未知
- <?php endswitch; ?>
- </th>
- <th><?php echo htmlentities(date("Y-m-d",!is_numeric($vo['create_time'])? strtotime($vo['create_time']) : $vo['create_time'])); ?></th>
- <th><?php echo htmlentities($vo['nickname']); ?></th>
- </tr>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- </tbody>
- <?php endif; ?>
- </table>
- <?php if(empty($report) || (($report instanceof \think\Collection || $report instanceof \think\Paginator ) && $report->isEmpty())): ?>
- <div class="layui-data-none">暂无项目报告</div>
- <?php endif; ?>
- <table class="layui-table" >
- <colgroup>
- <col width="110">
- <col width="800">
- <col width="250">
- <col width="250">
- <col width="250">
- </colgroup>
- <thead class="heading-1">
- <tr>
- <th class="layui-td-gray-1" colspan=9 style="height: 36px;font-weight: 500;"> 项目合同</th>
- </tr>
- <?php if(!empty($contract)): ?>
- <thead>
- <tr class="heading" >
- <th>序号</th>
- <th style="text-align: left;">合同名称</th>
- <th>合同性质</th>
- <th>签订时间</th>
- <th>签订人</th>
- </tr>
- </thead>
- <tbody class="form">
- <?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;?>
- <tr>
- <td><?php echo htmlentities($vo['id']); ?></td>
- <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>
- <td> <?php switch($vo['type']): case "1": ?>普通合同<?php break; case "2": ?>框架合同<?php break; case "3": ?>补充协议<?php break; case "3": ?>其他合同<?php break; default: ?>未设置
- <?php endswitch; ?>
- </td>
- <td><?php echo htmlentities(date('Y-m-d',!is_numeric($vo['sign_time'])? strtotime($vo['sign_time']) : $vo['sign_time'])); ?></td>
- <td><?php echo htmlentities($vo['sign_name']); ?></td>
- </tr>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- </tbody>
- <?php endif; ?>
- </table>
- <?php if(empty($contract) || (($contract instanceof \think\Collection || $contract instanceof \think\Paginator ) && $contract->isEmpty())): ?>
- <div class="layui-data-none">暂无项目合同</div>
- <?php endif; ?>
- </table>
- <script>
- function first(){
- let table = layui.table;
- //项目任务
- var allcount;
- parent.layui.get_fileTable = table.render({
- elem: '#get_file',
- title: '文档列表',
- toolbar: '#toolbarget_file',
- cellMinWidth: 80,
- parseData: function (res) { // 数据解析回调函数
- // 在这里可以获取数据总数
- allcount = res.data.length;
- return {
- code: res.code, // 数据状态码
- msg: res.msg, // 状态信息
- count: res.count, // 数据总数
- data: res.data // 当前页数据
- };
- },
- // className: 'layui-table-testcss', // 用于给表格主容器追加 css 类名
- // lineStyle: 'height: 151px;', // 定义表格的多行样式
- url: "/admin/project.api/get_file",
- where: {'id': project_id},
- page: true, //开启分页
- limit: 20,
- cols: [[
- {field: 'id', title: '序号', width: 80, align: 'center',
- templet: function (d) {
- console.log(allcount,d.LAY_NUM)
- return allcount - (d.LAY_NUM - 1);
-
- }
- },
- {field: 'name', title: '附件名称', align: 'left',
- },
- {field: 'remark', title: '附件说明', align: 'left',
- },
-
- {field: 'admin_name', title: '上传人', align: 'center', width: 150},
- {field: 'create_time', title: '上传时间', align: 'center', width: 100},
- {field: 'right', fixed: 'right', title: '操作', width: 150, align: 'center',
- templet: function (d) {
- var html = '<div class="layui-btn-group">';
- var btn1 = `<a href="https://view.officeapps.live.com/op/view.aspx?src=${d.filepath}" target="_blank" class="layui-btn layui-btn-xs">预览</a>`;
- var btn2 = `<a class="layui-btn layui-btn-xs layui-bg-blue" href="${d.filepath}" download="${d.name}" lay-event="">下载</a>`;
- return html + btn1 + btn2 +'</div>';
- }
- }
- ]]
- });
-
-
- layui.use(['form', 'jquery'], function () {
- var form = layui.form;
- const $ = layui.jquery;
- let adress;
- $.ajax({
- type:"get", //使用get方式
- url: "/static/assets/layui/adress.json", //json文件相对于这个HTML的路径
- dataType:"json",
- async: false,
- success:function(data) {
- //这个data就是json数据
- adress = data
- },
- error:function() {
- layer.alert("地址请求失败!! ");
- }
- });
- function getFirstAttr(obj) {
- for (var k in obj) return k;
- }
- function selectOption(selectedProvince, selectedCity,selectedArea) {
- var proStr = '', cityStr = '', areaStr = '';
- var pro = adress[selectedProvince], ci = adress[selectedProvince][selectedCity];
- for (var province in adress) {
- if (province == selectedProvince) proStr += '<option value="' + province + '" selected>' + province + '</option>';
- else proStr += '<option value="' + province + '">' + province + '</option>';
- }
- $("#province").html(proStr);
- for (var city in pro) {
- if (city == selectedCity) cityStr += '<option value="' + city + '" selected>' + city + '</option>';
- else cityStr += '<option value="' + city + '">' + city + '</option>';
- }
- $("#city").html(cityStr);
- for (var area in ci) {
- if(area == "remove"){
- continue;
- }
- if (ci[area] == selectedArea) areaStr += '<option value="' + ci[area] + '" selected>' + ci[area] + '</option>';
- else areaStr += '<option value="' + ci[area] + '">' + ci[area] + '</option>';
- }
- $("#area").html(areaStr);
- form.render();
- }
- selectOption('湖北省', getFirstAttr(adress['湖北省']),'硚口区');
- form.on('select(province)', function (data) {
- let thisProvince = data.value;
- let thisCity = getFirstAttr(adress[thisProvince]);
- selectOption(data.value, thisCity,thisCity[0]);
- });
- form.on('select(city)', function (data) {
- selectOption($("#province").val(), data.value,getFirstAttr(data.value));
- });
- })
- $('#filesBox').on('click','.file-del',function(){
- layer.msg("不可删除");
- })
- }
- </script>
- <script>
- // 获取具有指定 ID 的 <ul> 元素
- var ulElement = document.getElementById("filesBox");
- // 检查 <ul> 元素的子元素数量
- if (ulElement.children.length === 0) {
- // 如果子元素数量为 0,隐藏 <ul> 元素
- ulElement.style.display = "none";
- }
- </script>
- </body>
- </html>
- </div>
- <?php if($project_five['project_comments'] == 1): ?>
- <div class="layui-tab-item" >
-
- <style>
- #imgdel {
- font-size: 30px;
- position: absolute;
- top: -30px;
- right: -12px;
- display: none;
- color: red;
- }
- .wrapper{
- display: flex;
- justify-content: space-between;
- padding-top: 3px;
- }
- /* 点击图片放大 */
- .img-responsive{
- /* width: 150px; */
- height: 150px;
- /* padding: 10px; */
- }
- </style>
- <div class="log_item_top" id="comments">
- <div class="layui-tab-content">
- <?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;?>
- <div class="log_top">
- <span><?php echo htmlentities($vo['maker']); ?></span><span
- 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>
- </div>
- <div class="log_content">
- <div style="word-wrap: break-word;padding: 5px 10px;width: fit-content;">
- <?php echo htmlentities($vo['content']); ?>
- </div>
- <?php if(!empty($vo['thumb'])): ?>
- <div class="log_content_img" style="width: fit-content;">
- <img src="<?php echo htmlentities($vo['thumb']); ?>" alt="" class="img-responsive">
- <span></span>
- </div>
- <?php endif; ?>
- </div>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- </div>
- </div>
- <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;">
- <div id="innerdiv" style="position:absolute;">
- <img id="bigimg" style="" src="" />
- </div>
- </div>
- <!--zjl,懂的都懂-->
- <script>
- function comment() {
- var form = layui.form,tool=layui.tool,upload = layui.upload;
- //头像上传
- var uploadInst = upload.render({
- elem: '#uploada'
- , url: '/admin/api/upload'
- , done: function (e) {
- //如果上传失败
- if (e.code == 1) {
- return layer.msg('上传失败');
- }
- //上传成功
- $('#uploada input').attr('value', e.data.filepath);
- $('#uploada img').attr('src', e.data.filepath);
- $('#imgdel').show();
- }
- });
- $('#imgdel').click(()=>{
- $('#uploada input').attr('value', '');
- $('#uploada img').attr('src', '/static/home/images/upload.png');
- $('#imgdel').hide();
- return false;
- })
- $('#uploada').click(()=>{
- console.log(1)
- return false;
- })
- //监听提交
- form.on('submit(caca)', function (data) {
- let callback = function (e) {
- layer.msg(e.msg);
- $("#text").val("");
- $('#uploada input').attr('value', '');
- $('#uploada img').attr('src', '/static/home/images/upload.png');
- $("#comments").load(location.href+" #comments>*","type=2")
- console.log(location.href+" #comments>*","type=2");
- }
- if(data.field.content === '' && data.field.thumb === ''){
- console.log(data.field)
- }else {
- data.field["project_id"] = project_id;
- tool.post("/admin/project.comment/add_company", data.field, callback);
- }
- return false;
- });
- }
- </script>
- <!-- 点击放大图片 -->
- <script src="/static/mobile/js/jquery.min.js"></script>
- <script>
- $(function() {
- $(".img-responsive").click(function (){
- // debugger
- var _this=$(this);
- imgShow("#outerdiv","#innerdiv","#bigimg",_this);
- });
- });
- function imgShow(outerdiv,innerdiv,bigimg,_this){
- // debugger
- var src=_this.attr("src");
- $(bigimg).attr("src",src);
- $("<img/>").attr("src",src).on('load',function () {
- // debugger
- var windowW=$(window).width()
- var windowH=$(window).height();
- var realWidth=this.width;
- var readHeight=this.height;
- var imgWidth,imgHeight;
- var scale=0.8;
- if(realWidth>windowW+scale){
- imgHeight=windowH*scale;
- imgWidth=imgHeight/readHeight*realWidth;
- if(imgWidth>windowW*scale){
- imgWidth=windowW*scale;
- }
- }else if(realWidth>windowW*scale){
- imgWidth=windowW*scale;
- imgHeight=imgWidth/realWidth*readHeight;
- }else {
- imgWidth=realWidth;
- imgHeight=readHeight;
- }
- $(bigimg).css("width",imgWidth);
- var w=(windowW-imgWidth)/2;
- var h=(windowH-imgHeight)/2;
- $(innerdiv).css({"top":h,"left":w});
- $(outerdiv).fadeIn("fast");
- });
- $(outerdiv).click(function (){
- $(this).fadeOut("fast");
- });
- };
- </script>
- </div>
- <?php endif; if($project_five['project_record'] == 1): ?>
- <div class="layui-tab-item">
- <div class="p-3 bg-white">
- <table class="layui-hide" id="record" lay-filter="record"></table>
- </div>
- <script>
- function record() {
- console.log('woshi record')
- let tool = layui.tool, table = layui.table;
- //项目任务
- var allcount;
- parent.layui.recordTable = table.render({
- elem: '#record',
- title: '文档列表',
- toolbar: '#toolbarrecord',
- cellMinWidth: 80,
- parseData: function (res) { // 数据解析回调函数
- // 在这里可以获取数据总数
- allcount = res.data.length;
- return {
- code: res.code, // 数据状态码
- msg: res.msg, // 状态信息
- count: res.count, // 数据总数
- data: res.data // 当前页数据
- };
- },
- url: "/admin/project.record/gslist",
- where: {'project_id': project_id},
- page: true, //开启分页
- limit: 20,
- cols: [[
- {field: 'id', title: '记录编号', width: 80, align: 'center',
- templet: function (d) {
- console.log(allcount,d.LAY_NUM)
- return allcount - (d.LAY_NUM - 1);
-
- }
- },
- {field: 'title', title: '记录内容',
- templet: function (d) {
- var html = '<a class="side-a" lay-event="detail">' + d.content + '</a>';
- return html;
- }
- },
- {field: 'create_time', title: '创建时间', align: 'center', width: 150},
- {field: 'admin_name', title: '创建人', align: 'center', width: 100},
- ]]
- });
- //触发事件
- table.on('toolbar(record)', function (obj) {
- var checkStatus = table.checkStatus(obj.config.id);
- switch (obj.event) {
- case 'add':
- parent.layui.tool.side('/admin/project.record/add?project_id=' + project_id); // 项目id
- break;
- }
- });
- table.on('tool(record)', function (obj) {
- var data = obj.data; //获得当前行数据
- if (obj.event === 'detail') { //查看
- let url = '/admin/project.record/view_company?id=' + data.id;// 项目id
- parent.layui.tool.side(url);
- }
- if (obj.event === 'edit') {
- parent.layui.tool.side('/admin/project.record/edit?id=' + data.id); // 项目id
- return;
- }
- if (obj.event === 'del') {
- layer.confirm('确定要删除吗?', {
- icon: 3,
- title: '提示'
- }, function (index) {
- let callback = function (e) {
- layer.msg(e.msg);
- if (e.code == 0) {
- obj.del();
- }
- }
- tool.delete("/admin/project.record/del", {id: data.id}, callback);// 项目id
- layer.close(index);
- });
- }
- })
- }
- </script>
- </div>
- <?php endif; if($project_five['project_report'] == 1): ?>
- <div class="layui-tab-item">
- <div className="p-3 bg-white">
- <table className="layui-hide" id="reports" lay-filter="reports"></table>
- </div>
- <script>
- function report() {
- console.log("我已经执行了")
- let tool = layui.tool, table = layui.table;
- //项目任务
- var allcount;
- parent.layui.reportTable = table.render({
- elem: '#reports',
- title: '文档列表',
- toolbar: '#toolbarreports',
- cellMinWidth: 80,
- parseData: function (res) { // 数据解析回调函数
- // 在这里可以获取数据总数
- allcount = res.data.length;
- return {
- code: res.code, // 数据状态码
- msg: res.msg, // 状态信息
- count: res.count, // 数据总数
- data: res.data // 当前页数据
- };
- },
- url: "/admin/project.report/datalist_company",
- where: {'project_id': project_id},
- page: true, //开启分页
- limit: 20,
- cols: [[
- {field: 'id', title: '序号', width: 80, align: 'center',
- templet: function (d) {
- console.log(allcount,d.LAY_NUM)
- return allcount - (d.LAY_NUM - 1);
-
- }
- },
- {
- field: 'title', title: '报告名称', align: 'center',
- templet: function (d) {
- var html = "";
- if (d.status == 4 || d.status == 7) {
- html = '<a class="side-a" lay-event="detail" style="color: grey;text-decoration:line-through" lay-event="detail">' + d.title + '</a>';
- } else {
- html = '<a class="side-a" lay-event="detail" lay-event="detail">' + d.title + '</a>';
- }
- return '<div style="text-align:left">' + html + '</div>'
- }
- },
- {
- field: 'type', title: '报告类型', align: 'center', width: 100, templet: function (item) {
- var html = '';
- if (item.type === 0) {
- html = "<span>初审报告</span>";
- } else if (item.type === 1) {
- html = "<span>对数报告</span>";
- } else if (item.type === 2) {
- html = "<span>审定报告</span>";
- }
- return html;
- }
- },
- {
- field: 'status', title: '审批状态', align: 'center', width: 150, templet: function (d) {
- var abc = '';
- if (d.status == 0) {
- abc = "<span>未审核(新建)</span>";
- } else if (d.status == 1) {
- abc = "<span>已通过(新建)</span>";
- } else if (d.status == 2) {
- abc = "<span>已拒绝(新建)</span>";
- } else if (d.status == 3) {
- abc = "<span>未审核(删除)</span>";
- } else if (d.status == 4) {
- abc = "<span>已通过(删除)</span>";
- } else if (d.status == 5) {
- abc = "<span>已拒绝(删除)</span>";
- } else if (d.status == 6) {
- abc = "<span>未审核(内部)</span>";
- } else if (d.status == 7) {
- abc = "<span>已拒绝(内部)</span>";
- }
- return abc;
- }
- },
- {field: 'create_time', title: '创建时间', align: 'center', width: 150},
- {field: 'admin_name', title: '创建人', align: 'center', width: 100},
- {
- field: 'right', fixed: 'right', title: '操作', width: 150, align: 'center',
- templet: function (d) {
- var html = '<div class="layui-btn-group">';
- var btn3 = `<a class="layui-btn layui-btn-xs" lay-event="progress">进度</a>`;
- var btn1 = `<a class="layui-btn layui-btn-xs" href=${d.filepath} download=${d.name} lay-event="">下载</a>`;
- return html + btn1 + btn3 + '</div>';
- }
- }
- ]]
- });
- //触发事件
- table.on('toolbar(reports)', function (obj) {
- var checkStatus = table.checkStatus(obj.config.id);
- switch (obj.event) {
- case 'add':
- parent.layui.tool.side('/admin/project.report/add?project_id=' + project_id); // 项目id
- break;
- }
- });
- table.on('tool(reports)', function (obj) {
- var data = obj.data; //获得当前行数据
- if (obj.event === 'detail') { //查看
- let url = '/admin/project.report/view_company?id=' + data.id;// 项目id
- parent.layui.tool.side(url);
- }
- if (obj.event === 'del') {
- layer.prompt({
- title: '请输入<span style="color: red">删除</span>原因',
- formType: 2,
- area: ['35vw', '15vw']
- }, function (text, index) {
- let callback = function (e) {
- window.location.reload()
- layer.msg(e.msg);
- setTimeout(function () {
- layer.close(index);
- }, 2000)
- }
- tool.post("/admin/project.report/delete", {id: data.id, remark: text}, callback);// 项目id
- });
- }
- if (obj.event === 'progress') { //查看
- let url = '/admin/project.report/progress?id=' + data.id;
- parent.layui.tool.side(url);
- }
- })
- }
- </script>
- </div>
- <?php endif; if($project_five['project_user'] == 1): ?>
- <div class="layui-tab-item">
- <div class="p-3 bg-white">
- <table class="layui-hide" id="user" lay-filter="user"></table>
- </div>
- <script>
- function project_user() {
- let tool = layui.tool, table = layui.table, employeepicker = layui.employeepicker;
- //项目成员
- layui.userTable = table.render({
- elem: '#user',
- title: '项目成员列表',
- cellMinWidth: 80,
- toolbar: '#toolbaruser',
- url: "/admin/project.cost_company/project_user", //数据接口
- where: {'project_id': project_id},
- page: false, //开启分页
- limit: 20,
- cols: [[ //表头
- {field: 'nickname', fixed: 'left', title: '成员姓名', width: 200, align: 'center', rowspan: 2},
- {field: 'unit_name', title: '所在单位', align: 'center', width: 200, rowspan: 2},
- {field: 'type', title: '成员类型', align: 'center', width: 200, rowspan: 2,
- templet:function (a){
- var html= "";
- if(a.type==1){
- html = "项目负责人"
- }else if(a.type==2) {
- html = "项目负责人"
- }else if(a.type==3) {
- html = "作业负责人"
- }else if(a.type==4) {
- html = "作业成员"
- }else if(a.type==5) {
- html = "项目负责人"
- }else if(a.type==6) {
- html = "项目负责人"
- }
- return html;
- }},
- {field: 'unit_type', title: '单位类型', align: 'center', width: 200, rowspan: 2},
- {field: 'mobile', title: '手机号码', align: 'center', rowspan: 2},
- {field: 'email', title: '单位邮箱', align: 'center', rowspan: 2},
- // {
- // title: '操作', fixed: 'right', align: 'center', width: 150, rowspan: 2, templet: function (d) {
- // var html = '<span class="layui-btn layui-btn-danger layui-btn-xs" lay-event="remove">移除</span>';
- // return html;
- // }
- // }
- ]]
- });
- //触发事件
- table.on('toolbar(user)', function (obj) {
- var checkStatus = table.checkStatus(obj.config.id);
- switch (obj.event) {
- case 'add':
- employeepicker.init({
- type: 0,
- department_url: "/admin/project.cost_company/get_department_tree",
- employee_url: "/admin/project.cost_company/get_employee",
- callback: function (ids, names, dids, departments) {
- let callback = function (e) {
- layer.msg(e.msg);
- if (e.code == 0) {
- layui.userTable.reload();
- }
- }
- tool.post("/admin/project.cost_company/add_user_company_type1", {id: ids, project_id: project_id,type:1}, callback);
- }
- })
- break;
- case "adda":
- employeepicker.init({
- type: 0,
- department_url: "/admin/project.cost_company/get_department_tree",
- employee_url: "/admin/project.cost_company/get_employee",
- callback: function (ids, names, dids, departments) {
- let callback = function (e) {
- layer.msg(e.msg);
- if (e.code == 0) {
- layui.userTable.reload();
- }
- }
- tool.post("/admin/project.cost_company/add_user_company_type2", {id: ids, project_id: project_id,type:2}, callback);
- }
- })
- break;
- };
- });
- //监听行工具事件
- table.on('tool(user)', function (obj) {
- let postData = {"id": obj.data.id,"project_id":project_id,"type":obj.data.type};
- let callback = function (e) {
- layer.closeAll();
- layer.msg(e.msg);
- if (e.code == 0) {
- layui.userTable.reload();
- }
- }
- if (obj.event === 'remove') {
- if(obj.data.type == 3 || obj.data.type == 4){
- console.log(postData);
- layer.confirm('确定要移除该项目成员吗?', {icon: 3, title: '提示'}, function (index) {
- tool.delete("/admin/project.cost_company/remove_user_company", postData, callback);
- });
- }else {
- layer.msg("该成员不可移除");
- }
- }
- if (obj.event === 'recover') {
- console.log(postData);
- layer.confirm('确定要恢复该项目成员吗?', {icon: 3, title: '提示'}, function (index) {
- tool.post("/project/api/recover_user", postData, callback);
- });
- }
- return;
- });
- }
- </script>
- </div>
- <?php endif; if($project_five['project_log'] == 1): ?>
- <div class="layui-tab-item">
-
- <div class="layui-form p-4" style="height: 80vh;overflow: auto">
- <?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;?>
-
- <div class="layui-timeline" style="padding-left: 0;">
- <div class="layui-timeline-item">
- <i class="layui-icon layui-timeline-axis"></i>
- <div class="layui-timeline-content layui-text">
- <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>
- <p>
- <span><?php echo htmlentities($vo['nickname']); ?></span><span> <b><?php echo htmlentities($vo['action']); ?></b> </span> <span style="color: #187FDD;"> 《<?php echo htmlentities($vo['content']); ?>》</span>
- </p>
- </div>
- </div>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- </div>
- </div>
- </div>
- <?php endif; ?>
- </div>
-
- </div>
- <!--zjl,懂的都懂-->
- <script>
- var project_id = '<?php echo htmlentities($project_id); ?>'
- const moduleInit = ['tool','employeepicker'];
- function gouguInit() {
- var innow = false;
- var form = layui.form,tool=layui.tool,upload = layui.upload;
- var element = layui.element;
- first()
- element.on('tab(test-hash)', function (data) {
- let index = data.index;
- if (index == 1) {
- comment()
- } else if (index == 2) {
- record(index);
- } else if (index == 3) {
- report(index);
- } else if (index == 4) {
- project_user(index)
- } else if (index == 5) {
- } else if (index == 6) {
- }
- });
- //看报告
- $('[lay-data="readreport"]').click(function (){
- var id = $(this).attr('data-id');
- parent.layui.tool.side('/admin/project.report/view/id/' + id); // 项目id
- })
- }
- </script>
- <!-- /主体 -->
- <!-- 底部 -->
-
- <div class="footer">
- 逸管工程项目管理系统 © www.yiguanfep.com
- <img src="/static/home/images/police.png" alt="" style="width:14.5px;height:16px;">
- <a href="https://beian.mps.gov.cn/#/query/websearch?code=45030202000160 " rel="\"noreferrer'target=\”blank\"" onclick="window.open(this.href); return false;">桂公网安备45030202000160号</a>
- <a href="https://beian.miit.gov.cn/#/Integrated/index" onclick="window.open(this.href); return false;">桂ICP备17000971号</a>
- </div>
-
-
- <!-- /底部 -->
-
- <!-- 脚本 -->
-
-
- <!-- /脚本 -->
-
- <!-- <script src="/static/assets/layui/layui.js"></script> -->
- <script src="/static/assets/layui/layui.js"></script>
- <script src="/static/assets/third_party/echart/echarts.min.js"></script>
- <script src="/static/assets/gougu/gouguInit.js"></script>
- <script src="https://unpkg.com/pinyin-pro"></script>
- <script>
-
- var { pinyin } = pinyinPro;
- </script>
-
-
- <!-- 统计代码 -->
-
- <!-- /统计代码 -->
- </body>
- </html>
|