1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011 |
- <?php /*a:10:{s:65:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost\read.html";i:1723541257;s:59:"D:\phpstudy_pro\WWW\caiping\app\admin\view\common\base.html";i:1723541257;s:77:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost\project_overview.html";i:1723541257;s:73:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost\project_user.html";i:1723541257;s:75:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost\project_report.html";i:1723541257;s:76:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost\project_contact.html";i:1723541257;s:77:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost\project_comments.html";i:1723541257;s:75:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost\project_record.html";i:1723541257;s:80:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost\project_appointment.html";i:1723541257;s:72:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\projectlog\index.html";i:1723541257;}*/ ?>
- <!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{
- width: 100%;
- height: 25px;
- text-align: center;
- margin-bottom: 0 !important;
- 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 {
- width: fit-content;
- margin: 0.3vw 1.5vw 1vw 1.5vw;
- padding: 0.5vw 0vw;
- text-indent: 1.2em;
- line-height: 2.1vh;
- background-color: rgb(255, 255, 255);
- border-radius: 0.5vw;
- box-shadow: 0.19vw 0.16vw 0.4vw 0.03vw rgba(0, 0, 0, 0.13);
- }
- .log_content_img img {
-
- /* width: 10%; */
- border-radius: 0.5vw;
- margin: 0.3vw 0;
- padding-right: 18px;
- padding-bottom: 7px;
- padding-left: 2px;
- }
- .log_item_top {
- height: 70%;
- overflow: scroll;
- }
- .log_item_top {
- height: 60vh;
- /* background-color: rgb(255, 255, 255); */
- }
- .log_item_bottom {
- display: flex;
- margin: 0 1.5vw;
- }
- .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;
- }
- .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: 11vw;
- text-align: center;
- }
- /* 倒计时开始*/
- .countdown {
- height: 8.5vh;
- width: 6.5vw;
- font-size: 1vw;
- text-align: center;
- border: 1px solid #eee;
- }
- .countdown-top {
- height: 3.5vh;
- line-height: 3.5vh;
- border-bottom: 1px solid #eee;
- color: #fff;
- background-color: rgb(23, 145, 233);
- border-bottom: 1px solid rgb(23, 145, 233);
- font-size: 0.95vw;
- padding: 0;
- margin: 0;
- }
- .countdown-bottom {
- height: 5vh;
- line-height: 5vh;
- padding: 0;
- margin: 0;
- background-color: #fff;
- }
- /* 倒计时结束 */
- /* 项目名称下面的字体变大 */
- .ziti{
- font-size: 1vw;
- }
- </style>
- </head>
- <body class="main-body">
- <!-- 主体 -->
-
- <div class="layui-form p-4">
- <div class="layui-row layui-col-space12">
- <div class="layui-col-md10" style="padding: 0;">
- <div class="layui-col-md12" style="padding: 8px;">
- <h1><?php echo htmlentities($detail['project_name']); ?></h1>
- </div>
- <div class="layui-col-md3 ziti" style="padding: 8px;font-size:1.1vw;">
- <?php echo htmlentities($detail['project_num']); ?>
- </div>
- <div class="layui-col-md3 ziti" style="padding: 8px;font-size:1.1vw;">
- <?php if($detail['unit_type']==0): ?>
- <?php echo htmlentities($detail['review_unit_name']); elseif($detail['unit_type']==2): ?>
- <?php echo htmlentities($detail['entrust_unit_name']); ?>
- <?php endif; ?>
- </div>
- <div class="layui-col-md3 ziti" style="padding: 8px;font-size:1.1vw;">
- <?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; ?>
- <?php endif; ?>
- </div>
- </div>
- <div class="layui-col-md1" style="padding: 0;">
- <div class="layui-card countdown">
- <div class="countdown-top" style="font-weight: 600;font-size:1.1vw;">
- <?php if($detail['project_end_time']>time()): ?>剩 余<?php else: ?>逾 期<?php endif; ?>
- </div>
- <div class="countdown-bottom" style="font-size:1.1vw;">
- <?php echo htmlentities($advent_time); ?>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="layui-tab layui-tab-card" lay-filter="test-hash" style="margin: 0;">
- <ul class="layui-tab-title" id="ullist">
- <li class="layui-this" lay-id="11">项目概览</li>
-
- <?php if($project_five['project_user'] == 1): ?>
- <li data-load="" data-id="4">
- 项目人员<?php if($red['user'] == 1): ?> <span class="layui-badge-dot hongdian"></span><?php endif; ?>
- </li>
- <?php endif; if($project_five['project_report'] == 1): ?>
- <li data-load="" data-id="3">
- 项目报告<?php if($red['report'] == 1): ?> <span class="layui-badge-dot hongdian"></span><?php endif; ?>
- </li>
- <?php endif; if($project_five['project_contact'] == 1): ?>
- <li data-load="" data-id="7">
- 联系函<?php if($red['contact'] == 1): ?> <span class="layui-badge-dot hongdian"></span><?php endif; ?>
- </li>
- <?php endif; if($project_five['project_comments'] == 1): ?>
- <li lay-id="22" data-id="1">
- 作业日志<?php if($red['comment'] == 1): ?> <span class="layui-badge-dot hongdian"></span><?php endif; ?>
- </li>
- <?php endif; if($project_five['project_record'] == 1): ?>
- <li data-load="" data-id="2">
- 工作记录
- </li>
- <?php endif; ?>
-
- <li data-load="" data-id="8">预约看现场</li>
-
- <?php if($project_five['project_log'] == 1): ?>
- <li data-load="" data-id="5">
- 项目动态
- </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;
- }
- .heading{
- background-color: rgb(241, 241, 241);
- }
- .heading th, .form td{
- height: 54.8px;
- border-color: #e2e2e2;
- }
- .heading-1 td{
- border-color: #e2e2e2;
- display: flex;
- justify-content: center;
- }
-
- #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 else: ?>编制<?php endif; ?>
- <!-- <div>
- <select name="type" lay-verify="required" lay-filter="aihao">
- <option value="1">审核</option>
- <option value="2">编制</option>
- </select>
- </div> -->
- </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
- || $field['construction_unit'] == 1 || $field['construction_head'] == 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>
- <tr>
- <?php if($field['construction_unit'] == 1): ?>
- <th class="form-title" colspan="1">施工单位</th>
- <th colspan="1"><?php echo htmlentities($detail['construction_unit']); ?></th>
- <?php endif; if($field['construction_head'] == 1): ?>
- <th class="form-title" colspan="1">负责人</th>
- <th colspan="6"><?php echo htmlentities($detail['construction_head']); ?></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
- || $field['sent_review_approver_amount'] == 1 || $field['construction_approver_amount'] == 1 || $field['report_time'] == 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="2"><?php echo htmlentities($detail['sent_review_amount']); ?></th>
- <?php endif; if($field['authorize_amount'] == 1): ?>
- <th class="form-title" colspan="1">审定金额(元)</th>
- <th colspan="2"><?php echo htmlentities($detail['authorize_amount']); ?></th>
- <?php endif; if($field['review_add_reduce_amount'] == 1): ?>
- <th class="form-title" colspan="1">审增金额(元)</th>
- <th colspan="2"><?php echo htmlentities($detail['review_add_amount']); ?></th>
- <?php endif; ?>
-
- </tr>
- <tr>
- <?php if($field['review_add_reduce_amount'] == 1): ?>
- <th class="form-title" colspan="1">审减金额(元)</th>
- <th colspan="2"><?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="2"><?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="2"><?php echo htmlentities($detail['sent_review_cost']); ?></th>
- <?php endif; ?>
- </tr>
- <tr>
- <?php if($field['sent_review_approver_amount'] == 1): ?>
- <th class="form-title forright" colspan="1" style="font-size:13px;">
- 送审单位承担审核费(元)
- </th>
- <th colspan="2"><?php echo htmlentities($detail['sent_review_approver_amount']); ?></th>
- <?php endif; if($field['construction_approver_amount'] == 1): ?>
- <th class="form-title forright" colspan="2">
- 施工单位负责核减超5%评审费部分(元)
- </th>
- <th colspan="2"><?php echo htmlentities($detail['construction_approver_amount']); ?></th>
- <?php endif; if($field['report_time'] == 1): ?>
- <th class="form-title" colspan="1">报告时间</th>
- <th colspan="1" style="text-align: left; padding-left: 3.5vw;"><?php if($detail['report_time']!=0): ?><?php echo htmlentities(date("Y-m-d",!is_numeric($detail['report_time'])? strtotime($detail['report_time']) : $detail['report_time'])); ?><?php endif; ?></th>
- <?php endif; ?>
- </tr>
- <?php endif; ?>
- <tr>
- <th colspan="9" class="forleft">相关附件</th>
- </tr>
- <tr>
- <th colspan="9" class="fujianimg" style="padding: 0px 0;">
- <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="heading-1">
- <tr>
- <th class="layui-td-gray-1" colspan=9 style="height: 36px;font-weight: 500;"> 项目报告</th>
- </tr>
-
- <?php if(!empty($report)): ?>
- <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($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>
- <td><?php echo htmlentities($vo['id']); ?></td>
- <td style="text-align: left;"><a data-id="<?php echo htmlentities($vo['id']); ?>" lay-data="readreport" href="" style="color: #187FDD;"><?php echo htmlentities($vo['title']); ?></a></td>
- <td> <?php switch($vo['type']): case "0": ?>初审报告<?php break; case "1": ?>对数报告<?php break; case "2": ?>审定报告<?php break; default: ?>未知
- <?php endswitch; ?>
- </td>
- <td><?php echo htmlentities(date('Y-m-d',!is_numeric($vo['create_time'])? strtotime($vo['create_time']) : $vo['create_time'])); ?></td>
- <td><?php echo htmlentities($vo['nickname']); ?></td>
- </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 type="text/javascript" src="/static/assets/layui//layui.js"></script>-->
- <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));
- });
- })
- }
- </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_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 type="text/html" id="toolbaruser">
- <div class="layui-btn-container">
- <button class="layui-btn layui-btn-sm" lay-event="add">+ 新增送审单位成员</button>
- <button class="layui-btn layui-btn-sm" lay-event="adda">+ 新增施工单位成员</button>
- </div>
- </script> -->
- <script>
- function project_user() {
- let tool = layui.tool, table = layui.table, employeepicker = layui.employeepicker;
- //项目成员
- parent.layui.userTable = table.render({
- elem: '#user',
- title: '项目成员列表',
- cellMinWidth: 80,
- toolbar: '#toolbaruser',
- url: "/admin/project.cost/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_yezhu_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) {
- parent.layui.userTable.reload();
- }
- }
- tool.post("/admin/project.cost_company/add_user", {
- id: ids,
- project_id: project_id,
- type: 2
- }, callback);
- }
- })
- break;
- case "adda":
- let callback = function (){
- layer.msg(e.msg);
- if (e.code == 0) {
- parent.layui.userTable.reload();
- }
- }
- parent.layui.tool.side('/admin/project.cost/addconstructionpeople?project_id=' + project_id,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) {
- parent.layui.userTable.reload();
- }
- }
- if (obj.event === 'remove') {
- if (obj.data.type == 3 || obj.data.type == 4) {
- let callback = function (e) {
- layer.closeAll();
- layer.msg(e.msg);
- if (e.code == 0) {
- parent.layui.userTable.reload();
- }
- }
- layer.confirm('确定要移除该项目成员吗?', {icon: 3, title: '提示'}, function (index) {
- tool.delete("/admin/project.cost_company/remove_user", postData, callback);
- });
- }else if(obj.data.type == 5){
- let callback = function (e) {
- layer.closeAll();
- layer.msg(e.msg);
- if (e.code == 0) {
- parent.layui.userTable.reload();
- }
- }
- layer.confirm('确定要移除该项目成员吗?', {icon: 3, title: '提示'}, function (index) {
- tool.delete("/admin/project.cost/remove_construction_user", postData, callback);
- });
- } else if(obj.data.type == 6){
- let callback = function (e) {
- layer.closeAll();
- layer.msg(e.msg);
- if (e.code == 0) {
- parent.layui.userTable.reload();
- }
- }
- layer.confirm('确定要移除该项目成员吗?', {icon: 3, title: '提示'}, function (index) {
- tool.delete("/admin/project.cost/remove_sent_review", {"id": obj.data.id, "project_id": project_id, "type": obj.data.type,"nickname":obj.data.nickname}, callback);
- });
- }
- else {
- console.log(postData);
- layer.msg("该成员不可移除");
- }
- }
- return;
- });
- }
- </script>
- </div>
- <?php endif; if($project_five['project_report'] == 1): ?>
- <div class="layui-tab-item">
- <div class="p-3 bg-white">
- <table class="layui-hide" id="report" lay-filter="report"></table>
- </div>
- <script>
- function report() {
- let tool = layui.tool, table = layui.table;
- var allcount;
- //项目任务
- parent.layui.reportTable = table.render({
- elem: '#report',
- title: '文档列表',
- toolbar: '#toolbarreport',
- 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",
- 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 == 5) {
- 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>";
- }
- return abc;
- }
- },
- {field: 'create_time', title: '创建时间', align: 'center', width: 150},
- {field: 'admin_name', title: '创建人', align: 'center', width: 100},
- {field: 'right', fixed: 'right', title: '操作', width: 100, align: 'center',
- templet: function (d) {
- var html = '<div class="layui-btn-group">';
- var btn1 = `<a class="layui-btn layui-btn-xs" href=${d.filepath} download=${d.name} lay-event="">下载</a>`;
- return html + btn1 + '</div>';
- }
- }
- ]]
- });
- //触发事件
- table.on('toolbar(report)', 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(report)', function (obj) {
- var data = obj.data; //获得当前行数据
- if (obj.event === 'detail') { //查看
- let url = '/admin/project.report/view?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
- });
- }
- })
- }
- </script>
- </div>
- <?php endif; if($project_five['project_contact'] == 1): ?>
- <div class="layui-tab-item">
- <div class="p-3 bg-white">
- <table class="layui-hide" id="contact" lay-filter="contact"></table>
- </div>
- <div id="selectBox2" style="display: none;">
- <div id="companySelect2"></div>
- <button id="cc">1111</button>
- </div>
- <!-- <script type="text/html" id="toolbarcontact">
- <div class="layui-btn-container">
- <button class="layui-btn layui-btn-sm" lay-event="add">+ 新增联系函</button>
- </div>
- </script> -->
- <script>
- function contact() {
- let tool = layui.tool, table = layui.table;
- //项目任务
- var allcount;
- parent.layui.contactTable = table.render({
- elem: '#contact',
- title: '文档列表',
- toolbar: '#toolbarcontact',
- 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.contact/conlist",
- 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 == 5) {
- 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: 'audit_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 == 8) {
- abc = "<span>回复</span>";
- }
- return abc;
- }
-
- },
- {field: 'create_time', title: '创建时间', align: 'center', width: 150},
- {field: 'admin_name', title: '创建人', align: 'center', width: 100},
- {field: 'approver', title: '审批人', align: 'center', width: 100},
- {field: 'right', fixed: 'right', title: '操作', width: 100, align: 'center',
- templet: function (d) {
- var html = '<div class="layui-btn-group">';
- var btn1 = `<a class="layui-btn layui-btn-xs layui-bg-blue" href=${d.filepath} download=${d.name} lay-event="">下载</a>`;
- var btn2 = '';
- if (d.status == 0) {
- btn2 = '<span class="layui-btn layui-btn-xs" lay-event="agree_contact">同意</span><span class="layui-btn layui-btn-danger layui-btn-xs" lay-event="un_contact">拒绝</span>';
- } else if (d.status == 3) {
- btn2 = '<span class="layui-btn layui-btn-xs" lay-event="agree_del">同意</span><span class="layui-btn layui-btn-danger layui-btn-xs" lay-event="unagree_del">拒绝</span>';
- }
- return html + btn1 + btn2 + '</div>';
- }
- }
- ]]
- });
- //触发事件
- table.on('toolbar(contact)', function (obj) {
- var checkStatus = table.checkStatus(obj.config.id);
- switch (obj.event) {
- case 'add':
- parent.layui.tool.side('/admin/project.contact/add?project_id=' + project_id); // 项目id
- break;
- }
- });
- table.on('tool(contact)', function (obj) {
- var data = obj.data; //获得当前行数据
-
- if (obj.event === 'detail') { //查看
- let url = '/admin/project.contact/view?id=' + data.id;// 项目id
- parent.layui.tool.side(url);
- }
- if (obj.event === 'agree_contact') {
- let callback = function (e) {
- layer.msg(e.msg)
- parent.layui.reportTable.reload();
- }
- tool.post('/admin/project.contact/agree_contact', {id: data.id,else_id:data.else_id}, callback);
- }
- if (obj.event === 'un_contact') {
- var ttxx = layer.prompt({
- title: '请输入<span style="color: red">拒绝</span>原因',
- formType: 2,
- area: ['35vw', '15vw']
- }, function (text, index) {
-
- let callback = function (e) {
- layer.msg(e.msg)
- parent.layui.reportTable.reload();
- setTimeout(layer.close(index),1000);
- }
- tool.post('/admin/project.contact/un_contact', {id: data.id,else_id:data.else_id,audit_remark:text}, callback);
- });
- }
- if (obj.event === 'agree_del') {
- let callback = function (e) {
- layer.msg(e.msg)
- parent.layui.reportTable.reload();
- }
- tool.post('/admin/project.contact/agree_delete', {id: data.id,else_id:data.else_id}, callback);
- }
- if (obj.event === 'unagree_del') {
- var ttxx = layer.prompt({
- title: '请输入<span style="color: red">拒绝</span>原因',
- formType: 2,
- area: ['35vw', '15vw']
- }, function (text, index) {
-
- let callback = function (e) {
- layer.msg(e.msg)
- parent.layui.reportTable.reload();
- setTimeout(layer.close(index),1000);
- }
- tool.post('/admin/project.contact/un_delete', {id: data.id,else_id:data.else_id,audit_remark:text}, callback);
- });
- }
- })
- }
- </script>
- </div>
- <?php endif; 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" src=""/>
- </div>
- <!-- <hr class="ws-space-16" style="border: 1.5px solid #e2e2e2 !important;"> -->
- </div>
- <!--zjl,懂的都懂-->
- <script src="/static/home/js/jquery-3.4.1.min.js"></script>
- <script>
- function comment() {
- var form = layui.form, tool = layui.tool, upload = layui.upload;
- //头像上传
- var uploadInst = upload.render({
- elem: '#uploadBtn'
- , url: '/admin/api/upload'
- , done: function (e) {
- //如果上传失败
- if (e.code == 1) {
- return layer.msg('上传失败');
- }
- //上传成功
- $('#uploadBtn input').attr('value', e.data.filepath);
- $('#uploadBtn img').attr('src', e.data.filepath);
- $('#imgdel').show();
- }
- });
- $('#imgdel').click(() => {
- $('#uploadBtn input').attr('value', '');
- $('#uploadBtn img').attr('src', '/static/home/images/upload.png');
- $('#imgdel').hide();
- return false;
- })
- $('#uploadBtn').click(() => {
- console.log(1)
- return false;
- })
- //监听提交
- form.on('submit(webform)', function (data) {
- let callback = function (e) {
- layer.msg(e.msg);
- $("#text").val("");
- $('#uploadBtn input').attr('value', '');
- $('#imgdel').hide();
- $('#uploadBtn img').attr('src', '/static/home/images/upload.png');
- $("#comments").load(location.href + " #comments>*", "type=2");
-
- }
- if (data.field.content === '' && data.field.thumb === '') {
- console.log(data.field)
- layer.msg("请完善内容");
- } else {
- data.field["project_id"] = project_id;
- tool.post("/admin/project.comment/add", 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">
-
- <style>
- /* 自定义样式 */
- .layui-table-testcss .layui-table-header,
- .layui-form-testcss > div{margin-bottom: 6px;}
- </style>
- <div class="p-3 bg-white">
- <table class="layui-hide" id="record" lay-filter="record"></table>
- </div>
- <!-- <script type="text/html" id="toolbarrecord">
- <div class="layui-btn-container">
- <button class="layui-btn layui-btn-sm" lay-event="add">+ 新建记录</button>
- </div>
- </script> -->
- <script>
- function 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 // 当前页数据
- };
- },
- className: 'layui-table-testcss', // 用于给表格主容器追加 css 类名
- // lineStyle: 'height: 151px;', // 定义表格的多行样式
- url: "/admin/project.record/cplist",
- 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},
- {field: 'right', fixed: 'right', title: '操作', width: 100, align: 'center',
- templet: function (d) {
- var html = '<div class="layui-btn-group">';
- var btn1 = '<span class="layui-btn layui-btn-xs" lay-event="edit">编辑</span>';
- var btn2 = '<span class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</span>';
- return html + btn1 + btn2 + '</div>';
- }
- }
- ]]
- });
- //触发事件
- 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?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; ?>
-
- <div class="layui-tab-item">
-
- <div class="p-3 bg-white">
- <table class="layui-hide" id="appointment" lay-filter="appointment"></table>
- </div>
- <script>
- function appointment() {
- let tool = layui.tool, table = layui.table;
- //项目任务
- var allcount;
- parent.layui.appointmentTable = table.render({
- elem: '#appointment',
- title: '文档列表',
- toolbar: '#toolbarappointment',
- 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.appointment/datalist",
- where: {'project_id': project_id},
- page: false, //开启分页
- 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: 'appointment_time', title: '预约时间',align: 'center', width: 200},
- {field: 'dispatch_num', title: '派遣人数', align: 'center', width: 100},
- {field: 'address_or_remark', title: '地址/备注', align: 'center'},
- {field: 'sponsor_name', title: '发起人', align: 'center', width: 100},
- {field: 'approval_name', title: '审批人', align: 'center', width: 100},
- {field: 'audit_status', title: '状态', align: 'center', width: 100,templet:function(d){
- if(d.audit_status==0){
- return "待审核"
- }else if(d.audit_status==1){
- return "通过"
- }else if(d.audit_status==2){
- return "拒绝"
- }
- }},
- {field: 'audit_remark', title: '回执', align: 'center', width: 150},
-
- ]]
- });
- //触发事件
- table.on('toolbar(appointment)', function (obj) {
- var checkStatus = table.checkStatus(obj.config.id);
- switch (obj.event) {
- case 'add':
- parent.layui.tool.side('/admin/project.appointment/add?project_id=' + project_id); // 项目id
- break;
- }
- });
- table.on('tool(appointment)', function (obj) {
- var data = obj.data; //获得当前行数据
- console.log(data);
- if (obj.event === 'agree') {
- layer.prompt({
- title: '请输入<span style="color: green">回执</span>',
- formType: 2,
- area: ['35vw', '15vw']
- }, function (text, index) {
- let callback = function (e) {
- parent.layui.appointmentTable.reload()
- layer.msg(e.msg);
- setTimeout(function () {
- layer.close(index);
- }, 2000)
- }
- if (text !== "") {
- tool.post("/admin/project.appointment/agree", {id: data.id,audit_remark:text,project_id:data.project_id}, callback);// 项目id
- } else {
- layer.msg("回执不能为空")
- }
- })
- return;
- }
- if (obj.event === 'disagree') {
- layer.prompt({
- title: '请输入<span style="color: red">回执</span>',
- formType: 2,
- area: ['35vw', '15vw']
- }, function (text, index) {
- let callback = function (e) {
- parent.layui.appointmentTable.reload()
- layer.msg(e.msg);
- setTimeout(function () {
- layer.close(index);
- }, 2000)
- }
- if (text !== "") {
- tool.post("/admin/project.appointment/disagree", {id: data.id,audit_remark:text,project_id:data.project_id}, callback);// 项目id
- } else {
- layer.msg("回执不能为空")
- }
- })
-
-
- return;
- }
- })
- }
- </script>
- </div>
-
- <?php 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()
- eliminate(1,$(this))
- element.on('tab(test-hash)', function (data) {
- let index = $(this).attr('data-id');
- if (index == 1) {
- eliminate(2,$(this))
- comment()
- } else if (index == 2) {
- eliminate(3,$(this))
- record(index);
- } else if (index == 3) {
- eliminate(4,$(this))
- report(index);
- } else if (index == 4) {
- eliminate(5,$(this))
- project_user(index)
- } else if (index == 5) {
- } else if (index == 6) {
- }else if (index == 7) {
- eliminate(6,$(this))
- contact(index)
- } else if (index == 8) {
- appointment();
- }
- });
- //清除小红点
- function eliminate(type,lidom){
- let call=function (e){
- //写清除红点的js
- $(lidom[0]).find('.hongdian').css('display','none')
- let diannum = $('.hongdian').length
- let forcount = 0;
- if(diannum !== 0){
- for (let i = 0; i < diannum ; i++){
- let display = $('.hongdian')[i];
- console.log($(display).css('display'))
- if($(display).css('display') !== 'none'){
- forcount++
- }
- }
- }
- if(diannum == 0 || forcount == 0){
- parent.layui.pageTable.reloadData({
- done: function () {
- parent.hongdianselect()
- }
- })
- }
- }
- tool.post("/admin/project.api/eliminate", {type: type,project_id:project_id},call)
- }
- //看报告
- $('[lay-data="readreport"]').click(function (){
- var id = $(this).attr('data-id');
- parent.layui.tool.side('/admin/project.report/view?id=' + id); // 项目id
- })
- $('[lay-data="readContract"]').click(function (){
- var id = $(this).attr('data-id');
- parent.layui.tool.side('/admin/contract.index/view?id=' + id + '&type=1'); // contract 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>
|