1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208 |
- <?php /*a:10:{s:81:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_proprietor\edit_main.html";i:1724841755;s:59:"D:\phpstudy_pro\WWW\caiping\app\admin\view\common\base.html";i:1723541257;s:82:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_proprietor\edit_first.html";i:1724910955;s:81:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_proprietor\edit_user.html";i:1724763756;s:83:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_proprietor\edit_report.html";i:1724824488;s:84:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_proprietor\edit_contact.html";i:1725069707;s:88:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_proprietor\project_comments.html";i:1723541257;s:83:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_proprietor\edit_record.html";i:1724763756;s:91:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_proprietor\project_appointment.html";i:1724764538;s:72:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\projectlog\index.html";i:1723541257;}*/ ?>
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="renderer" content="webkit">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="360-site-verification" content="a7c876fae8b6e3175a52ea9f19543f51" />
- <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0">
- <script src="/static/dist/xm-select.js"></script>
- <link rel="mobile-prefetch" href=""/>
- <title><?php echo get_system_config('web','admin_title'); ?></title>
- <meta name="keywords" content="<?php echo get_system_config('web','keywords'); ?>"/>
- <meta name="description" content="<?php echo get_system_config('web','desc'); ?>"/>
- <link rel="stylesheet" href="/static/assets/gougu/css/gougu.css?v=<?php echo get_system_config('web','version'); ?>" media="all">
- <style>
- .footer{
- display: none;
- }
- .heading th {
- text-align: center;
- }
- .form td {
- text-align: center;
- }
- /* 日志 */
- .log_top {
- padding-left: 1vw;
- }
- .log_top span {
- margin: 0 0.5vw;
- }
- /* 1,1,1 */
- .log_commentary {
- color: rgb(0, 176, 80);
- }
- .log_company {
- color: rgb(255, 33, 0);
- }
- .log_content {
- 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: 40px !important;
- 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;
- }
- /* .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;
- font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif;
- }
- .filelist p{
- margin: 3px 0 5px 0;
- width: 7vw;
- overflow: hidden;
- text-overflow: ellipsis;
- text-align: center;
- font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif;
- }
- #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;
- font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif;
- }
- /* 倒计时 */
- .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" style="padding: 8px;font-size:1.1vw;">
- <?php echo htmlentities($detail['project_num']); ?>
- </div>
- <div class="layui-col-md3" style="padding: 8px;font-size:1.1vw;">
- <?php if($detail['unit_type']==0): ?>
- <?php echo htmlentities($detail['review_unit_name']); elseif($detail['unit_type']==2): ?>
- <?php echo htmlentities($detail['entrust_unit_name']); ?>
- <?php endif; ?>
- </div>
- <div class="layui-col-md3" 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-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">项目人员</li>
- <?php endif; if($project_five['project_report'] == 1): ?>
- <li data-load="" data-id="3">项目报告</li>
- <?php endif; if($project_five['project_contact'] == 1): ?>
- <li data-load="" data-id="7">联系函</li>
- <?php endif; if($project_five['project_comments'] == 1): ?>
- <li lay-id="22" data-id="1">作业日志</li>
- <?php endif; if($project_five['project_record'] == 1): ?>
- <li data-load="" data-id="2">工作记录</li>
- <?php endif; ?>
- <li data-load="" data-id="8">预约看现场</li>
- <?php if($project_five['project_log'] == 1): ?>
- <li data-load="" data-id="5">项目动态</li>
- <?php endif; ?>
- </ul>
- <div class="layui-tab-content">
- <!-- 相当于组件-->
- <div class="layui-tab-item layui-show">
- <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>
- <!--业主项目审核以下-->
- <?php 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="<?php echo htmlentities($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="<?php echo htmlentities($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" <?php if($detail['engineering_type1'] == '1'): ?> selected <?php endif; ?>>预算</option>
- <option value="2"<?php if($detail['engineering_type1'] == '2'): ?> selected <?php endif; ?>>结算</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" <?php if($detail['engineering_type2'] == '1'): ?> selected <?php endif; ?>>审核</option>
- <option value="2" <?php if($detail['engineering_type2'] == '2'): ?> selected <?php endif; ?>>编制</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"
- <?php if($detail['fiscal_nature'] == '财政资金'): ?> checked <?php endif; ?> >
- <input type="radio" name="fiscal_nature" value="非财政资金" title="非财政资金" lay-filter="tax"
- <?php if($detail['fiscal_nature'] == '非财政资金'): ?> checked <?php endif; ?> >
- </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="<?php echo htmlentities($detail['entrust_unit_name']); ?>" lay-reqText="当地财评委托单位" placeholder="当地财评委托单位" class="layui-input get-entrust">
- <input type="hidden" name="entrust_unit" value="<?php echo htmlentities($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)}
- <?php if(is_array($person) || $person instanceof \think\Collection || $person instanceof \think\Paginator): $i = 0; $__LIST__ = $person;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
- <option value="<?php echo htmlentities($v['id']); ?>" <?php if($detail['sent_review_approver'] == $v['id']): ?> selected="" <?php endif; ?>><?php echo htmlentities($v['nickname']); ?></option>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- </select>
- </th>
- <th colspan="2">
- <select name="sent_review_second_approver" lay-reqText="请选择审批人">
- <option value="">请选择第二审批人(可选)</option>
- {dump($person)}
- <?php if(is_array($person) || $person instanceof \think\Collection || $person instanceof \think\Paginator): $i = 0; $__LIST__ = $person;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
- <option value="<?php echo htmlentities($v['id']); ?>" <?php if($detail['sent_review_second_approver'] == $v['id']): ?> selected="" <?php endif; if(!isset($detail['sent_review_second_approver'])): ?>name=""<?php endif; ?>><?php echo htmlentities($v['nickname']); ?></option>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- </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;">
- <?php echo fileCard($file_array); ?>
- </ul>
- </div>
- <?php if(empty($file_array) || (($file_array instanceof \think\Collection || $file_array instanceof \think\Paginator ) && $file_array->isEmpty())): ?>
- <div class="layui-data-none">暂无附件</div>
- <?php endif; ?>
- </div>
- </th>
- </tr>
- </table>
- <div class="py-3">
- <input type="hidden" name="id" value="<?php echo htmlentities($detail['id']); ?>"/>
- <?php 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>
- <?php endif; ?>
- <!-- //审核中-->
- <?php if($detail['proprietor_status'] == 1): ?>
- <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="withdraw">撤回</button>
- <?php endif; ?>
- </div>
- </form>
- <?php 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">
- <?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; ?>
- </th>
- <th class="form-title">——</th>
- <th>
- <?php if($detail['engineering_type2']==1): ?>审核<?php else: ?>编制<?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']); ?>
- </th>
- <?php endif; ?>
- </tr>
- <tr>
- <?php if($field['fiscal_nature'] == 1): ?>
- <th class="form-title">资金性质</th>
- <th><?php echo htmlentities($detail['fiscal_nature']); ?></th>
- <?php endif; if($field['project_scale'] == 1): ?>
- <th class="form-title">项目规模</th>
- <th colspan="3"><?php echo htmlentities($detail['project_scale']); ?></th>
- <?php endif; if($field['charge_standard'] == 1): ?>
- <th class="form-title">收费标准</th>
- <th colspan="2"><?php echo htmlentities($detail['charge_standard']); ?></th>
- <?php endif; ?>
- </tr>
- <?php if($field['entrust_unit'] == 1 || $field['entrust_head'] == 1 || $field['sent_review_unit'] == 1 || $field['sent_review_head'] == 1 || $field['review_unit'] == 1 || $field['review_head'] == 1 || $field['operate_name'] == 1 || $field['operate_team_names'] == 1 || $field['construction_unit'] == 1 || $field['construction_head'] == 1): ?>
- <tr>
- <th colspan="9" class="forleft">相关单位</th>
- </tr>
- <tr>
- <?php if($field['entrust_unit'] == 1): ?>
- <th class="form-title">委托单位</th>
- <th><?php echo htmlentities($detail['entrust_unit_name']); ?></th>
- <?php endif; if($field['entrust_head'] == 1): ?>
- <th class="form-title">负责人</th>
- <th><?php echo htmlentities($detail['entrust_maker_name']); ?></th>
- <?php endif; if($field['sent_review_unit'] == 1): ?>
- <th class="form-title">送审单位</th>
- <th><?php echo htmlentities($detail['sent_review_unit_name']); ?></th>
- <?php endif; if($field['sent_review_head'] == 1): ?>
- <th class="form-title">负责人</th>
- <th colspan="2"><?php echo htmlentities($detail['sent_review_head_name']); ?></th>
- <?php endif; ?>
- </tr>
- <tr>
- <?php if($field['review_unit'] == 1): ?>
- <th class="form-title">评审机构</th>
- <th><?php echo htmlentities($detail['review_unit_name']); ?></th>
- <?php endif; if($field['review_head'] == 1): ?>
- <th class="form-title">项目负责人</th>
- <th><?php echo htmlentities($detail['review_head_name']); ?></th>
- <?php endif; if($field['operate_name'] == 1): ?>
- <th class="form-title">作业负责人</th>
- <th><?php echo htmlentities($detail['operate_head_name']); ?></th>
- <?php endif; if($field['operate_team_names'] == 1): ?>
- <th class="form-title">作业成员</th>
- <th colspan="2"><?php echo htmlentities($detail['operate_team_names']); ?></th>
- <?php endif; ?>
- </tr>
- <tr>
- <?php if($field['construction_unit'] == 1): ?>
- <th class="form-title" colspan="1">施工单位</th>
- <th colspan="1"><?php echo htmlentities($detail['construction_unit']); ?></th>
- <?php endif; if($field['construction_head'] == 1): ?>
- <th class="form-title" colspan="1">负责人</th>
- <th colspan="6"><?php echo htmlentities($detail['construction_head']); ?></th>
- <?php endif; ?>
- </tr>
- <?php endif; if($field['sent_review_amount'] == 1 || $field['authorize_amount'] == 1 || $field['review_add_reduce_amount'] == 1 || $field['review_add_reduce_rate'] == 1 || $field['sent_review_cost'] == 1 || $field['sent_review_approver_amount'] == 1 || $field['construction_approver_amount'] == 1 || $field['report_time'] == 1): ?>
- <tr>
- <th colspan="9" class="forleft">金额详情</th>
- </tr>
- <tr>
- <?php if($field['sent_review_amount'] == 1): ?>
- <th class="form-title" colspan="1">送审金额(元)</th>
- <th colspan="2"><?php echo htmlentities($detail['sent_review_amount']); ?></th>
- <?php endif; if($field['authorize_amount'] == 1): ?>
- <th class="form-title" colspan="1">审定金额(元)</th>
- <th colspan="2"><?php echo htmlentities($detail['authorize_amount']); ?></th>
- <?php endif; if($field['review_add_reduce_amount'] == 1): ?>
- <th class="form-title" colspan="1">审增金额(元)</th>
- <th colspan="2"><?php echo htmlentities($detail['review_add_amount']); ?></th>
- <?php endif; ?>
- </tr>
- <tr>
- <?php if($field['review_add_reduce_amount'] == 1): ?>
- <th class="form-title" colspan="1">审减金额(元)</th>
- <th colspan="2"><?php echo htmlentities($detail['review_reduce_amount']); ?></th>
- <?php endif; if($field['review_add_reduce_rate'] == 1): ?>
- <th class="form-title" colspan="1">审增减率(%)</th>
- <th colspan="2"><?php echo htmlentities($detail['review_add_reduce_rate']); ?></th>
- <?php endif; if($field['sent_review_cost'] == 1): ?>
- <th class="form-title" colspan="1">送审服务费 (元)</th>
- <th colspan="2"><?php echo htmlentities($detail['sent_review_cost']); ?></th>
- <?php endif; ?>
- </tr>
- <tr>
- <?php if($field['sent_review_approver_amount'] == 1): ?>
- <th class="form-title forright" colspan="1">
- 送审单位承担<br>审核费(元)
- </th>
- <th colspan="2"><?php echo htmlentities($detail['sent_review_approver_amount']); ?></th>
- <?php endif; if($field['construction_approver_amount'] == 1): ?>
- <th class="form-title forright" colspan="2">
- 施工单位负责<br>核减超5%评审费部分(元)
- </th>
- <th colspan="2"><?php echo htmlentities($detail['construction_approver_amount']); ?></th>
- <?php endif; if($field['report_time'] == 1): ?>
- <th class="form-title" colspan="1">报告时间</th>
- <th colspan="1" style="text-align: left; padding-left: 3.5vw;"><?php if($detail['report_time']!=0): ?><?php echo htmlentities(date("Y-m-d",!is_numeric($detail['report_time'])? strtotime($detail['report_time']) : $detail['report_time'])); ?><?php endif; ?>
- </th>
- <?php endif; ?>
- </tr>
- <?php endif; ?>
- <tr>
- <th colspan="9" class="forleft">相关附件
- <!--<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="<?php echo htmlentities($detail['id']); ?>"/>
- <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="savetime">保存</button>
- </div>
- </form>
- <?php endif; ?>
- <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=<?php echo htmlentities($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,"<?php echo htmlentities($detail['id']); ?>")
- tool.post("/admin/project.api/add_file", { // 上传附件
- 'topic_id': "<?php echo htmlentities($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("<?php echo htmlentities($detail['province']); ?>","<?php echo htmlentities($detail['city']); ?>","<?php echo htmlentities($detail['area']); ?>")
- })
- }
- </script>
- <script>
- // 获取具有指定 ID 的 <ul> 元素
- var ulElement = document.getElementById("filesBox");
- // 检查 <ul> 元素的子元素数量
- if (ulElement.children.length === 0) {
- // 如果子元素数量为 0,隐藏 <ul> 元素
- ulElement.style.display = "none";
- }
- </script>
- </div>
- <?php if($project_five['project_user'] == 1): ?>
- <div class="layui-tab-item">
- <div class="p-3 bg-white">
- <table class="layui-hide" id="user" lay-filter="user"></table>
- </div>
- <script type="text/html" id="toolbaruser">
- <div class="layui-btn-container">
- <?php if($detail['maker_type']==2): ?><button class="layui-btn layui-btn-sm" lay-event="addEntrust">+ 新增委托单位成员</button><?php endif; ?>
- <button class="layui-btn layui-btn-sm" lay-event="add_head">+ 新增项目负责人</button>
- <button class="layui-btn layui-btn-sm" lay-event="add">+ 新增作业负责人</button>
- <button class="layui-btn layui-btn-sm picker-more" lay-event="adda">+ 新增作业成员</button>
- <button class="layui-btn layui-btn-sm picker-more" lay-event="adc">+ 新增送审单位成员</button>
- </div>
- </script>
- <script>
- function project_user() {
- let tool = layui.tool, table = layui.table, employeepicker = layui.employeepicker;
- //项目成员
- parent.layui.userTable = table.render({
- elem: '#user',
- title: '项目成员列表',
- cellMinWidth: 80,
- toolbar: '#toolbaruser',
- url: "/admin/project.cost_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 'addEntrust':
- // let callback = function (){
- // layui.alert("hhh")
- // }
- aaa()
- break;
- 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) {
- parent.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) {
- parent.layui.userTable.reload();
- }
- }
- tool.post("/admin/project.cost_company/add_user_company_type2", {
- id: ids,
- project_id: project_id,
- type: 2
- }, callback);
- }
- })
- break;
- case "adc":
- // getSentReview()
- let call = function () {
- layer.msg(e.msg);
- if (e.code == 0) {
- parent.layui.userTable.reload();
- }
- }
- // 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) {
- // parent.layui.userTable.reload();
- // }
- // }
- // tool.post("/admin/project.cost_company/add_sent_review_unit", {
- // id: ids,
- // project_id: project_id,
- // }, callback);
- // }
- // })
- parent.layui.tool.side('/admin/project.cost_company/add_sent_review_unit?project_id=' + project_id, call);
- break;
- case "add_head":
- 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) {
- parent.layui.userTable.reload();
- }
- }
- tool.post("/admin/project.cost_company/add_user_company_head", {
- id: ids,
- project_id: project_id,
- }, callback);
- }
- })
- break;
- }
- });
- //监听行工具事件
- table.on('tool(user)', function (obj) {
- let postData = {"id": obj.data.id, "project_id": project_id, "type": obj.data.type};
- let callback = function (e) {
- layer.closeAll();
- layer.msg(e.msg);
- if (e.code == 0) {
- parent.layui.userTable.reload();
- }
- }
- if (obj.event === 'remove') {
- if (obj.data.type == 3 || obj.data.type == 4) {
- //console.log(postData);
- layer.confirm('确定要移除该项目成员吗?', {icon: 3, title: '提示'}, function (index) {
- tool.delete("/admin/project.cost_company/remove_user_company", postData, callback);
- });
- } else if (obj.data.type == 6) {
- layer.confirm('确定要移除该送审单位成员吗?', {icon: 3, title: '提示'}, function (index) {
- tool.delete("/admin/project.cost_company/remove_sent_review", {
- "id": obj.data.id,
- "project_id": project_id,
- "type": obj.data.type,
- "nickname": obj.data.nickname
- }, callback);
- });
- } else if (obj.data.type == 2) {
- layer.confirm('确定要移除该送审单位成员吗?', {icon: 3, title: '提示'}, function (index) {
- tool.delete("/admin/project.cost_company/remove_review_head", postData, callback);
- });
- } else if (obj.data.type == 1) {
- layer.confirm('确定要移除该委托单位成员吗?', {icon: 3, title: '提示'}, function (index) {
- tool.delete("/admin/project.cost_company/remove_entrust_head", postData, callback);
- });
- }else {
- layer.msg("该成员不可移除");
- }
- }
- return;
- });
- //委托单位
- function aaa(callback){
- var customeTable,form = layui.form;
- const a = layer.open({
- title: '选择委托单位',
- area: ['600px', '580px'],
- type: 1,
- content: '<div class="picker-table">\
- <form class="layui-form pb-2">\
- <div class="layui-input-inline" style="width:480px;">\
- <input type="text" name="keywords" placeholder="委托单位" class="layui-input" autocomplete="off" />\
- </div>\
- <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="search_customer">提交搜索</button>\
- </form>\
- <div id="customerTable"></div></div>',
- success: function () {
- customeTable = table.render({
- elem: '#customerTable'
- , url: '/admin/project.api/get_entrust'
- , page: true //开启分页
- , limit: 10
- , cols: [[
- {type: 'radio', title: '选择'},
-
- {field: 'title', title: '委托单位名称', align: 'center'},
- {field: 'address', title: ' 评审单位地址', align: 'center'}
- ]]
- });
- //客户搜索提交
- form.on('submit(search_customer)', function (data) {
- customeTable.reload({where: {keywords: data.field.keywords}, page: {curr: 1}});
- return false;
- });
- },
- btn: ['确定'],
- btnAlign: 'c',
- yes: function () {
- var checkStatus = table.checkStatus(customeTable.config.id);
- var data = checkStatus.data;
- //console.log(data)
- if (data.length > 0) {
- bbb(data);
- layer.close(a);
- } else {
- layer.msg('请先选择委托单位');
- return false;
- }
- }
- })
- }
- function bbb(e){
- var entrustPeopleTable,form = layui.form;
- layer.open({
- title: '选择委托单位',
- area: ['600px', '580px'],
- type: 1,
- content: '<div class="picker-table">\
- <form class="layui-form pb-2">\
- <div class="layui-input-inline" style="width:480px;">\
- <input type="text" name="keywords" placeholder="委托单位" class="layui-input" autocomplete="off" />\
- </div>\
- <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="entrustPeople">提交搜索</button>\
- </form>\
- <div id="entrustPeopleTable"></div></div>',
- success: function () {
- entrustPeopleTable = table.render({
- elem: '#entrustPeopleTable'
- , url: '/admin/project.api/get_entrust_people'
- , where:{unit_id:e[0]["id"]}
- , page: true //开启分页
- , limit: 10
- , cols: [[
- {type: 'radio', title: '选择'},
- {field: 'id', width: 80, title: '编号', align: 'center'},
- {field: 'nickname', title: '昵称', align: 'center'},
- ]]
- });
- //客户搜索提交
- form.on('submit(entrustPeople)', function (data) {
- entrustPeopleTable.reload({where: {keywords: data.field.keywords,unit_id:e[0]["id"]}, page: {curr: 1}});
- return false;
- });
- },
- btn: ['确定'],
- btnAlign: 'c',
- yes: function () {
- var checkStatus = table.checkStatus(entrustPeopleTable.config.id);
- var data = checkStatus.data;
- //console.log(data)
- if (data.length > 0) {
- let callback = function (e) {
- layer.msg(e.msg);
- if (e.code == 0) {
- layer.closeAll();
- parent.layui.userTable.reload();
- }
- }
- tool.post("/admin/project.cost_company/add_entrust_people", {
- id: data[0]["id"],
- project_id: project_id,
- }, callback);
- } else {
- layer.msg('请先选择委托单位人员');
- return false;
- }
- }
- })
- }
- function getSentReview(){
- var sentReviewTable,form = layui.form;
- const a = layer.open({
- title: '选择送审单位',
- area: ['600px', '580px'],
- type: 1,
- content: '<div class="picker-table">\
- <form class="layui-form pb-2">\
- <div class="layui-input-inline" style="width:480px;">\
- <input type="text" name="keywords" placeholder="委托单位" class="layui-input" autocomplete="off" />\
- </div>\
- <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="search_customer">提交搜索</button>\
- </form>\
- <div id="sentReviewTable"></div></div>',
- success: function () {
- sentReviewTable = table.render({
- elem: '#sentReviewTable'
- , url: '/admin/project.api/get_sent_review'
- , page: true //开启分页
- , limit: 10
- , cols: [[
- {type: 'radio', title: '选择'},
- {field: 'id', width: 80, title: '编号', align: 'center'},
- {field: 'title', title: '送审单位名称', align: 'center'},
- {field: 'address', title: ' 送审单位地址', align: 'center'}
- ]]
- });
- //客户搜索提交
- form.on('submit(search_customer)', function (data) {
- sentReviewTable.reload({where: {keywords: data.field.keywords}, page: {curr: 1}});
- return false;
- });
- },
- btn: ['确定'],
- btnAlign: 'c',
- yes: function () {
- var checkStatus = table.checkStatus(sentReviewTable.config.id);
- var data = checkStatus.data;
- //console.log(data)
- if (data.length > 0) {
- getSentReviewPeople(data);
- layer.close(a);
- } else {
- layer.msg('请先选择送审单位');
- return false;
- }
- }
- })
- }
- function getSentReviewPeople(e){
- var sentReviewPeople,form = layui.form;
- layer.open({
- title: '选择送审单位',
- area: ['600px', '580px'],
- type: 1,
- content: '<div class="picker-table">\
- <form class="layui-form pb-2">\
- <div class="layui-input-inline" style="width:480px;">\
- <input type="text" name="keywords" placeholder="委托单位" class="layui-input" autocomplete="off" />\
- </div>\
- <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="entrustPeople">提交搜索</button>\
- </form>\
- <div id="sentReviewPeople"></div></div>',
- success: function () {
- sentReviewPeople = table.render({
- elem: '#sentReviewPeople'
- , url: '/admin/project.api/get_sent_review_people'
- , where:{unit_id:e[0]["id"]}
- , page: true //开启分页
- , limit: 10
- , cols: [[
- {type: 'radio', title: '选择'},
- {field: 'id', width: 80, title: '编号', align: 'center'},
- {field: 'nickname', title: '昵称', align: 'center'},
- ]]
- });
- //客户搜索提交
- form.on('submit(entrustPeople)', function (data) {
- sentReviewPeople.reload({where: {keywords: data.field.keywords,unit_id:e[0]["id"]}, page: {curr: 1}});
- return false;
- });
- },
- btn: ['确定'],
- btnAlign: 'c',
- yes: function () {
- var checkStatus = table.checkStatus(sentReviewPeople.config.id);
- var data = checkStatus.data;
- //console.log(data)
- if (data.length > 0) {
- let callback = function (e) {
- layer.msg(e.msg);
- if (e.code == 0) {
- layer.closeAll();
- parent.layui.userTable.reload();
- }
- }
- tool.post("/admin/project.cost_company/add_sent_review_unit", {
- id: data[0]["id"],
- project_id: project_id,
- }, callback);
- } else {
- layer.msg('请先选择送审单位人员');
- return false;
- }
- }
- })
- }
- }
- </script>
- </div>
- <?php endif; if($project_five['project_report'] == 1): ?>
- <div class="layui-tab-item">
- <div class="p-3 bg-white">
- <table class="layui-hide" id="report" lay-filter="report"></table>
- </div>
- <div id="selectBox2" style="display: none;">
- <div id="companySelect2"></div>
- <button id="cc">1111</button>
- </div>
- <script>
- function report() {
- //console.log(1)
- let tool = layui.tool, table = layui.table;
- var allcount;
- //项目任务
- parent.layui.reportTable = table.render({
- elem: '#report',
- title: '文档列表',
- toolbar: '#toolbarreport',
- cellMinWidth: 80,
- parseData: function (res) { // 数据解析回调函数
- // 在这里可以获取数据总数
- allcount = res.data.length;
- return {
- code: res.code, // 数据状态码
- msg: res.msg, // 状态信息
- count: res.count, // 数据总数
- data: res.data // 当前页数据
- };
- },
- url: "/admin/project.report/datalist_proprietor",
- where: {'project_id': project_id},
- page: true, //开启分页
- limit: 20,
- cols: [[
- {field: 'id', title: '序号', width: 80, align: 'center',
- templet: function (d) {
- //console.log(allcount,d.LAY_NUM)
- return allcount - (d.LAY_NUM - 1);
- }
- },
- {
- field: 'title', title: '报告名称', align: 'center',
- templet: function (d) {
- var html = "";
- if (d.status == 5) {
- html = '<a class="side-a" lay-event="detail" style="color: grey;text-decoration:line-through" lay-event="detail">' + d.title + '</a>';
- } else {
- html = '<a class="side-a" lay-event="detail" lay-event="detail">' + d.title + '</a>';
- }
- return '<div style="text-align:left">' + html + '</div>'
- }
- },
- {
- field: 'type', title: '报告类型', align: 'center', width: 100, templet: function (item) {
- var html = '';
- if (item.type === 0) {
- html = "<span>初审报告</span>";
- } else if (item.type === 1) {
- html = "<span>对数报告</span>";
- } else if (item.type === 2) {
- html = "<span>审定报告</span>";
- }
- return html;
- }
- },
- {
- field: 'status', title: '审批状态', align: 'center', width: 150,
- templet: function (d) {
- var abc = '';
- if (d.status == 0) {
- abc = "<span>未审核(新建)</span>";
- } else if (d.status == 1) {
- abc = "<span>已通过(新建)</span>";
- } else if (d.status == 2) {
- abc = "<span>已拒绝(新建)</span>";
- } else if (d.status == 3) {
- abc = "<span>未审核(删除)</span>";
- } else if (d.status == 4) {
- abc = "<span>已通过(删除)</span>";
- } else if (d.status == 5) {
- abc = "<span>已拒绝(删除)</span>";
- }
- return abc;
- }
- },
- {field: 'create_time', title: '创建时间', align: 'center', width: 150},
- {field: 'admin_name', title: '创建人', align: 'center', width: 100},
- {
- field: 'right', fixed: 'right', title: '操作', width: 150, align: 'center',
- templet: function (d) {
- var html = '<div class="layui-btn-group">';
- var btn1 = `<a class="layui-btn layui-btn-xs layui-bg-blue" href=${d.filepath} download=${d.name} lay-event="">下载</a>`;
- var btn2 = '';
- if (d.status == 0) {
- btn2 = '<span class="layui-btn layui-btn-xs" lay-event="agree_report">同意</span><span class="layui-btn layui-btn-danger layui-btn-xs" lay-event="un_report">拒绝</span>';
- } else if (d.status == 3) {
- btn2 = '<span class="layui-btn layui-btn-xs" lay-event="agree_del">同意</span><span class="layui-btn layui-btn-danger layui-btn-xs" lay-event="unagree_del">拒绝</span>';
- }
- return html + btn1 + btn2 + '</div>';
- }
- }
- ]]
- });
- //触发事件
- table.on('toolbar(report)', function (obj) {
- var checkStatus = table.checkStatus(obj.config.id);
- switch (obj.event) {
- case 'add':
- parent.layui.tool.side('/admin/project.report/add?project_id=' + project_id); // 项目id
- break;
- }
- });
- table.on('tool(report)', function (obj) {
- var data = obj.data; //获得当前行数据
- if (obj.event === 'detail') { //查看
- let url = '/admin/project.report/view_proprietor?id=' + data.id;// 项目id
- parent.layui.tool.side(url);
- }
- if (obj.event === 'agree_report') {
- let callback = function (e) {
- layer.msg(e.msg)
- parent.layui.reportTable.reload();
- }
- tool.post('/admin/project.report/proprietor_agree_report', {id: data.id,else_id:data.else_id}, callback);
- }
- if (obj.event === 'un_report') {
- var ttxx = layer.prompt({
- title: '请输入<span style="color: red">拒绝</span>原因',
- formType: 2,
- area: ['35vw', '15vw']
- }, function (text, index) {
- if(text==""){
- layer.msg("请完善拒绝原因");
- }else{
- layer.close(ttxx)
- let callback = function (e) {
- layer.msg(e.msg)
- parent.layui.reportTable.reload();
- setTimeout(layer.close(index),1000);
- }
- tool.post('/admin/project.report/proprietor_un_report', {id: data.id,else_id:data.else_id,audit_remark:text}, callback);
- }
- });
- }
- if (obj.event === 'agree_del') {
- let callback = function (e) {
- layer.msg(e.msg)
- parent.layui.reportTable.reload();
- }
- tool.post('/admin/project.report/proprietor_agree_delete', {id: data.id,else_id:data.else_id}, callback);
- }
- if (obj.event === 'unagree_del') {
- var ttxx = layer.prompt({
- title: '请输入<span style="color: red">拒绝</span>原因',
- formType: 2,
- area: ['35vw', '15vw']
- }, function (text, index) {
- layer.close(ttxx)
- let callback = function (e) {
- layer.msg(e.msg)
- parent.layui.reportTable.reload();
- setTimeout(layer.close(index),1000);
- }
- tool.post('/admin/project.report/proprietor_un_delete', {id: data.id,else_id:data.else_id,audit_remark:text}, callback);
- });
- }
- })
- }
- </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 type="text/html" id="toolbarcontact">
- <div class="layui-btn-container">
- <button class="layui-btn layui-btn-sm" lay-event="add">+ 新增联系函</button>
- </div>
- </script>
- <script>
- function contact() {
- let tool = layui.tool, table = layui.table;
- //项目任务
- var allcount;
- parent.layui.contactTable = table.render({
- elem: '#contact',
- title: '文档列表',
- toolbar: '#toolbarcontact',
- cellMinWidth: 80,
- parseData: function (res) { // 数据解析回调函数
- // 在这里可以获取数据总数
- allcount = res.data.length;
- return {
- code: res.code, // 数据状态码
- msg: res.msg, // 状态信息
- count: res.count, // 数据总数
- data: res.data // 当前页数据
- };
- },
- url: "/admin/project.contact/conlist_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 == 5){
- html = '<a class="side-a" lay-event="detail" style="color: grey;text-decoration:line-through" lay-event="detail">' + d.title + '</a>';
- }else{
- html = '<a class="side-a" lay-event="detail" lay-event="detail">' + d.title + '</a>';
- }
- return '<div style="text-align:left">' + html + '</div>'
- }
- },
- {
- field: 'status',
- title: '审批状态',
- align: 'center',
- width: 150,
- templet:function (d){
- var abc = '';
- if(d.status==0){
- abc = "<span>未审核(新建)</span>";
- }else if(d.status==1){
- abc = "<span>已通过(新建)</span>";
- }else if(d.status==2){
- abc = "<span>已拒绝(新建)</span>";
- }else if(d.status==3){
- abc = "<span>未审核(删除)</span>";
- }else if(d.status==4){
- abc = "<span>已通过(删除)</span>";
- }else if(d.status==5){
- abc = "<span>已拒绝(删除)</span>";
- } else if (d.status == 8) {
- abc = "<span>回复</span>";
- }
- return abc;
- }
- },
- {field: 'create_time', title: '创建时间', align: 'center', width: 150},
- {field: 'admin_name', title: '创建人', align: 'center', width: 100},
- {field: 'approver', title: '审批人', align: 'center', width: 100},
- {field: 'right', fixed: 'right', title: '操作', width: 100, align: 'center',
- templet: function (d) {
- var html = '<div class="layui-btn-group">';
- var btn1 = `<a class="layui-btn layui-btn-xs" href=${d.filepath} download=${d.name} lay-event="">下载</a>`;
- var btn2 = '<span class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</span>';
- return html + btn1 + btn2 + '</div>';
- }
- }
- ]]
- });
- //触发事件
- table.on('toolbar(contact)', function (obj) {
- var checkStatus = table.checkStatus(obj.config.id);
- switch (obj.event) {
- case 'add':
- let callback = function (e) {
- window.location.reload()
- layer.msg(e.msg);
- setTimeout(function (){
- layer.close(index);
- },2000)
- }
- parent.layui.tool.side('/admin/project.contact/add_proprietor?project_id=' + project_id,callback); // 项目id
- break;
- }
- });
- table.on('tool(contact)', function (obj) {
- var data = obj.data; //获得当前行数据
- console.log(data.status);
- if (obj.event === 'detail') { //查看
- let url = '/admin/project.contact/view_proprietor?id=' + data.id;// 项目id
- parent.layui.tool.side(url);
- }
- if (obj.event === 'del') {
- if(data.status==1){
- 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_proprietor", {id: data.id ,project_id:data.project_id,remark:text}, callback);// 项目id
- });
- }else {
- layer.msg("不可操作");
- }
- }
- })
- }
- </script>
- </div>
- <?php endif; ?>
- <!-- 有问题-->
- <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;
- }
- </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;">
- <?php echo htmlentities($vo['content']); ?>
- </div>
- <?php if(!empty($vo['thumb'])): ?>
- <div class="log_content_img">
- <span class="content_img"><img src="<?php echo htmlentities($vo['thumb']); ?>" alt=""></span><span></span>
- </div>
- <?php endif; ?>
- </div>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- </div>
- </div>
- <hr class="ws-space-16">
- <div class="log_item_bottom">
- <div class="layui-form log_bottom_left">
- <form class="layui-form" action="">
- <div class="layui-form-item layui-form-text" style="float: left;width: 95%;">
- <label class="layui-form-label">普通文本域</label>
- <div class="layui-input-block" style="margin-left: 100px;">
- <textarea id="text" name="content" placeholder="请输入内容" maxlength="3000"class="layui-textarea"></textarea>
- </div>
- <div class="wrapper">
- <span></span><span class="total">0/3000字</span>
- </div>
- </div>
- <div class="layui-form-item" style="float: left;width: 4.5%;">
- <div class="layui-input-block">
- <button type="submit" class="layui-btn" lay-submit lay-filter="webform" type="button"
- style="width: 100%;height: 100% !important;background-color: #16baaa00 !important;margin-top: 30%;">
- <img src="/static/home/images/allupload.png" height="100"
- style="max-width: 40px;height: 40px;"/>
- </button>
- </div>
- </div>
- <div style="clear: both;"></div>
- <div class="layui-form-item" id="imgItem">
- <label class="layui-form-label">上传图片:</label>
- <div class="layui-input-inlines-self">
- <div class="layui-upload-drag-self">
- <div id="uploadBtn" style="position:relative;">
- <img src="/static/home/images/upload.png" height="100"
- style="max-width: 100%; width: 100%;"/>
- <input type="hidden" name="thumb" value="">
- <i class="layui-icon layui-icon-clear" id="imgdel"></i>
- </div>
- </div>
- </div>
- </div>
- </form>
- </div>
- </div>
- <!--zjl,懂的都懂-->
- <script>
- function comment() {
- var form = layui.form,tool=layui.tool,upload = layui.upload;
- //头像上传
- var uploadInst = upload.render({
- elem: '#uploadBtn'
- , url: '/admin/api/upload'
- , done: function (e) {
- //如果上传失败
- if (e.code == 1) {
- return layer.msg('上传失败');
- }
- //上传成功
- $('#uploadBtn input').attr('value', e.data.filepath);
- $('#uploadBtn img').attr('src', e.data.filepath);
- $('#imgdel').show();
- }
- });
- $('#imgdel').click(()=>{
- $('#uploadBtn input').attr('value', '');
- $('#uploadBtn img').attr('src', '/static/home/images/upload.png');
- $('#imgdel').hide();
- return false;
- })
- $('#uploadBtn').click(()=>{
- console.log(1)
- return false;
- })
- //监听提交
- form.on('submit(webform)', function (data) {
- let callback = function (e) {
- layer.msg(e.msg);
- $("#text").val("");
- $('#uploadBtn input').attr('value', '');
- $('#imgdel').hide();
- $('#uploadBtn img').attr('src', '/static/home/images/upload.png');
- $("#comments").load(location.href+" #comments>*","type=2")
- }
- if(data.field.content === '' && data.field.thumb === ''){
- console.log(data.field)
- layer.msg("请完善内容");
- }else {
- data.field["project_id"] = project_id;
- tool.post("/admin/project.comment/add_proprietor", data.field, callback);
- }
- return false;
- });
- }
- </script>
- <script>
- const tx = document.querySelector('#text')
- const total = document.querySelector('.total')
- tx.addEventListener('input', function () {
- console.log(tx.value.length)
- total.innerHTML = `${tx.value.length}/3000字`
- })
- </script>
- </div>
- <?php if($project_five['project_record'] == 1): ?>
- <div class="layui-tab-item">
-
- <style>
- /* 自定义样式 */
- /*.layui-table-testcss .layui-table-header,*/
- /*.layui-form-testcss > div{margin-bottom: 6px;}*/
- </style>
- <div class="p-3 bg-white">
- <table class="layui-hide" id="record" lay-filter="record"></table>
- </div>
- <script type="text/html" id="toolbarrecord">
- <div class="layui-btn-container">
- <button class="layui-btn layui-btn-sm" lay-event="add">+ 新建记录</button>
- </div>
- </script>
- <script>
- function record() {
- let tool = layui.tool, table = layui.table;
- //项目任务
- var allcount;
- parent.layui.recordTable = table.render({
- elem: '#record',
- title: '文档列表',
- toolbar: '#toolbarrecord',
- cellMinWidth: 80,
- parseData: function (res) { // 数据解析回调函数
- // 在这里可以获取数据总数
- allcount = res.data.length;
- return {
- code: res.code, // 数据状态码
- msg: res.msg, // 状态信息
- count: res.count, // 数据总数
- data: res.data // 当前页数据
- };
- },
- className: 'layui-table-testcss', // 用于给表格主容器追加 css 类名
- // lineStyle: 'height: 151px;', // 定义表格的多行样式
- url: "/admin/project.record/cplist",
- where: {'project_id': project_id},
- page: true, //开启分页
- limit: 20,
- cols: [[
- {field: 'id', title: '记录编号', width: 80, align: 'center',
- templet: function (d) {
- // console.log(allcount,d.LAY_NUM)
- return allcount - (d.LAY_NUM - 1);
-
- }
- },
- {field: 'title', title: '记录内容',
- templet: function (d) {
- var html = '<a class="side-a" lay-event="detail">' + d.content + '</a>';
- return html;
- }
- },
- {field: 'create_time', title: '创建时间', align: 'center', width: 150},
- {field: 'admin_name', title: '创建人', align: 'center', width: 100},
- {field: 'right', fixed: 'right', title: '操作', width: 100, align: 'center',
- templet: function (d) {
- var html = '<div class="layui-btn-group">';
- var btn1 = '<span class="layui-btn layui-btn-xs" lay-event="edit">编辑</span>';
- var btn2 = '<span class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</span>';
- return html + btn1 + btn2 + '</div>';
- }
- }
- ]]
- });
- //触发事件
- table.on('toolbar(record)', function (obj) {
- var checkStatus = table.checkStatus(obj.config.id);
- switch (obj.event) {
- case 'add':
- parent.layui.tool.side('/admin/project.record/add?project_id=' + project_id); // 项目id
- break;
- }
- });
- table.on('tool(record)', function (obj) {
- var data = obj.data; //获得当前行数据
- if (obj.event === 'detail') { //查看
- let url = '/admin/project.record/view?id=' + data.id;// 项目id
- parent.layui.tool.side(url);
- }
- if (obj.event === 'edit') {
- parent.layui.tool.side('/admin/project.record/edit?id=' + data.id); // 项目id
- return;
- }
- if (obj.event === 'del') {
- layer.confirm('确定要删除吗?', {
- icon: 3,
- title: '提示'
- }, function (index) {
- let callback = function (e) {
- layer.msg(e.msg);
- if (e.code == 0) {
- obj.del();
- }
- }
- tool.delete("/admin/project.record/del", {id: data.id}, callback);// 项目id
- layer.close(index);
- });
- }
- })
- }
- </script>
- </div>
- <?php endif; ?>
- <div class="layui-tab-item">
-
- <div class="p-3 bg-white">
- <table class="layui-hide" id="appointment" lay-filter="appointment"></table>
- </div>
- <script>
- function appointment() {
- let tool = layui.tool, table = layui.table;
- //项目任务
- var allcount;
- parent.layui.appointmentTable = table.render({
- elem: '#appointment',
- title: '文档列表',
- toolbar: '#toolbarappointment',
- cellMinWidth: 80,
- parseData: function (res) { // 数据解析回调函数
- // 在这里可以获取数据总数
- allcount = res.data.length;
- return {
- code: res.code, // 数据状态码
- msg: res.msg, // 状态信息
- count: res.count, // 数据总数
- data: res.data // 当前页数据
- };
- },
- url: "/admin/project.appointment/datalist_proprietor",
- 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_proprietor?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_proprietor", {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_proprietor", {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>
- <!-- /主体 -->
- <!-- 底部 -->
-
- <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>
- // console.log()
- const moduleInit = ['tool','oaTool','employeepicker'];
- var project_id = '<?php echo htmlentities($project_id); ?>'
- function gouguInit() {
- var form = layui.form,tool=layui.tool,upload = layui.upload;
- var element = layui.element;
- first()
- eliminate(1)
- element.on('tab(test-hash)', function (data) {
- let index = $(this).attr('data-id');
- console.log(index)
- if (index == 1) {
- eliminate(2)
- comment()
- } else if (index == 2) {
- eliminate(3)
- record(index);
- } else if (index == 3) {
- eliminate(4)
- report(index);
- } else if (index == 4) {
- eliminate(5)
- project_user(index)
- } else if (index == 5) {
- } else if (index == 6) {
- }else if (index == 7) {
- eliminate(6)
- contact(index)
- } else if (index == 8) {
- appointment();
- }
- });
- //清除小红点
- function eliminate(type){
- let call=function (e){
- //写清除红点的js
- }
- tool.post("/admin/project.api/eliminate", {type: type},call)
- }
- //看报告
- $('[lay-data="readreport"]').click(function (){
- var id = $(this).attr('data-id');
- parent.layui.tool.side('/admin/project.report/proprietor_view/id/' + id); // 项目id
- })
- 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);
- }
- }
- 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", data.field, callback);
- }
- a = 0
- return false;
- });
- form.on('submit(save)', function (data) {
- if(a){
- let callback = function (e) {
- a = 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 ='结算';
- }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);
- }
- a = 0
- return false;
- });
- form.on('submit(withdraw)', function (data) {
- if(a){
- let callback = function (e) {
- a = 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 ='结算';
- }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);
- }
- a = 0
- return false;
- });
- form.on('submit(savetime)', function (data) {
- if(a){
- let callback = function (e) {
- a = 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 ='结算';
- }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", data.field, callback);
- }
- a = 0
- return false;
- });
- }
- </script>
- <!-- /脚本 -->
-
- <!-- <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>
|