123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923 |
- <?php /*a:10:{s:73:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_company\read.html";i:1723541257;s:59:"D:\phpstudy_pro\WWW\caiping\app\admin\view\common\base.html";i:1723541257;s:85:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_company\project_overview.html";i:1723541257;s:81:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_company\project_user.html";i:1723541257;s:83:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_company\project_report.html";i:1723541257;s:84:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_company\project_contact.html";i:1723541257;s:80:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_company\project_log.html";i:1723541257;s:83:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_company\project_record.html";i:1723541257;s:88:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_company\project_appointment.html";i:1723541257;s:72:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\projectlog\index.html";i:1723541257;}*/ ?>
- <!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.3vw 0.4vw 0.03vw rgba(0, 0, 0, 0.13);
- }
- .log_content_color {
- /* background-color: rgb(250,250,250); */
- }
- .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;
- /* 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: 0;
- 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;
- }
- .filelist:hover li{
- /* display: initial; */
- }
- /* 倒计时 */
- .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_head_name']); elseif($detail['unit_type']==2): ?>
- <?php echo htmlentities($detail['entrust_unit_name']); else: ?>
- <?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">
- <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">
- 工作记录<?php if($red['record'] == 1): ?> <span class="layui-badge-dot hongdian"></span><?php endif; ?>
- </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;
- }
- /* #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_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_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_contact'] == 1): ?>
- <div class="layui-tab-item">
- <div class="p-3 bg-white">
- <table class="layui-hide" id="contact" lay-filter="contact"></table>
- </div>
- <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_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.audit_status == 0 || d.audit_status == 2){
- html = '<a class="side-a" lay-event="detail" lay-event="detail">' + d.title + '</a>';
- }else{
- html = '<a class="side-a" lay-event="detail" style="color: grey;text-decoration:line-through" 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 html = '';
- if(d.audit_status == 0){
- html = '<span class="layui-badge layui-bg-orange" style="background-color: #ffb800">未审核</span> ';
- }else if(d.audit_status == 1){
- html = '<span class="layui-badge layui-bg-red" style="background-color: #5825aa">未通过</span> ';
- }else{
- html = '<span class="layui-badge layui-bg-green" style="background-color: #d37000">已通过</span> ';
- }
- return html;
- }
-
- },
- {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" lay-event="detail">查看</a>`;
-
- var btn3 = `<a class="layui-btn layui-btn-xs" href=${d.filepath} download=${d.name} lay-event="">下载</a>`;
-
- return html + btn1 + btn3 + '</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_company?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_company?id=' + data.id;// 项目id
- parent.layui.tool.side(url);
- }
- if (obj.event === 'edit') { //查看
- let url = '/admin/project.contact/edit_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) {
- parent.layui.contactTable.reload()
- layer.msg(e.msg);
- setTimeout(function (){
- layer.close(index);
- },2000)
- }
- tool.post("/admin/project.contact/delete_company", {id: data.id ,remark:text}, callback);// 项目id
- });
- }
- })
- }
- </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" 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; ?>
-
- <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_company",
- 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_company?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_company", {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_company", {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'];
- function gouguInit() {
- 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();
- } else if (index == 3) {
- eliminate(4,$(this))
- report();
- } else if (index == 4) {
- eliminate(5,$(this))
- project_user()
- } 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>
|