0caa1e6e03d196f1791dd10334855afd.php 95 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653
  1. <?php /*a:9:{s:77:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_proprietor\edit_main.html";i:1724743225;s:59:"D:\phpstudy_pro\WWW\caiping\app\admin\view\common\base.html";i:1723541257;s:76:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_proprietor\edit.html";i:1724742265;s:81:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_proprietor\edit_user.html";i:1723541257;s:83:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_proprietor\edit_report.html";i:1723541257;s:84:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_proprietor\edit_contact.html";i:1723541257;s:83:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_proprietor\edit_record.html";i:1723541257;s:88:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\cost_proprietor\edit_appointment.html";i:1723541257;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. {extend name="common/base"/}
  385. {block name="style"}
  386. <style>
  387. .footer {
  388. width: 100%;
  389. height: 25px;
  390. text-align: center;
  391. margin-bottom: 0 !important;
  392. display: none;
  393. }
  394. .heading th {
  395. text-align: center;
  396. }
  397. .form td {
  398. text-align: center;
  399. }
  400. /* 日志 */
  401. .log_top {
  402. padding-left: 1vw;
  403. }
  404. .log_top span {
  405. margin: 0 0.5vw;
  406. }
  407. /* 1,1,1 */
  408. .log_commentary {
  409. color: rgb(0, 176, 80);
  410. }
  411. .log_company {
  412. color: rgb(255, 33, 0);
  413. }
  414. .log_content {
  415. width: fit-content;
  416. margin: 0.3vw 1.5vw 1vw 1.5vw;
  417. padding: 0.5vw 0vw;
  418. text-indent: 1.2em;
  419. line-height: 2.1vh;
  420. background-color: rgb(255, 255, 255);
  421. border-radius: 0.5vw;
  422. box-shadow: 0.19vw 0.16vw 0.4vw 0.03vw rgba(0, 0, 0, 0.13);
  423. }
  424. .log_content_color {
  425. /* background-color: rgb(250,250,250); */
  426. }
  427. .log_content_img img {
  428. /* width: 10%; */
  429. height: 150px;
  430. border-radius: 0.5vw;
  431. margin: 0.3vw 0;
  432. padding-right: 18px;
  433. padding-bottom: 7px;
  434. padding-left: 2px;
  435. }
  436. .log_item_top {
  437. height: 70%;
  438. overflow: scroll;
  439. }
  440. .log_item_top {
  441. height: 60vh;
  442. }
  443. .log_item_bottom {
  444. display: flex;
  445. /* height: 17vh; */
  446. /* border-top: 1px solid #eee; */
  447. margin: 0 1.5vw;
  448. /* background-color: rgb(250,250,250); */
  449. }
  450. .log_input input {
  451. width: 55vw;
  452. height: 10vh;
  453. border: #eee 1px solid;
  454. }
  455. .log_bottom_img {
  456. /* height: 5vh; */
  457. }
  458. .log_bottom_img img {
  459. height: 4vw;
  460. width: 6vw;
  461. border-radius: 0.5vw;
  462. margin: 0.5vw 0vw 0.5vw 0.3vw;
  463. }
  464. .log_bottom_left {
  465. width: 100%;
  466. margin-top: 1.5vh;
  467. }
  468. .log_bottom_right {
  469. width: 5%;
  470. }
  471. /* 上传图片 */
  472. .layui-upload-drag-self {
  473. background-color: #fbfdff;
  474. border: 1px dashed #c0ccda;
  475. border-radius: 6px;
  476. box-sizing: border-box;
  477. line-height: 4vw;
  478. vertical-align: top;
  479. display: inline-block;
  480. text-align: center;
  481. cursor: pointer;
  482. outline: 0;
  483. margin-right: 13px;
  484. float: left;
  485. }
  486. .layui-input-inlines-self {
  487. position: relative;
  488. margin-left: 90px;
  489. min-height: 36px;
  490. text-align: left;
  491. }
  492. .layui-upload-drag-self .layui-icon {
  493. font-size: 28px;
  494. color: #8c939d
  495. }
  496. .layui-upload-drag-self .img {
  497. position: relative;
  498. height: 148px;
  499. width: 148px;
  500. }
  501. .layui-upload-img {
  502. width: 148px;
  503. height: 148px;
  504. border-radius: 6px;
  505. margin-top: -3px;
  506. margin-left: -2px;
  507. }
  508. .handle {
  509. position: absolute;
  510. width: 148px;
  511. height: 100%;
  512. z-index: 100;
  513. border-radius: 6px;
  514. top: 0;
  515. background: rgba(59, 60, 61, 0.6);
  516. text-align: center;
  517. }
  518. .handle .icon-myself {
  519. z-index: 999;
  520. transition: all .3s;
  521. cursor: pointer;
  522. font-size: 25px;
  523. width: 25px;
  524. color: rgba(255, 255, 255, 0.91);
  525. margin: 0 4px;
  526. }
  527. .log_textarea {
  528. width: 89vw;
  529. height: 8vh;
  530. padding: 0.5vw;
  531. /* margin-right: 2vw; */
  532. margin: 1vw;
  533. }
  534. .log_button_img {
  535. width: 2vw;
  536. }
  537. .log_card {
  538. border: none !important;
  539. }
  540. /* 点击图片放大 */
  541. .content_img img {
  542. max-width: 100%;
  543. cursor: pointer;
  544. }
  545. .overlay {
  546. display: none;
  547. position: fixed;
  548. top: 0;
  549. left: 0;
  550. width: 100%;
  551. height: 100%;
  552. background-color: rgba(0, 0, 0, 0.7);
  553. justify-content: center;
  554. z-index: 1;
  555. }
  556. .overlay img {
  557. margin-top: 4%;
  558. max-width: 90%;
  559. max-height: 90%;
  560. object-fit: contain;
  561. }
  562. .p-4 {
  563. background-color: rgb(255, 255, 255);
  564. }
  565. /*表格*/
  566. #tabniubi {
  567. width: 100%;
  568. margin: 10px 0;
  569. background-color: #fff;
  570. color: #5f5f5f;
  571. }
  572. #tabniubi th {
  573. padding: 9px 15px;
  574. min-height: 20px;
  575. height: 40px;
  576. line-height: 40px;
  577. text-align: center;
  578. /* font-size: 14px; */
  579. border-width: 1px;
  580. border-style: solid;
  581. border-color: #e2e2e2;
  582. font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif;
  583. }
  584. #tabniubi tr:first-child {
  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. }
  593. #tabniubi tr:first-child th {
  594. padding: 0;
  595. min-height: 0;
  596. line-height: 0;
  597. border-width: 0;
  598. border-style: none;
  599. border-color: #fff;
  600. font-size: 0;
  601. }
  602. .form-title {
  603. background-color: rgb(241, 241, 241);
  604. color: rgb(95, 95, 95);
  605. border-color: rgb(241, 241, 241);
  606. font-weight: 600;
  607. }
  608. .forleft {
  609. text-align: left !important;
  610. }
  611. /* .forright{
  612. text-align:right !important;
  613. } */
  614. .layui-form-select dl dd.layui-this {
  615. background-color: #f8f8f8;
  616. color: rgb(23, 145, 233);
  617. font-weight: 700;
  618. }
  619. .layui-input, .layui-textarea {
  620. /* padding-left: 3.75vw; */
  621. color: #5f5f5f;
  622. }
  623. .upimg {
  624. width: 250px;
  625. height: 250px;
  626. }
  627. .fujianimg img {
  628. height: 5.5vh;
  629. }
  630. .filelist {
  631. width: 100%;
  632. overflow: auto;
  633. justify-content: flex-start;
  634. align-content: space-between;
  635. flex-direction: column-reverse;
  636. flex-wrap: wrap;
  637. display: flex;
  638. }
  639. .filelist li {
  640. padding: 0.5vw 0.8vw 0.5vw 0.8vw;
  641. white-space: nowrap;
  642. overflow: hidden;
  643. text-overflow: ellipsis;
  644. display: inline-block;
  645. border-right: 1px solid #e2e2e2;
  646. float: left;
  647. }
  648. .filelist p {
  649. margin: 3px 0 5px 0;
  650. width: 7vw;
  651. overflow: hidden;
  652. text-overflow: ellipsis;
  653. text-align: center;
  654. }
  655. #filesBox2 li {
  656. padding: 0.5vw 0.8vw 0.5vw 0.8vw;
  657. white-space: nowrap;
  658. overflow: hidden;
  659. text-overflow: ellipsis;
  660. display: inline-block;
  661. border-right: 1px solid #e2e2e2;
  662. float: left;
  663. }
  664. </style>
  665. {/block}
  666. <!-- 主体 -->
  667. {block name="body"}
  668. <form class="layui-form p-4">
  669. <table id="tabniubi" cellpadding="1" cellspacing="1">
  670. <tr>
  671. <th style="width: 10%;height: 0;"></th>
  672. <th style="width: 10%;height: 0;"></th>
  673. <th style="width: 10%;height: 0;"></th>
  674. <th style="width: 10%;height: 0;"></th>
  675. <th style="width: 10%;height: 0;"></th>
  676. <th style="width: 10%;height: 0;"></th>
  677. <th style="width: 10%;height: 0;"></th>
  678. <th style="width: 10%;height: 0;"></th>
  679. <th style="width: 10%;height: 0;"></th>
  680. </tr>
  681. <tr border="1">
  682. <th class="form-title">项目名称 <font style="color: red !important;">*</font></th>
  683. <th colspan="2">
  684. <input type="text" name="project_name" lay-verify="required" lay-reqText="请完善项目名称" value="<?php echo htmlentities($detail['project_name']); ?>"
  685. autocomplete="off" placeholder="请输入项目名称" class="layui-input">
  686. </th>
  687. <th class="form-title">项目编号 <font style="color: red !important;">*</font></th>
  688. <th colspan="2">
  689. <input type="text" name="project_num" lay-verify="required" lay-reqText="请完善项目编号" value="<?php echo htmlentities($detail['project_num']); ?>"
  690. autocomplete="off" placeholder="请输入项目编号" class="layui-input">
  691. </th>
  692. <th class="form-title">工程类别</th>
  693. <th colspan="2">
  694. <input type="text" name="engineering_category" value="<?php echo htmlentities($detail['engineering_category']); ?>" autocomplete="off" placeholder="请输入工程类别"
  695. class="layui-input">
  696. </th>
  697. </tr>
  698. <tr>
  699. <th class="form-title">项目类型<font style="color: red !important;">*</font></th>
  700. <th colspan="2">
  701. <div>
  702. <select name="engineering_type1" lay-verify="required">
  703. <option value="">请选择项目类型</option>
  704. <option value="1" <?php if($detail['engineering_type1'] == '1'): ?> selected <?php endif; ?>>预算</option>
  705. <option value="2"<?php if($detail['engineering_type1'] == '2'): ?> selected <?php endif; ?>>结算</option>
  706. </select>
  707. </div>
  708. </th>
  709. <th class="form-title">——</th>
  710. <th colspan="2">
  711. <div>
  712. <select name="engineering_type2" lay-verify="required">
  713. <option value="">请选择项目类型</option>
  714. <option value="1" <?php if($detail['engineering_type2'] == '1'): ?> selected <?php endif; ?>>审核</option>
  715. <option value="2" <?php if($detail['engineering_type2'] == '2'): ?> selected <?php endif; ?>>编制</option>
  716. </select>
  717. </div>
  718. </th>
  719. </tr>
  720. <tr>
  721. <th class="form-title">项目区域</th>
  722. <th colspan="2">
  723. <div>
  724. <div class="layui-form-item"
  725. style="margin-bottom: 0;display: flex;flex-direction: row;justify-content: space-between;">
  726. <div class="layui-input-inline" style="width: 6.5vw;">
  727. <select id="province" lay-filter="province" name="province"></select>
  728. </div>
  729. <div class="layui-input-inline area" style="width: 6.5vw;">
  730. <select id="city" lay-filter="city" name="city"></select>
  731. </div>
  732. <div class="layui-input-inline area" style="width: 6.5vw;">
  733. <select id="area" lay-filter="area" name="area"></select>
  734. </div>
  735. </div>
  736. </div>
  737. </th>
  738. </tr>
  739. <tr>
  740. <th class="form-title">资金性质</th>
  741. <th>
  742. <input type="radio" name="fiscal_nature" value="财政资金" title="财政资金" lay-filter="tax"
  743. <?php if($detail['fiscal_nature'] == '财政资金'): ?> checked <?php endif; ?> >
  744. <input type="radio" name="fiscal_nature" value="非财政资金" title="非财政资金" lay-filter="tax"
  745. <?php if($detail['fiscal_nature'] == '非财政资金'): ?> checked <?php endif; ?> >
  746. </th>
  747. <th class="form-title entrust_unit">委托单位 <font style="color: red !important;">*</font></th>
  748. <th colspan="2" class="entrust_unit">
  749. <input type="text" name="entrust_unit_name" autocomplete="off" readonly value="<?php echo htmlentities($detail['entrust_unit_name']); ?>" lay-reqText="当地财评委托单位" placeholder="当地财评委托单位" class="layui-input get-entrust">
  750. <input type="hidden" name="entrust_unit" value="<?php echo htmlentities($detail['entrust_unit']); ?>">
  751. </th>
  752. <tr>
  753. <th class="form-title">审批人 <font style="color: red !important;">*</font></th>
  754. <th colspan="2">
  755. <select name="sent_review_approver" lay-verify="required" lay-reqText="请选择审批人">
  756. <option value="">请选择审批人</option>
  757. {dump($person)}
  758. <?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;?>
  759. <option value="<?php echo htmlentities($v['id']); ?>" <?php if($detail['sent_review_approver'] == $v['id']): ?> selected="" <?php endif; ?>><?php echo htmlentities($v['nickname']); ?></option>
  760. <?php endforeach; endif; else: echo "" ;endif; ?>
  761. </select>
  762. </th>
  763. <th colspan="2">
  764. <select name="sent_review_second_approver" lay-reqText="请选择审批人">
  765. <option value="">请选择第二审批人(可选)</option>
  766. {dump($person)}
  767. <?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;?>
  768. <option value="<?php echo htmlentities($v['id']); ?>" <?php if($detail['sent_review_second_approver'] == $v['id']): ?> selected="" <?php endif; if(!isset($detail['sent_review_second_approver'])): ?>name=""<?php endif; ?>><?php echo htmlentities($v['nickname']); ?></option>
  769. <?php endforeach; endif; else: echo "" ;endif; ?>
  770. </select>
  771. </th>
  772. </tr>
  773. <tr>
  774. <th colspan="9" class="forleft">相关附件
  775. <button class="layui-btn layui-btn-xs layui-btn-danger" style="float: right;" type="button"
  776. id="uploadBtn">上传附件
  777. </button>
  778. </th>
  779. </tr>
  780. <tr>
  781. <th colspan="9" class="fujianimg" style="padding: 9px 0;">
  782. <div id="filesBox2">
  783. <div class="filelist" id="filesBigBox">
  784. <ul id="filesBox" style="overflow: scroll;">
  785. <?php echo fileCard($file_array); ?>
  786. </ul>
  787. </div>
  788. <?php if(empty($file_array) || (($file_array instanceof \think\Collection || $file_array instanceof \think\Paginator ) && $file_array->isEmpty())): ?>
  789. <div class="layui-data-none">暂无附件</div>
  790. <?php endif; ?>
  791. </div>
  792. </th>
  793. </tr>
  794. </table>
  795. <div class="py-3">
  796. <input type="hidden" name="id" value="<?php echo htmlentities($detail['id']); ?>"/>
  797. <?php if($detail['proprietor_status']==0): ?>
  798. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="add">保存</button>
  799. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="save">提交</button>
  800. <?php endif; ?>
  801. <!-- //审核中-->
  802. <?php if($detail['proprietor_status'] == 1): ?>
  803. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="withdraw">撤回</button>
  804. <?php endif; ?>
  805. </div>
  806. </form>
  807. {/block}
  808. <!-- /主体 -->
  809. <!-- 脚本 -->
  810. {block name="script"}
  811. <script>
  812. var moduleInit = ['tool', 'oaTool'];
  813. var province = '';
  814. function Add() {
  815. var input1 = 0, input2 = 0;
  816. input1 = parseInt(document.getElementById("sent_review_amount").value);
  817. input2 = parseInt(document.getElementById("authorize_amount").value);
  818. if (input1 && input2) {
  819. var aa = input2 - input1;
  820. var bb = aa / input1 * 100;
  821. bb = bb.toFixed(2);
  822. $('[name="review_add_reduce_amount"]').val(aa);
  823. $('[name="review_add_reduce_rate"]').val(bb);
  824. $('#review_add_reduce_amount').html(aa);
  825. $('#review_add_reduce_rate').html(bb)
  826. } else {
  827. $('[name="review_add_reduce_amount"]').val('');
  828. $('[name="review_add_reduce_rate"]').val('');
  829. $('#review_add_reduce_amount').html('');
  830. $('#review_add_reduce_rate').html('')
  831. }
  832. // 总审定金额-总送审金额
  833. }
  834. function gouguInit() {
  835. var form = layui.form, tool = layui.tool, oaTool = layui.oaTool;
  836. let adress;
  837. //日期选择
  838. layui.laydate.render({
  839. elem: '#date',
  840. range: ['#start_time', '#end_time'],
  841. rangeLinked: true
  842. });
  843. var selectedNature = $('input[name="fiscal_nature"]:checked').val();
  844. if (selectedNature == "财政资金") {
  845. $(".entrust_unit").show();
  846. $(".review_unit").hide();
  847. } else {
  848. $(".review_unit").show();
  849. $(".entrust_unit").hide();
  850. }
  851. //radio选择
  852. form.on('radio(tax)', function (data) {
  853. if (data.value == "财政资金") {
  854. console.log(1)
  855. $(".entrust_unit").show();
  856. $(".review_unit").hide();
  857. } else {
  858. $(".review_unit").show();
  859. $(".entrust_unit").hide();
  860. }
  861. });
  862. $('.customer-picker').on('click', function () {
  863. let that = $(this);
  864. let callback = function(data){
  865. console.log(data);
  866. $('[name="review_unit"]').val(data.id);
  867. $('[name="review_unit_name"]').val(data.title);
  868. }
  869. oaTool.customerPicker(callback);
  870. });
  871. $('.get-entrust').on('click', function () {
  872. let that = $(this);
  873. let callback = function(data){
  874. console.log(data);
  875. $('[name="entrust_unit"]').val(data.id);
  876. $('[name="entrust_unit_name"]').val(data.title);
  877. }
  878. oaTool.getEntrust(callback);
  879. });
  880. let c = 1;
  881. //监听提交
  882. form.on('submit(add)', function (data) {
  883. if(data.field.fiscal_nature=="财政资金"){
  884. delete data.field.review_unit;
  885. delete data.field.review_unit_name;
  886. if(data.field.entrust_unit==""&&data.field.entrust_unit_name==""){
  887. layer.msg("请选择委托单位")
  888. return false;
  889. }
  890. }else {
  891. delete data.field.entrust_unit;
  892. delete data.field.entrust_unit_name;
  893. if(data.field.review_unit==""&&data.field.review_unit_name==""){
  894. layer.msg("请选择评审单位")
  895. return false;
  896. }
  897. }
  898. if (c) {
  899. let callback = function (e) {
  900. c = 1
  901. layer.msg(e.msg);
  902. if (e.code == 0) {
  903. tool.sideClose(1000);
  904. }
  905. }
  906. var engineering_type1 = '';
  907. if (data.field.engineering_type1 == 1) {
  908. engineering_type1 = '预算';
  909. } else if (data.field.engineering_type1 == 2) {
  910. engineering_type1 = '结算';
  911. }
  912. var engineering_type2 = '';
  913. if (data.field.engineering_type2 == 1) {
  914. engineering_type2 = '审核';
  915. } else if (data.field.engineering_type2 == 2) {
  916. engineering_type2 = '编制';
  917. }
  918. if(engineering_type1!==""&&engineering_type2!==""){
  919. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  920. }
  921. tool.post("/admin/project.cost_proprietor/edit", data.field, callback);
  922. }
  923. c = 0
  924. return false;
  925. });
  926. form.on('submit(save)', function (data) {
  927. if(data.field.fiscal_nature=="财政资金"){
  928. if(data.field.entrust_unit==""&&data.field.entrust_unit_name==""){
  929. layer.msg("请选择委托单位")
  930. return false;
  931. }
  932. }else {
  933. if(data.field.review_unit==""&&data.field.review_unit_name==""){
  934. layer.msg("请选择评审单位")
  935. return false;
  936. }
  937. }
  938. if (c) {
  939. let callback = function (e) {
  940. c = 1
  941. layer.msg(e.msg);
  942. if (e.code == 0) {
  943. tool.sideClose(1000);
  944. }
  945. }
  946. var engineering_type1 = '';
  947. if (data.field.engineering_type1 == 1) {
  948. engineering_type1 = '预算';
  949. } else if (data.field.engineering_type1 == 2) {
  950. engineering_type1 = '结算';
  951. }
  952. var engineering_type2 = '';
  953. if (data.field.engineering_type2 == 1) {
  954. engineering_type2 = '审核';
  955. } else if (data.field.engineering_type2 == 2) {
  956. engineering_type2 = '编制';
  957. }
  958. if(engineering_type1!==""&&engineering_type2!==""){
  959. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  960. }
  961. tool.post("/admin/project.cost_proprietor/save", data.field, callback);
  962. }
  963. c = 0
  964. return false;
  965. });
  966. let a2 = 1;
  967. form.on('submit(withdraw)', function (data) {
  968. if(a2){
  969. let callback = function (e) {
  970. a2 = 1
  971. layer.msg(e.msg);
  972. if (e.code == 0) {
  973. tool.sideClose(1000);
  974. }
  975. }
  976. if(data.field.engineering_type1!==""&&data.field.engineering_type2!==""){
  977. var engineering_type1 ='';
  978. if(data.field.engineering_type1==1){
  979. engineering_type1 ='预算';
  980. }else if(data.field.engineering_type1==2){
  981. engineering_type1 ='结算';
  982. }else if(data.field.engineering_type1==3){
  983. engineering_type1 ='概算';
  984. }else if(data.field.engineering_type1==4){
  985. engineering_type1 ='决算';
  986. }else if(data.field.engineering_type1==5){
  987. engineering_type1 ='工程总承包(EPC)';
  988. }
  989. var engineering_type2 = '';
  990. if(data.field.engineering_type2==1){
  991. engineering_type2 ='审核';
  992. }else if(data.field.engineering_type2==2) {
  993. engineering_type2 = '编制';
  994. }
  995. if(engineering_type1!==""&&engineering_type2!==""){
  996. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  997. }
  998. }
  999. tool.post("/admin/project.cost_proprietor/withdraw", data.field, callback);
  1000. }
  1001. a2 = 0
  1002. return false;
  1003. });
  1004. oaTool.addFile({
  1005. type: 1,
  1006. isSave: true,
  1007. ajaxSave: function (res) {
  1008. let callback = function (e) {
  1009. if (e.code == 202) {
  1010. layer.msg(e.msg);
  1011. } else {
  1012. layer.msg('上传成功!');
  1013. }
  1014. setTimeout(function () {
  1015. $("#filesBox").load(location.href + " #filesBox>*", { type: 2 })
  1016. }, 500)
  1017. }
  1018. tool.post("/admin/project.api/add_file", {
  1019. 'topic_id': "<?php echo htmlentities($detail['id']); ?>",
  1020. 'file_id': res.data.id,
  1021. 'file_name': res.data.name,
  1022. 'module': 'project'
  1023. }, callback);
  1024. }
  1025. });
  1026. $('#filesBox2').on('click', '.file-del', function () {
  1027. let id = $(this).parent().parent().data('id');
  1028. layer.confirm('确定要删除该文件吗?请慎重', {icon: 3, title: '提示'}, function (index) {
  1029. let callback = function (e) {
  1030. $("#" + id + "").remove();
  1031. layer.closeAll();
  1032. layer.msg(e.msg);
  1033. $('[lay-filter="webform"]').click();
  1034. }
  1035. tool.delete("/admin/project.api/delete_file_company", {id: id}, callback);
  1036. });
  1037. })
  1038. layui.use(['form', 'jquery'], function () {
  1039. var form = layui.form;
  1040. const $ = layui.jquery;
  1041. let adress;
  1042. $.ajax({
  1043. type: "get", //使用get方式
  1044. url: "/static/assets/layui/adress.json", //json文件相对于这个HTML的路径
  1045. dataType: "json",
  1046. async: false,
  1047. success: function (data) {
  1048. //这个data就是json数据
  1049. adress = data
  1050. var province = Object.keys(adress)
  1051. var proStrs = '<option value="">省</option>';
  1052. for (var i = 0; i < province.length; i++) {
  1053. proStrs += '<option value="' + province[i] + '">' + province[i] + '</option>';
  1054. }
  1055. $("#province").html(proStrs);
  1056. layui.form.render("select")
  1057. },
  1058. error: function () {
  1059. layer.alert("地址请求失败!! ");
  1060. }
  1061. });
  1062. function getFirstAttr(obj) {
  1063. for (var k in obj) return k;
  1064. }
  1065. function selectOption(selectedProvince, selectedCity = '', selectedArea = '') {
  1066. var proStr = '<option value="">省</option>', cityStr = '<option value="">市</option>',
  1067. areaStr = '<option value="">县</option>';
  1068. var pro = adress[selectedProvince], ci = adress[selectedProvince][selectedCity];
  1069. for (var province in adress) {
  1070. if (province == selectedProvince) proStr += '<option value="' + province + '" selected>' + province + '</option>';
  1071. else proStr += '<option value="' + province + '">' + province + '</option>';
  1072. }
  1073. $("#province").html(proStr);
  1074. for (var city in pro) {
  1075. if (city == selectedCity) cityStr += '<option value="' + city + '" selected>' + city + '</option>';
  1076. else cityStr += '<option value="' + city + '">' + city + '</option>';
  1077. }
  1078. $("#city").html(cityStr);
  1079. for (var area in ci) {
  1080. if (area == "remove") {
  1081. continue;
  1082. }
  1083. if (ci[area] == selectedArea) areaStr += '<option value="' + ci[area] + '" selected>' + ci[area] + '</option>';
  1084. else areaStr += '<option value="' + ci[area] + '">' + ci[area] + '</option>';
  1085. }
  1086. $("#area").html(areaStr);
  1087. form.render();
  1088. }
  1089. /*selectOption(1,2, 3);*/
  1090. form.on('select(province)', function (data) {
  1091. let thisProvince = data.value;
  1092. let thisCity = getFirstAttr(adress[thisProvince]);
  1093. selectOption(data.value);
  1094. });
  1095. form.on('select(city)', function (data) {
  1096. selectOption($("#province").val(), data.value, getFirstAttr(data.value));
  1097. });
  1098. selectOption("<?php echo htmlentities($detail['province']); ?>","<?php echo htmlentities($detail['city']); ?>","<?php echo htmlentities($detail['area']); ?>")
  1099. })
  1100. }
  1101. </script>
  1102. {/block}
  1103. <!-- /脚本 -->
  1104. </div>
  1105. <?php if($project_five['project_user'] == 1): ?>
  1106. <div class="layui-tab-item">
  1107. <div class="p-3 bg-white">
  1108. <table class="layui-hide" id="user" lay-filter="user"></table>
  1109. </div>
  1110. <script type="text/html" id="toolbaruser">
  1111. <div class="layui-btn-container">
  1112. <?php if($detail['maker_type']==2): ?><button class="layui-btn layui-btn-sm" lay-event="addEntrust">+ 新增委托单位成员</button><?php endif; ?>
  1113. <button class="layui-btn layui-btn-sm" lay-event="add_head">+ 新增项目负责人</button>
  1114. <button class="layui-btn layui-btn-sm" lay-event="add">+ 新增作业负责人</button>
  1115. <button class="layui-btn layui-btn-sm picker-more" lay-event="adda">+ 新增作业成员</button>
  1116. <button class="layui-btn layui-btn-sm picker-more" lay-event="adc">+ 新增送审单位成员</button>
  1117. </div>
  1118. </script>
  1119. <script>
  1120. function project_user() {
  1121. let tool = layui.tool, table = layui.table, employeepicker = layui.employeepicker;
  1122. //项目成员
  1123. parent.layui.userTable = table.render({
  1124. elem: '#user',
  1125. title: '项目成员列表',
  1126. cellMinWidth: 80,
  1127. toolbar: '#toolbaruser',
  1128. url: "/admin/project.cost_company/project_user", //数据接口
  1129. where: {'project_id': project_id},
  1130. page: false, //开启分页
  1131. limit: 20,
  1132. cols: [[ //表头
  1133. {field: 'nickname', fixed: 'left', title: '成员姓名', width: 200, align: 'center', rowspan: 2},
  1134. {field: 'unit_name', title: '所在单位', align: 'center', width: 200, rowspan: 2},
  1135. {
  1136. field: 'type', title: '成员类型', align: 'center', width: 200, rowspan: 2,
  1137. templet: function (a) {
  1138. var html = "";
  1139. if (a.type == 1) {
  1140. html = "项目负责人"
  1141. } else if (a.type == 2) {
  1142. html = "项目负责人"
  1143. } else if (a.type == 3) {
  1144. html = "作业负责人"
  1145. } else if (a.type == 4) {
  1146. html = "作业成员"
  1147. } else if (a.type == 5) {
  1148. html = "项目负责人"
  1149. } else if (a.type == 6) {
  1150. html = "项目负责人"
  1151. }
  1152. return html;
  1153. }
  1154. },
  1155. {field: 'unit_type', title: '单位类型', align: 'center', width: 200, rowspan: 2},
  1156. {field: 'mobile', title: '手机号码', align: 'center', rowspan: 2},
  1157. {field: 'email', title: '单位邮箱', align: 'center', rowspan: 2},
  1158. {
  1159. title: '操作', fixed: 'right', align: 'center', width: 150, rowspan: 2, templet: function (d) {
  1160. var html = '<span class="layui-btn layui-btn-danger layui-btn-xs" lay-event="remove">移除</span>';
  1161. return html;
  1162. }
  1163. }
  1164. ]]
  1165. });
  1166. //触发事件
  1167. table.on('toolbar(user)', function (obj) {
  1168. var checkStatus = table.checkStatus(obj.config.id);
  1169. switch (obj.event) {
  1170. case 'addEntrust':
  1171. // let callback = function (){
  1172. // layui.alert("hhh")
  1173. // }
  1174. aaa()
  1175. break;
  1176. case 'add':
  1177. employeepicker.init({
  1178. type: 0,
  1179. department_url: "/admin/project.cost_company/get_department_tree",
  1180. employee_url: "/admin/project.cost_company/get_employee",
  1181. callback: function (ids, names, dids, departments) {
  1182. let callback = function (e) {
  1183. layer.msg(e.msg);
  1184. if (e.code == 0) {
  1185. parent.layui.userTable.reload();
  1186. }
  1187. }
  1188. tool.post("/admin/project.cost_company/add_user_company_type1", {
  1189. id: ids,
  1190. project_id: project_id,
  1191. type: 1
  1192. }, callback);
  1193. }
  1194. })
  1195. break;
  1196. case "adda":
  1197. employeepicker.init({
  1198. type: 0,
  1199. department_url: "/admin/project.cost_company/get_department_tree",
  1200. employee_url: "/admin/project.cost_company/get_employee",
  1201. callback: function (ids, names, dids, departments) {
  1202. let callback = function (e) {
  1203. layer.msg(e.msg);
  1204. if (e.code == 0) {
  1205. parent.layui.userTable.reload();
  1206. }
  1207. }
  1208. tool.post("/admin/project.cost_company/add_user_company_type2", {
  1209. id: ids,
  1210. project_id: project_id,
  1211. type: 2
  1212. }, callback);
  1213. }
  1214. })
  1215. break;
  1216. case "adc":
  1217. // getSentReview()
  1218. let call = function () {
  1219. layer.msg(e.msg);
  1220. if (e.code == 0) {
  1221. parent.layui.userTable.reload();
  1222. }
  1223. }
  1224. // employeepicker.init({
  1225. // type: 0,
  1226. // department_url: "/admin/project.cost_company/get_department_tree",
  1227. // employee_url: "/admin/project.cost_company/get_employee",
  1228. // callback: function (ids, names, dids, departments) {
  1229. // let callback = function (e) {
  1230. // layer.msg(e.msg);
  1231. // if (e.code == 0) {
  1232. // parent.layui.userTable.reload();
  1233. // }
  1234. // }
  1235. // tool.post("/admin/project.cost_company/add_sent_review_unit", {
  1236. // id: ids,
  1237. // project_id: project_id,
  1238. // }, callback);
  1239. // }
  1240. // })
  1241. parent.layui.tool.side('/admin/project.cost_company/add_sent_review_unit?project_id=' + project_id, call);
  1242. break;
  1243. case "add_head":
  1244. employeepicker.init({
  1245. type: 0,
  1246. department_url: "/admin/project.cost_company/get_department_tree",
  1247. employee_url: "/admin/project.cost_company/get_employee",
  1248. callback: function (ids, names, dids, departments) {
  1249. let callback = function (e) {
  1250. layer.msg(e.msg);
  1251. if (e.code == 0) {
  1252. parent.layui.userTable.reload();
  1253. }
  1254. }
  1255. tool.post("/admin/project.cost_company/add_user_company_head", {
  1256. id: ids,
  1257. project_id: project_id,
  1258. }, callback);
  1259. }
  1260. })
  1261. break;
  1262. }
  1263. });
  1264. //监听行工具事件
  1265. table.on('tool(user)', function (obj) {
  1266. let postData = {"id": obj.data.id, "project_id": project_id, "type": obj.data.type};
  1267. let callback = function (e) {
  1268. layer.closeAll();
  1269. layer.msg(e.msg);
  1270. if (e.code == 0) {
  1271. parent.layui.userTable.reload();
  1272. }
  1273. }
  1274. if (obj.event === 'remove') {
  1275. if (obj.data.type == 3 || obj.data.type == 4) {
  1276. console.log(postData);
  1277. layer.confirm('确定要移除该项目成员吗?', {icon: 3, title: '提示'}, function (index) {
  1278. tool.delete("/admin/project.cost_company/remove_user_company", postData, callback);
  1279. });
  1280. } else if (obj.data.type == 6) {
  1281. layer.confirm('确定要移除该送审单位成员吗?', {icon: 3, title: '提示'}, function (index) {
  1282. tool.delete("/admin/project.cost_company/remove_sent_review", {
  1283. "id": obj.data.id,
  1284. "project_id": project_id,
  1285. "type": obj.data.type,
  1286. "nickname": obj.data.nickname
  1287. }, callback);
  1288. });
  1289. } else if (obj.data.type == 2) {
  1290. layer.confirm('确定要移除该送审单位成员吗?', {icon: 3, title: '提示'}, function (index) {
  1291. tool.delete("/admin/project.cost_company/remove_review_head", postData, callback);
  1292. });
  1293. } else if (obj.data.type == 1) {
  1294. layer.confirm('确定要移除该委托单位成员吗?', {icon: 3, title: '提示'}, function (index) {
  1295. tool.delete("/admin/project.cost_company/remove_entrust_head", postData, callback);
  1296. });
  1297. }else {
  1298. layer.msg("该成员不可移除");
  1299. }
  1300. }
  1301. return;
  1302. });
  1303. //委托单位
  1304. function aaa(callback){
  1305. var customeTable,form = layui.form;
  1306. const a = layer.open({
  1307. title: '选择委托单位',
  1308. area: ['600px', '580px'],
  1309. type: 1,
  1310. content: '<div class="picker-table">\
  1311. <form class="layui-form pb-2">\
  1312. <div class="layui-input-inline" style="width:480px;">\
  1313. <input type="text" name="keywords" placeholder="委托单位" class="layui-input" autocomplete="off" />\
  1314. </div>\
  1315. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="search_customer">提交搜索</button>\
  1316. </form>\
  1317. <div id="customerTable"></div></div>',
  1318. success: function () {
  1319. customeTable = table.render({
  1320. elem: '#customerTable'
  1321. , url: '/admin/project.api/get_entrust'
  1322. , page: true //开启分页
  1323. , limit: 10
  1324. , cols: [[
  1325. {type: 'radio', title: '选择'},
  1326. {field: 'title', title: '委托单位名称', align: 'center'},
  1327. {field: 'address', title: ' 评审单位地址', align: 'center'}
  1328. ]]
  1329. });
  1330. //客户搜索提交
  1331. form.on('submit(search_customer)', function (data) {
  1332. customeTable.reload({where: {keywords: data.field.keywords}, page: {curr: 1}});
  1333. return false;
  1334. });
  1335. },
  1336. btn: ['确定'],
  1337. btnAlign: 'c',
  1338. yes: function () {
  1339. var checkStatus = table.checkStatus(customeTable.config.id);
  1340. var data = checkStatus.data;
  1341. console.log(data)
  1342. if (data.length > 0) {
  1343. bbb(data);
  1344. layer.close(a);
  1345. } else {
  1346. layer.msg('请先选择委托单位');
  1347. return false;
  1348. }
  1349. }
  1350. })
  1351. }
  1352. function bbb(e){
  1353. var entrustPeopleTable,form = layui.form;
  1354. layer.open({
  1355. title: '选择委托单位',
  1356. area: ['600px', '580px'],
  1357. type: 1,
  1358. content: '<div class="picker-table">\
  1359. <form class="layui-form pb-2">\
  1360. <div class="layui-input-inline" style="width:480px;">\
  1361. <input type="text" name="keywords" placeholder="委托单位" class="layui-input" autocomplete="off" />\
  1362. </div>\
  1363. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="entrustPeople">提交搜索</button>\
  1364. </form>\
  1365. <div id="entrustPeopleTable"></div></div>',
  1366. success: function () {
  1367. entrustPeopleTable = table.render({
  1368. elem: '#entrustPeopleTable'
  1369. , url: '/admin/project.api/get_entrust_people'
  1370. , where:{unit_id:e[0]["id"]}
  1371. , page: true //开启分页
  1372. , limit: 10
  1373. , cols: [[
  1374. {type: 'radio', title: '选择'},
  1375. {field: 'id', width: 80, title: '编号', align: 'center'},
  1376. {field: 'nickname', title: '昵称', align: 'center'},
  1377. ]]
  1378. });
  1379. //客户搜索提交
  1380. form.on('submit(entrustPeople)', function (data) {
  1381. entrustPeopleTable.reload({where: {keywords: data.field.keywords,unit_id:e[0]["id"]}, page: {curr: 1}});
  1382. return false;
  1383. });
  1384. },
  1385. btn: ['确定'],
  1386. btnAlign: 'c',
  1387. yes: function () {
  1388. var checkStatus = table.checkStatus(entrustPeopleTable.config.id);
  1389. var data = checkStatus.data;
  1390. console.log(data)
  1391. if (data.length > 0) {
  1392. let callback = function (e) {
  1393. layer.msg(e.msg);
  1394. if (e.code == 0) {
  1395. layer.closeAll();
  1396. parent.layui.userTable.reload();
  1397. }
  1398. }
  1399. tool.post("/admin/project.cost_company/add_entrust_people", {
  1400. id: data[0]["id"],
  1401. project_id: project_id,
  1402. }, callback);
  1403. } else {
  1404. layer.msg('请先选择委托单位人员');
  1405. return false;
  1406. }
  1407. }
  1408. })
  1409. }
  1410. function getSentReview(){
  1411. var sentReviewTable,form = layui.form;
  1412. const a = layer.open({
  1413. title: '选择送审单位',
  1414. area: ['600px', '580px'],
  1415. type: 1,
  1416. content: '<div class="picker-table">\
  1417. <form class="layui-form pb-2">\
  1418. <div class="layui-input-inline" style="width:480px;">\
  1419. <input type="text" name="keywords" placeholder="委托单位" class="layui-input" autocomplete="off" />\
  1420. </div>\
  1421. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="search_customer">提交搜索</button>\
  1422. </form>\
  1423. <div id="sentReviewTable"></div></div>',
  1424. success: function () {
  1425. sentReviewTable = table.render({
  1426. elem: '#sentReviewTable'
  1427. , url: '/admin/project.api/get_sent_review'
  1428. , page: true //开启分页
  1429. , limit: 10
  1430. , cols: [[
  1431. {type: 'radio', title: '选择'},
  1432. {field: 'id', width: 80, title: '编号', align: 'center'},
  1433. {field: 'title', title: '送审单位名称', align: 'center'},
  1434. {field: 'address', title: ' 送审单位地址', align: 'center'}
  1435. ]]
  1436. });
  1437. //客户搜索提交
  1438. form.on('submit(search_customer)', function (data) {
  1439. sentReviewTable.reload({where: {keywords: data.field.keywords}, page: {curr: 1}});
  1440. return false;
  1441. });
  1442. },
  1443. btn: ['确定'],
  1444. btnAlign: 'c',
  1445. yes: function () {
  1446. var checkStatus = table.checkStatus(sentReviewTable.config.id);
  1447. var data = checkStatus.data;
  1448. console.log(data)
  1449. if (data.length > 0) {
  1450. getSentReviewPeople(data);
  1451. layer.close(a);
  1452. } else {
  1453. layer.msg('请先选择送审单位');
  1454. return false;
  1455. }
  1456. }
  1457. })
  1458. }
  1459. function getSentReviewPeople(e){
  1460. var sentReviewPeople,form = layui.form;
  1461. layer.open({
  1462. title: '选择送审单位',
  1463. area: ['600px', '580px'],
  1464. type: 1,
  1465. content: '<div class="picker-table">\
  1466. <form class="layui-form pb-2">\
  1467. <div class="layui-input-inline" style="width:480px;">\
  1468. <input type="text" name="keywords" placeholder="委托单位" class="layui-input" autocomplete="off" />\
  1469. </div>\
  1470. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="entrustPeople">提交搜索</button>\
  1471. </form>\
  1472. <div id="sentReviewPeople"></div></div>',
  1473. success: function () {
  1474. sentReviewPeople = table.render({
  1475. elem: '#sentReviewPeople'
  1476. , url: '/admin/project.api/get_sent_review_people'
  1477. , where:{unit_id:e[0]["id"]}
  1478. , page: true //开启分页
  1479. , limit: 10
  1480. , cols: [[
  1481. {type: 'radio', title: '选择'},
  1482. {field: 'id', width: 80, title: '编号', align: 'center'},
  1483. {field: 'nickname', title: '昵称', align: 'center'},
  1484. ]]
  1485. });
  1486. //客户搜索提交
  1487. form.on('submit(entrustPeople)', function (data) {
  1488. sentReviewPeople.reload({where: {keywords: data.field.keywords,unit_id:e[0]["id"]}, page: {curr: 1}});
  1489. return false;
  1490. });
  1491. },
  1492. btn: ['确定'],
  1493. btnAlign: 'c',
  1494. yes: function () {
  1495. var checkStatus = table.checkStatus(sentReviewPeople.config.id);
  1496. var data = checkStatus.data;
  1497. console.log(data)
  1498. if (data.length > 0) {
  1499. let callback = function (e) {
  1500. layer.msg(e.msg);
  1501. if (e.code == 0) {
  1502. layer.closeAll();
  1503. parent.layui.userTable.reload();
  1504. }
  1505. }
  1506. tool.post("/admin/project.cost_company/add_sent_review_unit", {
  1507. id: data[0]["id"],
  1508. project_id: project_id,
  1509. }, callback);
  1510. } else {
  1511. layer.msg('请先选择送审单位人员');
  1512. return false;
  1513. }
  1514. }
  1515. })
  1516. }
  1517. }
  1518. </script>
  1519. </div>
  1520. <?php endif; if($project_five['project_report'] == 1): ?>
  1521. <div class="layui-tab-item">
  1522. <div class="p-3 bg-white">
  1523. <table class="layui-hide" id="report" lay-filter="report"></table>
  1524. </div>
  1525. <div id="selectBox2" style="display: none;">
  1526. <div id="companySelect2"></div>
  1527. <button id="cc">1111</button>
  1528. </div>
  1529. <script>
  1530. function report() {
  1531. console.log(1)
  1532. let tool = layui.tool, table = layui.table;
  1533. var allcount;
  1534. //项目任务
  1535. parent.layui.reportTable = table.render({
  1536. elem: '#report',
  1537. title: '文档列表',
  1538. toolbar: '#toolbarreport',
  1539. cellMinWidth: 80,
  1540. parseData: function (res) { // 数据解析回调函数
  1541. // 在这里可以获取数据总数
  1542. allcount = res.data.length;
  1543. return {
  1544. code: res.code, // 数据状态码
  1545. msg: res.msg, // 状态信息
  1546. count: res.count, // 数据总数
  1547. data: res.data // 当前页数据
  1548. };
  1549. },
  1550. url: "/admin/project.report/datalist",
  1551. where: {'project_id': project_id},
  1552. page: true, //开启分页
  1553. limit: 20,
  1554. cols: [[
  1555. {field: 'id', title: '序号', width: 80, align: 'center',
  1556. templet: function (d) {
  1557. console.log(allcount,d.LAY_NUM)
  1558. return allcount - (d.LAY_NUM - 1);
  1559. }
  1560. },
  1561. {
  1562. field: 'title', title: '报告名称', align: 'center',
  1563. templet: function (d) {
  1564. var html = "";
  1565. if (d.status == 5) {
  1566. html = '<a class="side-a" lay-event="detail" style="color: grey;text-decoration:line-through" lay-event="detail">' + d.title + '</a>';
  1567. } else {
  1568. html = '<a class="side-a" lay-event="detail" lay-event="detail">' + d.title + '</a>';
  1569. }
  1570. return '<div style="text-align:left">' + html + '</div>'
  1571. }
  1572. },
  1573. {
  1574. field: 'type', title: '报告类型', align: 'center', width: 100, templet: function (item) {
  1575. var html = '';
  1576. if (item.type === 0) {
  1577. html = "<span>初审报告</span>";
  1578. } else if (item.type === 1) {
  1579. html = "<span>对数报告</span>";
  1580. } else if (item.type === 2) {
  1581. html = "<span>审定报告</span>";
  1582. }
  1583. return html;
  1584. }
  1585. },
  1586. {
  1587. field: 'status', title: '审批状态', align: 'center', width: 150,
  1588. templet: function (d) {
  1589. var abc = '';
  1590. if (d.status == 0) {
  1591. abc = "<span>未审核(新建)</span>";
  1592. } else if (d.status == 1) {
  1593. abc = "<span>已通过(新建)</span>";
  1594. } else if (d.status == 2) {
  1595. abc = "<span>已拒绝(新建)</span>";
  1596. } else if (d.status == 3) {
  1597. abc = "<span>未审核(删除)</span>";
  1598. } else if (d.status == 4) {
  1599. abc = "<span>已通过(删除)</span>";
  1600. } else if (d.status == 5) {
  1601. abc = "<span>已拒绝(删除)</span>";
  1602. }
  1603. return abc;
  1604. }
  1605. },
  1606. {field: 'create_time', title: '创建时间', align: 'center', width: 150},
  1607. {field: 'admin_name', title: '创建人', align: 'center', width: 100},
  1608. {
  1609. field: 'right', fixed: 'right', title: '操作', width: 150, align: 'center',
  1610. templet: function (d) {
  1611. var html = '<div class="layui-btn-group">';
  1612. var btn1 = `<a class="layui-btn layui-btn-xs layui-bg-blue" href=${d.filepath} download=${d.name} lay-event="">下载</a>`;
  1613. var btn2 = '';
  1614. if (d.status == 0) {
  1615. 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>';
  1616. } else if (d.status == 3) {
  1617. 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>';
  1618. }
  1619. return html + btn1 + btn2 + '</div>';
  1620. }
  1621. }
  1622. ]]
  1623. });
  1624. //触发事件
  1625. table.on('toolbar(report)', function (obj) {
  1626. var checkStatus = table.checkStatus(obj.config.id);
  1627. switch (obj.event) {
  1628. case 'add':
  1629. parent.layui.tool.side('/admin/project.report/add?project_id=' + project_id); // 项目id
  1630. break;
  1631. }
  1632. });
  1633. table.on('tool(report)', function (obj) {
  1634. var data = obj.data; //获得当前行数据
  1635. if (obj.event === 'detail') { //查看
  1636. let url = '/admin/project.report/view?id=' + data.id;// 项目id
  1637. parent.layui.tool.side(url);
  1638. }
  1639. if (obj.event === 'agree_report') {
  1640. let callback = function (e) {
  1641. layer.msg(e.msg)
  1642. parent.layui.reportTable.reload();
  1643. }
  1644. tool.post('/admin/project.report/agree_report', {id: data.id,else_id:data.else_id}, callback);
  1645. }
  1646. if (obj.event === 'un_report') {
  1647. var ttxx = layer.prompt({
  1648. title: '请输入<span style="color: red">拒绝</span>原因',
  1649. formType: 2,
  1650. area: ['35vw', '15vw']
  1651. }, function (text, index) {
  1652. if(text==""){
  1653. layer.msg("请完善拒绝原因");
  1654. }else{
  1655. layer.close(ttxx)
  1656. let callback = function (e) {
  1657. layer.msg(e.msg)
  1658. parent.layui.reportTable.reload();
  1659. setTimeout(layer.close(index),1000);
  1660. }
  1661. tool.post('/admin/project.report/un_report', {id: data.id,else_id:data.else_id,audit_remark:text}, callback);
  1662. }
  1663. });
  1664. }
  1665. if (obj.event === 'agree_del') {
  1666. let callback = function (e) {
  1667. layer.msg(e.msg)
  1668. parent.layui.reportTable.reload();
  1669. }
  1670. tool.post('/admin/project.report/agree_delete', {id: data.id,else_id:data.else_id}, callback);
  1671. }
  1672. if (obj.event === 'unagree_del') {
  1673. var ttxx = layer.prompt({
  1674. title: '请输入<span style="color: red">拒绝</span>原因',
  1675. formType: 2,
  1676. area: ['35vw', '15vw']
  1677. }, function (text, index) {
  1678. layer.close(ttxx)
  1679. let callback = function (e) {
  1680. layer.msg(e.msg)
  1681. parent.layui.reportTable.reload();
  1682. setTimeout(layer.close(index),1000);
  1683. }
  1684. tool.post('/admin/project.report/un_delete', {id: data.id,else_id:data.else_id,audit_remark:text}, callback);
  1685. });
  1686. }
  1687. })
  1688. }
  1689. </script>
  1690. </div>
  1691. <?php endif; if($project_five['project_contact'] == 1): ?>
  1692. <div class="layui-tab-item">
  1693. <div class="p-3 bg-white">
  1694. <table class="layui-hide" id="contact" lay-filter="contact"></table>
  1695. </div>
  1696. <script type="text/html" id="toolbarcontact">
  1697. <div class="layui-btn-container">
  1698. <button class="layui-btn layui-btn-sm" lay-event="add">+ 新增联系函</button>
  1699. </div>
  1700. </script>
  1701. <script>
  1702. function contact() {
  1703. let tool = layui.tool, table = layui.table;
  1704. //项目任务
  1705. var allcount;
  1706. parent.layui.contactTable = table.render({
  1707. elem: '#contact',
  1708. title: '文档列表',
  1709. toolbar: '#toolbarcontact',
  1710. cellMinWidth: 80,
  1711. parseData: function (res) { // 数据解析回调函数
  1712. // 在这里可以获取数据总数
  1713. allcount = res.data.length;
  1714. return {
  1715. code: res.code, // 数据状态码
  1716. msg: res.msg, // 状态信息
  1717. count: res.count, // 数据总数
  1718. data: res.data // 当前页数据
  1719. };
  1720. },
  1721. url: "/admin/project.contact/conlist",
  1722. where: {'project_id': project_id},
  1723. page: true, //开启分页
  1724. limit: 20,
  1725. cols: [[
  1726. {field: 'id', title: '序号', width: 80, align: 'center',
  1727. templet: function (d) {
  1728. console.log(allcount,d.LAY_NUM)
  1729. return allcount - (d.LAY_NUM - 1);
  1730. }
  1731. },
  1732. {field: 'title', title: '联系函名称',align: 'center',
  1733. templet: function (d) {
  1734. var html = "";
  1735. if (d.status == 5) {
  1736. html = '<a class="side-a" lay-event="detail" style="color: grey;text-decoration:line-through" lay-event="detail">' + d.title + '</a>';
  1737. } else {
  1738. html = '<a class="side-a" lay-event="detail" lay-event="detail">' + d.title + '</a>';
  1739. }
  1740. return '<div style="text-align:left">' + html + '</div>'
  1741. }
  1742. },
  1743. {
  1744. field: 'audit_status',
  1745. title: '审批状态',
  1746. align: 'center',
  1747. width: 150,
  1748. templet: function (d) {
  1749. var abc = '';
  1750. if (d.status == 0) {
  1751. abc = "<span>未审核(新建)</span>";
  1752. } else if (d.status == 1) {
  1753. abc = "<span>已通过(新建)</span>";
  1754. } else if (d.status == 2) {
  1755. abc = "<span>已拒绝(新建)</span>";
  1756. } else if (d.status == 3) {
  1757. abc = "<span>未审核(删除)</span>";
  1758. } else if (d.status == 4) {
  1759. abc = "<span>已通过(删除)</span>";
  1760. } else if (d.status == 5) {
  1761. abc = "<span>已拒绝(删除)</span>";
  1762. } else if (d.status == 8) {
  1763. abc = "<span>回复</span>";
  1764. }
  1765. return abc;
  1766. }
  1767. },
  1768. {field: 'create_time', title: '创建时间', align: 'center', width: 150},
  1769. {field: 'admin_name', title: '创建人', align: 'center', width: 100},
  1770. {field: 'approver', title: '审批人', align: 'center', width: 100},
  1771. {field: 'right', fixed: 'right', title: '操作', width: 150, align: 'center',
  1772. templet: function (d) {
  1773. console.log(d)
  1774. var html = '<div class="layui-btn-group">';
  1775. var btn1 = `<a class="layui-btn layui-btn-xs layui-bg-blue" href=${d.filepath} download=${d.name} lay-event="">下载</a>`;
  1776. var btn2 = '';
  1777. if (d.status == 0) {
  1778. 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>';
  1779. } else if (d.status == 3) {
  1780. 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>';
  1781. }
  1782. return html + btn1 + btn2 + '</div>';
  1783. }
  1784. }
  1785. ]]
  1786. });
  1787. //触发事件
  1788. table.on('toolbar(contact)', function (obj) {
  1789. var checkStatus = table.checkStatus(obj.config.id);
  1790. switch (obj.event) {
  1791. case 'add':
  1792. parent.layui.tool.side('/admin/project.contact/add?project_id=' + project_id); // 项目id
  1793. break;
  1794. }
  1795. });
  1796. table.on('tool(contact)', function (obj) {
  1797. var data = obj.data; //获得当前行数据
  1798. if (obj.event === 'detail') { //查看
  1799. let url = '/admin/project.contact/view?id=' + data.id;// 项目id
  1800. parent.layui.tool.side(url);
  1801. }
  1802. if (obj.event === 'agree_contact') {
  1803. let callback = function (e) {
  1804. layer.msg(e.msg)
  1805. parent.layui.contactTable.reload();
  1806. }
  1807. tool.post('/admin/project.contact/agree_contact', {id: data.id,else_id:data.else_id}, callback);
  1808. }
  1809. if (obj.event === 'un_contact') {
  1810. layer.prompt({
  1811. title: '请输入<span style="color: red">拒绝</span>原因',
  1812. formType: 2,
  1813. area: ['35vw', '15vw']
  1814. }, function (text, index) {
  1815. let callback = function (e) {
  1816. layer.msg(e.msg)
  1817. parent.layui.contactTable.reload();
  1818. setTimeout(layer.close(index),1000);
  1819. }
  1820. tool.post('/admin/project.contact/un_contact', {
  1821. id: data.id,
  1822. else_id:data.else_id,
  1823. project_id:data.project_id,
  1824. audit_remark:text
  1825. }, callback);
  1826. });
  1827. }
  1828. if (obj.event === 'agree_del') {
  1829. let callback = function (e) {
  1830. layer.msg(e.msg)
  1831. parent.layui.contactTable.reload();
  1832. }
  1833. tool.post('/admin/project.contact/agree_delete', {id: data.id,else_id:data.else_id}, callback);
  1834. }
  1835. if (obj.event === 'unagree_del') {
  1836. layer.prompt({
  1837. title: '请输入<span style="color: red">拒绝</span>原因',
  1838. formType: 2,
  1839. area: ['35vw', '15vw']
  1840. }, function (text, index) {
  1841. let callback = function (e) {
  1842. layer.msg(e.msg)
  1843. parent.layui.contactTable.reload();
  1844. setTimeout(layer.close(index),1000);
  1845. }
  1846. tool.post('/admin/project.contact/un_delete', {id: data.id,else_id:data.else_id,audit_remark:text}, callback);
  1847. });
  1848. }
  1849. })
  1850. }
  1851. </script>
  1852. </div>
  1853. <?php endif; if($project_five['project_record'] == 1): ?>
  1854. <div class="layui-tab-item">
  1855. <style>
  1856. /* 自定义样式 */
  1857. /*.layui-table-testcss .layui-table-header,*/
  1858. /*.layui-form-testcss > div{margin-bottom: 6px;}*/
  1859. </style>
  1860. <div class="p-3 bg-white">
  1861. <table class="layui-hide" id="record" lay-filter="record"></table>
  1862. </div>
  1863. <script type="text/html" id="toolbarrecord">
  1864. <div class="layui-btn-container">
  1865. <button class="layui-btn layui-btn-sm" lay-event="add">+ 新建记录</button>
  1866. </div>
  1867. </script>
  1868. <script>
  1869. function record() {
  1870. let tool = layui.tool, table = layui.table;
  1871. //项目任务
  1872. var allcount;
  1873. parent.layui.recordTable = table.render({
  1874. elem: '#record',
  1875. title: '文档列表',
  1876. toolbar: '#toolbarrecord',
  1877. cellMinWidth: 80,
  1878. parseData: function (res) { // 数据解析回调函数
  1879. // 在这里可以获取数据总数
  1880. allcount = res.data.length;
  1881. return {
  1882. code: res.code, // 数据状态码
  1883. msg: res.msg, // 状态信息
  1884. count: res.count, // 数据总数
  1885. data: res.data // 当前页数据
  1886. };
  1887. },
  1888. className: 'layui-table-testcss', // 用于给表格主容器追加 css 类名
  1889. // lineStyle: 'height: 151px;', // 定义表格的多行样式
  1890. url: "/admin/project.record/cplist",
  1891. where: {'project_id': project_id},
  1892. page: true, //开启分页
  1893. limit: 20,
  1894. cols: [[
  1895. {field: 'id', title: '记录编号', width: 80, align: 'center',
  1896. templet: function (d) {
  1897. console.log(allcount,d.LAY_NUM)
  1898. return allcount - (d.LAY_NUM - 1);
  1899. }
  1900. },
  1901. {field: 'title', title: '记录内容',
  1902. templet: function (d) {
  1903. var html = '<a class="side-a" lay-event="detail">' + d.content + '</a>';
  1904. return html;
  1905. }
  1906. },
  1907. {field: 'create_time', title: '创建时间', align: 'center', width: 150},
  1908. {field: 'admin_name', title: '创建人', align: 'center', width: 100},
  1909. {field: 'right', fixed: 'right', title: '操作', width: 100, align: 'center',
  1910. templet: function (d) {
  1911. var html = '<div class="layui-btn-group">';
  1912. var btn1 = '<span class="layui-btn layui-btn-xs" lay-event="edit">编辑</span>';
  1913. var btn2 = '<span class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</span>';
  1914. return html + btn1 + btn2 + '</div>';
  1915. }
  1916. }
  1917. ]]
  1918. });
  1919. //触发事件
  1920. table.on('toolbar(record)', function (obj) {
  1921. var checkStatus = table.checkStatus(obj.config.id);
  1922. switch (obj.event) {
  1923. case 'add':
  1924. parent.layui.tool.side('/admin/project.record/add?project_id=' + project_id); // 项目id
  1925. break;
  1926. }
  1927. });
  1928. table.on('tool(record)', function (obj) {
  1929. var data = obj.data; //获得当前行数据
  1930. if (obj.event === 'detail') { //查看
  1931. let url = '/admin/project.record/view?id=' + data.id;// 项目id
  1932. parent.layui.tool.side(url);
  1933. }
  1934. if (obj.event === 'edit') {
  1935. parent.layui.tool.side('/admin/project.record/edit?id=' + data.id); // 项目id
  1936. return;
  1937. }
  1938. if (obj.event === 'del') {
  1939. layer.confirm('确定要删除吗?', {
  1940. icon: 3,
  1941. title: '提示'
  1942. }, function (index) {
  1943. let callback = function (e) {
  1944. layer.msg(e.msg);
  1945. if (e.code == 0) {
  1946. obj.del();
  1947. }
  1948. }
  1949. tool.delete("/admin/project.record/del", {id: data.id}, callback);// 项目id
  1950. layer.close(index);
  1951. });
  1952. }
  1953. })
  1954. }
  1955. </script>
  1956. </div>
  1957. <?php endif; ?>
  1958. <div class="layui-tab-item">
  1959. <div class="p-3 bg-white">
  1960. <table class="layui-hide" id="appointment" lay-filter="appointment"></table>
  1961. </div>
  1962. <script type="text/html" id="toolbarappointment">
  1963. <div class="layui-btn-container">
  1964. <button class="layui-btn layui-btn-sm" lay-event="add">+ 新增预约</button>
  1965. </div>
  1966. </script>
  1967. <script>
  1968. function appointment() {
  1969. let tool = layui.tool, table = layui.table;
  1970. //项目任务
  1971. var allcount;
  1972. parent.layui.appointmentTable = table.render({
  1973. elem: '#appointment',
  1974. title: '文档列表',
  1975. toolbar: '#toolbarappointment',
  1976. cellMinWidth: 80,
  1977. parseData: function (res) { // 数据解析回调函数
  1978. // 在这里可以获取数据总数
  1979. allcount = res.data.length;
  1980. return {
  1981. code: res.code, // 数据状态码
  1982. msg: res.msg, // 状态信息
  1983. count: res.count, // 数据总数
  1984. data: res.data // 当前页数据
  1985. };
  1986. },
  1987. url: "/admin/project.appointment/datalist_company",
  1988. where: {'project_id': project_id},
  1989. page: false, //开启分页
  1990. limit: 20,
  1991. cols: [[
  1992. {field: 'id', title: '记录编号', width: 80, align: 'center',
  1993. templet: function (d) {
  1994. console.log(allcount,d.LAY_NUM)
  1995. return allcount - (d.LAY_NUM - 1);
  1996. }
  1997. },
  1998. {field: 'appointment_time', title: '预约时间',align: 'center', width: 200},
  1999. {field: 'dispatch_num', title: '派遣人数', align: 'center', width: 100},
  2000. {field: 'address_or_remark', title: '地址/备注', align: 'center'},
  2001. {field: 'sponsor_name', title: '发起人', align: 'center', width: 100},
  2002. {field: 'approval_name', title: '审批人', align: 'center', width: 100},
  2003. {field: 'audit_status', title: '状态', align: 'center', width: 100,templet:function(d){
  2004. if(d.audit_status==0){
  2005. return "待审核"
  2006. }else if(d.audit_status==1){
  2007. return "通过"
  2008. }else if(d.audit_status==2){
  2009. return "拒绝"
  2010. }
  2011. }},
  2012. {field: 'audit_remark', title: '回执', align: 'center', width: 150},
  2013. {field: 'right', fixed: 'right', title: '操作', width: 100, align: 'center',
  2014. templet: function (d) {
  2015. if(d.operate && d.audit_status==0){
  2016. var html = '<div class="layui-btn-group">';
  2017. var btn1 = '<span class="layui-btn layui-btn-xs" lay-event="agree">同意</span>';
  2018. var btn2 = '<span class="layui-btn layui-btn-danger layui-btn-xs" lay-event="disagree">拒绝</span>';
  2019. return html + btn1 + btn2 + '</div>';
  2020. }else{
  2021. return "";
  2022. }
  2023. }
  2024. }
  2025. ]]
  2026. });
  2027. //触发事件
  2028. table.on('toolbar(appointment)', function (obj) {
  2029. var checkStatus = table.checkStatus(obj.config.id);
  2030. switch (obj.event) {
  2031. case 'add':
  2032. parent.layui.tool.side('/admin/project.appointment/add_company?project_id=' + project_id); // 项目id
  2033. break;
  2034. }
  2035. });
  2036. table.on('tool(appointment)', function (obj) {
  2037. var data = obj.data; //获得当前行数据
  2038. console.log(data);
  2039. if (obj.event === 'agree') {
  2040. layer.prompt({
  2041. title: '请输入<span style="color: green">回执</span>',
  2042. formType: 2,
  2043. area: ['35vw', '15vw']
  2044. }, function (text, index) {
  2045. let callback = function (e) {
  2046. parent.layui.appointmentTable.reload()
  2047. layer.msg(e.msg);
  2048. setTimeout(function () {
  2049. layer.close(index);
  2050. }, 2000)
  2051. }
  2052. if (text !== "") {
  2053. tool.post("/admin/project.appointment/agree_company", {id: data.id,audit_remark:text,project_id:data.project_id}, callback);// 项目id
  2054. } else {
  2055. layer.msg("回执不能为空")
  2056. }
  2057. })
  2058. return;
  2059. }
  2060. if (obj.event === 'disagree') {
  2061. layer.prompt({
  2062. title: '请输入<span style="color: red">回执</span>',
  2063. formType: 2,
  2064. area: ['35vw', '15vw']
  2065. }, function (text, index) {
  2066. let callback = function (e) {
  2067. parent.layui.appointmentTable.reload()
  2068. layer.msg(e.msg);
  2069. setTimeout(function () {
  2070. layer.close(index);
  2071. }, 2000)
  2072. }
  2073. if (text !== "") {
  2074. tool.post("/admin/project.appointment/disagree_company", {id: data.id,audit_remark:text,project_id:data.project_id}, callback);// 项目id
  2075. } else {
  2076. layer.msg("回执不能为空")
  2077. }
  2078. })
  2079. return;
  2080. }
  2081. })
  2082. }
  2083. </script>
  2084. </div>
  2085. <?php if($project_five['project_log'] == 1): ?>
  2086. <div class="layui-tab-item">
  2087. <div class="layui-form p-4" style="height: 80vh;overflow: auto">
  2088. <?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;?>
  2089. <div class="layui-timeline" style="padding-left: 0;">
  2090. <div class="layui-timeline-item">
  2091. <i class="layui-icon layui-timeline-axis"></i>
  2092. <div class="layui-timeline-content layui-text">
  2093. <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>
  2094. <p>
  2095. <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>
  2096. </p>
  2097. </div>
  2098. </div>
  2099. <?php endforeach; endif; else: echo "" ;endif; ?>
  2100. </div>
  2101. </div>
  2102. </div>
  2103. <?php endif; ?>
  2104. </div>
  2105. </div>
  2106. <!-- /主体 -->
  2107. <!-- 底部 -->
  2108. <div class="footer">
  2109. 逸管工程项目管理系统 © www.yiguanfep.com
  2110. <img src="/static/home/images/police.png" alt="" style="width:14.5px;height:16px;">
  2111. <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>
  2112. <a href="https://beian.miit.gov.cn/#/Integrated/index" onclick="window.open(this.href); return false;">桂ICP备17000971号</a>
  2113. </div>
  2114. <!-- /底部 -->
  2115. <!-- 脚本 -->
  2116. <script>
  2117. const moduleInit = ['tool','oaTool','employeepicker'];
  2118. var project_id = '<?php echo htmlentities($project_id); ?>'
  2119. function gouguInit() {
  2120. var form = layui.form,tool=layui.tool,upload = layui.upload;
  2121. var element = layui.element;
  2122. first()
  2123. eliminate(1)
  2124. element.on('tab(test-hash)', function (data) {
  2125. let index = $(this).attr('data-id');
  2126. console.log(index)
  2127. if (index == 1) {
  2128. eliminate(2)
  2129. comment()
  2130. } else if (index == 2) {
  2131. eliminate(3)
  2132. record(index);
  2133. } else if (index == 3) {
  2134. eliminate(4)
  2135. report(index);
  2136. } else if (index == 4) {
  2137. eliminate(5)
  2138. project_user(index)
  2139. } else if (index == 5) {
  2140. } else if (index == 6) {
  2141. }else if (index == 7) {
  2142. eliminate(6)
  2143. contact(index)
  2144. } else if (index == 8) {
  2145. appointment();
  2146. }
  2147. });
  2148. //清除小红点
  2149. function eliminate(type){
  2150. let call=function (e){
  2151. //写清除红点的js
  2152. }
  2153. tool.post("/admin/project.api/eliminate", {type: type},call)
  2154. }
  2155. //看报告
  2156. $('[lay-data="readreport"]').click(function (){
  2157. var id = $(this).attr('data-id');
  2158. parent.layui.tool.side('/admin/project.report/view/id/' + id); // 项目id
  2159. })
  2160. let a = 1;
  2161. //监听提交
  2162. form.on('submit(webform)', function (data) {
  2163. if(a){
  2164. let callback = function (e) {
  2165. a = 1
  2166. layer.msg(e.msg);
  2167. if (e.code == 0) {
  2168. tool.sideClose(1000);
  2169. }
  2170. }
  2171. var engineering_type1 ='';
  2172. if(data.field.engineering_type1==1){
  2173. engineering_type1 ='预算';
  2174. }else if(data.field.engineering_type1==2){
  2175. engineering_type1 ='结算';
  2176. }else if(data.field.engineering_type1==3){
  2177. engineering_type1 ='概算';
  2178. }else if(data.field.engineering_type1==4){
  2179. engineering_type1 ='决算';
  2180. }else if(data.field.engineering_type1==5){
  2181. engineering_type1 ='工程总承包(EPC)';
  2182. }
  2183. var engineering_type2 = '';
  2184. if(data.field.engineering_type2==1){
  2185. engineering_type2 ='审核';
  2186. }else if(data.field.engineering_type2==2) {
  2187. engineering_type2 = '编制';
  2188. }
  2189. if(engineering_type1!==""&&engineering_type2!==""){
  2190. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  2191. }
  2192. tool.post("/admin/project.cost/edit", data.field, callback);
  2193. }
  2194. a = 0
  2195. return false;
  2196. });
  2197. form.on('submit(save)', function (data) {
  2198. if(a){
  2199. let callback = function (e) {
  2200. a = 1
  2201. layer.msg(e.msg);
  2202. if (e.code == 0) {
  2203. tool.sideClose(1000);
  2204. }
  2205. }
  2206. var engineering_type1 ='';
  2207. if(data.field.engineering_type1==1){
  2208. engineering_type1 ='预算';
  2209. }else if(data.field.engineering_type1==2){
  2210. engineering_type1 ='结算';
  2211. }else if(data.field.engineering_type1==3){
  2212. engineering_type1 ='概算';
  2213. }else if(data.field.engineering_type1==4){
  2214. engineering_type1 ='决算';
  2215. }else if(data.field.engineering_type1==5){
  2216. engineering_type1 ='工程总承包(EPC)';
  2217. }
  2218. var engineering_type2 = '';
  2219. if(data.field.engineering_type2==1){
  2220. engineering_type2 ='审核';
  2221. }else if(data.field.engineering_type2==2) {
  2222. engineering_type2 = '编制';
  2223. }
  2224. if(engineering_type1!==""&&engineering_type2!==""){
  2225. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  2226. }
  2227. tool.post("/admin/project.cost/save", data.field, callback);
  2228. }
  2229. a = 0
  2230. return false;
  2231. });
  2232. form.on('submit(withdraw)', function (data) {
  2233. if(a){
  2234. let callback = function (e) {
  2235. a = 1
  2236. layer.msg(e.msg);
  2237. if (e.code == 0) {
  2238. tool.sideClose(1000);
  2239. }
  2240. }
  2241. var engineering_type1 ='';
  2242. if(data.field.engineering_type1==1){
  2243. engineering_type1 ='预算';
  2244. }else if(data.field.engineering_type1==2){
  2245. engineering_type1 ='结算';
  2246. }else if(data.field.engineering_type1==3){
  2247. engineering_type1 ='概算';
  2248. }else if(data.field.engineering_type1==4){
  2249. engineering_type1 ='决算';
  2250. }else if(data.field.engineering_type1==5){
  2251. engineering_type1 ='工程总承包(EPC)';
  2252. }
  2253. var engineering_type2 = '';
  2254. if(data.field.engineering_type2==1){
  2255. engineering_type2 ='审核';
  2256. }else if(data.field.engineering_type2==2) {
  2257. engineering_type2 = '编制';
  2258. }
  2259. if(engineering_type1!==""&&engineering_type2!==""){
  2260. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  2261. }
  2262. tool.post("/admin/project.cost_proprietor/withdraw", data.field, callback);
  2263. }
  2264. a = 0
  2265. return false;
  2266. });
  2267. form.on('submit(savetime)', function (data) {
  2268. if(a){
  2269. let callback = function (e) {
  2270. a = 1
  2271. layer.msg(e.msg);
  2272. if (e.code == 0) {
  2273. tool.sideClose(1000);
  2274. }
  2275. }
  2276. var engineering_type1 ='';
  2277. if(data.field.engineering_type1==1){
  2278. engineering_type1 ='预算';
  2279. }else if(data.field.engineering_type1==2){
  2280. engineering_type1 ='结算';
  2281. }else if(data.field.engineering_type1==3){
  2282. engineering_type1 ='概算';
  2283. }else if(data.field.engineering_type1==4){
  2284. engineering_type1 ='决算';
  2285. }else if(data.field.engineering_type1==5){
  2286. engineering_type1 ='工程总承包(EPC)';
  2287. }
  2288. var engineering_type2 = '';
  2289. if(data.field.engineering_type2==1){
  2290. engineering_type2 ='审核';
  2291. }else if(data.field.engineering_type2==2) {
  2292. engineering_type2 = '编制';
  2293. }
  2294. if(engineering_type1!==""&&engineering_type2!==""){
  2295. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  2296. }
  2297. tool.post("/admin/project.cost_proprietor/edit", data.field, callback);
  2298. }
  2299. a = 0
  2300. return false;
  2301. });
  2302. }
  2303. </script>
  2304. <!-- /脚本 -->
  2305. <!-- <script src="/static/assets/layui/layui.js"></script> -->
  2306. <script src="/static/assets/layui/layui.js"></script>
  2307. <script src="/static/assets/third_party/echart/echarts.min.js"></script>
  2308. <script src="/static/assets/gougu/gouguInit.js"></script>
  2309. <script src="https://unpkg.com/pinyin-pro"></script>
  2310. <script>
  2311. var { pinyin } = pinyinPro;
  2312. </script>
  2313. <!-- 统计代码 -->
  2314. <!-- /统计代码 -->
  2315. </body>
  2316. </html>