edit_first.html 37 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300
  1. <style>
  2. .heading th {
  3. text-align: center;
  4. }
  5. .form td {
  6. text-align: center;
  7. }
  8. /* 日志 */
  9. .log_top {
  10. padding-left: 1vw;
  11. }
  12. .log_top span {
  13. margin: 0 0.5vw;
  14. }
  15. /* 1,1,1 */
  16. .log_commentary {
  17. color: rgb(0, 176, 80);
  18. }
  19. .log_company {
  20. color: rgb(255, 33, 0);
  21. }
  22. .log_content {
  23. width: fit-content;
  24. margin: 0.3vw 1.5vw 1vw 1.5vw;
  25. padding: 0.5vw 0vw;
  26. text-indent: 1.2em;
  27. line-height: 2.1vh;
  28. background-color: rgb(255, 255, 255);
  29. border-radius: 0.5vw;
  30. box-shadow: 0.19vw 0.16vw 0.4vw 0.03vw rgba(0, 0, 0, 0.13);
  31. }
  32. .log_content_color {
  33. /* background-color: rgb(250,250,250); */
  34. }
  35. .log_content_img img {
  36. /* width: 10%; */
  37. border-radius: 0.5vw;
  38. margin: 0.3vw 0;
  39. padding-right: 18px;
  40. padding-bottom: 7px;
  41. padding-left: 2px;
  42. }
  43. .log_item_top {
  44. height: 70%;
  45. overflow: scroll;
  46. }
  47. .log_item_top {
  48. height: 60vh;
  49. /* background-color: rgb(255, 255, 255); */
  50. }
  51. .log_item_bottom {
  52. display: flex;
  53. /* height: 17vh; */
  54. /* border-top: 1px solid #eee; */
  55. margin: 0 1.5vw;
  56. /* background-color: rgb(250,250,250); */
  57. }
  58. .log_input input {
  59. width: 55vw;
  60. height: 10vh;
  61. border: #eee 1px solid;
  62. }
  63. .log_bottom_img {
  64. /* height: 5vh; */
  65. }
  66. .log_bottom_img img {
  67. height: 4vw;
  68. width: 6vw;
  69. border-radius: 0.5vw;
  70. margin: 0.5vw 0vw 0.5vw 0.3vw;
  71. }
  72. .log_bottom_left {
  73. width: 100%;
  74. margin-top: 1.5vh;
  75. }
  76. .log_bottom_right {
  77. width: 5%;
  78. }
  79. /* 上传图片 */
  80. .layui-upload-drag-self {
  81. background-color: #fbfdff;
  82. border: 1px dashed #c0ccda;
  83. border-radius: 6px;
  84. box-sizing: border-box;
  85. line-height: 4vw;
  86. vertical-align: top;
  87. display: inline-block;
  88. text-align: center;
  89. cursor: pointer;
  90. outline: 0;
  91. margin-right: 13px;
  92. float: left;
  93. }
  94. .layui-input-inlines-self {
  95. position: relative;
  96. margin-left: 90px;
  97. min-height: 36px;
  98. text-align: left;
  99. }
  100. .layui-upload-drag-self .layui-icon {
  101. font-size: 28px;
  102. color: #8c939d
  103. }
  104. .layui-upload-drag-self .img {
  105. position: relative;
  106. height: 148px;
  107. width: 148px;
  108. }
  109. .layui-upload-img {
  110. width: 148px;
  111. height: 148px;
  112. border-radius: 6px;
  113. margin-top: -3px;
  114. margin-left: -2px;
  115. }
  116. .handle {
  117. position: absolute;
  118. width: 148px;
  119. height: 100%;
  120. z-index: 100;
  121. border-radius: 6px;
  122. top: 0;
  123. background: rgba(59, 60, 61, 0.6);
  124. text-align: center;
  125. }
  126. .handle .icon-myself {
  127. z-index: 999;
  128. transition: all .3s;
  129. cursor: pointer;
  130. font-size: 25px;
  131. width: 25px;
  132. color: rgba(255, 255, 255, 0.91);
  133. margin: 0 4px;
  134. }
  135. .log_textarea {
  136. width: 89vw;
  137. height: 8vh;
  138. padding: 0.5vw;
  139. /* margin-right: 2vw; */
  140. margin: 1vw;
  141. }
  142. .log_button_img {
  143. width: 2vw;
  144. }
  145. .log_card {
  146. border: none !important;
  147. }
  148. /* 点击图片放大 */
  149. .content_img img {
  150. max-width: 100%;
  151. cursor: pointer;
  152. }
  153. .overlay {
  154. display: none;
  155. position: fixed;
  156. top: 0;
  157. left: 0;
  158. width: 100%;
  159. height: 100%;
  160. background-color: rgba(0, 0, 0, 0.7);
  161. justify-content: center;
  162. z-index: 1;
  163. }
  164. .overlay img {
  165. margin-top: 4%;
  166. max-width: 90%;
  167. max-height: 90%;
  168. object-fit: contain;
  169. }
  170. .p-4 {
  171. background-color: rgb(255, 255, 255);
  172. }
  173. /*表格*/
  174. #tabniubi {
  175. width: 100%;
  176. margin: 10px 0;
  177. background-color: #fff;
  178. color: #5f5f5f;
  179. }
  180. #tabniubi th {
  181. padding: 9px 15px;
  182. min-height: 20px;
  183. height: 0px;
  184. line-height:0px;
  185. text-align: center;
  186. /* font-size: 14px; */
  187. border-width: 1px;
  188. border-style: solid;
  189. border-color: #e2e2e2;
  190. font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif;
  191. }
  192. #tabniubi tr:first-child {
  193. padding: 0;
  194. min-height: 0;
  195. line-height: 0;
  196. border-width: 0;
  197. border-style: none;
  198. border-color: #fff;
  199. font-size: 0;
  200. }
  201. #tabniubi tr:first-child th {
  202. padding: 0;
  203. min-height: 0;
  204. line-height: 0;
  205. border-width: 0;
  206. border-style: none;
  207. border-color: #fff;
  208. font-size: 0;
  209. height: 0 !important;
  210. }
  211. .form-title {
  212. background-color: rgb(241, 241, 241);
  213. color: rgb(95, 95, 95);
  214. border-color: rgb(241, 241, 241);
  215. font-weight: 600;
  216. }
  217. /* .fujianimg img {
  218. width: 5vw;
  219. height: 5vh;
  220. } */
  221. .forleft {
  222. text-align: left !important;
  223. }
  224. .layui-form-select dl dd.layui-this {
  225. background-color: #f8f8f8;
  226. color: rgb(23, 145, 233);
  227. font-weight: 700;
  228. }
  229. .layui-input, .layui-textarea {
  230. /* padding-left: 3.75vw; */
  231. color: #5f5f5f;
  232. }
  233. .upimg {
  234. width: 250px;
  235. height: 250px;
  236. }
  237. .fujianimg img {
  238. height: 5.5vh;
  239. }
  240. .filelist{
  241. width: 100%;
  242. overflow: auto;
  243. justify-content:flex-start;
  244. align-content: space-between;
  245. flex-direction: column-reverse;
  246. flex-wrap: wrap;
  247. display: flex;
  248. }
  249. .filelist li{
  250. padding: 0.5vw 0.8vw 0.5vw 0.8vw;
  251. white-space: nowrap;
  252. overflow: hidden;
  253. text-overflow: ellipsis;
  254. display: inline-block;
  255. border-right: 1px solid #e2e2e2;
  256. float: left;
  257. }
  258. .filelist p{
  259. margin: 3px 0 5px 0;
  260. width: 11vw;
  261. overflow: hidden;
  262. text-overflow: ellipsis;
  263. text-align: center;
  264. }
  265. #filesBox2 li{
  266. padding: 0.5vw 0.8vw 0.5vw 0.8vw;
  267. white-space: nowrap;
  268. overflow: hidden;
  269. text-overflow: ellipsis;
  270. display: inline-block;
  271. border-right: 1px solid #e2e2e2;
  272. float: left;
  273. }
  274. /* 倒计时 */
  275. .countdown {
  276. height: 8.5vh;
  277. width: 6.5vw;
  278. font-size: 1vw;
  279. text-align: center;
  280. border: 1px solid #eee;
  281. }
  282. .countdown-top {
  283. height: 3.5vh;
  284. line-height: 3.5vh;
  285. border-bottom: 1px solid #eee;
  286. color: #fff;
  287. background-color: rgb(23, 145, 233);
  288. border-bottom: 1px solid rgb(23, 145, 233);
  289. font-size: 0.95vw;
  290. padding: 0;
  291. margin: 0;
  292. }
  293. .countdown-bottom {
  294. height: 5vh;
  295. line-height: 5vh;
  296. padding: 0;
  297. margin: 0;
  298. background-color: #fff;
  299. }
  300. #filesBox2 .layui-table-tool{
  301. display: none;
  302. }
  303. #filesBox2 .layui-table-view .layui-table{
  304. width: 100% !important;
  305. }
  306. #filesBox2 .layui-table-cell{
  307. display: flex;
  308. align-items: center;
  309. justify-content: center;
  310. }
  311. .laytable-cell-1-0-1, .laytable-cell-1-0-2{
  312. justify-content: flex-start !important;
  313. }
  314. .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{
  315. display: flex;
  316. font: 14px red;
  317. font-weight: 600;
  318. color: #5f5f5f;
  319. }
  320. #tabniubi tr:first-child th{
  321. border-right: 1px solid #e2e2e2 !important;
  322. }
  323. #filesBox2 th:sixth-child{
  324. border-right: none !important;
  325. }
  326. </style>
  327. <!--业主项目审核以下-->
  328. {if $detail.proprietor_status<2}
  329. <form class="layui-form p-4">
  330. <table id="tabniubi" cellpadding="1" cellspacing="1">
  331. <tr>
  332. <th style="width: 10%;height: 0;"></th>
  333. <th style="width: 10%;height: 0;"></th>
  334. <th style="width: 10%;height: 0;"></th>
  335. <th style="width: 10%;height: 0;"></th>
  336. <th style="width: 10%;height: 0;"></th>
  337. <th style="width: 10%;height: 0;"></th>
  338. <th style="width: 10%;height: 0;"></th>
  339. <th style="width: 10%;height: 0;"></th>
  340. <th style="width: 10%;height: 0;"></th>
  341. </tr>
  342. <tr border="1">
  343. <th class="form-title">项目名称 <font style="color: red !important;">*</font></th>
  344. <th colspan="2">
  345. <input type="text" name="project_name" lay-verify="required" lay-reqText="请完善项目名称" value="{$detail.project_name}"
  346. autocomplete="off" placeholder="请输入项目名称" class="layui-input">
  347. </th>
  348. <th class="form-title">项目编号 <font style="color: red !important;">*</font></th>
  349. <th colspan="2">
  350. <input type="text" name="project_num" lay-verify="required" lay-reqText="请完善项目编号" value="{$detail.project_num}"
  351. autocomplete="off" placeholder="请输入项目编号" class="layui-input">
  352. </th>
  353. <th class="form-title">送审金额 <font style="color: red !important;">*</font></th>
  354. <th colspan="2">
  355. <input type="text" id="sent_review_amount" name="sent_review_amount" autocomplete="off" placeholder="请输入送审金额" class="layui-input">
  356. </th>
  357. </tr>
  358. <tr>
  359. <th class="form-title">工程类型<font style="color: red !important;">*</font></th>
  360. <th colspan="2">
  361. <div>
  362. <select name="engineering_type1" lay-verify="required">
  363. <option value="">请选择项目类型</option>
  364. <option value="1" {eq name="$detail.engineering_type1" value="1"} selected {/eq}>预算</option>
  365. <option value="2"{eq name="$detail.engineering_type1" value="2"} selected {/eq}>结算</option>
  366. <option value="3" {eq name="$detail.engineering_type1" value="3"} selected {/eq}>概算</option>
  367. <option value="4" {eq name="$detail.engineering_type1" value="4"} selected {/eq}>决算</option>
  368. <option value="5" {eq name="$detail.engineering_type1" value="5"} selected {/eq}>工程总承包(EPC)</option>
  369. </select>
  370. </div>
  371. </th>
  372. <th class="form-title">——</th>
  373. <th colspan="2">
  374. <div>
  375. <select name="engineering_type2" lay-verify="required">
  376. <option value="">请选择项目类型</option>
  377. <option value="1" {eq name="$detail.engineering_type2" value="1"} selected {/eq}>审核</option>
  378. <option value="2" {eq name="$detail.engineering_type2" value="2"} selected {/eq}>编制</option>
  379. </select>
  380. </div>
  381. </th>
  382. <th class="form-title entrust_unit">委托单位 <font style="color: red!important;">*</font></th>
  383. <th colspan="2" class="entrust_unit">
  384. <input type="text" name="entrust_unit_name" value="{$entrust_unit_name}" autocomplete="off" class="layui-input" disabled>
  385. <input type="hidden" name="entrust_unit" value="{$entrust_unit}" autocomplete="off" class="layui-input" disabled>
  386. </th>
  387. </tr>
  388. <th class="form-title">审批人(一)<font style="color: red !important;">*</font></th>
  389. <th colspan="2">
  390. <select name="sent_review_approver" lay-verify="required" lay-reqText="请选择审批人">
  391. <option value="">请选择审批人</option>
  392. {dump($person)}
  393. {volist name="person" id="v"}
  394. <option value="{$v.id}" {eq name="$detail.sent_review_approver" value="$v.id" } selected="" {/eq}>{$v.nickname}</option>
  395. {/volist}
  396. </select>
  397. </th>
  398. <th class="form-title">审批人(二)<font style="color: red !important;">*</font></th>
  399. <th colspan="2">
  400. <select name="sent_review_second_approver" lay-reqText="请选择审批人">
  401. <option value="">请选择第二审批人(可选)</option>
  402. {dump($person)}
  403. {volist name="person" id="v"}
  404. <option value="{$v.id}" {eq name="$detail.sent_review_second_approver" value="$v.id"} selected="" {/eq} {if!isset($detail.sent_review_second_approver)}name=""{/if}>{$v.nickname}</option>
  405. {/volist}
  406. </select>
  407. </th>
  408. </tr>
  409. <tr>
  410. <th colspan="9" class="forleft">相关附件
  411. <button class="layui-btn layui-btn-xs layui-btn-danger" style="float: right;" type="button"
  412. id="uploadBtn">上传附件
  413. </button>
  414. </th>
  415. </tr>
  416. <tr>
  417. <th colspan="9" class="fujianimg" style="padding: 9px 0;">
  418. <div id="filesBox2">
  419. <div class="filelist" id="filesBigBox">
  420. <ul id="filesBox" style="overflow: scroll;">
  421. {:fileCard($file_array)}
  422. </ul>
  423. </div>
  424. {empty name="$file_array" }
  425. <div class="layui-data-none">暂无附件</div>
  426. {/empty}
  427. </div>
  428. </th>
  429. </tr>
  430. </table>
  431. <div class="py-3">
  432. <input type="hidden" name="id" value="{$detail.id}"/>
  433. {if $detail.proprietor_status==0}
  434. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="add">保存</button>
  435. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="save">提交</button>
  436. {/if}
  437. <!-- //审核中-->
  438. {if $detail.proprietor_status == 1}
  439. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="withdraw">撤回</button>
  440. {/if}
  441. </div>
  442. </form>
  443. {else/}
  444. <!--之后的预览-->
  445. <form class="layui-form p-4">
  446. <table id="tabniubi" cellpadding="1" cellspacing="1">
  447. <tr>
  448. <th style="width: 10%;height: 0;"></th>
  449. <th style="width: 10%;height: 0;"></th>
  450. <th style="width: 10%;height: 0;"></th>
  451. <th style="width: 10%;height: 0;"></th>
  452. <th style="width: 10%;height: 0;"></th>
  453. <th style="width: 10%;height: 0;"></th>
  454. <th style="width: 10%;height: 0;"></th>
  455. <th style="width: 10%;height: 0;"></th>
  456. <th style="width: 10%;height: 0;"></th>
  457. </tr>
  458. <tr border="1">
  459. {if $field.project_status == 1}
  460. <th class="form-title">项目状态</th>
  461. <th>
  462. {switch $detail.project_status}
  463. {case 1}立项中{/case}
  464. {case 2}审批中{/case}
  465. {case 3}待接收{/case}
  466. {case 4}待分配{/case}
  467. {case 5}作业中{/case}
  468. {case 6}归档中{/case}
  469. {case 7}退审中{/case}
  470. {case 8}已归档{/case}
  471. {case 9}已退审{/case}
  472. {default /}未知
  473. {/switch}
  474. </th>
  475. {/if}
  476. {if $field.project_name == 1}
  477. <th class="form-title">项目名称</th>
  478. <th colspan="3">{$detail.project_name}</th>
  479. {/if}
  480. {if $field.project_num == 1}
  481. <th class="form-title">项目编号</th>
  482. <th colspan="2">{$detail.project_num}</th>
  483. {/if}
  484. </tr>
  485. <tr>
  486. {if $field.project_time == 1}
  487. <th class="form-title">项目周期</th>
  488. <th colspan="8" style="text-align: left; padding-left: 3.5vw;">{if $detail.project_start_time != null&& $detail.project_end_time != null}{$detail.project_start_time|date="Y-m-d"} 至 {$detail.project_end_time|date="Y-m-d"}{/if}</th>
  489. {/if}
  490. </tr>
  491. <tr>
  492. {if $field.engineering_type == 1}
  493. <th class="form-title">工程类型</th>
  494. <th>
  495. {if $detail.engineering_type1==1}
  496. 预算
  497. {elseif $detail.engineering_type1==2}
  498. 结算
  499. {elseif $detail.engineering_type1==3}
  500. 概算
  501. {elseif $detail.engineering_type1==4}
  502. 决算
  503. {elseif $detail.engineering_type1==5}
  504. 工程总承包(EPC)
  505. {/if}
  506. </th>
  507. <th class="form-title">——</th>
  508. <th>
  509. {if $detail.engineering_type2==1}审核{else}编制{/if}
  510. </th>
  511. {/if}
  512. {if $field.engineering_category == 1}
  513. <th class="form-title">工程类别</th>
  514. <th>{$detail.engineering_category}</th>
  515. {/if}
  516. {if $field.project_region == 1}
  517. <th class="form-title">项目区域</th>
  518. <th colspan="2">
  519. {$detail.province}-{$detail.city}-{$detail.area}
  520. </th>
  521. {/if}
  522. </tr>
  523. <tr>
  524. {if $field.fiscal_nature == 1}
  525. <th class="form-title">资金性质</th>
  526. <th>{$detail.fiscal_nature}</th>
  527. {/if}
  528. {if $field.project_scale == 1}
  529. <th class="form-title">项目规模</th>
  530. <th colspan="3">{$detail.project_scale}</th>
  531. {/if}
  532. {if $field.charge_standard == 1}
  533. <th class="form-title">收费标准</th>
  534. <th colspan="2">{$detail.charge_standard}</th>
  535. {/if}
  536. </tr>
  537. {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}
  538. <tr>
  539. <th colspan="9" class="forleft">相关单位</th>
  540. </tr>
  541. <tr>
  542. {if $field.entrust_unit == 1}
  543. <th class="form-title">委托单位</th>
  544. <th>{$detail.entrust_unit_name}</th>
  545. {/if}
  546. {if $field.entrust_head == 1}
  547. <th class="form-title">负责人</th>
  548. <th>{$detail.entrust_maker_name}</th>
  549. {/if}
  550. {if $field.sent_review_unit == 1}
  551. <th class="form-title">送审单位</th>
  552. <th>{$detail.sent_review_unit_name}</th>
  553. {/if}
  554. {if $field.sent_review_head == 1}
  555. <th class="form-title">负责人</th>
  556. <th colspan="2">{$detail.sent_review_head_name}</th>
  557. {/if}
  558. </tr>
  559. <tr>
  560. {if $field.review_unit == 1}
  561. <th class="form-title">评审机构</th>
  562. <th>{$detail.review_unit_name}</th>
  563. {/if}
  564. {if $field.review_head == 1}
  565. <th class="form-title">项目负责人</th>
  566. <th>{$detail.review_head_name}</th>
  567. {/if}
  568. {if $field.operate_name == 1}
  569. <th class="form-title">作业负责人</th>
  570. <th>{$detail.operate_head_name}</th>
  571. {/if}
  572. {if $field.operate_team_names == 1}
  573. <th class="form-title">作业成员</th>
  574. <th colspan="2">{$detail.operate_team_names}</th>
  575. {/if}
  576. </tr>
  577. <tr>
  578. {if $field.construction_unit == 1}
  579. <th class="form-title" colspan="1">施工单位</th>
  580. <th colspan="1">{$detail.construction_unit}</th>
  581. {/if}
  582. {if $field.construction_head == 1}
  583. <th class="form-title" colspan="1">负责人</th>
  584. <th colspan="6">{$detail.construction_head}</th>
  585. {/if}
  586. </tr>
  587. {/if}
  588. {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}
  589. <tr>
  590. <th colspan="9" class="forleft">金额详情</th>
  591. </tr>
  592. <tr>
  593. {if $field.sent_review_amount == 1}
  594. <th class="form-title" colspan="1">送审金额(元)</th>
  595. <th colspan="2">{$detail.sent_review_amount}</th>
  596. {/if}
  597. {if $field.authorize_amount == 1}
  598. <th class="form-title" colspan="1">审定金额(元)</th>
  599. <th colspan="2">{$detail.authorize_amount}</th>
  600. {/if}
  601. {if $field.review_add_reduce_amount == 1}
  602. <th class="form-title" colspan="1">审增金额(元)</th>
  603. <th colspan="2">{$detail.review_add_amount}</th>
  604. {/if}
  605. </tr>
  606. <tr>
  607. {if $field.review_add_reduce_amount == 1}
  608. <th class="form-title" colspan="1">审减金额(元)</th>
  609. <th colspan="2">{$detail.review_reduce_amount}</th>
  610. {/if}
  611. {if $field.review_add_reduce_rate == 1}
  612. <th class="form-title" colspan="1">审增减率(%)</th>
  613. <th colspan="2">{$detail.review_add_reduce_rate}</th>
  614. {/if}
  615. {if $field.sent_review_cost == 1}
  616. <th class="form-title" colspan="1">送审服务费 (元)</th>
  617. <th colspan="2">{$detail.sent_review_cost}</th>
  618. {/if}
  619. </tr>
  620. <tr>
  621. {if $field.sent_review_approver_amount == 1}
  622. <th class="form-title forright" colspan="1">
  623. 送审单位承担<br>审核费(元)
  624. </th>
  625. <th colspan="2">{$detail.sent_review_approver_amount}</th>
  626. {/if}
  627. {if $field.construction_approver_amount == 1}
  628. <th class="form-title forright" colspan="2">
  629. 施工单位负责<br>核减超5%评审费部分(元)
  630. </th>
  631. <th colspan="2">{$detail.construction_approver_amount}</th>
  632. {/if}
  633. {if $field.report_time == 1}
  634. <th class="form-title" colspan="1">报告时间</th>
  635. <th colspan="1" style="text-align: left; padding-left: 3.5vw;">{if
  636. $detail.report_time!=0}{$detail.report_time|date="Y-m-d"}{/if}
  637. </th>
  638. {/if}
  639. </tr>
  640. {/if}
  641. <tr>
  642. <th colspan="9" class="forleft">相关附件
  643. <!--<button class="layui-btn layui-btn-xs layui-btn-danger" style="float: right;" type="button"-->
  644. <!-- id="uploadBtn">上传附件-->
  645. <!--</button>-->
  646. <!--<button type="button" class="layui-btn layui-btn-xs layui-btn-danger" lay-on="page" style="float: right;">上传附件</button>-->
  647. <button type="button" class="layui-btn layui-btn-xs layui-btn-danger" lay-on="test-iframe-handle" style="float: right;">
  648. 上传附件
  649. <span id="ID-test-iframe-mark"></span>
  650. </button>
  651. </th>
  652. </tr>
  653. <tr>
  654. <th colspan="9" class="fujianimg" style="padding: 0px 0px;">
  655. <div id="filesBox2">
  656. <table class="layui-hide" id="get_file" lay-filter="get_file"></table>
  657. </div>
  658. </th>
  659. </tr>
  660. </table>
  661. <div class="py-3">
  662. <input type="hidden" name="id" value="{$detail.id}"/>
  663. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="savetime">保存</button>
  664. </div>
  665. </form>
  666. {/if}
  667. <script>
  668. function first(){
  669. var form = layui.form, tool = layui.tool, oaTool = layui.oaTool;
  670. let table = layui.table;
  671. //附件表格
  672. var allcount;
  673. parent.layui.get_fileTable = table.render({
  674. elem: '#get_file',
  675. title: '文档列表',
  676. toolbar: '#toolbarget_file',
  677. cellMinWidth: 80,
  678. parseData: function (res) { // 数据解析回调函数
  679. // 在这里可以获取数据总数
  680. allcount = res.data.length;
  681. return {
  682. code: res.code, // 数据状态码
  683. msg: res.msg, // 状态信息
  684. count: res.count, // 数据总数
  685. data: res.data // 当前页数据
  686. };
  687. },
  688. url: "/admin/project.api/get_file",
  689. where: {'id': project_id},
  690. page: true, //开启分页
  691. limit: 20,
  692. cols: [[
  693. {field: 'id', title: '序号', width: 80, align: 'center',
  694. templet: function (d) {
  695. //console.log(allcount,d.LAY_NUM)
  696. return allcount - (d.LAY_NUM - 1);
  697. }
  698. },
  699. {field: 'name', title: '附件名称', align: 'left',
  700. },
  701. {field: 'remark', title: '附件说明', align: 'left',
  702. },
  703. {field: 'admin_name', title: '上传人', align: 'center', width: 150},
  704. {field: 'create_time', title: '上传时间', align: 'center', width: 150,
  705. // templet:"<div>{{d.create_time}}</div>"
  706. templet:"<div>{{layui.util.toDateString(d.create_time*1000, 'yyyy-MM-dd HH:mm:ss')}}</div>"
  707. },
  708. {field: 'right', fixed: 'right', title: '操作', width: 150, align: 'center',
  709. templet: function (d) {
  710. var html = '<div class="layui-btn-group">';
  711. var btn1 = `<a href="https://view.officeapps.live.com/op/view.aspx?src=${d.filepath}" target="_blank" class="layui-btn layui-btn-xs">预览</a>`;
  712. var btn2 = `<a class="layui-btn layui-btn-xs layui-bg-blue" href="${d.filepath}" download="${d.name}" lay-event="">下载</a>`;
  713. var btn3 = `<span data-id="${d.id}" class="layui-btn layui-btn-xs layui-btn-danger file-del " >删除</span>`;
  714. return html + btn1 + btn2 + btn3 +'</div>';
  715. }
  716. }
  717. ]]
  718. });
  719. function res(){
  720. table.reload('get_file');
  721. }
  722. $('#filesBox2').on('click', '.file-del', function (e) {
  723. // console.log( $(this).attr('data-id'))
  724. let id = $(this).attr('data-id');
  725. layer.confirm('确定要删除该文件吗?请慎重', {icon: 3, title: '提示'}, function (index) {
  726. let callback = function (e) {
  727. layer.msg(e.msg);
  728. if (e.code == 0) {
  729. res()
  730. }
  731. }
  732. tool.delete("/admin/project.api/delete_file", {id: id}, callback);// 删除附件
  733. layer.close(index);
  734. });
  735. })
  736. //上传附件弹出窗
  737. layui.use(function(){
  738. var $ = layui.$;
  739. var layer = layui.layer;
  740. var upload = layui.upload;
  741. var util = layui.util;
  742. // 事件
  743. util.on('lay-on', {
  744. 'test-iframe-handle': function(){
  745. layer.open({
  746. type: 2,
  747. area: ['680px', '520px'],
  748. content: 'ceshi?id={$detail.id}',
  749. fixed: false, // 不固定
  750. maxmin: true,
  751. shadeClose: true,
  752. title: '上传附件',
  753. btnAlign: 'c',
  754. yes: function(index, layero){
  755. // 获取 iframe 的窗口对象
  756. var iframeWin = window[layero.find('iframe')[0]['name']];
  757. var elemMark = iframeWin.$('#mark'); // 获得 iframe 中某个输入框元素
  758. var value = elemMark.val();
  759. if($.trim(value) === '') return elemMark.focus();
  760. // 显示获得的值
  761. layer.msg('获得 iframe 中的输入框标记值:'+ value);
  762. }
  763. });
  764. },
  765. })
  766. });
  767. oaTool.addFile({
  768. type: 1,
  769. isSave: true,
  770. ajaxSave: function (res) {
  771. let callback = function (e) {
  772. if("msg" in e){
  773. layer.msg(e.msg);
  774. }else{
  775. layer.msg('上传成功!')
  776. }
  777. setTimeout(function () {
  778. $("#filesBox2").load(location.href+" #filesBox>*","type=2")
  779. }, 500)
  780. }
  781. // console.log(1);
  782. // console.log(res,"{$detail.id}")
  783. tool.post("/admin/project.api/add_file", { // 上传附件
  784. 'topic_id': "{$detail.id}",
  785. 'file_id': res.data.id,
  786. 'file_name': res.data.name,
  787. 'module': 'project'
  788. }, callback);
  789. }
  790. });
  791. // var form = layui.form, tool = layui.tool, oaTool = layui.oaTool;
  792. //日期选择
  793. layui.laydate.render({
  794. elem: '#date',
  795. range: ['#start_time', '#end_time'],
  796. rangeLinked: true
  797. });
  798. var selectedNature = $('input[name="fiscal_nature"]:checked').val();
  799. if (selectedNature == "财政资金") {
  800. $(".entrust_unit").show();
  801. $(".review_unit").hide();
  802. } else {
  803. $(".review_unit").show();
  804. $(".entrust_unit").hide();
  805. }
  806. //radio选择
  807. form.on('radio(tax)', function (data) {
  808. if (data.value == "财政资金") {
  809. console.log(1)
  810. $(".entrust_unit").show();
  811. $(".review_unit").hide();
  812. } else {
  813. $(".review_unit").show();
  814. $(".entrust_unit").hide();
  815. }
  816. });
  817. $('.customer-picker').on('click', function () {
  818. let that = $(this);
  819. let callback = function(data){
  820. console.log(data);
  821. $('[name="review_unit"]').val(data.id);
  822. $('[name="review_unit_name"]').val(data.title);
  823. }
  824. oaTool.customerPicker(callback);
  825. });
  826. form.on('submit(add)', function (data) {
  827. if(data.field.fiscal_nature=="财政资金"){
  828. delete data.field.review_unit;
  829. delete data.field.review_unit_name;
  830. if(data.field.entrust_unit==""&&data.field.entrust_unit_name==""){
  831. layer.msg("请选择委托单位")
  832. return false;
  833. }
  834. }else {
  835. delete data.field.entrust_unit;
  836. delete data.field.entrust_unit_name;
  837. if(data.field.review_unit==""&&data.field.review_unit_name==""){
  838. layer.msg("请选择评审单位")
  839. return false;
  840. }
  841. }
  842. let c = 1;
  843. if (c) {
  844. let callback = function (e) {
  845. c = 1
  846. layer.msg(e.msg);
  847. if (e.code == 0) {
  848. tool.sideClose(1000);
  849. }
  850. }
  851. var engineering_type1 = '';
  852. if (data.field.engineering_type1 == 1) {
  853. engineering_type1 = '预算';
  854. } else if (data.field.engineering_type1 == 2) {
  855. engineering_type1 = '结算';
  856. }else if(data.field.engineering_type1==3){
  857. engineering_type1 ='概算';
  858. }else if(data.field.engineering_type1==4){
  859. engineering_type1 ='决算';
  860. }else if(data.field.engineering_type1==5){
  861. engineering_type1 ='工程总承包(EPC)';
  862. }
  863. var engineering_type2 = '';
  864. if (data.field.engineering_type2 == 1) {
  865. engineering_type2 = '审核';
  866. } else if (data.field.engineering_type2 == 2) {
  867. engineering_type2 = '编制';
  868. }
  869. if(engineering_type1!==""&&engineering_type2!==""){
  870. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  871. }
  872. tool.post("/admin/project.cost_proprietor/edit_main", data.field, callback);
  873. }
  874. c = 0
  875. return false;
  876. });
  877. let a = 1;
  878. //监听提交
  879. form.on('submit(webform)', function (data) {
  880. if(a){
  881. let callback = function (e) {
  882. a = 1
  883. layer.msg(e.msg);
  884. if (e.code == 0) {
  885. tool.sideClose(1000);
  886. }
  887. }
  888. if(data.field.engineering_type1!==""&&data.field.engineering_type2!==""){
  889. var engineering_type1 ='';
  890. if(data.field.engineering_type1==1){
  891. engineering_type1 ='预算';
  892. }else if(data.field.engineering_type1==2){
  893. engineering_type1 ='结算';
  894. }else if(data.field.engineering_type1==3){
  895. engineering_type1 ='概算';
  896. }else if(data.field.engineering_type1==4){
  897. engineering_type1 ='决算';
  898. }else if(data.field.engineering_type1==5){
  899. engineering_type1 ='工程总承包(EPC)';
  900. }
  901. var engineering_type2 = '';
  902. if(data.field.engineering_type2==1){
  903. engineering_type2 ='审核';
  904. }else if(data.field.engineering_type2==2) {
  905. engineering_type2 = '编制';
  906. }
  907. if(engineering_type1!==""&&engineering_type2!==""){
  908. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  909. }
  910. }
  911. tool.post("/admin/project.cost_proprietor/edit_main", data.field, callback);
  912. }
  913. a = 0
  914. return false;
  915. });
  916. let a1 = 1;
  917. form.on('submit(save)', function (data) {
  918. if(a1){
  919. let callback = function (e) {
  920. a1 = 1
  921. layer.msg(e.msg);
  922. if (e.code == 0) {
  923. tool.sideClose(1000);
  924. }
  925. }
  926. if(data.field.engineering_type1!==""&&data.field.engineering_type2!==""){
  927. var engineering_type1 ='';
  928. if(data.field.engineering_type1==1){
  929. engineering_type1 ='预算';
  930. }else if(data.field.engineering_type1==2){
  931. engineering_type1 ='结算';
  932. }else if(data.field.engineering_type1==3){
  933. engineering_type1 ='概算';
  934. }else if(data.field.engineering_type1==4){
  935. engineering_type1 ='决算';
  936. }else if(data.field.engineering_type1==5){
  937. engineering_type1 ='工程总承包(EPC)';
  938. }
  939. var engineering_type2 = '';
  940. if(data.field.engineering_type2==1){
  941. engineering_type2 ='审核';
  942. }else if(data.field.engineering_type2==2) {
  943. engineering_type2 = '编制';
  944. }
  945. if(engineering_type1!==""&&engineering_type2!==""){
  946. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  947. }
  948. }
  949. tool.post("/admin/project.cost_proprietor/save", data.field, callback);
  950. }
  951. a1 = 0
  952. return false;
  953. });
  954. let a2 = 1;
  955. form.on('submit(withdraw)', function (data) {
  956. if(a2){
  957. let callback = function (e) {
  958. a2 = 1
  959. layer.msg(e.msg);
  960. if (e.code == 0) {
  961. tool.sideClose(1000);
  962. }
  963. }
  964. if(data.field.engineering_type1!==""&&data.field.engineering_type2!==""){
  965. var engineering_type1 ='';
  966. if(data.field.engineering_type1==1){
  967. engineering_type1 ='预算';
  968. }else if(data.field.engineering_type1==2){
  969. engineering_type1 ='结算';
  970. }else if(data.field.engineering_type1==3){
  971. engineering_type1 ='概算';
  972. }else if(data.field.engineering_type1==4){
  973. engineering_type1 ='决算';
  974. }else if(data.field.engineering_type1==5){
  975. engineering_type1 ='工程总承包(EPC)';
  976. }
  977. var engineering_type2 = '';
  978. if(data.field.engineering_type2==1){
  979. engineering_type2 ='审核';
  980. }else if(data.field.engineering_type2==2) {
  981. engineering_type2 = '编制';
  982. }
  983. if(engineering_type1!==""&&engineering_type2!==""){
  984. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  985. }
  986. }
  987. tool.post("/admin/project.cost_proprietor/withdraw", data.field, callback);
  988. }
  989. a2 = 0
  990. return false;
  991. });
  992. let a3 = 1;
  993. form.on('submit(savetime)', function (data) {
  994. if(a3){
  995. let callback = function (e) {
  996. a3 = 1
  997. layer.msg(e.msg);
  998. if (e.code == 0) {
  999. tool.sideClose(1000);
  1000. }
  1001. }
  1002. if(data.field.engineering_type1!==""&&data.field.engineering_type2!==""){
  1003. var engineering_type1 ='';
  1004. if(data.field.engineering_type1==1){
  1005. engineering_type1 ='预算';
  1006. }else if(data.field.engineering_type1==2){
  1007. engineering_type1 ='结算';
  1008. }else if(data.field.engineering_type1==3){
  1009. engineering_type1 ='概算';
  1010. }else if(data.field.engineering_type1==4){
  1011. engineering_type1 ='决算';
  1012. }else if(data.field.engineering_type1==5){
  1013. engineering_type1 ='工程总承包(EPC)';
  1014. }
  1015. var engineering_type2 = '';
  1016. if(data.field.engineering_type2==1){
  1017. engineering_type2 ='审核';
  1018. }else if(data.field.engineering_type2==2) {
  1019. engineering_type2 = '编制';
  1020. }
  1021. if(engineering_type1!==""&&engineering_type2!==""){
  1022. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  1023. }
  1024. }
  1025. tool.post("/admin/project.cost_proprietor/edit_main", data.field, callback);
  1026. }
  1027. a3 = 0
  1028. return false;
  1029. });
  1030. //项目区域
  1031. layui.use(['form', 'jquery'], function () {
  1032. var form = layui.form;
  1033. const $ = layui.jquery;
  1034. let adress;
  1035. $.ajax({
  1036. type: "get", //使用get方式
  1037. url: "/static/assets/layui/adress.json", //json文件相对于这个HTML的路径
  1038. dataType: "json",
  1039. async: false,
  1040. success: function (data) {
  1041. //这个data就是json数据
  1042. adress = data
  1043. var province = Object.keys(adress)
  1044. var proStrs = '<option value="">省</option>';
  1045. for (var i = 0; i < province.length; i++) {
  1046. proStrs += '<option value="' + province[i] + '">' + province[i] + '</option>';
  1047. }
  1048. $("#province").html(proStrs);
  1049. layui.form.render("select")
  1050. },
  1051. error: function () {
  1052. layer.alert("地址请求失败!! ");
  1053. }
  1054. });
  1055. function getFirstAttr(obj) {
  1056. for (var k in obj) return k;
  1057. }
  1058. function selectOption(selectedProvince, selectedCity = '', selectedArea = '') {
  1059. var proStr = '<option value="">省</option>', cityStr = '<option value="">市</option>',
  1060. areaStr = '<option value="">县</option>';
  1061. var pro = adress[selectedProvince], ci = adress[selectedProvince][selectedCity];
  1062. for (var province in adress) {
  1063. if (province == selectedProvince) proStr += '<option value="' + province + '" selected>' + province + '</option>';
  1064. else proStr += '<option value="' + province + '">' + province + '</option>';
  1065. }
  1066. $("#province").html(proStr);
  1067. for (var city in pro) {
  1068. if (city == selectedCity) cityStr += '<option value="' + city + '" selected>' + city + '</option>';
  1069. else cityStr += '<option value="' + city + '">' + city + '</option>';
  1070. }
  1071. $("#city").html(cityStr);
  1072. for (var area in ci) {
  1073. if (area == "remove") {
  1074. continue;
  1075. }
  1076. if (ci[area] == selectedArea) areaStr += '<option value="' + ci[area] + '" selected>' + ci[area] + '</option>';
  1077. else areaStr += '<option value="' + ci[area] + '">' + ci[area] + '</option>';
  1078. }
  1079. $("#area").html(areaStr);
  1080. form.render();
  1081. }
  1082. /*selectOption(1,2, 3);*/
  1083. form.on('select(province)', function (data) {
  1084. let thisProvince = data.value;
  1085. let thisCity = getFirstAttr(adress[thisProvince]);
  1086. selectOption(data.value);
  1087. });
  1088. form.on('select(city)', function (data) {
  1089. selectOption($("#province").val(), data.value, getFirstAttr(data.value));
  1090. });
  1091. selectOption("{$detail.province}","{$detail.city}","{$detail.area}")
  1092. })
  1093. }
  1094. </script>
  1095. <script>
  1096. // 获取具有指定 ID 的 <ul> 元素
  1097. var ulElement = document.getElementById("filesBox");
  1098. // 检查 <ul> 元素的子元素数量
  1099. if (ulElement.children.length === 0) {
  1100. // 如果子元素数量为 0,隐藏 <ul> 元素
  1101. ulElement.style.display = "none";
  1102. }
  1103. </script>