a3e6a4ff47a8785abd4403d832b4f82f.php 109 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058
  1. <?php /*a:10:{s:65:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost\edit.html";i:1724736059;s:59:"D:\phpstudy_pro\WWW\caiping\app\admin\view\common\base.html";i:1723541257;s:71:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost\edit_first.html";i:1724826842;s:70:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost\edit_user.html";i:1723541257;s:72:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost\edit_report.html";i:1723541257;s:73:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost\edit_contact.html";i:1724763756;s:74:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost\edit_comments.html";i:1724763756;s:72:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost\edit_record.html";i:1723541257;s:77:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost\edit_appointment.html";i:1724763756;s:72:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\projectlog\index.html";i:1723541257;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta name="360-site-verification" content="a7c876fae8b6e3175a52ea9f19543f51" />
  9. <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0">
  10. <script src="/static/dist/xm-select.js"></script>
  11. <link rel="mobile-prefetch" href=""/>
  12. <title><?php echo get_system_config('web','admin_title'); ?></title>
  13. <meta name="keywords" content="<?php echo get_system_config('web','keywords'); ?>"/>
  14. <meta name="description" content="<?php echo get_system_config('web','desc'); ?>"/>
  15. <link rel="stylesheet" href="/static/assets/gougu/css/gougu.css?v=<?php echo get_system_config('web','version'); ?>" media="all">
  16. <style>
  17. .footer{
  18. display: none;
  19. }
  20. .heading th {
  21. text-align: center;
  22. }
  23. .form td {
  24. text-align: center;
  25. }
  26. /* 日志 */
  27. .log_top {
  28. padding-left: 1vw;
  29. }
  30. .log_top span {
  31. margin: 0 0.5vw;
  32. }
  33. /* 1,1,1 */
  34. .log_commentary {
  35. color: rgb(0, 176, 80);
  36. }
  37. .log_company {
  38. color: rgb(255, 33, 0);
  39. }
  40. .log_content {
  41. width: fit-content;
  42. margin: 0.3vw 1.5vw 1vw 1.5vw;
  43. padding: 0.5vw 0vw;
  44. text-indent: 1.2em;
  45. line-height: 2.1vh;
  46. background-color: rgb(255, 255, 255);
  47. border-radius: 0.5vw;
  48. box-shadow: 0.19vw 0.16vw 0.4vw 0.03vw rgba(0, 0, 0, 0.13);
  49. }
  50. .log_content_color {
  51. /* background-color: rgb(250,250,250); */
  52. }
  53. .log_content_img img {
  54. /* width: 10%; */
  55. border-radius: 0.5vw;
  56. margin: 0.3vw 0;
  57. padding-right: 18px;
  58. padding-bottom: 7px;
  59. padding-left: 2px;
  60. }
  61. .log_item_top {
  62. height: 70%;
  63. overflow: scroll;
  64. }
  65. .log_item_top {
  66. height: 60vh;
  67. /* background-color: rgb(255, 255, 255); */
  68. }
  69. .log_item_bottom {
  70. display: flex;
  71. /* height: 17vh; */
  72. /* border-top: 1px solid #eee; */
  73. margin: 0 1.5vw;
  74. /* background-color: rgb(250,250,250); */
  75. }
  76. .log_input input {
  77. width: 55vw;
  78. height: 10vh;
  79. border: #eee 1px solid;
  80. }
  81. .log_bottom_img {
  82. /* height: 5vh; */
  83. }
  84. .log_bottom_img img {
  85. height: 4vw;
  86. width: 6vw;
  87. border-radius: 0.5vw;
  88. margin: 0.5vw 0vw 0.5vw 0.3vw;
  89. }
  90. .log_bottom_left {
  91. width: 100%;
  92. margin-top: 1.5vh;
  93. }
  94. .log_bottom_right {
  95. width: 5%;
  96. }
  97. /* 上传图片 */
  98. .layui-upload-drag-self {
  99. background-color: #fbfdff;
  100. border: 1px dashed #c0ccda;
  101. border-radius: 6px;
  102. box-sizing: border-box;
  103. line-height: 4vw;
  104. vertical-align: top;
  105. display: inline-block;
  106. text-align: center;
  107. cursor: pointer;
  108. outline: 0;
  109. margin-right: 13px;
  110. float: left;
  111. }
  112. .layui-input-inlines-self {
  113. position: relative;
  114. margin-left: 90px;
  115. min-height: 36px;
  116. text-align: left;
  117. }
  118. .layui-upload-drag-self .layui-icon {
  119. font-size: 28px;
  120. color: #8c939d
  121. }
  122. .layui-upload-drag-self .img {
  123. position: relative;
  124. height: 148px;
  125. width: 148px;
  126. }
  127. .layui-upload-img {
  128. width: 148px;
  129. height: 148px;
  130. border-radius: 6px;
  131. margin-top: -3px;
  132. margin-left: -2px;
  133. }
  134. .handle {
  135. position: absolute;
  136. width: 148px;
  137. height: 100%;
  138. z-index: 100;
  139. border-radius: 6px;
  140. top: 0;
  141. background: rgba(59, 60, 61, 0.6);
  142. text-align: center;
  143. }
  144. .handle .icon-myself {
  145. z-index: 999;
  146. transition: all .3s;
  147. cursor: pointer;
  148. font-size: 25px;
  149. width: 25px;
  150. color: rgba(255, 255, 255, 0.91);
  151. margin: 0 4px;
  152. }
  153. .log_textarea {
  154. width: 89vw;
  155. height: 8vh;
  156. padding: 0.5vw;
  157. /* margin-right: 2vw; */
  158. margin: 1vw;
  159. }
  160. .log_button_img {
  161. width: 2vw;
  162. }
  163. .log_card {
  164. border: none !important;
  165. }
  166. /* 点击图片放大 */
  167. .content_img img {
  168. max-width: 100%;
  169. cursor: pointer;
  170. }
  171. .overlay {
  172. display: none;
  173. position: fixed;
  174. top: 0;
  175. left: 0;
  176. width: 100%;
  177. height: 100%;
  178. background-color: rgba(0, 0, 0, 0.7);
  179. justify-content: center;
  180. z-index: 1;
  181. }
  182. .overlay img {
  183. margin-top: 4%;
  184. max-width: 90%;
  185. max-height: 90%;
  186. object-fit: contain;
  187. }
  188. .p-4 {
  189. background-color: rgb(255, 255, 255);
  190. }
  191. /*表格*/
  192. #tabniubi {
  193. width: 100%;
  194. margin: 10px 0;
  195. background-color: #fff;
  196. color: #5f5f5f;
  197. }
  198. #tabniubi th {
  199. padding: 9px 15px;
  200. min-height: 20px;
  201. height: 40px !important;
  202. text-align: center;
  203. /* font-size: 14px; */
  204. border-width: 1px;
  205. border-style: solid;
  206. border-color: #e2e2e2;
  207. font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif;
  208. }
  209. #tabniubi tr:first-child {
  210. padding: 0;
  211. min-height: 0;
  212. line-height: 0;
  213. border-width: 0;
  214. border-style: none;
  215. border-color: #fff;
  216. font-size: 0;
  217. }
  218. #tabniubi tr:first-child th {
  219. padding: 0;
  220. min-height: 0;
  221. line-height: 0;
  222. border-width: 0;
  223. border-style: none;
  224. border-color: #fff;
  225. font-size: 0;
  226. }
  227. .form-title {
  228. background-color: rgb(241, 241, 241);
  229. color: rgb(95, 95, 95);
  230. border-color: rgb(241, 241, 241);
  231. font-weight: 600;
  232. }
  233. /* .fujianimg img {
  234. width: 5vw;
  235. height: 5vh;
  236. } */
  237. .forleft {
  238. text-align: left !important;
  239. }
  240. /* .forright{
  241. text-align:right !important;
  242. } */
  243. .layui-form-select dl dd.layui-this {
  244. background-color: #f8f8f8;
  245. color: rgb(23, 145, 233);
  246. font-weight: 700;
  247. }
  248. .layui-input, .layui-textarea {
  249. /* padding-left: 3.75vw; */
  250. color: #5f5f5f;
  251. }
  252. .upimg {
  253. width: 250px;
  254. height: 250px;
  255. }
  256. /* .fujianimg img {
  257. height: 5.5vh;
  258. } */
  259. .filelist{
  260. width: 100%;
  261. overflow: auto;
  262. justify-content:flex-start;
  263. align-content: space-between;
  264. flex-direction: column-reverse;
  265. flex-wrap: wrap;
  266. display: flex;
  267. }
  268. .filelist li{
  269. padding: 0.5vw 0.8vw 0.5vw 0.8vw;
  270. white-space: nowrap;
  271. overflow: hidden;
  272. text-overflow: ellipsis;
  273. display: inline-block;
  274. border-right: 1px solid #e2e2e2;
  275. float: left;
  276. font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif;
  277. }
  278. .filelist p{
  279. margin: 3px 0 5px 0;
  280. width: 7vw;
  281. overflow: hidden;
  282. text-overflow: ellipsis;
  283. text-align: center;
  284. font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif;
  285. }
  286. #filesBox2 li{
  287. padding: 0.5vw 0.8vw 0.5vw 0.8vw;
  288. white-space: nowrap;
  289. overflow: hidden;
  290. text-overflow: ellipsis;
  291. display: inline-block;
  292. border-right: 1px solid #e2e2e2;
  293. float: left;
  294. font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif;
  295. }
  296. /* 倒计时 */
  297. .countdown {
  298. height: 8.5vh;
  299. width: 6.5vw;
  300. font-size: 1vw;
  301. text-align: center;
  302. border: 1px solid #eee;
  303. }
  304. .countdown-top {
  305. height: 3.5vh;
  306. line-height: 3.5vh;
  307. border-bottom: 1px solid #eee;
  308. color: #fff;
  309. background-color: rgb(23, 145, 233);
  310. border-bottom: 1px solid rgb(23, 145, 233);
  311. font-size: 0.95vw;
  312. padding: 0;
  313. margin: 0;
  314. }
  315. .countdown-bottom {
  316. height: 5vh;
  317. line-height: 5vh;
  318. padding: 0;
  319. margin: 0;
  320. background-color: #fff;
  321. }
  322. /* 项目名称下面的字体变大 */
  323. .ziti{
  324. font-size: 1vw;
  325. }
  326. </style>
  327. </head>
  328. <body class="main-body">
  329. <!-- 主体 -->
  330. <div class="layui-form p-4">
  331. <div class="layui-row layui-col-space12">
  332. <div class="layui-col-md10" style="padding: 0;">
  333. <div class="layui-col-md12" style="padding: 8px;">
  334. <h1><?php echo htmlentities($detail['project_name']); ?></h1>
  335. </div>
  336. <div class="layui-col-md3" style="padding: 8px;font-size:1.1vw;">
  337. <?php echo htmlentities($detail['project_num']); ?>
  338. </div>
  339. <div class="layui-col-md3" style="padding: 8px;font-size:1.1vw;">
  340. <?php if($detail['unit_type']==0): ?>
  341. <?php echo htmlentities($detail['review_unit_name']); elseif($detail['unit_type']==2): ?>
  342. <?php echo htmlentities($detail['entrust_unit_name']); ?>
  343. <?php endif; ?>
  344. </div>
  345. <div class="layui-col-md3" style="padding: 8px;font-size:1.1vw;">
  346. <?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; ?>
  347. <?php endif; ?>
  348. </div>
  349. </div>
  350. <div class="layui-col-md1" style="padding: 0;">
  351. <div class="layui-card countdown">
  352. <div class="countdown-top" style="\font-size:1.1vw;">
  353. <?php if($detail['project_end_time']>time()): ?>剩 余<?php else: ?>逾 期<?php endif; ?>
  354. </div>
  355. <div class="countdown-bottom" style="font-size:1.1vw;">
  356. <?php echo htmlentities($advent_time); ?>
  357. </div>
  358. </div>
  359. </div>
  360. </div>
  361. </div>
  362. <div class="layui-tab layui-tab-card" lay-filter="test-hash" style="margin: 0;">
  363. <ul class="layui-tab-title">
  364. <li class="layui-this" lay-id="11">项目概览</li>
  365. <?php if($project_five['project_user'] == 1): ?>
  366. <li data-load="" data-id="4">项目人员</li>
  367. <?php endif; if($project_five['project_report'] == 1): ?>
  368. <li data-load="" data-id="3">项目报告</li>
  369. <?php endif; if($project_five['project_contact'] == 1): ?>
  370. <li data-load="" data-id="7">联系函</li>
  371. <?php endif; if($project_five['project_comments'] == 1): ?>
  372. <li lay-id="22" data-id="1">作业日志</li>
  373. <?php endif; if($project_five['project_record'] == 1): ?>
  374. <li data-load="" data-id="2">工作记录</li>
  375. <?php endif; ?>
  376. <li data-load="" data-id="8">预约看现场</li>
  377. <?php if($project_five['project_log'] == 1): ?>
  378. <li data-load="" data-id="5">项目动态</li>
  379. <?php endif; ?>
  380. </ul>
  381. <div class="layui-tab-content">
  382. <!-- 相当于组件-->
  383. <div class="layui-tab-item layui-show">
  384. <style>
  385. .heading th {
  386. text-align: center;
  387. }
  388. .form td {
  389. text-align: center;
  390. }
  391. /* 日志 */
  392. .log_top {
  393. padding-left: 1vw;
  394. }
  395. .log_top span {
  396. margin: 0 0.5vw;
  397. }
  398. /* 1,1,1 */
  399. .log_commentary {
  400. color: rgb(0, 176, 80);
  401. }
  402. .log_company {
  403. color: rgb(255, 33, 0);
  404. }
  405. .log_content {
  406. width: fit-content;
  407. margin: 0.3vw 1.5vw 1vw 1.5vw;
  408. padding: 0.5vw 0vw;
  409. text-indent: 1.2em;
  410. line-height: 2.1vh;
  411. background-color: rgb(255, 255, 255);
  412. border-radius: 0.5vw;
  413. box-shadow: 0.19vw 0.16vw 0.4vw 0.03vw rgba(0, 0, 0, 0.13);
  414. }
  415. .log_content_color {
  416. /* background-color: rgb(250,250,250); */
  417. }
  418. .log_content_img img {
  419. /* width: 10%; */
  420. border-radius: 0.5vw;
  421. margin: 0.3vw 0;
  422. padding-right: 18px;
  423. padding-bottom: 7px;
  424. padding-left: 2px;
  425. }
  426. .log_item_top {
  427. height: 70%;
  428. overflow: scroll;
  429. }
  430. .log_item_top {
  431. height: 60vh;
  432. /* background-color: rgb(255, 255, 255); */
  433. }
  434. .log_item_bottom {
  435. display: flex;
  436. /* height: 17vh; */
  437. /* border-top: 1px solid #eee; */
  438. margin: 0 1.5vw;
  439. /* background-color: rgb(250,250,250); */
  440. }
  441. .log_input input {
  442. width: 55vw;
  443. height: 10vh;
  444. border: #eee 1px solid;
  445. }
  446. .log_bottom_img {
  447. /* height: 5vh; */
  448. }
  449. .log_bottom_img img {
  450. height: 4vw;
  451. width: 6vw;
  452. border-radius: 0.5vw;
  453. margin: 0.5vw 0vw 0.5vw 0.3vw;
  454. }
  455. .log_bottom_left {
  456. width: 100%;
  457. margin-top: 1.5vh;
  458. }
  459. .log_bottom_right {
  460. width: 5%;
  461. }
  462. /* 上传图片 */
  463. .layui-upload-drag-self {
  464. background-color: #fbfdff;
  465. border: 1px dashed #c0ccda;
  466. border-radius: 6px;
  467. box-sizing: border-box;
  468. line-height: 4vw;
  469. vertical-align: top;
  470. display: inline-block;
  471. text-align: center;
  472. cursor: pointer;
  473. outline: 0;
  474. margin-right: 13px;
  475. float: left;
  476. }
  477. .layui-input-inlines-self {
  478. position: relative;
  479. margin-left: 90px;
  480. min-height: 36px;
  481. text-align: left;
  482. }
  483. .layui-upload-drag-self .layui-icon {
  484. font-size: 28px;
  485. color: #8c939d
  486. }
  487. .layui-upload-drag-self .img {
  488. position: relative;
  489. height: 148px;
  490. width: 148px;
  491. }
  492. .layui-upload-img {
  493. width: 148px;
  494. height: 148px;
  495. border-radius: 6px;
  496. margin-top: -3px;
  497. margin-left: -2px;
  498. }
  499. .handle {
  500. position: absolute;
  501. width: 148px;
  502. height: 100%;
  503. z-index: 100;
  504. border-radius: 6px;
  505. top: 0;
  506. background: rgba(59, 60, 61, 0.6);
  507. text-align: center;
  508. }
  509. .handle .icon-myself {
  510. z-index: 999;
  511. transition: all .3s;
  512. cursor: pointer;
  513. font-size: 25px;
  514. width: 25px;
  515. color: rgba(255, 255, 255, 0.91);
  516. margin: 0 4px;
  517. }
  518. .log_textarea {
  519. width: 89vw;
  520. height: 8vh;
  521. padding: 0.5vw;
  522. /* margin-right: 2vw; */
  523. margin: 1vw;
  524. }
  525. .log_button_img {
  526. width: 2vw;
  527. }
  528. .log_card {
  529. border: none !important;
  530. }
  531. /* 点击图片放大 */
  532. .content_img img {
  533. max-width: 100%;
  534. cursor: pointer;
  535. }
  536. .overlay {
  537. display: none;
  538. position: fixed;
  539. top: 0;
  540. left: 0;
  541. width: 100%;
  542. height: 100%;
  543. background-color: rgba(0, 0, 0, 0.7);
  544. justify-content: center;
  545. z-index: 1;
  546. }
  547. .overlay img {
  548. margin-top: 4%;
  549. max-width: 90%;
  550. max-height: 90%;
  551. object-fit: contain;
  552. }
  553. .p-4 {
  554. background-color: rgb(255, 255, 255);
  555. }
  556. /*表格*/
  557. #tabniubi {
  558. width: 100%;
  559. margin: 10px 0;
  560. background-color: #fff;
  561. color: #5f5f5f;
  562. }
  563. #tabniubi th {
  564. padding: 9px 15px;
  565. min-height: 20px;
  566. height: 0px;
  567. line-height:0px;
  568. text-align: center;
  569. /* font-size: 14px; */
  570. border-width: 1px;
  571. border-style: solid;
  572. border-color: #e2e2e2;
  573. font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif;
  574. }
  575. #tabniubi tr:first-child {
  576. padding: 0;
  577. min-height: 0;
  578. line-height: 0;
  579. border-width: 0;
  580. border-style: none;
  581. border-color: #fff;
  582. font-size: 0;
  583. }
  584. #tabniubi tr:first-child th {
  585. padding: 0;
  586. min-height: 0;
  587. line-height: 0;
  588. border-width: 0;
  589. border-style: none;
  590. border-color: #fff;
  591. font-size: 0;
  592. height: 0 !important;
  593. }
  594. .form-title {
  595. background-color: rgb(241, 241, 241);
  596. color: rgb(95, 95, 95);
  597. border-color: rgb(241, 241, 241);
  598. font-weight: 600;
  599. }
  600. /* .fujianimg img {
  601. width: 5vw;
  602. height: 5vh;
  603. } */
  604. .forleft {
  605. text-align: left !important;
  606. }
  607. .layui-form-select dl dd.layui-this {
  608. background-color: #f8f8f8;
  609. color: rgb(23, 145, 233);
  610. font-weight: 700;
  611. }
  612. .layui-input, .layui-textarea {
  613. /* padding-left: 3.75vw; */
  614. color: #5f5f5f;
  615. }
  616. .upimg {
  617. width: 250px;
  618. height: 250px;
  619. }
  620. .fujianimg img {
  621. height: 5.5vh;
  622. }
  623. .filelist{
  624. width: 100%;
  625. overflow: auto;
  626. justify-content:flex-start;
  627. align-content: space-between;
  628. flex-direction: column-reverse;
  629. flex-wrap: wrap;
  630. display: flex;
  631. }
  632. .filelist li{
  633. padding: 0.5vw 0.8vw 0.5vw 0.8vw;
  634. white-space: nowrap;
  635. overflow: hidden;
  636. text-overflow: ellipsis;
  637. display: inline-block;
  638. border-right: 1px solid #e2e2e2;
  639. float: left;
  640. }
  641. .filelist p{
  642. margin: 3px 0 5px 0;
  643. width: 11vw;
  644. overflow: hidden;
  645. text-overflow: ellipsis;
  646. text-align: center;
  647. }
  648. #filesBox2 li{
  649. padding: 0.5vw 0.8vw 0.5vw 0.8vw;
  650. white-space: nowrap;
  651. overflow: hidden;
  652. text-overflow: ellipsis;
  653. display: inline-block;
  654. border-right: 1px solid #e2e2e2;
  655. float: left;
  656. }
  657. /* 倒计时 */
  658. .countdown {
  659. height: 8.5vh;
  660. width: 6.5vw;
  661. font-size: 1vw;
  662. text-align: center;
  663. border: 1px solid #eee;
  664. }
  665. .countdown-top {
  666. height: 3.5vh;
  667. line-height: 3.5vh;
  668. border-bottom: 1px solid #eee;
  669. color: #fff;
  670. background-color: rgb(23, 145, 233);
  671. border-bottom: 1px solid rgb(23, 145, 233);
  672. font-size: 0.95vw;
  673. padding: 0;
  674. margin: 0;
  675. }
  676. .countdown-bottom {
  677. height: 5vh;
  678. line-height: 5vh;
  679. padding: 0;
  680. margin: 0;
  681. background-color: #fff;
  682. }
  683. #filesBox2 .layui-table-tool{
  684. display: none;
  685. }
  686. #filesBox2 .layui-table-view .layui-table{
  687. width: 100% !important;
  688. }
  689. #filesBox2 .layui-table-cell{
  690. display: flex;
  691. align-items: center;
  692. justify-content: center;
  693. }
  694. .laytable-cell-1-0-1, .laytable-cell-1-0-2{
  695. justify-content: flex-start !important;
  696. }
  697. .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{
  698. display: flex;
  699. font: 14px red;
  700. font-weight: 600;
  701. color: #5f5f5f;
  702. }
  703. #tabniubi tr:first-child th{
  704. border-right: 1px solid #e2e2e2 !important;
  705. }
  706. #filesBox2 th:sixth-child{
  707. border-right: none !important;
  708. }
  709. </style>
  710. <!--审核以下-->
  711. <?php if($detail['project_status']<3): ?>
  712. <form class="layui-form p-4">
  713. <h3 class="pb-3">编辑造价项目</h3>
  714. <table id="tabniubi" cellpadding="1" cellspacing="1">
  715. <tr>
  716. <th style="width: 10%;height: 0;"></th>
  717. <th style="width: 10%;height: 0;"></th>
  718. <th style="width: 10%;height: 0;"></th>
  719. <th style="width: 10%;height: 0;"></th>
  720. <th style="width: 10%;height: 0;"></th>
  721. <th style="width: 10%;height: 0;"></th>
  722. <th style="width: 10%;height: 0;"></th>
  723. <th style="width: 10%;height: 0;"></th>
  724. <th style="width: 10%;height: 0;"></th>
  725. </tr>
  726. <tr border="1">
  727. <?php if($field['project_name'] == 1): ?>
  728. <th class="form-title">项目名称 <font style="color: red !important;">*</font></th>
  729. <th colspan="2">
  730. <input type="text" name="project_name" lay-verify="required" lay-reqText="请完善项目名称" value="<?php echo htmlentities($detail['project_name']); ?>" autocomplete="off" placeholder="请输入项目名称" <?php if($detail['project_status'] != 1): ?> readonly <?php elseif($field_edit['project_name_edit'] != 1): ?> readonly <?php endif; ?> class="layui-input">
  731. </th>
  732. <?php endif; if($field['project_num'] == 1): ?>
  733. <th class="form-title">项目编号 <font style="color: red !important;">*</font></th>
  734. <th colspan="2">
  735. <input type="text" name="project_num" lay-verify="required" lay-reqText="请完善项目编号" value="<?php echo htmlentities($detail['project_num']); ?>" autocomplete="off" placeholder="请输入项目编号" <?php if($detail['project_status'] != 1): ?> readonly <?php elseif($field_edit['project_num_edit'] != 1): ?> readonly <?php endif; ?> class="layui-input">
  736. </th>
  737. <?php endif; if($field['project_time'] == 1): ?>
  738. <th class="form-title">项目周期 <font style="color: red !important;">*</font></th>
  739. <th id="date" colspan="2">
  740. <div class="layui-input-inline" style="width: 47%;">
  741. <input type="text" id="start_time" name="project_start_time" readonly lay-verify="required" lay-reqText="请选择开始时间" placeholder="请选择" <?php if($field_edit['project_time_edit'] != 1): ?> disabled <?php endif; ?> class="layui-input" value="<?php echo htmlentities(date('Y-m-d',!is_numeric($detail['project_start_time'])? strtotime($detail['project_start_time']) : $detail['project_start_time'])); ?>">
  742. </div>
  743. -
  744. <div class="layui-input-inline" style="width: 47%;">
  745. <input type="text" id="end_time" name="project_end_time" readonly lay-verify="required" lay-reqText="请选择结束时间" placeholder="请选择" <?php if($field_edit['project_time_edit'] != 1): ?> disabled <?php endif; ?> class="layui-input" value="<?php echo htmlentities(date('Y-m-d',!is_numeric($detail['project_end_time'])? strtotime($detail['project_end_time']) : $detail['project_end_time'])); ?>">
  746. </div>
  747. </th>
  748. <?php endif; ?>
  749. </tr>
  750. <tr>
  751. <?php if($field['engineering_type'] == 1): ?>
  752. <th class="form-title ">项目类型 <font style="color: red !important;">*</font></th>
  753. <th colspan="2">
  754. <div>
  755. <select name="engineering_type1" lay-verify="required" lay-filter="aihao"
  756. <?php if($field_edit['engineering_type_edit'] != 1): ?>
  757. disabled
  758. <?php endif; ?>
  759. >
  760. <option value="0"></option>
  761. <option value="1" <?php if($detail['engineering_type1'] == '1'): ?> selected <?php endif; ?>>预算</option>
  762. <option value="2"<?php if($detail['engineering_type1'] == '2'): ?> selected <?php endif; ?>>结算</option>
  763. <option value="3" <?php if($detail['engineering_type1'] == '3'): ?> selected <?php endif; ?>>概算</option>
  764. <option value="4" <?php if($detail['engineering_type1'] == '4'): ?> selected <?php endif; ?>>决算</option>
  765. <option value="5" <?php if($detail['engineering_type1'] == '5'): ?> selected <?php endif; ?>>工程总承包(EPC)</option>
  766. </select>
  767. </div>
  768. </th>
  769. <th class="form-title " style="text-align: center;">——</th>
  770. <th colspan="2">
  771. <div>
  772. <select name="engineering_type2" lay-verify="required" lay-filter="aihao"
  773. <?php if($field_edit['engineering_type_edit'] != 1): ?>
  774. disabled
  775. <?php endif; ?>
  776. >
  777. <option value=""></option>
  778. <option value="1" <?php if($detail['engineering_type2'] == '1'): ?> selected <?php endif; ?>>审核</option>
  779. <option value="2" <?php if($detail['engineering_type2'] == '2'): ?> selected <?php endif; ?>>编制</option>
  780. </select>
  781. </div>
  782. </th>
  783. <?php endif; if($field['sent_review_amount']): ?>
  784. <th class="form-title ">送审金额 <font style="color: red !important;">*</font></th>
  785. <th colspan="2">
  786. <input type="text" id="sent_review_amount" name="sent_review_amount" autocomplete="off" placeholder="请输入送审金额"
  787. <?php if($field_edit['sent_review_amount_edit'] != 1): ?>
  788. readonly
  789. <?php endif; ?>
  790. class="layui-input" value="<?php echo htmlentities($detail['sent_review_amount']); ?>">
  791. </th>
  792. <?php endif; ?>
  793. <tr>
  794. <!-- 添加送审业主-->
  795. <?php if($detail['project_status'] == 1 && $detail['proprietor_stauts'] !=null): ?>
  796. <tr>
  797. <th class="form-title">送审业主 <font style="color: red !important;">*</font></th>
  798. <th colspan="2">
  799. <!-- 送审单位负责人-->
  800. <select name="sent_review_head" lay-reqText="请选择送审业主">
  801. <option value="">请选择送审业主(暂时不选)</option>
  802. <?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;?>
  803. <option value="<?php echo htmlentities($v['id']); ?>"><?php echo htmlentities($v['nickname']); ?></option>
  804. <?php endforeach; endif; else: echo "" ;endif; ?>
  805. </select>
  806. </th>
  807. </tr>
  808. <?php endif; if($detail['project_status'] == 1): ?>
  809. <tr>
  810. <?php if($field['review_unit'] == 1): ?>
  811. <th class="form-title">评审单位 <font style="color: red !important;">*</font></th>
  812. <th colspan="2">
  813. <input type="text" name="review_unit_name" autocomplete="off" readonly value="<?php echo htmlentities($detail['review_unit_name']); ?>"
  814. lay-verify="required" lay-reqText="请输入评审单位" placeholder="请输入评审单位"
  815. <?php if($field_edit['review_unit_edit'] != 1): ?>
  816. readonly
  817. <?php endif; ?>
  818. class="layui-input customer-picker">
  819. <input type="hidden" name="review_unit" value="<?php echo htmlentities($detail['review_unit']); ?>">
  820. </th>
  821. <?php endif; if($detail['project_status']==1): ?>
  822. <th class="form-title">审批人 <font style="color: red !important;">*</font></th>
  823. <th colspan="2">
  824. <select name="entrust_approver" lay-verify="required" lay-reqText="请选择审批人">
  825. <option value="">请选择审批人</option>
  826. {dump($person)}
  827. <?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;?>
  828. <option value="<?php echo htmlentities($v['id']); ?>" <?php if($detail['entrust_approver'] == $v['id']): ?> selected="" <?php endif; ?>><?php echo htmlentities($v['nickname']); ?></option>
  829. <?php endforeach; endif; else: echo "" ;endif; ?>
  830. </select>
  831. </th>
  832. <th colspan="2">
  833. <select name="entrust_second_approver" lay-reqText="请选择审批人">
  834. <option value="">请选择第二审批人(可选)</option>
  835. {dump($person)}
  836. <?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;?>
  837. <option value="<?php echo htmlentities($v['id']); ?>" <?php if($detail['entrust_second_approver'] == $v['id']): ?> selected="" <?php endif; if(!isset($detail['entrust_second_approver'])): ?>name=""<?php endif; ?>><?php echo htmlentities($v['nickname']); ?></option>
  838. <?php endforeach; endif; else: echo "" ;endif; ?>
  839. </select>
  840. </th>
  841. <?php endif; ?>
  842. </tr>
  843. <?php endif; ?>
  844. <tr>
  845. <?php if($detail['project_status']>2): if($field['sent_review_approver_amount'] == 1): ?>
  846. <th class="form-title" colspan="2">送审单位承担审核费 <font style="color: red !important;">*</font></th>
  847. <th colspan="2">
  848. <input type="text" lay-verify="required" lay-reqText="请完善送审单位承担审核费" name="sent_review_approver_amount" value="<?php echo htmlentities($detail['sent_review_approver_amount']); ?>" autocomplete="off" placeholder="请输入送审单位承担审核费"
  849. <?php if($field_edit['sent_review_amount_edit'] != 1): ?>
  850. readonly
  851. <?php endif; ?>
  852. class="layui-input">
  853. </th>
  854. <?php endif; if($field['construction_approver_amount'] == 1): ?>
  855. <th class="form-title" colspan="2">施工单位负责核减超5%评审费部分 <font style="color: red !important;">*</font></th>
  856. <th colspan="3">
  857. <input type="text" lay-verify="required" lay-reqText="请完善施工单位负责核减超5%评审费部分" name="construction_approver_amount" value="<?php echo htmlentities($detail['construction_approver_amount']); ?>" autocomplete="off" placeholder="请输入施工单位负责核减超5%评审费部分"
  858. <?php if($field_edit['construction_approver_amount_edit'] != 1): ?>
  859. readonly
  860. <?php endif; ?>
  861. class="layui-input">
  862. </th>
  863. <?php endif; ?>
  864. <?php endif; ?>
  865. </tr>
  866. <tr>
  867. <th colspan="9" class="forleft">相关附件
  868. <button class="layui-btn layui-btn-xs layui-btn-danger" style="float: right;" type="button"
  869. id="uploadBtn">上传附件
  870. </button>
  871. </th>
  872. </tr>
  873. <tr>
  874. <th colspan="9" class="fujianimg" style="padding: 0 !important;">
  875. <div id="filesBox2" >
  876. <table class="layui-hide" id="get_file" lay-filter="get_file"></table>
  877. </div>
  878. </th>
  879. </tr>
  880. </table>
  881. <div class="py-3">
  882. <input type="hidden" name="id" value="<?php echo htmlentities($detail['id']); ?>"/>
  883. <?php if($detail['project_status'] == 1): ?>
  884. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="webform">保存</button>
  885. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="save">提交</button>
  886. <?php endif; if($detail['project_status'] == 2): ?>
  887. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="withdraw">撤回</button>
  888. <?php endif; if($detail['project_status'] != 1 && $detail['project_status'] != 2): ?>
  889. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="savetime">保存</button>
  890. <?php endif; ?>
  891. </div>
  892. </form>
  893. <?php else: ?>
  894. <form class="layui-form p-4">
  895. <table id="tabniubi" cellpadding="1" cellspacing="1">
  896. <tr>
  897. <th style="width: 10%;height: 0;"></th>
  898. <th style="width: 10%;height: 0;"></th>
  899. <th style="width: 10%;height: 0;"></th>
  900. <th style="width: 10%;height: 0;"></th>
  901. <th style="width: 10%;height: 0;"></th>
  902. <th style="width: 10%;height: 0;"></th>
  903. <th style="width: 10%;height: 0;"></th>
  904. <th style="width: 10%;height: 0;"></th>
  905. <th style="width: 10%;height: 0;"></th>
  906. </tr>
  907. <tr border="1">
  908. <?php if($field['project_status'] == 1): ?>
  909. <th class="form-title">项目状态</th>
  910. <th>
  911. <?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: ?>未知
  912. <?php endswitch; ?>
  913. </th>
  914. <?php endif; if($field['project_name'] == 1): ?>
  915. <th class="form-title">项目名称</th>
  916. <th colspan="3"><?php echo htmlentities($detail['project_name']); ?></th>
  917. <?php endif; if($field['project_num'] == 1): ?>
  918. <th class="form-title">项目编号</th>
  919. <th colspan="2"><?php echo htmlentities($detail['project_num']); ?></th>
  920. <?php endif; ?>
  921. </tr>
  922. <tr>
  923. <?php if($field['project_time'] == 1): ?>
  924. <th class="form-title">项目周期</th>
  925. <th id="date" colspan="8">
  926. <div class="layui-input-inline" style="width: 47%;">
  927. <input type="text" id="start_time" name="project_start_time" readonly lay-verify="required" lay-reqText="请选择开始时间" placeholder="请选择" <?php if($field_edit['project_time_edit'] != 1): ?> disabled <?php endif; ?> class="layui-input" value="<?php echo htmlentities(date('Y-m-d',!is_numeric($detail['project_start_time'])? strtotime($detail['project_start_time']) : $detail['project_start_time'])); ?>">
  928. </div>
  929. -
  930. <div class="layui-input-inline" style="width: 47%;">
  931. <input type="text" id="end_time" name="project_end_time" readonly lay-verify="required" lay-reqText="请选择结束时间" placeholder="请选择" <?php if($field_edit['project_time_edit'] != 1): ?> disabled <?php endif; ?> class="layui-input" value="<?php echo htmlentities(date('Y-m-d',!is_numeric($detail['project_end_time'])? strtotime($detail['project_end_time']) : $detail['project_end_time'])); ?>">
  932. </div>
  933. </th>
  934. <?php endif; ?>
  935. </tr>
  936. <tr>
  937. <?php if($field['engineering_type'] == 1): ?>
  938. <th class="form-title">工程类型</th>
  939. <th>
  940. <?php if($detail['engineering_type1']==1): ?>
  941. 预算
  942. <?php elseif($detail['engineering_type1']==2): ?>
  943. 结算
  944. <?php elseif($detail['engineering_type1']==3): ?>
  945. 概算
  946. <?php elseif($detail['engineering_type1']==4): ?>
  947. 决算
  948. <?php elseif($detail['engineering_type1']==5): ?>
  949. 工程总承包(EPC)
  950. <?php endif; ?>
  951. </th>
  952. <th class="form-title">——</th>
  953. <th>
  954. <?php if($detail['engineering_type2']==1): ?>审核<?php else: ?>编制<?php endif; ?>
  955. </th>
  956. <?php endif; if($field['engineering_category'] == 1): ?>
  957. <th class="form-title">工程类别</th>
  958. <th><?php echo htmlentities($detail['engineering_category']); ?></th>
  959. <?php endif; if($field['project_region'] == 1): ?>
  960. <th class="form-title">项目区域</th>
  961. <th colspan="2">
  962. <?php echo htmlentities($detail['province']); ?>-<?php echo htmlentities($detail['city']); ?>-<?php echo htmlentities($detail['area']); ?>
  963. </th>
  964. <?php endif; ?>
  965. </tr>
  966. <tr>
  967. <?php if($field['fiscal_nature'] == 1): ?>
  968. <th class="form-title">资金性质</th>
  969. <th><?php echo htmlentities($detail['fiscal_nature']); ?></th>
  970. <?php endif; if($field['project_scale'] == 1): ?>
  971. <th class="form-title">项目规模</th>
  972. <th colspan="3"><?php echo htmlentities($detail['project_scale']); ?></th>
  973. <?php endif; if($field['charge_standard'] == 1): ?>
  974. <th class="form-title">收费标准</th>
  975. <th colspan="2"><?php echo htmlentities($detail['charge_standard']); ?></th>
  976. <?php endif; ?>
  977. </tr>
  978. <?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): ?>
  979. <tr>
  980. <th colspan="9" class="forleft">相关单位</th>
  981. </tr>
  982. <tr>
  983. <?php if($field['entrust_unit'] == 1): ?>
  984. <th class="form-title">委托单位</th>
  985. <th><?php echo htmlentities($detail['entrust_unit_name']); ?></th>
  986. <?php endif; if($field['entrust_head'] == 1): ?>
  987. <th class="form-title">负责人</th>
  988. <th><?php echo htmlentities($detail['entrust_maker_name']); ?></th>
  989. <?php endif; if($field['sent_review_unit'] == 1): ?>
  990. <th class="form-title">送审单位</th>
  991. <th><?php echo htmlentities($detail['sent_review_unit_name']); ?></th>
  992. <?php endif; if($field['sent_review_head'] == 1): ?>
  993. <th class="form-title">负责人</th>
  994. <th colspan="2"><?php echo htmlentities($detail['sent_review_head_name']); ?></th>
  995. <?php endif; ?>
  996. </tr>
  997. <tr>
  998. <?php if($field['review_unit'] == 1): ?>
  999. <th class="form-title">评审机构</th>
  1000. <th><?php echo htmlentities($detail['review_unit_name']); ?></th>
  1001. <?php endif; if($field['review_head'] == 1): ?>
  1002. <th class="form-title">项目负责人</th>
  1003. <th><?php echo htmlentities($detail['review_head_name']); ?></th>
  1004. <?php endif; if($field['operate_name'] == 1): ?>
  1005. <th class="form-title">作业负责人</th>
  1006. <th><?php echo htmlentities($detail['operate_head_name']); ?></th>
  1007. <?php endif; if($field['operate_team_names'] == 1): ?>
  1008. <th class="form-title">作业成员</th>
  1009. <th colspan="2"><?php echo htmlentities($detail['operate_team_names']); ?></th>
  1010. <?php endif; ?>
  1011. </tr>
  1012. <tr>
  1013. <?php if($field['construction_unit'] == 1): ?>
  1014. <th class="form-title" colspan="1">施工单位</th>
  1015. <th colspan="1"><?php echo htmlentities($detail['construction_unit']); ?></th>
  1016. <?php endif; if($field['construction_head'] == 1): ?>
  1017. <th class="form-title" colspan="1">负责人</th>
  1018. <th colspan="6"><?php echo htmlentities($detail['construction_head']); ?></th>
  1019. <?php endif; ?>
  1020. </tr>
  1021. <?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): ?>
  1022. <tr>
  1023. <th colspan="9" class="forleft">金额详情</th>
  1024. </tr>
  1025. <tr>
  1026. <?php if($field['sent_review_amount'] == 1): ?>
  1027. <th class="form-title" colspan="1">送审金额(元)</th>
  1028. <th colspan="2"><?php echo htmlentities($detail['sent_review_amount']); ?></th>
  1029. <?php endif; if($field['authorize_amount'] == 1): ?>
  1030. <th class="form-title" colspan="1">审定金额(元)</th>
  1031. <th colspan="2"><?php echo htmlentities($detail['authorize_amount']); ?></th>
  1032. <?php endif; if($field['review_add_reduce_amount'] == 1): ?>
  1033. <th class="form-title" colspan="1">审增金额(元)</th>
  1034. <th colspan="2"><?php echo htmlentities($detail['review_add_amount']); ?></th>
  1035. <?php endif; ?>
  1036. </tr>
  1037. <tr>
  1038. <?php if($field['review_add_reduce_amount'] == 1): ?>
  1039. <th class="form-title" colspan="1">审减金额(元)</th>
  1040. <th colspan="2"><?php echo htmlentities($detail['review_reduce_amount']); ?></th>
  1041. <?php endif; if($field['review_add_reduce_rate'] == 1): ?>
  1042. <th class="form-title" colspan="1">审增减率(%)</th>
  1043. <th colspan="2"><?php echo htmlentities($detail['review_add_reduce_rate']); ?></th>
  1044. <?php endif; if($field['sent_review_cost'] == 1): ?>
  1045. <th class="form-title" colspan="1">送审服务费 (元)</th>
  1046. <th colspan="2"><?php echo htmlentities($detail['sent_review_cost']); ?></th>
  1047. <?php endif; ?>
  1048. </tr>
  1049. <tr>
  1050. <?php if($field['sent_review_approver_amount'] == 1): ?>
  1051. <th class="form-title forright" colspan="1">
  1052. 送审单位承担审核费(元)
  1053. </th>
  1054. <th colspan="2"><input type="text" lay-verify="required" lay-reqText="请完善送审单位承担审核费" name="sent_review_approver_amount" value="<?php echo htmlentities($detail['sent_review_approver_amount']); ?>" autocomplete="off" placeholder="请输入送审单位承担审核费" <?php if($field_edit['sent_review_amount_edit'] !=1): ?> readonly <?php endif; ?> class="layui-input">
  1055. </th>
  1056. <?php endif; if($field['construction_approver_amount'] == 1): ?>
  1057. <th class="form-title forright" colspan="2">
  1058. 施工单位负责核减超5%评审费部分(元)
  1059. </th>
  1060. <th colspan="2"><input type="text" lay-verify="required" lay-reqText="请完善施工单位负责核减超5%评审费部分" name="construction_approver_amount" value="<?php echo htmlentities($detail['construction_approver_amount']); ?>" autocomplete="off" placeholder="请输入施工单位负责核减超5%评审费部分" <?php if($field_edit['construction_approver_amount_edit'] != 1): ?> readonly <?php endif; ?> class="layui-input">
  1061. </th>
  1062. <?php endif; if($field['report_time'] == 1): ?>
  1063. <th class="form-title" colspan="1">报告时间</th>
  1064. <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; ?>
  1065. </th>
  1066. <?php endif; ?>
  1067. </tr>
  1068. <?php endif; ?>
  1069. <tr>
  1070. <th colspan="9" class="forleft">相关附件
  1071. <!--<button class="layui-btn layui-btn-xs layui-btn-danger" style="float: right;" type="button"-->
  1072. <!-- id="uploadBtn">上传附件-->
  1073. <!--</button>-->
  1074. <!--<button type="button" class="layui-btn layui-btn-xs layui-btn-danger" lay-on="page" style="float: right;">上传附件</button>-->
  1075. <button type="button" class="layui-btn layui-btn-xs layui-btn-danger" lay-on="test-iframe-handle" style="float: right;">
  1076. 上传附件
  1077. <span id="ID-test-iframe-mark"></span>
  1078. </button>
  1079. </th>
  1080. </tr>
  1081. <tr>
  1082. <th colspan="9" class="fujianimg" style="padding: 0px 0px;">
  1083. <div id="filesBox2">
  1084. <table class="layui-hide" id="get_file" lay-filter="get_file"></table>
  1085. </div>
  1086. </th>
  1087. </tr>
  1088. </table>
  1089. <div class="py-3">
  1090. <input type="hidden" name="id" value="<?php echo htmlentities($detail['id']); ?>"/>
  1091. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="savetime">保存</button>
  1092. </div>
  1093. </form>
  1094. <?php endif; ?>
  1095. <script>
  1096. function first(){
  1097. var form = layui.form, tool = layui.tool, oaTool = layui.oaTool;
  1098. let table = layui.table;
  1099. //附件表格
  1100. var allcount;
  1101. parent.layui.get_fileTable = table.render({
  1102. elem: '#get_file',
  1103. title: '文档列表',
  1104. toolbar: '#toolbarget_file',
  1105. cellMinWidth: 80,
  1106. parseData: function (res) { // 数据解析回调函数
  1107. // 在这里可以获取数据总数
  1108. allcount = res.data.length;
  1109. return {
  1110. code: res.code, // 数据状态码
  1111. msg: res.msg, // 状态信息
  1112. count: res.count, // 数据总数
  1113. data: res.data // 当前页数据
  1114. };
  1115. },
  1116. // className: 'layui-table-testcss', // 用于给表格主容器追加 css 类名
  1117. // lineStyle: 'height: 151px;', // 定义表格的多行样式
  1118. url: "/admin/project.api/get_file",
  1119. where: {'id': project_id},
  1120. page: true, //开启分页
  1121. limit: 20,
  1122. cols: [[
  1123. {field: 'id', title: '序号', width: 80, align: 'center',
  1124. templet: function (d) {
  1125. //console.log(allcount,d.LAY_NUM)
  1126. return allcount - (d.LAY_NUM - 1);
  1127. }
  1128. },
  1129. {field: 'name', title: '附件名称', align: 'left',
  1130. },
  1131. {field: 'remark', title: '附件说明', align: 'left',
  1132. },
  1133. {field: 'admin_name', title: '上传人', align: 'center', width: 150},
  1134. {field: 'create_time', title: '上传时间', align: 'center', width: 150,
  1135. // templet:"<div>{{d.create_time}}</div>"
  1136. templet:"<div>{{layui.util.toDateString(d.create_time*1000, 'yyyy-MM-dd HH:mm:ss')}}</div>"
  1137. },
  1138. {field: 'right', fixed: 'right', title: '操作', width: 150, align: 'center',
  1139. templet: function (d) {
  1140. var html = '<div class="layui-btn-group">';
  1141. var btn1 = `<a href="https://view.officeapps.live.com/op/view.aspx?src=${d.filepath}" target="_blank" class="layui-btn layui-btn-xs">预览</a>`;
  1142. var btn2 = `<a class="layui-btn layui-btn-xs layui-bg-blue" href="${d.filepath}" download="${d.name}" lay-event="">下载</a>`;
  1143. var btn3 = `<span data-id="${d.id}" class="layui-btn layui-btn-xs layui-btn-danger file-del " >删除</span>`;
  1144. return html + btn1 + btn2 + btn3 +'</div>';
  1145. }
  1146. }
  1147. ]]
  1148. });
  1149. function res(){
  1150. table.reload('get_file');
  1151. }
  1152. $('#filesBox2').on('click', '.file-del', function (e) {
  1153. // console.log( $(this).attr('data-id'))
  1154. let id = $(this).attr('data-id');
  1155. layer.confirm('确定要删除该文件吗?请慎重', {icon: 3, title: '提示'}, function (index) {
  1156. let callback = function (e) {
  1157. layer.msg(e.msg);
  1158. if (e.code == 0) {
  1159. res()
  1160. }
  1161. }
  1162. tool.delete("/admin/project.api/delete_file", {id: id}, callback);// 删除附件
  1163. layer.close(index);
  1164. // let callback = function (e) {
  1165. // if(e.code==0){
  1166. // $("#" + id + "").remove();
  1167. // }
  1168. // layer.closeAll();
  1169. // layer.msg(e.msg);
  1170. // }
  1171. // tool.delete("/admin/project.api/delete_file", {id: id}, callback); // 删除附件
  1172. });
  1173. })
  1174. //上传附件弹出窗
  1175. layui.use(function(){
  1176. var $ = layui.$;
  1177. var layer = layui.layer;
  1178. var upload = layui.upload;
  1179. var util = layui.util;
  1180. // 事件
  1181. util.on('lay-on', {
  1182. 'test-iframe-handle': function(){
  1183. layer.open({
  1184. type: 2,
  1185. area: ['680px', '520px'],
  1186. content: 'ceshi?id=<?php echo htmlentities($detail['id']); ?>',
  1187. fixed: false, // 不固定
  1188. maxmin: true,
  1189. shadeClose: true,
  1190. title: '上传附件',
  1191. btnAlign: 'c',
  1192. yes: function(index, layero){
  1193. // 获取 iframe 的窗口对象
  1194. var iframeWin = window[layero.find('iframe')[0]['name']];
  1195. var elemMark = iframeWin.$('#mark'); // 获得 iframe 中某个输入框元素
  1196. var value = elemMark.val();
  1197. if($.trim(value) === '') return elemMark.focus();
  1198. // 显示获得的值
  1199. layer.msg('获得 iframe 中的输入框标记值:'+ value);
  1200. }
  1201. });
  1202. },
  1203. })
  1204. });
  1205. oaTool.addFile({
  1206. type: 1,
  1207. isSave: true,
  1208. ajaxSave: function (res) {
  1209. let callback = function (e) {
  1210. if("msg" in e){
  1211. layer.msg(e.msg);
  1212. }else{
  1213. layer.msg('上传成功!')
  1214. }
  1215. setTimeout(function () {
  1216. $("#filesBox2").load(location.href+" #filesBox>*","type=2")
  1217. }, 500)
  1218. }
  1219. // console.log(1);
  1220. // console.log(res,"<?php echo htmlentities($detail['id']); ?>")
  1221. tool.post("/admin/project.api/add_file", { // 上传附件
  1222. 'topic_id': "<?php echo htmlentities($detail['id']); ?>",
  1223. 'file_id': res.data.id,
  1224. 'file_name': res.data.name,
  1225. 'module': 'project'
  1226. }, callback);
  1227. }
  1228. });
  1229. // var form = layui.form, tool = layui.tool, oaTool = layui.oaTool;
  1230. //日期选择
  1231. layui.laydate.render({
  1232. elem: '#date',
  1233. range: ['#start_time', '#end_time'],
  1234. rangeLinked: true
  1235. });
  1236. let reviewtest;
  1237. $('.customer-picker').on('click', function () {
  1238. let that = $(this);
  1239. let callback = function (data) {
  1240. // $('[name="review_unit"]').val(data.id);
  1241. // $('[name="review_head"]').val(data.nickname);
  1242. // $('[name="review_unit_name"]').val(data.title);
  1243. // $('[name="review_head_phone"]').val(data.mobile);
  1244. // getemployeelist(data.id,false)
  1245. $('[name="review_unit"]').val(data.id);
  1246. $('[name="review_unit_name"]').val(data.title);
  1247. $('[name="review_head_phone"]').val(data.mobile);
  1248. }
  1249. oaTool.customerPicker(callback);
  1250. });
  1251. let a = 1;
  1252. //监听提交
  1253. form.on('submit(webform)', function (data) {
  1254. if(a){
  1255. let callback = function (e) {
  1256. a = 1
  1257. layer.msg(e.msg);
  1258. if (e.code == 0) {
  1259. tool.sideClose(1000);
  1260. }
  1261. }
  1262. if(data.field.engineering_type1!==""&&data.field.engineering_type2!==""){
  1263. var engineering_type1 ='';
  1264. if(data.field.engineering_type1==1){
  1265. engineering_type1 ='预算';
  1266. }else if(data.field.engineering_type1==2){
  1267. engineering_type1 ='结算';
  1268. }else if(data.field.engineering_type1==3){
  1269. engineering_type1 ='概算';
  1270. }else if(data.field.engineering_type1==4){
  1271. engineering_type1 ='决算';
  1272. }else if(data.field.engineering_type1==5){
  1273. engineering_type1 ='工程总承包(EPC)';
  1274. }
  1275. var engineering_type2 = '';
  1276. if(data.field.engineering_type2==1){
  1277. engineering_type2 ='审核';
  1278. }else if(data.field.engineering_type2==2) {
  1279. engineering_type2 = '编制';
  1280. }
  1281. if(engineering_type1!==""&&engineering_type2!==""){
  1282. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  1283. }
  1284. }
  1285. tool.post("/admin/project.cost/edit", data.field, callback);
  1286. }
  1287. a = 0
  1288. return false;
  1289. });
  1290. let a1 = 1;
  1291. form.on('submit(save)', function (data) {
  1292. if(a1){
  1293. let callback = function (e) {
  1294. a1 = 1
  1295. layer.msg(e.msg);
  1296. if (e.code == 0) {
  1297. tool.sideClose(1000);
  1298. }
  1299. }
  1300. if(data.field.engineering_type1!==""&&data.field.engineering_type2!==""){
  1301. var engineering_type1 ='';
  1302. if(data.field.engineering_type1==1){
  1303. engineering_type1 ='预算';
  1304. }else if(data.field.engineering_type1==2){
  1305. engineering_type1 ='结算';
  1306. }else if(data.field.engineering_type1==3){
  1307. engineering_type1 ='概算';
  1308. }else if(data.field.engineering_type1==4){
  1309. engineering_type1 ='决算';
  1310. }else if(data.field.engineering_type1==5){
  1311. engineering_type1 ='工程总承包(EPC)';
  1312. }
  1313. var engineering_type2 = '';
  1314. if(data.field.engineering_type2==1){
  1315. engineering_type2 ='审核';
  1316. }else if(data.field.engineering_type2==2) {
  1317. engineering_type2 = '编制';
  1318. }
  1319. if(engineering_type1!==""&&engineering_type2!==""){
  1320. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  1321. }
  1322. }
  1323. tool.post("/admin/project.cost/save", data.field, callback);
  1324. }
  1325. a1 = 0
  1326. return false;
  1327. });
  1328. let a2 = 1;
  1329. form.on('submit(withdraw)', function (data) {
  1330. if(a2){
  1331. let callback = function (e) {
  1332. a2 = 1
  1333. layer.msg(e.msg);
  1334. if (e.code == 0) {
  1335. tool.sideClose(1000);
  1336. }
  1337. }
  1338. if(data.field.engineering_type1!==""&&data.field.engineering_type2!==""){
  1339. var engineering_type1 ='';
  1340. if(data.field.engineering_type1==1){
  1341. engineering_type1 ='预算';
  1342. }else if(data.field.engineering_type1==2){
  1343. engineering_type1 ='结算';
  1344. }else if(data.field.engineering_type1==3){
  1345. engineering_type1 ='概算';
  1346. }else if(data.field.engineering_type1==4){
  1347. engineering_type1 ='决算';
  1348. }else if(data.field.engineering_type1==5){
  1349. engineering_type1 ='工程总承包(EPC)';
  1350. }
  1351. var engineering_type2 = '';
  1352. if(data.field.engineering_type2==1){
  1353. engineering_type2 ='审核';
  1354. }else if(data.field.engineering_type2==2) {
  1355. engineering_type2 = '编制';
  1356. }
  1357. if(engineering_type1!==""&&engineering_type2!==""){
  1358. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  1359. }
  1360. }
  1361. tool.post("/admin/project.cost/withdraw", data.field, callback);
  1362. }
  1363. a2 = 0
  1364. return false;
  1365. });
  1366. let a3 = 1;
  1367. form.on('submit(savetime)', function (data) {
  1368. if(a3){
  1369. let callback = function (e) {
  1370. a3 = 1
  1371. layer.msg(e.msg);
  1372. if (e.code == 0) {
  1373. tool.sideClose(1000);
  1374. }
  1375. }
  1376. if(data.field.engineering_type1!==""&&data.field.engineering_type2!==""){
  1377. var engineering_type1 ='';
  1378. if(data.field.engineering_type1==1){
  1379. engineering_type1 ='预算';
  1380. }else if(data.field.engineering_type1==2){
  1381. engineering_type1 ='结算';
  1382. }else if(data.field.engineering_type1==3){
  1383. engineering_type1 ='概算';
  1384. }else if(data.field.engineering_type1==4){
  1385. engineering_type1 ='决算';
  1386. }else if(data.field.engineering_type1==5){
  1387. engineering_type1 ='工程总承包(EPC)';
  1388. }
  1389. var engineering_type2 = '';
  1390. if(data.field.engineering_type2==1){
  1391. engineering_type2 ='审核';
  1392. }else if(data.field.engineering_type2==2) {
  1393. engineering_type2 = '编制';
  1394. }
  1395. if(engineering_type1!==""&&engineering_type2!==""){
  1396. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  1397. }
  1398. }
  1399. tool.post("/admin/project.cost/edit", data.field, callback);
  1400. }
  1401. a3 = 0
  1402. return false;
  1403. });
  1404. }
  1405. </script>
  1406. <script>
  1407. // 获取具有指定 ID 的 <ul> 元素
  1408. var ulElement = document.getElementById("filesBox");
  1409. // 检查 <ul> 元素的子元素数量
  1410. if (ulElement.children.length === 0) {
  1411. // 如果子元素数量为 0,隐藏 <ul> 元素
  1412. ulElement.style.display = "none";
  1413. }
  1414. </script>
  1415. </div>
  1416. <?php if($project_five['project_user'] == 1): ?>
  1417. <div class="layui-tab-item">
  1418. <div class="p-3 bg-white">
  1419. <table class="layui-hide" id="user" lay-filter="user"></table>
  1420. </div>
  1421. <script type="text/html" id="toolbaruser">
  1422. <div class="layui-btn-container">
  1423. <button class="layui-btn layui-btn-sm" lay-event="add">+ 新增送审单位成员</button>
  1424. <button class="layui-btn layui-btn-sm" lay-event="adda">+ 新增施工单位成员</button>
  1425. </div>
  1426. </script>
  1427. <script>
  1428. function project_user() {
  1429. let tool = layui.tool, table = layui.table, employeepicker = layui.employeepicker;
  1430. //项目成员
  1431. parent.layui.userTable = table.render({
  1432. elem: '#user',
  1433. title: '项目成员列表',
  1434. cellMinWidth: 80,
  1435. toolbar: '#toolbaruser',
  1436. url: "/admin/project.cost/project_user", //数据接口
  1437. where: {'project_id': project_id},
  1438. page: false, //开启分页
  1439. limit: 20,
  1440. cols: [[ //表头
  1441. {field: 'nickname', fixed: 'left', title: '成员姓名', width: 200, align: 'center', rowspan: 2},
  1442. {field: 'unit_name', title: '所在单位', align: 'center', width: 200, rowspan: 2},
  1443. {field: 'type', title: '成员类型', align: 'center', width: 200, rowspan: 2,
  1444. templet:function (a){
  1445. var html= "";
  1446. if(a.type==1){
  1447. html = "项目负责人"
  1448. }else if(a.type==2) {
  1449. html = "项目负责人"
  1450. }else if(a.type==3) {
  1451. html = "作业负责人"
  1452. }else if(a.type==4) {
  1453. html = "作业成员"
  1454. }else if(a.type==5) {
  1455. html = "项目负责人"
  1456. }else if(a.type==6) {
  1457. html = "项目负责人"
  1458. }
  1459. return html;
  1460. }},
  1461. {field: 'unit_type', title: '单位类型', align: 'center', width: 200, rowspan: 2},
  1462. {field: 'mobile', title: '手机号码', align: 'center', rowspan: 2},
  1463. {field: 'email', title: '单位邮箱', align: 'center', rowspan: 2},
  1464. {
  1465. title: '操作', fixed: 'right', align: 'center', width: 150, rowspan: 2, templet: function (d) {
  1466. var html = '<span class="layui-btn layui-btn-danger layui-btn-xs" lay-event="remove">移除</span>';
  1467. return html;
  1468. }
  1469. }
  1470. ]]
  1471. });
  1472. //触发事件
  1473. table.on('toolbar(user)', function (obj) {
  1474. var checkStatus = table.checkStatus(obj.config.id);
  1475. switch (obj.event) {
  1476. case 'add':
  1477. // getSentReview()
  1478. let call = function () {
  1479. layer.msg(e.msg);
  1480. if (e.code == 0) {
  1481. parent.layui.userTable.reload();
  1482. }
  1483. }
  1484. parent.layui.tool.side('/admin/project.cost/add_sent_review_unit?project_id=' + project_id, call);
  1485. break;
  1486. case "adda":
  1487. let callback = function (){
  1488. layer.msg(e.msg);
  1489. if (e.code == 0) {
  1490. parent.layui.userTable.reload();
  1491. }
  1492. }
  1493. parent.layui.tool.side('/admin/project.cost/addconstructionpeople?project_id=' + project_id,callback);
  1494. break;
  1495. }
  1496. });
  1497. //监听行工具事件
  1498. table.on('tool(user)', function (obj) {
  1499. let postData = {"id": obj.data.id, "project_id": project_id, "type": obj.data.type};
  1500. let callback = function (e) {
  1501. layer.closeAll();
  1502. layer.msg(e.msg);
  1503. if (e.code == 0) {
  1504. parent.layui.userTable.reload();
  1505. }
  1506. }
  1507. if (obj.event === 'remove') {
  1508. if (obj.data.type == 3 || obj.data.type == 4) {
  1509. let callback = function (e) {
  1510. layer.closeAll();
  1511. layer.msg(e.msg);
  1512. if (e.code == 0) {
  1513. parent.layui.userTable.reload();
  1514. }
  1515. }
  1516. layer.confirm('确定要移除该项目成员吗?', {icon: 3, title: '提示'}, function (index) {
  1517. tool.delete("/admin/project.cost_company/remove_user", postData, callback);
  1518. });
  1519. }else if(obj.data.type == 5){
  1520. let callback = function (e) {
  1521. layer.closeAll();
  1522. layer.msg(e.msg);
  1523. if (e.code == 0) {
  1524. parent.layui.userTable.reload();
  1525. }
  1526. }
  1527. layer.confirm('确定要移除该项目成员吗?', {icon: 3, title: '提示'}, function (index) {
  1528. tool.delete("/admin/project.cost/remove_construction_user", postData, callback);
  1529. });
  1530. } else if(obj.data.type == 6){
  1531. let callback = function (e) {
  1532. layer.closeAll();
  1533. layer.msg(e.msg);
  1534. if (e.code == 0) {
  1535. parent.layui.userTable.reload();
  1536. }
  1537. }
  1538. layer.confirm('确定要移除该项目成员吗?', {icon: 3, title: '提示'}, function (index) {
  1539. tool.delete("/admin/project.cost/remove_sent_review", {"id": obj.data.id, "project_id": project_id, "type": obj.data.type,"nickname":obj.data.nickname}, callback);
  1540. });
  1541. }
  1542. else {
  1543. console.log(postData);
  1544. layer.msg("该成员不可移除");
  1545. }
  1546. }
  1547. return;
  1548. });
  1549. function getSentReview(){
  1550. var sentReviewTable,form = layui.form;
  1551. const a = layer.open({
  1552. title: '选择送审单位',
  1553. area: ['600px', '580px'],
  1554. type: 1,
  1555. content: '<div class="picker-table">\
  1556. <form class="layui-form pb-2">\
  1557. <div class="layui-input-inline" style="width:480px;">\
  1558. <input type="text" name="keywords" placeholder="委托单位" class="layui-input" autocomplete="off" />\
  1559. </div>\
  1560. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="search_customer">提交搜索</button>\
  1561. </form>\
  1562. <div id="sentReviewTable"></div></div>',
  1563. success: function () {
  1564. sentReviewTable = table.render({
  1565. elem: '#sentReviewTable'
  1566. , url: '/admin/project.api/get_sent_review'
  1567. , page: true //开启分页
  1568. , limit: 10
  1569. , cols: [[
  1570. {type: 'radio', title: '选择'},
  1571. {field: 'id', width: 80, title: '编号', align: 'center'},
  1572. {field: 'title', title: '送审单位名称', align: 'center'},
  1573. {field: 'address', title: ' 送审单位地址', align: 'center'}
  1574. ]]
  1575. });
  1576. //客户搜索提交
  1577. form.on('submit(search_customer)', function (data) {
  1578. sentReviewTable.reload({where: {keywords: data.field.keywords}, page: {curr: 1}});
  1579. return false;
  1580. });
  1581. },
  1582. btn: ['确定'],
  1583. btnAlign: 'c',
  1584. yes: function () {
  1585. var checkStatus = table.checkStatus(sentReviewTable.config.id);
  1586. var data = checkStatus.data;
  1587. console.log(data)
  1588. if (data.length > 0) {
  1589. getSentReviewPeople(data);
  1590. layer.close(a);
  1591. } else {
  1592. layer.msg('请先选择送审单位');
  1593. return false;
  1594. }
  1595. }
  1596. })
  1597. }
  1598. function getSentReviewPeople(e){
  1599. var sentReviewPeople,form = layui.form;
  1600. layer.open({
  1601. title: '选择送审单位',
  1602. area: ['600px', '580px'],
  1603. type: 1,
  1604. content: '<div class="picker-table">\
  1605. <form class="layui-form pb-2">\
  1606. <div class="layui-input-inline" style="width:480px;">\
  1607. <input type="text" name="keywords" placeholder="委托单位" class="layui-input" autocomplete="off" />\
  1608. </div>\
  1609. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="entrustPeople">提交搜索</button>\
  1610. </form>\
  1611. <div id="sentReviewPeople"></div></div>',
  1612. success: function () {
  1613. sentReviewPeople = table.render({
  1614. elem: '#sentReviewPeople'
  1615. , url: '/admin/project.api/get_sent_review_people'
  1616. , where:{unit_id:e[0]["id"]}
  1617. , page: true //开启分页
  1618. , limit: 10
  1619. , cols: [[
  1620. {type: 'radio', title: '选择'},
  1621. {field: 'id', width: 80, title: '编号', align: 'center'},
  1622. {field: 'nickname', title: '昵称', align: 'center'},
  1623. ]]
  1624. });
  1625. //客户搜索提交
  1626. form.on('submit(entrustPeople)', function (data) {
  1627. sentReviewPeople.reload({where: {keywords: data.field.keywords,unit_id:e[0]["id"]}, page: {curr: 1}});
  1628. return false;
  1629. });
  1630. },
  1631. btn: ['确定'],
  1632. btnAlign: 'c',
  1633. yes: function () {
  1634. var checkStatus = table.checkStatus(sentReviewPeople.config.id);
  1635. var data = checkStatus.data;
  1636. console.log(data)
  1637. if (data.length > 0) {
  1638. let callback = function (e) {
  1639. layer.msg(e.msg);
  1640. if (e.code == 0) {
  1641. layer.closeAll();
  1642. parent.layui.userTable.reload();
  1643. }
  1644. }
  1645. tool.post("/admin/project.cost/add_sent_review_unit", {
  1646. id: data[0]["id"],
  1647. project_id: project_id,
  1648. }, callback);
  1649. } else {
  1650. layer.msg('请先选择送审单位人员');
  1651. return false;
  1652. }
  1653. }
  1654. })
  1655. }
  1656. }
  1657. </script>
  1658. </div>
  1659. <?php endif; if($project_five['project_report'] == 1): ?>
  1660. <div class="layui-tab-item">
  1661. <div class="p-3 bg-white">
  1662. <table class="layui-hide" id="report" lay-filter="report"></table>
  1663. </div>
  1664. <div id="selectBox2" style="display: none;">
  1665. <div id="companySelect2"></div>
  1666. <button id="cc">1111</button>
  1667. </div>
  1668. <script>
  1669. function report() {
  1670. console.log(1)
  1671. let tool = layui.tool, table = layui.table;
  1672. var allcount;
  1673. //项目任务
  1674. parent.layui.reportTable = table.render({
  1675. elem: '#report',
  1676. title: '文档列表',
  1677. toolbar: '#toolbarreport',
  1678. cellMinWidth: 80,
  1679. parseData: function (res) { // 数据解析回调函数
  1680. // 在这里可以获取数据总数
  1681. allcount = res.data.length;
  1682. return {
  1683. code: res.code, // 数据状态码
  1684. msg: res.msg, // 状态信息
  1685. count: res.count, // 数据总数
  1686. data: res.data // 当前页数据
  1687. };
  1688. },
  1689. url: "/admin/project.report/datalist",
  1690. where: {'project_id': project_id},
  1691. page: true, //开启分页
  1692. limit: 20,
  1693. cols: [[
  1694. {field: 'id', title: '序号', width: 80, align: 'center',
  1695. templet: function (d) {
  1696. console.log(allcount,d.LAY_NUM)
  1697. return allcount - (d.LAY_NUM - 1);
  1698. }
  1699. },
  1700. {
  1701. field: 'title', title: '报告名称', align: 'center',
  1702. templet: function (d) {
  1703. var html = "";
  1704. if (d.status == 5) {
  1705. html = '<a class="side-a" lay-event="detail" style="color: grey;text-decoration:line-through" lay-event="detail">' + d.title + '</a>';
  1706. } else {
  1707. html = '<a class="side-a" lay-event="detail" lay-event="detail">' + d.title + '</a>';
  1708. }
  1709. return '<div style="text-align:left">' + html + '</div>'
  1710. }
  1711. },
  1712. {
  1713. field: 'type', title: '报告类型', align: 'center', width: 100, templet: function (item) {
  1714. var html = '';
  1715. if (item.type === 0) {
  1716. html = "<span>初审报告</span>";
  1717. } else if (item.type === 1) {
  1718. html = "<span>对数报告</span>";
  1719. } else if (item.type === 2) {
  1720. html = "<span>审定报告</span>";
  1721. }
  1722. return html;
  1723. }
  1724. },
  1725. {
  1726. field: 'status', title: '审批状态', align: 'center', width: 150,
  1727. templet: function (d) {
  1728. var abc = '';
  1729. if (d.status == 0) {
  1730. abc = "<span>未审核(新建)</span>";
  1731. } else if (d.status == 1) {
  1732. abc = "<span>已通过(新建)</span>";
  1733. } else if (d.status == 2) {
  1734. abc = "<span>已拒绝(新建)</span>";
  1735. } else if (d.status == 3) {
  1736. abc = "<span>未审核(删除)</span>";
  1737. } else if (d.status == 4) {
  1738. abc = "<span>已通过(删除)</span>";
  1739. } else if (d.status == 5) {
  1740. abc = "<span>已拒绝(删除)</span>";
  1741. }
  1742. return abc;
  1743. }
  1744. },
  1745. {field: 'create_time', title: '创建时间', align: 'center', width: 150},
  1746. {field: 'admin_name', title: '创建人', align: 'center', width: 100},
  1747. {
  1748. field: 'right', fixed: 'right', title: '操作', width: 150, align: 'center',
  1749. templet: function (d) {
  1750. var html = '<div class="layui-btn-group">';
  1751. var btn1 = `<a class="layui-btn layui-btn-xs layui-bg-blue" href=${d.filepath} download=${d.name} lay-event="">下载</a>`;
  1752. var btn2 = '';
  1753. if (d.status == 0) {
  1754. 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>';
  1755. } else if (d.status == 3) {
  1756. 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>';
  1757. }
  1758. return html + btn1 + btn2 + '</div>';
  1759. }
  1760. }
  1761. ]]
  1762. });
  1763. //触发事件
  1764. table.on('toolbar(report)', function (obj) {
  1765. var checkStatus = table.checkStatus(obj.config.id);
  1766. switch (obj.event) {
  1767. case 'add':
  1768. parent.layui.tool.side('/admin/project.report/add?project_id=' + project_id); // 项目id
  1769. break;
  1770. }
  1771. });
  1772. table.on('tool(report)', function (obj) {
  1773. var data = obj.data; //获得当前行数据
  1774. if (obj.event === 'detail') { //查看
  1775. let url = '/admin/project.report/view?id=' + data.id;// 项目id
  1776. parent.layui.tool.side(url);
  1777. }
  1778. if (obj.event === 'agree_report') {
  1779. let callback = function (e) {
  1780. layer.msg(e.msg)
  1781. parent.layui.reportTable.reload();
  1782. }
  1783. tool.post('/admin/project.report/agree_report', {id: data.id,else_id:data.else_id}, callback);
  1784. }
  1785. if (obj.event === 'un_report') {
  1786. var ttxx = layer.prompt({
  1787. title: '请输入<span style="color: red">拒绝</span>原因',
  1788. formType: 2,
  1789. area: ['35vw', '15vw']
  1790. }, function (text, index) {
  1791. if(text==""){
  1792. layer.msg("请完善拒绝原因");
  1793. }else{
  1794. layer.close(ttxx)
  1795. let callback = function (e) {
  1796. layer.msg(e.msg)
  1797. parent.layui.reportTable.reload();
  1798. setTimeout(layer.close(index),1000);
  1799. }
  1800. tool.post('/admin/project.report/un_report', {id: data.id,else_id:data.else_id,audit_remark:text}, callback);
  1801. }
  1802. });
  1803. }
  1804. if (obj.event === 'agree_del') {
  1805. let callback = function (e) {
  1806. layer.msg(e.msg)
  1807. parent.layui.reportTable.reload();
  1808. }
  1809. tool.post('/admin/project.report/agree_delete', {id: data.id,else_id:data.else_id}, callback);
  1810. }
  1811. if (obj.event === 'unagree_del') {
  1812. var ttxx = layer.prompt({
  1813. title: '请输入<span style="color: red">拒绝</span>原因',
  1814. formType: 2,
  1815. area: ['35vw', '15vw']
  1816. }, function (text, index) {
  1817. layer.close(ttxx)
  1818. let callback = function (e) {
  1819. layer.msg(e.msg)
  1820. parent.layui.reportTable.reload();
  1821. setTimeout(layer.close(index),1000);
  1822. }
  1823. tool.post('/admin/project.report/un_delete', {id: data.id,else_id:data.else_id,audit_remark:text}, callback);
  1824. });
  1825. }
  1826. })
  1827. }
  1828. </script>
  1829. </div>
  1830. <?php endif; if($project_five['project_contact'] == 1): ?>
  1831. <div class="layui-tab-item">
  1832. <div class="p-3 bg-white">
  1833. <table class="layui-hide" id="contact" lay-filter="contact"></table>
  1834. </div>
  1835. <script type="text/html" id="toolbarcontact">
  1836. <div class="layui-btn-container">
  1837. <button class="layui-btn layui-btn-sm" lay-event="add">+ 新增联系函</button>
  1838. </div>
  1839. </script>
  1840. <script>
  1841. function contact() {
  1842. let tool = layui.tool, table = layui.table;
  1843. //项目任务
  1844. var allcount;
  1845. parent.layui.contactTable = table.render({
  1846. elem: '#contact',
  1847. title: '文档列表',
  1848. toolbar: '#toolbarcontact',
  1849. cellMinWidth: 80,
  1850. parseData: function (res) { // 数据解析回调函数
  1851. // 在这里可以获取数据总数
  1852. allcount = res.data.length;
  1853. return {
  1854. code: res.code, // 数据状态码
  1855. msg: res.msg, // 状态信息
  1856. count: res.count, // 数据总数
  1857. data: res.data // 当前页数据
  1858. };
  1859. },
  1860. url: "/admin/project.contact/conlist",
  1861. where: {'project_id': project_id},
  1862. page: true, //开启分页
  1863. limit: 20,
  1864. cols: [[
  1865. {field: 'id', title: '序号', width: 80, align: 'center',
  1866. templet: function (d) {
  1867. //console.log(allcount,d.LAY_NUM)
  1868. return allcount - (d.LAY_NUM - 1);
  1869. }
  1870. },
  1871. {field: 'title', title: '联系函名称',align: 'center',
  1872. templet: function (d) {
  1873. var html = "";
  1874. if (d.status == 5) {
  1875. html = '<a class="side-a" lay-event="detail" style="color: grey;text-decoration:line-through" lay-event="detail">' + d.title + '</a>';
  1876. } else {
  1877. html = '<a class="side-a" lay-event="detail" lay-event="detail">' + d.title + '</a>';
  1878. }
  1879. return '<div style="text-align:left">' + html + '</div>'
  1880. }
  1881. },
  1882. {
  1883. field: 'audit_status',
  1884. title: '审批状态',
  1885. align: 'center',
  1886. width: 150,
  1887. templet: function (d) {
  1888. var abc = '';
  1889. if (d.status == 0) {
  1890. abc = "<span>未审核(新建)</span>";
  1891. } else if (d.status == 1) {
  1892. abc = "<span>已通过(新建)</span>";
  1893. } else if (d.status == 2) {
  1894. abc = "<span>已拒绝(新建)</span>";
  1895. } else if (d.status == 3) {
  1896. abc = "<span>未审核(删除)</span>";
  1897. } else if (d.status == 4) {
  1898. abc = "<span>已通过(删除)</span>";
  1899. } else if (d.status == 5) {
  1900. abc = "<span>已拒绝(删除)</span>";
  1901. } else if (d.status == 8) {
  1902. abc = "<span>回复</span>";
  1903. }
  1904. return abc;
  1905. }
  1906. },
  1907. {field: 'create_time', title: '创建时间', align: 'center', width: 150},
  1908. {field: 'admin_name', title: '创建人', align: 'center', width: 100},
  1909. {field: 'approver', title: '审批人', align: 'center', width: 100},
  1910. {field: 'right', fixed: 'right', title: '操作', width: 150, align: 'center',
  1911. templet: function (d) {
  1912. //console.log(d)
  1913. var html = '<div class="layui-btn-group">';
  1914. var btn1 = `<a class="layui-btn layui-btn-xs layui-bg-blue" href=${d.filepath} download=${d.name} lay-event="">下载</a>`;
  1915. var btn2 = '';
  1916. if (d.status == 0) {
  1917. btn2 = '<span class="layui-btn layui-btn-xs" lay-event="agree_contact">同意</span><span class="layui-btn layui-btn-danger layui-btn-xs" lay-event="un_contact">拒绝</span>';
  1918. } else if (d.status == 3) {
  1919. 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>';
  1920. }
  1921. return html + btn1 + btn2 + '</div>';
  1922. }
  1923. }
  1924. ]]
  1925. });
  1926. //触发事件
  1927. table.on('toolbar(contact)', function (obj) {
  1928. var checkStatus = table.checkStatus(obj.config.id);
  1929. switch (obj.event) {
  1930. case 'add':
  1931. parent.layui.tool.side('/admin/project.contact/add?project_id=' + project_id); // 项目id
  1932. break;
  1933. }
  1934. });
  1935. table.on('tool(contact)', function (obj) {
  1936. var data = obj.data; //获得当前行数据
  1937. if (obj.event === 'detail') { //查看
  1938. let url = '/admin/project.contact/view?id=' + data.id;// 项目id
  1939. parent.layui.tool.side(url);
  1940. }
  1941. if (obj.event === 'agree_contact') {
  1942. let callback = function (e) {
  1943. layer.msg(e.msg)
  1944. parent.layui.contactTable.reload();
  1945. }
  1946. tool.post('/admin/project.contact/agree_contact', {id: data.id,else_id:data.else_id}, callback);
  1947. }
  1948. if (obj.event === 'un_contact') {
  1949. layer.prompt({
  1950. title: '请输入<span style="color: red">拒绝</span>原因',
  1951. formType: 2,
  1952. area: ['35vw', '15vw']
  1953. }, function (text, index) {
  1954. let callback = function (e) {
  1955. layer.msg(e.msg)
  1956. parent.layui.contactTable.reload();
  1957. setTimeout(layer.close(index),1000);
  1958. }
  1959. tool.post('/admin/project.contact/un_contact', {
  1960. id: data.id,
  1961. else_id:data.else_id,
  1962. project_id:data.project_id,
  1963. audit_remark:text
  1964. }, callback);
  1965. });
  1966. }
  1967. if (obj.event === 'agree_del') {
  1968. let callback = function (e) {
  1969. layer.msg(e.msg)
  1970. parent.layui.contactTable.reload();
  1971. }
  1972. tool.post('/admin/project.contact/agree_delete', {id: data.id,else_id:data.else_id}, callback);
  1973. }
  1974. if (obj.event === 'unagree_del') {
  1975. layer.prompt({
  1976. title: '请输入<span style="color: red">拒绝</span>原因',
  1977. formType: 2,
  1978. area: ['35vw', '15vw']
  1979. }, function (text, index) {
  1980. let callback = function (e) {
  1981. layer.msg(e.msg)
  1982. parent.layui.contactTable.reload();
  1983. setTimeout(layer.close(index),1000);
  1984. }
  1985. tool.post('/admin/project.contact/un_delete', {id: data.id,else_id:data.else_id,audit_remark:text}, callback);
  1986. });
  1987. }
  1988. })
  1989. }
  1990. </script>
  1991. </div>
  1992. <?php endif; if($project_five['project_comments'] == 1): ?>
  1993. <div class="layui-tab-item" >
  1994. <style>
  1995. #imgdel {
  1996. font-size: 30px;
  1997. position: absolute;
  1998. top: -30px;
  1999. right: -12px;
  2000. display: none;
  2001. color: red;
  2002. }
  2003. .wrapper{
  2004. display: flex;
  2005. justify-content: space-between;
  2006. padding-top: 3px;
  2007. }
  2008. /* 点击图片放大 */
  2009. .img-responsive{
  2010. /* width: 150px; */
  2011. height: 150px;
  2012. /* padding: 10px; */
  2013. }
  2014. </style>
  2015. <div class="log_item_top" id="comments">
  2016. <div class="layui-tab-content">
  2017. <?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;?>
  2018. <div class="log_top">
  2019. <span><?php echo htmlentities($vo['maker']); ?></span><span
  2020. 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>
  2021. </div>
  2022. <div class="log_content">
  2023. <div style="word-wrap:break-word;padding: 5px 10px;width: fit-content;">
  2024. <?php echo htmlentities($vo['content']); ?>
  2025. </div>
  2026. <?php if(!empty($vo['thumb'])): ?>
  2027. <div class="log_content_img" style="width: fit-content;">
  2028. <img src="<?php echo htmlentities($vo['thumb']); ?>" alt="" class="img-responsive">
  2029. <span></span>
  2030. </div>
  2031. <?php endif; ?>
  2032. </div>
  2033. <?php endforeach; endif; else: echo "" ;endif; ?>
  2034. </div>
  2035. </div>
  2036. <!-- <hr class="ws-space-16" style="border: 1.5px solid #e2e2e2 !important;"> -->
  2037. <div class="log_item_bottom" style="border-top: 2px solid #e2e2e2;">
  2038. <div class="layui-form log_bottom_left">
  2039. <form class="layui-form" action="">
  2040. <div class="layui-form-item layui-form-text" style="float: left;width: 95%;">
  2041. <label class="layui-form-label">普通文本域</label>
  2042. <div class="layui-input-block" style="margin-left: 100px;">
  2043. <textarea id="text" name="content" placeholder="请输入内容" maxlength="3000"class="layui-textarea"></textarea>
  2044. </div>
  2045. <div class="wrapper">
  2046. <span></span><span class="total">0/3000字</span>
  2047. </div>
  2048. </div>
  2049. <div class="layui-form-item" style="float: left;width: 4.5%;">
  2050. <div class="layui-input-block">
  2051. <button type="submit" class="layui-btn" lay-submit lay-filter="webform" type="button"
  2052. style="width: 100%;height: 100% !important;background-color: #16baaa00 !important;margin-top: 30%;">
  2053. <img src="/static/home/images/allupload.png" height="100"
  2054. style="max-width: 40px;height: 40px;"/>
  2055. </button>
  2056. </div>
  2057. </div>
  2058. <div style="clear: both;"></div>
  2059. <div class="layui-form-item" id="imgItem">
  2060. <label class="layui-form-label">上传图片:</label>
  2061. <div>
  2062. <div class="layui-upload-drag-self">
  2063. <div id="uploadBtn2" style="position:relative;">
  2064. <img src="/static/home/images/upload.png" height="100"
  2065. style="max-width: 100%; width: 100%;"/>
  2066. <input type="hidden" name="thumb" value="">
  2067. <i class="layui-icon layui-icon-clear" id="imgdel"></i>
  2068. </div>
  2069. </div>
  2070. </div>
  2071. <!--//TODO 重载的时候加上comment_type,0:全部,1:财政局to公司,2财政局to业主,3公司to业主-->
  2072. <!-- <label class="layui-form-label">通信对象:</label>-->
  2073. <!-- <div>-->
  2074. <!-- <div class="layui-upload-drag-self">-->
  2075. <!-- <div id="uploadBtn3" style="position:relative;">-->
  2076. <!-- <select lay-filter="uploadBtn3" name="type">-->
  2077. <!-- <option value="0">全部</option>-->
  2078. <!-- <option value="1">财政局to公司</option>-->
  2079. <!-- <option value="2">财政局to业主</option>-->
  2080. <!--<option value="3">公司to业主</option>-->
  2081. <!-- </select>-->
  2082. <!-- </div>-->
  2083. <!-- </div>-->
  2084. <!--</div>-->
  2085. </div>
  2086. </form>
  2087. </div>
  2088. <div id="outerdiv" style="position:fixed;top:0;left:0;background:rgba(0,0,0,0.7);z-index:2;width:100%;height:100%;display:none;">
  2089. <div id="innerdiv" style="position:absolute;">
  2090. <img id="bigimg" style="" src="" />
  2091. </div>
  2092. </div>
  2093. </div>
  2094. <!--zjl,懂的都懂-->
  2095. <script>
  2096. function comment() {
  2097. //console.log(location.href)
  2098. var form = layui.form,tool=layui.tool,upload = layui.upload;
  2099. //头像上传
  2100. var uploadInst = upload.render({
  2101. elem: '#uploadBtn2'
  2102. , url: '/admin/api/upload'
  2103. , done: function (e) {
  2104. //如果上传失败
  2105. if (e.code == 1) {
  2106. return layer.msg('上传失败');
  2107. }
  2108. //上传成功
  2109. $('#uploadBtn2 input').attr('value', e.data.filepath);
  2110. $('#uploadBtn2 img').attr('src', e.data.filepath);
  2111. $('#imgdel').show();
  2112. }
  2113. });
  2114. $('#imgdel').click(()=>{
  2115. $('#uploadBtn2 input').attr('value', '');
  2116. $('#uploadBtn2 img').attr('src', '/static/home/images/upload.png');
  2117. $('#imgdel').hide();
  2118. return false;
  2119. })
  2120. form.on('select(uploadBtn3)', function (data) {
  2121. //console.log(data)
  2122. $("#comments").load(location.href + " #comments>*", "type=2&comment_type=" + data.value)
  2123. return false;
  2124. });
  2125. let a = 1;
  2126. //监听提交
  2127. form.on('submit(webform)', function (data) {
  2128. if (a) {
  2129. //console.log(data)
  2130. let callback = function (e) {
  2131. a = 1
  2132. layer.msg(e.msg);
  2133. $("#text").val("");
  2134. $('#uploadBtn2 input').attr('value', '');
  2135. $('#imgdel').hide();
  2136. $('#uploadBtn2 img').attr('src', '/static/home/images/upload.png');
  2137. //TODO 重载的时候加上comment_type,0:全部,1:财政局to公司,2财政局to业主,3公司to业主
  2138. $("#comments").load(location.href + " #comments>*", "type=2&comment_type=" + data.field.type)
  2139. }
  2140. if (data.field.content === '' && data.field.thumb === '') {
  2141. //console.log(data.field)
  2142. layer.msg("请完善内容");
  2143. } else {
  2144. data.field["project_id"] = project_id;
  2145. tool.post("/admin/project.comment/add", data.field, callback);
  2146. }
  2147. }
  2148. a = 0
  2149. return false;
  2150. });
  2151. }
  2152. </script>
  2153. <script>
  2154. const tx = document.querySelector('#text')
  2155. const total = document.querySelector('.total')
  2156. tx.addEventListener('input', function () {
  2157. total.innerHTML = `${tx.value.length}/3000字`
  2158. })
  2159. </script>
  2160. <!-- 点击放大图片 -->
  2161. <script src="/static/mobile/js/jquery.min.js"></script>
  2162. <script>
  2163. $(function() {
  2164. $(".img-responsive").click(function (){
  2165. // debugger
  2166. var _this=$(this);
  2167. imgShow("#outerdiv","#innerdiv","#bigimg",_this);
  2168. });
  2169. });
  2170. function imgShow(outerdiv,innerdiv,bigimg,_this){
  2171. // debugger
  2172. var src=_this.attr("src");
  2173. $(bigimg).attr("src",src);
  2174. $("<img/>").attr("src",src).on('load',function () {
  2175. // debugger
  2176. var windowW=$(window).width()
  2177. var windowH=$(window).height();
  2178. var realWidth=this.width;
  2179. var readHeight=this.height;
  2180. var imgWidth,imgHeight;
  2181. var scale=0.8;
  2182. if(realWidth>windowW+scale){
  2183. imgHeight=windowH*scale;
  2184. imgWidth=imgHeight/readHeight*realWidth;
  2185. if(imgWidth>windowW*scale){
  2186. imgWidth=windowW*scale;
  2187. }
  2188. }else if(realWidth>windowW*scale){
  2189. imgWidth=windowW*scale;
  2190. imgHeight=imgWidth/realWidth*readHeight;
  2191. }else {
  2192. imgWidth=realWidth;
  2193. imgHeight=readHeight;
  2194. }
  2195. $(bigimg).css("width",imgWidth);
  2196. var w=(windowW-imgWidth)/2;
  2197. var h=(windowH-imgHeight)/2;
  2198. $(innerdiv).css({"top":h,"left":w});
  2199. $(outerdiv).fadeIn("fast");
  2200. });
  2201. $(outerdiv).click(function (){
  2202. $(this).fadeOut("fast");
  2203. });
  2204. };
  2205. </script>
  2206. </div>
  2207. <?php endif; if($project_five['project_record'] == 1): ?>
  2208. <div class="layui-tab-item">
  2209. <style>
  2210. /* 自定义样式 */
  2211. /*.layui-table-testcss .layui-table-header,*/
  2212. /*.layui-form-testcss > div{margin-bottom: 6px;}*/
  2213. </style>
  2214. <div class="p-3 bg-white">
  2215. <table class="layui-hide" id="record" lay-filter="record"></table>
  2216. </div>
  2217. <script type="text/html" id="toolbarrecord">
  2218. <div class="layui-btn-container">
  2219. <button class="layui-btn layui-btn-sm" lay-event="add">+ 新建记录</button>
  2220. </div>
  2221. </script>
  2222. <script>
  2223. function record() {
  2224. let tool = layui.tool, table = layui.table;
  2225. //项目任务
  2226. var allcount;
  2227. parent.layui.recordTable = table.render({
  2228. elem: '#record',
  2229. title: '文档列表',
  2230. toolbar: '#toolbarrecord',
  2231. cellMinWidth: 80,
  2232. parseData: function (res) { // 数据解析回调函数
  2233. // 在这里可以获取数据总数
  2234. allcount = res.data.length;
  2235. return {
  2236. code: res.code, // 数据状态码
  2237. msg: res.msg, // 状态信息
  2238. count: res.count, // 数据总数
  2239. data: res.data // 当前页数据
  2240. };
  2241. },
  2242. className: 'layui-table-testcss', // 用于给表格主容器追加 css 类名
  2243. // lineStyle: 'height: 151px;', // 定义表格的多行样式
  2244. url: "/admin/project.record/cplist",
  2245. where: {'project_id': project_id},
  2246. page: true, //开启分页
  2247. limit: 20,
  2248. cols: [[
  2249. {field: 'id', title: '记录编号', width: 80, align: 'center',
  2250. templet: function (d) {
  2251. console.log(allcount,d.LAY_NUM)
  2252. return allcount - (d.LAY_NUM - 1);
  2253. }
  2254. },
  2255. {field: 'title', title: '记录内容',
  2256. templet: function (d) {
  2257. var html = '<a class="side-a" lay-event="detail">' + d.content + '</a>';
  2258. return html;
  2259. }
  2260. },
  2261. {field: 'create_time', title: '创建时间', align: 'center', width: 150},
  2262. {field: 'admin_name', title: '创建人', align: 'center', width: 100},
  2263. {field: 'right', fixed: 'right', title: '操作', width: 100, align: 'center',
  2264. templet: function (d) {
  2265. var html = '<div class="layui-btn-group">';
  2266. var btn1 = '<span class="layui-btn layui-btn-xs" lay-event="edit">编辑</span>';
  2267. var btn2 = '<span class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</span>';
  2268. return html + btn1 + btn2 + '</div>';
  2269. }
  2270. }
  2271. ]]
  2272. });
  2273. //触发事件
  2274. table.on('toolbar(record)', function (obj) {
  2275. var checkStatus = table.checkStatus(obj.config.id);
  2276. switch (obj.event) {
  2277. case 'add':
  2278. parent.layui.tool.side('/admin/project.record/add?project_id=' + project_id); // 项目id
  2279. break;
  2280. }
  2281. });
  2282. table.on('tool(record)', function (obj) {
  2283. var data = obj.data; //获得当前行数据
  2284. if (obj.event === 'detail') { //查看
  2285. let url = '/admin/project.record/view?id=' + data.id;// 项目id
  2286. parent.layui.tool.side(url);
  2287. }
  2288. if (obj.event === 'edit') {
  2289. parent.layui.tool.side('/admin/project.record/edit?id=' + data.id); // 项目id
  2290. return;
  2291. }
  2292. if (obj.event === 'del') {
  2293. layer.confirm('确定要删除吗?', {
  2294. icon: 3,
  2295. title: '提示'
  2296. }, function (index) {
  2297. let callback = function (e) {
  2298. layer.msg(e.msg);
  2299. if (e.code == 0) {
  2300. obj.del();
  2301. }
  2302. }
  2303. tool.delete("/admin/project.record/del", {id: data.id}, callback);// 项目id
  2304. layer.close(index);
  2305. });
  2306. }
  2307. })
  2308. }
  2309. </script>
  2310. </div>
  2311. <?php endif; ?>
  2312. <div class="layui-tab-item">
  2313. <div class="p-3 bg-white">
  2314. <table class="layui-hide" id="appointment" lay-filter="appointment"></table>
  2315. </div>
  2316. <script type="text/html" id="toolbarappointment">
  2317. <div class="layui-btn-container">
  2318. <button class="layui-btn layui-btn-sm" lay-event="add">+ 新增预约</button>
  2319. </div>
  2320. </script>
  2321. <script>
  2322. function appointment() {
  2323. let tool = layui.tool, table = layui.table;
  2324. //项目任务
  2325. var allcount;
  2326. parent.layui.appointmentTable = table.render({
  2327. elem: '#appointment',
  2328. title: '文档列表',
  2329. toolbar: '#toolbarappointment',
  2330. cellMinWidth: 80,
  2331. parseData: function (res) { // 数据解析回调函数
  2332. // 在这里可以获取数据总数
  2333. allcount = res.data.length;
  2334. return {
  2335. code: res.code, // 数据状态码
  2336. msg: res.msg, // 状态信息
  2337. count: res.count, // 数据总数
  2338. data: res.data // 当前页数据
  2339. };
  2340. },
  2341. url: "/admin/project.appointment/datalist",
  2342. where: {'project_id': project_id},
  2343. page: false, //开启分页
  2344. limit: 20,
  2345. cols: [[
  2346. {field: 'id', title: '记录编号', width: 80, align: 'center',
  2347. templet: function (d) {
  2348. //console.log(allcount,d.LAY_NUM)
  2349. return allcount - (d.LAY_NUM - 1);
  2350. }
  2351. },
  2352. {field: 'appointment_time', title: '预约时间',align: 'center', width: 200},
  2353. {field: 'dispatch_num', title: '派遣人数', align: 'center', width: 100},
  2354. {field: 'address_or_remark', title: '地址/备注', align: 'center'},
  2355. {field: 'sponsor_name', title: '发起人', align: 'center', width: 100},
  2356. {field: 'approval_name', title: '审批人', align: 'center', width: 100},
  2357. {field: 'audit_status', title: '状态', align: 'center', width: 100,templet:function(d){
  2358. if(d.audit_status==0){
  2359. return "待审核"
  2360. }else if(d.audit_status==1){
  2361. return "通过"
  2362. }else if(d.audit_status==2){
  2363. return "拒绝"
  2364. }
  2365. }},
  2366. {field: 'audit_remark', title: '回执', align: 'center', width: 150},
  2367. {field: 'right', fixed: 'right', title: '操作', width: 100, align: 'center',
  2368. templet: function (d) {
  2369. if(d.operate && d.audit_status==0){
  2370. var html = '<div class="layui-btn-group">';
  2371. var btn1 = '<span class="layui-btn layui-btn-xs" lay-event="agree">同意</span>';
  2372. var btn2 = '<span class="layui-btn layui-btn-danger layui-btn-xs" lay-event="disagree">拒绝</span>';
  2373. return html + btn1 + btn2 + '</div>';
  2374. }else{
  2375. return "";
  2376. }
  2377. }
  2378. }
  2379. ]]
  2380. });
  2381. //触发事件
  2382. table.on('toolbar(appointment)', function (obj) {
  2383. var checkStatus = table.checkStatus(obj.config.id);
  2384. switch (obj.event) {
  2385. case 'add':
  2386. parent.layui.tool.side('/admin/project.appointment/add?project_id=' + project_id); // 项目id
  2387. break;
  2388. }
  2389. });
  2390. table.on('tool(appointment)', function (obj) {
  2391. var data = obj.data; //获得当前行数据
  2392. //console.log(data);
  2393. if (obj.event === 'agree') {
  2394. layer.prompt({
  2395. title: '请输入<span style="color: green">回执</span>',
  2396. formType: 2,
  2397. area: ['35vw', '15vw']
  2398. }, function (text, index) {
  2399. let callback = function (e) {
  2400. parent.layui.appointmentTable.reload()
  2401. layer.msg(e.msg);
  2402. setTimeout(function () {
  2403. layer.close(index);
  2404. }, 2000)
  2405. }
  2406. if (text !== "") {
  2407. tool.post("/admin/project.appointment/agree", {id: data.id,audit_remark:text,project_id:data.project_id}, callback);// 项目id
  2408. } else {
  2409. layer.msg("回执不能为空")
  2410. }
  2411. })
  2412. return;
  2413. }
  2414. if (obj.event === 'disagree') {
  2415. layer.prompt({
  2416. title: '请输入<span style="color: red">回执</span>',
  2417. formType: 2,
  2418. area: ['35vw', '15vw']
  2419. }, function (text, index) {
  2420. let callback = function (e) {
  2421. parent.layui.appointmentTable.reload()
  2422. layer.msg(e.msg);
  2423. setTimeout(function () {
  2424. layer.close(index);
  2425. }, 2000)
  2426. }
  2427. if (text !== "") {
  2428. tool.post("/admin/project.appointment/disagree", {id: data.id,audit_remark:text,project_id:data.project_id}, callback);// 项目id
  2429. } else {
  2430. layer.msg("回执不能为空")
  2431. }
  2432. })
  2433. return;
  2434. }
  2435. })
  2436. }
  2437. </script>
  2438. </div>
  2439. <?php if($project_five['project_log'] == 1): ?>
  2440. <div class="layui-tab-item">
  2441. <div class="layui-form p-4" style="height: 80vh;overflow: auto">
  2442. <?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;?>
  2443. <div class="layui-timeline" style="padding-left: 0;">
  2444. <div class="layui-timeline-item">
  2445. <i class="layui-icon layui-timeline-axis"></i>
  2446. <div class="layui-timeline-content layui-text">
  2447. <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>
  2448. <p>
  2449. <span><?php echo htmlentities($vo['nickname']); ?></span><span>&nbsp;<b><?php echo htmlentities($vo['action']); ?></b>&nbsp;</span> <span style="color: #187FDD;"> 《<?php echo htmlentities($vo['content']); ?>》</span>
  2450. </p>
  2451. </div>
  2452. </div>
  2453. <?php endforeach; endif; else: echo "" ;endif; ?>
  2454. </div>
  2455. </div>
  2456. </div>
  2457. <?php endif; ?>
  2458. </div>
  2459. </div>
  2460. <!-- /主体 -->
  2461. <!-- 底部 -->
  2462. <div class="footer">
  2463. 逸管工程项目管理系统 © www.yiguanfep.com
  2464. <img src="/static/home/images/police.png" alt="" style="width:14.5px;height:16px;">
  2465. <a href="https://beian.mps.gov.cn/#/query/websearch?code=45030202000160 " rel="\&quot;noreferrer'target=\”blank\&quot;" onclick="window.open(this.href); return false;">桂公网安备45030202000160号</a>
  2466. <a href="https://beian.miit.gov.cn/#/Integrated/index" onclick="window.open(this.href); return false;">桂ICP备17000971号</a>
  2467. </div>
  2468. <!-- /底部 -->
  2469. <!-- 脚本 -->
  2470. <script>
  2471. const moduleInit = ['tool','oaTool','employeepicker'];
  2472. var project_id = '<?php echo htmlentities($project_id); ?>'
  2473. function gouguInit() {
  2474. var form = layui.form,tool=layui.tool,upload = layui.upload;
  2475. var element = layui.element;
  2476. first()
  2477. eliminate(1)
  2478. element.on('tab(test-hash)', function (data) {
  2479. let index = $(this).attr('data-id');
  2480. console.log(index)
  2481. if (index == 1) {
  2482. eliminate(2)
  2483. comment()
  2484. } else if (index == 2) {
  2485. eliminate(3)
  2486. record(index);
  2487. } else if (index == 3) {
  2488. eliminate(4)
  2489. report(index);
  2490. } else if (index == 4) {
  2491. eliminate(5)
  2492. project_user(index)
  2493. } else if (index == 5) {
  2494. } else if (index == 6) {
  2495. }else if (index == 7) {
  2496. eliminate(6)
  2497. contact(index)
  2498. } else if (index == 8) {
  2499. appointment();
  2500. }
  2501. });
  2502. //清除小红点
  2503. function eliminate(type){
  2504. let call=function (e){
  2505. //写清除红点的js
  2506. }
  2507. tool.post("/admin/project.api/eliminate", {type: type},call)
  2508. }
  2509. //看报告
  2510. $('[lay-data="readreport"]').click(function (){
  2511. var id = $(this).attr('data-id');
  2512. parent.layui.tool.side('/admin/project.report/view/id/' + id); // 项目id
  2513. })
  2514. let a = 1;
  2515. //监听提交
  2516. form.on('submit(webform)', function (data) {
  2517. if(a){
  2518. let callback = function (e) {
  2519. a = 1
  2520. layer.msg(e.msg);
  2521. if (e.code == 0) {
  2522. tool.sideClose(1000);
  2523. }
  2524. }
  2525. var engineering_type1 ='';
  2526. if(data.field.engineering_type1==1){
  2527. engineering_type1 ='预算';
  2528. }else if(data.field.engineering_type1==2){
  2529. engineering_type1 ='结算';
  2530. }else if(data.field.engineering_type1==3){
  2531. engineering_type1 ='概算';
  2532. }else if(data.field.engineering_type1==4){
  2533. engineering_type1 ='决算';
  2534. }else if(data.field.engineering_type1==5){
  2535. engineering_type1 ='工程总承包(EPC)';
  2536. }
  2537. var engineering_type2 = '';
  2538. if(data.field.engineering_type2==1){
  2539. engineering_type2 ='审核';
  2540. }else if(data.field.engineering_type2==2) {
  2541. engineering_type2 = '编制';
  2542. }
  2543. if(engineering_type1!==""&&engineering_type2!==""){
  2544. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  2545. }
  2546. tool.post("/admin/project.cost/edit", data.field, callback);
  2547. }
  2548. a = 0
  2549. return false;
  2550. });
  2551. form.on('submit(save)', function (data) {
  2552. if(a){
  2553. let callback = function (e) {
  2554. a = 1
  2555. layer.msg(e.msg);
  2556. if (e.code == 0) {
  2557. tool.sideClose(1000);
  2558. }
  2559. }
  2560. var engineering_type1 ='';
  2561. if(data.field.engineering_type1==1){
  2562. engineering_type1 ='预算';
  2563. }else if(data.field.engineering_type1==2){
  2564. engineering_type1 ='结算';
  2565. }else if(data.field.engineering_type1==3){
  2566. engineering_type1 ='概算';
  2567. }else if(data.field.engineering_type1==4){
  2568. engineering_type1 ='决算';
  2569. }else if(data.field.engineering_type1==5){
  2570. engineering_type1 ='工程总承包(EPC)';
  2571. }
  2572. var engineering_type2 = '';
  2573. if(data.field.engineering_type2==1){
  2574. engineering_type2 ='审核';
  2575. }else if(data.field.engineering_type2==2) {
  2576. engineering_type2 = '编制';
  2577. }
  2578. if(engineering_type1!==""&&engineering_type2!==""){
  2579. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  2580. }
  2581. tool.post("/admin/project.cost/save", data.field, callback);
  2582. }
  2583. a = 0
  2584. return false;
  2585. });
  2586. form.on('submit(withdraw)', function (data) {
  2587. if(a){
  2588. let callback = function (e) {
  2589. a = 1
  2590. layer.msg(e.msg);
  2591. if (e.code == 0) {
  2592. tool.sideClose(1000);
  2593. }
  2594. }
  2595. var engineering_type1 ='';
  2596. if(data.field.engineering_type1==1){
  2597. engineering_type1 ='预算';
  2598. }else if(data.field.engineering_type1==2){
  2599. engineering_type1 ='结算';
  2600. }else if(data.field.engineering_type1==3){
  2601. engineering_type1 ='概算';
  2602. }else if(data.field.engineering_type1==4){
  2603. engineering_type1 ='决算';
  2604. }else if(data.field.engineering_type1==5){
  2605. engineering_type1 ='工程总承包(EPC)';
  2606. }
  2607. var engineering_type2 = '';
  2608. if(data.field.engineering_type2==1){
  2609. engineering_type2 ='审核';
  2610. }else if(data.field.engineering_type2==2) {
  2611. engineering_type2 = '编制';
  2612. }
  2613. if(engineering_type1!==""&&engineering_type2!==""){
  2614. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  2615. }
  2616. tool.post("/admin/project.cost/withdraw", data.field, callback);
  2617. }
  2618. a = 0
  2619. return false;
  2620. });
  2621. form.on('submit(savetime)', function (data) {
  2622. if(a){
  2623. let callback = function (e) {
  2624. a = 1
  2625. layer.msg(e.msg);
  2626. if (e.code == 0) {
  2627. tool.sideClose(1000);
  2628. }
  2629. }
  2630. var engineering_type1 ='';
  2631. if(data.field.engineering_type1==1){
  2632. engineering_type1 ='预算';
  2633. }else if(data.field.engineering_type1==2){
  2634. engineering_type1 ='结算';
  2635. }else if(data.field.engineering_type1==3){
  2636. engineering_type1 ='概算';
  2637. }else if(data.field.engineering_type1==4){
  2638. engineering_type1 ='决算';
  2639. }else if(data.field.engineering_type1==5){
  2640. engineering_type1 ='工程总承包(EPC)';
  2641. }
  2642. var engineering_type2 = '';
  2643. if(data.field.engineering_type2==1){
  2644. engineering_type2 ='审核';
  2645. }else if(data.field.engineering_type2==2) {
  2646. engineering_type2 = '编制';
  2647. }
  2648. if(engineering_type1!==""&&engineering_type2!==""){
  2649. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  2650. }
  2651. tool.post("/admin/project.cost/edit", data.field, callback);
  2652. }
  2653. a = 0
  2654. return false;
  2655. });
  2656. }
  2657. </script>
  2658. <!-- /脚本 -->
  2659. <!-- <script src="/static/assets/layui/layui.js"></script> -->
  2660. <script src="/static/assets/layui/layui.js"></script>
  2661. <script src="/static/assets/third_party/echart/echarts.min.js"></script>
  2662. <script src="/static/assets/gougu/gouguInit.js"></script>
  2663. <script src="https://unpkg.com/pinyin-pro"></script>
  2664. <script>
  2665. var { pinyin } = pinyinPro;
  2666. </script>
  2667. <!-- 统计代码 -->
  2668. <!-- /统计代码 -->
  2669. </body>
  2670. </html>