123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564 |
- {extend name="common/base"/}
- <!-- 主体 -->
- {block name="style"}
- <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>
- {/block}
- {block name="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>{$detail.project_name}</h1>
- </div>
- <div class="layui-col-md3 ziti" style="padding: 8px;font-size:1.1vw;">
- {$detail.project_num}
- </div>
- <div class="layui-col-md3 ziti" style="padding: 8px;font-size:1.1vw;">
- {if $detail.unit_type==0}
- {$detail.review_unit_name}
- {elseif $detail.unit_type==2}
- {$detail.entrust_unit_name}
- {/if}
- </div>
- <div class="layui-col-md3 ziti" style="padding: 8px;font-size:1.1vw;">
- {if $detail.maker_type==2}创建时间于:{$detail.create_time|date="Y-m-d"}
- {else}接收时间于:{if $detail.project_receive_time==0}未接收{else}{$detail.project_receive_time|date="Y-m-d"}{/if}
- {/if}
- </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;">
- {if $detail.project_end_time>time()}剩 余{else}逾 期{/if}
- </div>
- <div class="countdown-bottom" style="font-size:1.1vw;">
- {$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>
-
- {if $project_five.project_user == 1}
- <li data-load="" data-id="4">
- 项目人员{if $red.user == 1} <span class="layui-badge-dot hongdian"></span>{/if}
- </li>
- {/if}
-
- {if $project_five.project_report == 1}
- <li data-load="" data-id="3">
- 项目报告{if $red.report == 1} <span class="layui-badge-dot hongdian"></span>{/if}
- </li>
- {/if}
-
- {if $project_five.project_contact == 1}
- <li data-load="" data-id="7">
- 联系函{if $red.contact == 1} <span class="layui-badge-dot hongdian"></span>{/if}
- </li>
- {/if}
-
- {if $project_five.project_comments == 1}
- <li lay-id="22" data-id="1">
- 作业日志{if $red.comment == 1} <span class="layui-badge-dot hongdian"></span>{/if}
- </li>
- {/if}
- {if $project_five.project_record == 1}
- <li data-load="" data-id="2">
- 工作记录
- </li>
- {/if}
-
- <li data-load="" data-id="8">预约看现场</li>
-
- {if $project_five.project_log == 1}
- <li data-load="" data-id="5">
- 项目动态
- </li>
- {/if}
- </ul>
- <div class="layui-tab-content" style="padding: 16px;">
- <div class="layui-tab-item layui-show">
- {include file="/project/cost/project_overview"/}
- </div>
-
- {if $project_five.project_user == 1}
- <div class="layui-tab-item">
- {include file="/project/cost/project_user" /}
- </div>
- {/if}
-
- {if $project_five.project_report == 1}
- <div class="layui-tab-item">
- {include file="/project/cost/project_report" /}
- </div>
- {/if}
-
- {if $project_five.project_contact == 1}
- <div class="layui-tab-item">
- {include file="/project/cost/project_contact" /}
- </div>
- {/if}
- {if $project_five.project_comments == 1}
- <div class="layui-tab-item" >
- {include file="/project/cost/project_comments"/}
- </div>
- {/if}
- {if $project_five.project_record == 1}
- <div class="layui-tab-item">
- {include file="/project/cost/project_record" /}
- </div>
- {/if}
-
- <div class="layui-tab-item">
- {include file="/project/cost/project_appointment" /}
- </div>
-
- {if $project_five.project_log == 1}
- <div class="layui-tab-item">
- {include file="/project/projectlog/index" /}
- </div>
- {/if}
-
- </div>
-
- </div>
- <!--zjl,懂的都懂-->
- <script>
- var project_id = '{$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>
- {/block}
|