12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349 |
- <style>
- .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_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: 0px;
- line-height:0px;
- 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;
- height: 0 !important;
- }
- .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;
- }
- .fujianimg img {
- height: 5.5vh;
- }
- .filelist{
- width: 100%;
- overflow: auto;
- justify-content:flex-start;
- align-content: space-between;
- flex-direction: column-reverse;
- flex-wrap: wrap;
- display: flex;
- }
- .filelist li{
- padding: 0.5vw 0.8vw 0.5vw 0.8vw;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- display: inline-block;
- border-right: 1px solid #e2e2e2;
- float: left;
- }
- .filelist p{
- margin: 3px 0 5px 0;
- width: 11vw;
- overflow: hidden;
- text-overflow: ellipsis;
- text-align: center;
- }
- #filesBox2 li{
- padding: 0.5vw 0.8vw 0.5vw 0.8vw;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- display: inline-block;
- border-right: 1px solid #e2e2e2;
- float: left;
- }
- /* 倒计时 */
- .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;
- }
- #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>
- <!--业主项目审核以下-->
- {if $detail.proprietor_status<2}
- <form class="layui-form p-4">
- <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">
- <th class="form-title">项目名称 <font style="color: red !important;">*</font></th>
- <th colspan="2">
- <input type="text" name="project_name" lay-verify="required" lay-reqText="请完善项目名称" value="{$detail.project_name}"
- autocomplete="off" placeholder="请输入项目名称" class="layui-input">
- </th>
- <th class="form-title">项目编号 <font style="color: red !important;">*</font></th>
- <th colspan="2">
- <input type="text" name="project_num" lay-verify="required" lay-reqText="请完善项目编号" value="{$detail.project_num}"
- autocomplete="off" placeholder="请输入项目编号" class="layui-input">
- </th>
- <th class="form-title">工程类别</th>
- <th colspan="2">
- <select name="engineering_category" lay-verify="engineering_category" >
- <option value="">请选择工程类型</option>
- <option value="建筑物" >建筑物</option>
- <option value="交通" >交通</option>
- <option value="水利" >水利</option>
- <option value="土地整治" >土地整治</option>
- <option value="市政园林" >市政园林</option>
- <option value="信息网络" >信息网络</option>
- <option value="其他" >其他</option>
- </select>
- </th>
- </tr>
- <tr>
- <th class="form-title">项目类型<font style="color: red !important;">*</font></th>
- <th colspan="2">
- <div>
- <select name="engineering_type1" lay-verify="required">
- <option value="">请选择项目类型</option>
- <option value="1" {eq name="$detail.engineering_type1" value="1"} selected {/eq}>预算</option>
- <option value="2"{eq name="$detail.engineering_type1" value="2"} selected {/eq}>结算</option>
- <option value="3" {eq name="$detail.engineering_type1" value="3"} selected {/eq}>概算</option>
- <option value="4" {eq name="$detail.engineering_type1" value="4"} selected {/eq}>决算</option>
- <option value="5" {eq name="$detail.engineering_type1" value="5"} selected {/eq}>工程总承包(EPC)</option>
- </select>
- </div>
- </th>
- <th class="form-title">——</th>
- <th colspan="2">
- <div>
- <select name="engineering_type2" lay-verify="required">
- <option value="">请选择项目类型</option>
- <option value="1" {eq name="$detail.engineering_type2" value="1"} selected {/eq}>审核</option>
- <option value="2" {eq name="$detail.engineering_type2" value="2"} selected {/eq}>编制</option>
- </select>
- </div>
- </th>
- </tr>
- <tr>
- <th class="form-title">项目区域</th>
- <th colspan="2">
- <div>
- <div class="layui-form-item"
- style="margin-bottom: 0;display: flex;flex-direction: row;justify-content: space-between;">
- <div class="layui-input-inline" style="width: 6.5vw;">
- <select id="province" lay-filter="province" name="province"></select>
- </div>
- <div class="layui-input-inline area" style="width: 6.5vw;">
- <select id="city" lay-filter="city" name="city"></select>
- </div>
- <div class="layui-input-inline area" style="width: 6.5vw;">
- <select id="area" lay-filter="area" name="area"></select>
- </div>
- </div>
- </div>
- </th>
- </tr>
- <tr>
- <th class="form-title">资金性质</th>
- <th>
- <input type="radio" name="fiscal_nature" value="财政资金" title="财政资金" lay-filter="tax"
- {eq name="$detail.fiscal_nature" value="财政资金"} checked {/eq} >
- <input type="radio" name="fiscal_nature" value="非财政资金" title="非财政资金" lay-filter="tax"
- {eq name="$detail.fiscal_nature" value="非财政资金"} checked {/eq} >
- </th>
- <th class="form-title entrust_unit">委托单位 <font style="color: red !important;">*</font></th>
- <th colspan="2" class="entrust_unit">
- <input type="text" name="entrust_unit_name" autocomplete="off" readonly value="{$detail.entrust_unit_name}" lay-reqText="当地财评委托单位" placeholder="当地财评委托单位" class="layui-input get-entrust">
- <input type="hidden" name="entrust_unit" value="{$detail.entrust_unit}">
- </th>
- <tr>
- <th class="form-title">审批人 <font style="color: red !important;">*</font></th>
- <th colspan="2">
- <select name="sent_review_approver" lay-verify="required" lay-reqText="请选择审批人">
- <option value="">请选择审批人</option>
- {dump($person)}
- {volist name="person" id="v"}
- <option value="{$v.id}" {eq name="$detail.sent_review_approver" value="$v.id" } selected="" {/eq}>{$v.nickname}</option>
- {/volist}
- </select>
- </th>
- <th colspan="2">
- <select name="sent_review_second_approver" lay-reqText="请选择审批人">
- <option value="">请选择第二审批人(可选)</option>
- {dump($person)}
- {volist name="person" id="v"}
- <option value="{$v.id}" {eq name="$detail.sent_review_second_approver" value="$v.id"} selected="" {/eq} {if!isset($detail.sent_review_second_approver)}name=""{/if}>{$v.nickname}</option>
- {/volist}
- </select>
- </th>
- </tr>
- <tr>
- <th colspan="9" class="forleft">相关附件
- <button class="layui-btn layui-btn-xs layui-btn-danger" style="float: right;" type="button"
- id="uploadBtn">上传附件
- </button>
- </th>
- </tr>
- <tr>
- <th colspan="9" class="fujianimg" style="padding: 9px 0;">
- <div id="filesBox2">
- <div class="filelist" id="filesBigBox">
- <ul id="filesBox" style="overflow: scroll;">
- {:fileCard($file_array)}
- </ul>
- </div>
- {empty name="$file_array" }
- <div class="layui-data-none">暂无附件</div>
- {/empty}
- </div>
- </th>
- </tr>
- </table>
- <div class="py-3">
- <input type="hidden" name="id" value="{$detail.id}"/>
- {if $detail.proprietor_status==0}
- <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="add">保存</button>
- <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="save">提交</button>
- {/if}
- <!-- //审核中-->
- {if $detail.proprietor_status == 1}
- <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="withdraw">撤回</button>
- {/if}
- </div>
- </form>
- {else/}
- <!--之后的预览-->
- <form class="layui-form p-4">
- <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">
- {if $field.project_status == 1}
- <th class="form-title">项目状态</th>
- <th>
- {switch $detail.project_status}
- {case 1}立项中{/case}
- {case 2}审批中{/case}
- {case 3}待接收{/case}
- {case 4}待分配{/case}
- {case 5}作业中{/case}
- {case 6}归档中{/case}
- {case 7}退审中{/case}
- {case 8}已归档{/case}
- {case 9}已退审{/case}
- {default /}未知
- {/switch}
- </th>
- {/if}
- {if $field.project_name == 1}
- <th class="form-title">项目名称</th>
- <th colspan="3">{$detail.project_name}</th>
- {/if}
- {if $field.project_num == 1}
- <th class="form-title">项目编号</th>
- <th colspan="2">{$detail.project_num}</th>
- {/if}
- </tr>
- <tr>
- {if $field.project_time == 1}
- <th class="form-title">项目周期</th>
- <th colspan="8" style="text-align: left; padding-left: 3.5vw;">{if $detail.project_start_time != null&& $detail.project_end_time != null}{$detail.project_start_time|date="Y-m-d"} 至 {$detail.project_end_time|date="Y-m-d"}{/if}</th>
- {/if}
- </tr>
- <tr>
- {if $field.engineering_type == 1}
- <th class="form-title">工程类型</th>
- <th>
- {if $detail.engineering_type1==1}
- 预算
- {elseif $detail.engineering_type1==2}
- 结算
- {elseif $detail.engineering_type1==3}
- 概算
- {elseif $detail.engineering_type1==4}
- 决算
- {elseif $detail.engineering_type1==5}
- 工程总承包(EPC)
- {/if}
- </th>
- <th class="form-title">——</th>
- <th>
- {if $detail.engineering_type2==1}审核{else}编制{/if}
- </th>
- {/if}
- {if $field.engineering_category == 1}
- <th class="form-title">工程类别</th>
- <th>{$detail.engineering_category}</th>
- {/if}
- {if $field.project_region == 1}
- <th class="form-title">项目区域</th>
- <th colspan="2">
- {$detail.province}-{$detail.city}-{$detail.area}
- </th>
- {/if}
- </tr>
- <tr>
- {if $field.fiscal_nature == 1}
- <th class="form-title">资金性质</th>
- <th>{$detail.fiscal_nature}</th>
- {/if}
- {if $field.project_scale == 1}
- <th class="form-title">项目规模</th>
- <th colspan="3">{$detail.project_scale}</th>
- {/if}
- {if $field.charge_standard == 1}
- <th class="form-title">收费标准</th>
- <th colspan="2">{$detail.charge_standard}</th>
- {/if}
- </tr>
- {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>
- {if $field.entrust_unit == 1}
- <th class="form-title">委托单位</th>
- <th>{$detail.entrust_unit_name}</th>
- {/if}
- {if $field.entrust_head == 1}
- <th class="form-title">负责人</th>
- <th>{$detail.entrust_maker_name}</th>
- {/if}
- {if $field.sent_review_unit == 1}
- <th class="form-title">送审单位</th>
- <th>{$detail.sent_review_unit_name}</th>
- {/if}
- {if $field.sent_review_head == 1}
- <th class="form-title">负责人</th>
- <th colspan="2">{$detail.sent_review_head_name}</th>
- {/if}
- </tr>
- <tr>
- {if $field.review_unit == 1}
- <th class="form-title">评审机构</th>
- <th>{$detail.review_unit_name}</th>
- {/if}
- {if $field.review_head == 1}
- <th class="form-title">项目负责人</th>
- <th>{$detail.review_head_name}</th>
- {/if}
- {if $field.operate_name == 1}
- <th class="form-title">作业负责人</th>
- <th>{$detail.operate_head_name}</th>
- {/if}
- {if $field.operate_team_names == 1}
- <th class="form-title">作业成员</th>
- <th colspan="2">{$detail.operate_team_names}</th>
- {/if}
- </tr>
- <tr>
- {if $field.construction_unit == 1}
- <th class="form-title" colspan="1">施工单位</th>
- <th colspan="1">{$detail.construction_unit}</th>
- {/if}
- {if $field.construction_head == 1}
- <th class="form-title" colspan="1">负责人</th>
- <th colspan="6">{$detail.construction_head}</th>
- {/if}
- </tr>
- {/if}
- {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>
- {if $field.sent_review_amount == 1}
- <th class="form-title" colspan="1">送审金额(元)</th>
- <th colspan="2">{$detail.sent_review_amount}</th>
- {/if}
- {if $field.authorize_amount == 1}
- <th class="form-title" colspan="1">审定金额(元)</th>
- <th colspan="2">{$detail.authorize_amount}</th>
- {/if}
- {if $field.review_add_reduce_amount == 1}
- <th class="form-title" colspan="1">审增金额(元)</th>
- <th colspan="2">{$detail.review_add_amount}</th>
- {/if}
- </tr>
- <tr>
- {if $field.review_add_reduce_amount == 1}
- <th class="form-title" colspan="1">审减金额(元)</th>
- <th colspan="2">{$detail.review_reduce_amount}</th>
- {/if}
- {if $field.review_add_reduce_rate == 1}
- <th class="form-title" colspan="1">审增减率(%)</th>
- <th colspan="2">{$detail.review_add_reduce_rate}</th>
- {/if}
- {if $field.sent_review_cost == 1}
- <th class="form-title" colspan="1">送审服务费 (元)</th>
- <th colspan="2">{$detail.sent_review_cost}</th>
- {/if}
- </tr>
- <tr>
- {if $field.sent_review_approver_amount == 1}
- <th class="form-title forright" colspan="1">
- 送审单位承担<br>审核费(元)
- </th>
- <th colspan="2">{$detail.sent_review_approver_amount}</th>
- {/if}
- {if $field.construction_approver_amount == 1}
- <th class="form-title forright" colspan="2">
- 施工单位负责<br>核减超5%评审费部分(元)
- </th>
- <th colspan="2">{$detail.construction_approver_amount}</th>
- {/if}
- {if $field.report_time == 1}
- <th class="form-title" colspan="1">报告时间</th>
- <th colspan="1" style="text-align: left; padding-left: 3.5vw;">{if
- $detail.report_time!=0}{$detail.report_time|date="Y-m-d"}{/if}
- </th>
- {/if}
- </tr>
- {/if}
- <tr>
- <th colspan="9" class="forleft">相关附件
- <!--<button class="layui-btn layui-btn-xs layui-btn-danger" style="float: right;" type="button"-->
- <!-- id="uploadBtn">上传附件-->
- <!--</button>-->
- <!--<button type="button" class="layui-btn layui-btn-xs layui-btn-danger" lay-on="page" style="float: right;">上传附件</button>-->
- <button type="button" class="layui-btn layui-btn-xs layui-btn-danger" lay-on="test-iframe-handle" style="float: right;">
- 上传附件
- <span id="ID-test-iframe-mark"></span>
- </button>
- </th>
- </tr>
- <tr>
- <th colspan="9" class="fujianimg" style="padding: 0px 0px;">
- <div id="filesBox2">
- <table class="layui-hide" id="get_file" lay-filter="get_file"></table>
- </div>
- </th>
- </tr>
- </table>
- <div class="py-3">
- <input type="hidden" name="id" value="{$detail.id}"/>
- <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="savetime">保存</button>
- </div>
- </form>
- {/if}
- <script>
- function first(){
- var form = layui.form, tool = layui.tool, oaTool = layui.oaTool;
- 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 // 当前页数据
- };
- },
- 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: 150,
- // templet:"<div>{{d.create_time}}</div>"
- templet:"<div>{{layui.util.toDateString(d.create_time*1000, 'yyyy-MM-dd HH:mm:ss')}}</div>"
- },
- {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>`;
- var btn3 = `<span data-id="${d.id}" class="layui-btn layui-btn-xs layui-btn-danger file-del " >删除</span>`;
- return html + btn1 + btn2 + btn3 +'</div>';
- }
- }
- ]]
- });
- function res(){
- table.reload('get_file');
- }
- $('#filesBox2').on('click', '.file-del', function (e) {
- // console.log( $(this).attr('data-id'))
- let id = $(this).attr('data-id');
- layer.confirm('确定要删除该文件吗?请慎重', {icon: 3, title: '提示'}, function (index) {
- let callback = function (e) {
- layer.msg(e.msg);
- if (e.code == 0) {
- res()
- }
- }
- tool.delete("/admin/project.api/delete_file", {id: id}, callback);// 删除附件
- layer.close(index);
- });
- })
- //上传附件弹出窗
- layui.use(function(){
- var $ = layui.$;
- var layer = layui.layer;
- var upload = layui.upload;
- var util = layui.util;
- // 事件
- util.on('lay-on', {
- 'test-iframe-handle': function(){
- layer.open({
- type: 2,
- area: ['680px', '520px'],
- content: 'ceshi?id={$detail.id}',
- fixed: false, // 不固定
- maxmin: true,
- shadeClose: true,
- title: '上传附件',
- btnAlign: 'c',
- yes: function(index, layero){
- // 获取 iframe 的窗口对象
- var iframeWin = window[layero.find('iframe')[0]['name']];
- var elemMark = iframeWin.$('#mark'); // 获得 iframe 中某个输入框元素
- var value = elemMark.val();
- if($.trim(value) === '') return elemMark.focus();
- // 显示获得的值
- layer.msg('获得 iframe 中的输入框标记值:'+ value);
- }
- });
- },
- })
- });
- oaTool.addFile({
- type: 1,
- isSave: true,
- ajaxSave: function (res) {
- let callback = function (e) {
- if("msg" in e){
- layer.msg(e.msg);
- }else{
- layer.msg('上传成功!')
- }
- setTimeout(function () {
- $("#filesBox2").load(location.href+" #filesBox>*","type=2")
- }, 500)
- }
- // console.log(1);
- // console.log(res,"{$detail.id}")
- tool.post("/admin/project.api/add_file", { // 上传附件
- 'topic_id': "{$detail.id}",
- 'file_id': res.data.id,
- 'file_name': res.data.name,
- 'module': 'project'
- }, callback);
- }
- });
- // var form = layui.form, tool = layui.tool, oaTool = layui.oaTool;
- //日期选择
- layui.laydate.render({
- elem: '#date',
- range: ['#start_time', '#end_time'],
- rangeLinked: true
- });
- var selectedNature = $('input[name="fiscal_nature"]:checked').val();
- if (selectedNature == "财政资金") {
- $(".entrust_unit").show();
- $(".review_unit").hide();
- } else {
- $(".review_unit").show();
- $(".entrust_unit").hide();
- }
- //radio选择
- form.on('radio(tax)', function (data) {
- if (data.value == "财政资金") {
- console.log(1)
- $(".entrust_unit").show();
- $(".review_unit").hide();
- } else {
- $(".review_unit").show();
- $(".entrust_unit").hide();
- }
- });
- $('.customer-picker').on('click', function () {
- let that = $(this);
- let callback = function(data){
- console.log(data);
- $('[name="review_unit"]').val(data.id);
- $('[name="review_unit_name"]').val(data.title);
- }
- oaTool.customerPicker(callback);
- });
- $('.get-entrust').on('click', function () {
- let that = $(this);
- let callback = function(data){
- console.log(data);
- $('[name="entrust_unit"]').val(data.id);
- $('[name="entrust_unit_name"]').val(data.title);
- }
- oaTool.getEntrust(callback);
- });
- form.on('submit(add)', function (data) {
- if(data.field.fiscal_nature=="财政资金"){
- delete data.field.review_unit;
- delete data.field.review_unit_name;
- if(data.field.entrust_unit==""&&data.field.entrust_unit_name==""){
- layer.msg("请选择委托单位")
- return false;
- }
- }else {
- delete data.field.entrust_unit;
- delete data.field.entrust_unit_name;
- if(data.field.review_unit==""&&data.field.review_unit_name==""){
- layer.msg("请选择评审单位")
- return false;
- }
- }
- if (c) {
- let callback = function (e) {
- c = 1
- layer.msg(e.msg);
- if (e.code == 0) {
- tool.sideClose(1000);
- }
- }
- var engineering_type1 = '';
- if (data.field.engineering_type1 == 1) {
- engineering_type1 = '预算';
- } else if (data.field.engineering_type1 == 2) {
- engineering_type1 = '结算';
- }
- var engineering_type2 = '';
- if (data.field.engineering_type2 == 1) {
- engineering_type2 = '审核';
- } else if (data.field.engineering_type2 == 2) {
- engineering_type2 = '编制';
- }
- if(engineering_type1!==""&&engineering_type2!==""){
- data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
- }
- tool.post("/admin/project.cost_proprietor/edit", data.field, callback);
- }
- c = 0
- return false;
- });
- let a = 1;
- //监听提交
- form.on('submit(webform)', function (data) {
- if(a){
- let callback = function (e) {
- a = 1
- layer.msg(e.msg);
- if (e.code == 0) {
- tool.sideClose(1000);
- }
- }
- if(data.field.engineering_type1!==""&&data.field.engineering_type2!==""){
- var engineering_type1 ='';
- if(data.field.engineering_type1==1){
- engineering_type1 ='预算';
- }else if(data.field.engineering_type1==2){
- engineering_type1 ='结算';
- }else if(data.field.engineering_type1==3){
- engineering_type1 ='概算';
- }else if(data.field.engineering_type1==4){
- engineering_type1 ='决算';
- }else if(data.field.engineering_type1==5){
- engineering_type1 ='工程总承包(EPC)';
- }
- var engineering_type2 = '';
- if(data.field.engineering_type2==1){
- engineering_type2 ='审核';
- }else if(data.field.engineering_type2==2) {
- engineering_type2 = '编制';
- }
- if(engineering_type1!==""&&engineering_type2!==""){
- data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
- }
- }
- tool.post("/admin/project.cost_proprietor/edit_main", data.field, callback);
- }
- a = 0
- return false;
- });
- let a1 = 1;
- form.on('submit(save)', function (data) {
- if(a1){
- let callback = function (e) {
- a1 = 1
- layer.msg(e.msg);
- if (e.code == 0) {
- tool.sideClose(1000);
- }
- }
- if(data.field.engineering_type1!==""&&data.field.engineering_type2!==""){
- var engineering_type1 ='';
- if(data.field.engineering_type1==1){
- engineering_type1 ='预算';
- }else if(data.field.engineering_type1==2){
- engineering_type1 ='结算';
- }else if(data.field.engineering_type1==3){
- engineering_type1 ='概算';
- }else if(data.field.engineering_type1==4){
- engineering_type1 ='决算';
- }else if(data.field.engineering_type1==5){
- engineering_type1 ='工程总承包(EPC)';
- }
- var engineering_type2 = '';
- if(data.field.engineering_type2==1){
- engineering_type2 ='审核';
- }else if(data.field.engineering_type2==2) {
- engineering_type2 = '编制';
- }
- if(engineering_type1!==""&&engineering_type2!==""){
- data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
- }
- }
- tool.post("/admin/project.cost_proprietor/save", data.field, callback);
- }
- a1 = 0
- return false;
- });
- let a2 = 1;
- form.on('submit(withdraw)', function (data) {
- if(a2){
- let callback = function (e) {
- a2 = 1
- layer.msg(e.msg);
- if (e.code == 0) {
- tool.sideClose(1000);
- }
- }
- if(data.field.engineering_type1!==""&&data.field.engineering_type2!==""){
- var engineering_type1 ='';
- if(data.field.engineering_type1==1){
- engineering_type1 ='预算';
- }else if(data.field.engineering_type1==2){
- engineering_type1 ='结算';
- }else if(data.field.engineering_type1==3){
- engineering_type1 ='概算';
- }else if(data.field.engineering_type1==4){
- engineering_type1 ='决算';
- }else if(data.field.engineering_type1==5){
- engineering_type1 ='工程总承包(EPC)';
- }
- var engineering_type2 = '';
- if(data.field.engineering_type2==1){
- engineering_type2 ='审核';
- }else if(data.field.engineering_type2==2) {
- engineering_type2 = '编制';
- }
- if(engineering_type1!==""&&engineering_type2!==""){
- data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
- }
- }
- tool.post("/admin/project.cost_proprietor/withdraw", data.field, callback);
- }
- a2 = 0
- return false;
- });
- let a3 = 1;
- form.on('submit(savetime)', function (data) {
- if(a3){
- let callback = function (e) {
- a3 = 1
- layer.msg(e.msg);
- if (e.code == 0) {
- tool.sideClose(1000);
- }
- }
- if(data.field.engineering_type1!==""&&data.field.engineering_type2!==""){
- var engineering_type1 ='';
- if(data.field.engineering_type1==1){
- engineering_type1 ='预算';
- }else if(data.field.engineering_type1==2){
- engineering_type1 ='结算';
- }else if(data.field.engineering_type1==3){
- engineering_type1 ='概算';
- }else if(data.field.engineering_type1==4){
- engineering_type1 ='决算';
- }else if(data.field.engineering_type1==5){
- engineering_type1 ='工程总承包(EPC)';
- }
- var engineering_type2 = '';
- if(data.field.engineering_type2==1){
- engineering_type2 ='审核';
- }else if(data.field.engineering_type2==2) {
- engineering_type2 = '编制';
- }
- if(engineering_type1!==""&&engineering_type2!==""){
- data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
- }
- }
- tool.post("/admin/project.cost_proprietor/edit_main", data.field, callback);
- }
- a3 = 0
- return false;
- });
- //项目区域
- 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
- var province = Object.keys(adress)
- var proStrs = '<option value="">省</option>';
- for (var i = 0; i < province.length; i++) {
- proStrs += '<option value="' + province[i] + '">' + province[i] + '</option>';
- }
- $("#province").html(proStrs);
- layui.form.render("select")
- },
- error: function () {
- layer.alert("地址请求失败!! ");
- }
- });
- function getFirstAttr(obj) {
- for (var k in obj) return k;
- }
- function selectOption(selectedProvince, selectedCity = '', selectedArea = '') {
- var proStr = '<option value="">省</option>', cityStr = '<option value="">市</option>',
- areaStr = '<option value="">县</option>';
- 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(1,2, 3);*/
- form.on('select(province)', function (data) {
- let thisProvince = data.value;
- let thisCity = getFirstAttr(adress[thisProvince]);
- selectOption(data.value);
- });
- form.on('select(city)', function (data) {
- selectOption($("#province").val(), data.value, getFirstAttr(data.value));
- });
- selectOption("{$detail.province}","{$detail.city}","{$detail.area}")
- })
- }
- </script>
- <script>
- // 获取具有指定 ID 的 <ul> 元素
- var ulElement = document.getElementById("filesBox");
- // 检查 <ul> 元素的子元素数量
- if (ulElement.children.length === 0) {
- // 如果子元素数量为 0,隐藏 <ul> 元素
- ulElement.style.display = "none";
- }
- </script>
|