edit_first.html 37 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309
  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" value="{$detail.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">审批人(二)</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. <!--<button type="button" class="layui-btn layui-btn-xs layui-btn-danger" lay-on="page" style="float: right;">上传附件</button>-->
  415. <button type="button" class="layui-btn layui-btn-xs layui-btn-danger" lay-on="test-iframe-handle" style="float: right;">
  416. 上传附件
  417. <span id="ID-test-iframe-mark"></span>
  418. </button>
  419. </th>
  420. </tr>
  421. <tr>
  422. <th colspan="9" class="fujianimg" style="padding: 0px 0px;">
  423. <div id="filesBox2">
  424. <table class="layui-hide" id="get_file" lay-filter="get_file"></table>
  425. </div>
  426. </th>
  427. </tr>
  428. </table>
  429. <div class="py-3">
  430. <input type="hidden" name="id" value="{$detail.id}"/>
  431. {if $detail.proprietor_status==0}
  432. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="add">保存</button>
  433. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="save">提交</button>
  434. {/if}
  435. <!-- //审核中-->
  436. {if $detail.proprietor_status == 1}
  437. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="withdraw">撤回</button>
  438. {/if}
  439. </div>
  440. </form>
  441. {else/}
  442. <!--之后的预览-->
  443. <form class="layui-form p-4">
  444. <table id="tabniubi" cellpadding="1" cellspacing="1">
  445. <tr>
  446. <th style="width: 10%;height: 0;"></th>
  447. <th style="width: 10%;height: 0;"></th>
  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. </tr>
  456. <tr border="1">
  457. {if $field.project_status == 1}
  458. <th class="form-title">项目状态</th>
  459. <th>
  460. {switch $detail.project_status}
  461. {case 1}立项中{/case}
  462. {case 2}审批中{/case}
  463. {case 3}待接收{/case}
  464. {case 4}待分配{/case}
  465. {case 5}作业中{/case}
  466. {case 6}归档中{/case}
  467. {case 7}退审中{/case}
  468. {case 8}已归档{/case}
  469. {case 9}已退审{/case}
  470. {case 0}
  471. {switch $detail.proprietor_status}
  472. {case 0}立项中{/case}
  473. {case 1}审核中{/case}
  474. {case 2}待接收{/case}
  475. {/switch}
  476. {/case}
  477. {default /}未知
  478. {/switch}
  479. </th>
  480. {/if}
  481. {if $field.project_name == 1}
  482. <th class="form-title">项目名称</th>
  483. <th colspan="3">{$detail.project_name}</th>
  484. {/if}
  485. {if $field.project_num == 1}
  486. <th class="form-title">项目编号</th>
  487. <th colspan="2">{$detail.project_num}</th>
  488. {/if}
  489. </tr>
  490. <tr>
  491. {if $field.project_time == 1}
  492. <th class="form-title">项目周期</th>
  493. {if $detail.project_start_time != null}
  494. <th colspan="8" style="text-align: left; padding-left: 3.5vw;">{$detail.project_start_time|date="Y-m-d"} 至 {$detail.project_end_time|date="Y-m-d"}</th>
  495. {else/}
  496. <th colspan="8" style="text-align: left; padding-left: 3.5vw;"> </th>
  497. {/if}
  498. {/if}
  499. </tr>
  500. <tr>
  501. {if $field.engineering_type == 1}
  502. <th class="form-title">工程类型</th>
  503. <th>
  504. {if $detail.engineering_type1==1}
  505. 预算
  506. {elseif $detail.engineering_type1==2}
  507. 结算
  508. {elseif $detail.engineering_type1==3}
  509. 概算
  510. {elseif $detail.engineering_type1==4}
  511. 决算
  512. {elseif $detail.engineering_type1==5}
  513. 工程总承包(EPC)
  514. {/if}
  515. </th>
  516. <th class="form-title">——</th>
  517. <th>
  518. {if $detail.engineering_type2==1}审核{else}编制{/if}
  519. </th>
  520. {/if}
  521. {if $field.engineering_category == 1}
  522. <th class="form-title">工程类别</th>
  523. <th>{$detail.engineering_category}</th>
  524. {/if}
  525. {if $field.project_region == 1}
  526. <th class="form-title">项目区域</th>
  527. <th colspan="2">
  528. {$detail.province}-{$detail.city}-{$detail.area}
  529. </th>
  530. {/if}
  531. </tr>
  532. <tr>
  533. {if $field.fiscal_nature == 1}
  534. <th class="form-title">资金性质</th>
  535. <th>{$detail.fiscal_nature}</th>
  536. {/if}
  537. {if $field.project_scale == 1}
  538. <th class="form-title">项目规模</th>
  539. <th colspan="3">{$detail.project_scale}</th>
  540. {/if}
  541. {if $field.charge_standard == 1}
  542. <th class="form-title">收费标准</th>
  543. <th colspan="2">{$detail.charge_standard}</th>
  544. {/if}
  545. </tr>
  546. {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}
  547. <tr>
  548. <th colspan="9" class="forleft">相关单位</th>
  549. </tr>
  550. <tr>
  551. {if $field.entrust_unit == 1}
  552. <th class="form-title">委托单位</th>
  553. <th>{$detail.entrust_unit_name}</th>
  554. {/if}
  555. {if $field.entrust_head == 1}
  556. <th class="form-title">负责人</th>
  557. <th>{$detail.entrust_maker_name}</th>
  558. {/if}
  559. {if $field.sent_review_unit == 1}
  560. <th class="form-title">送审单位</th>
  561. <th>{$detail.sent_review_unit_name}</th>
  562. {/if}
  563. {if $field.sent_review_head == 1}
  564. <th class="form-title">负责人</th>
  565. <th colspan="2">{$detail.sent_review_head_name}</th>
  566. {/if}
  567. </tr>
  568. <tr>
  569. {if $field.review_unit == 1}
  570. <th class="form-title">评审机构</th>
  571. <th>{$detail.review_unit_name}</th>
  572. {/if}
  573. {if $field.review_head == 1}
  574. <th class="form-title">项目负责人</th>
  575. <th>{$detail.review_head_name}</th>
  576. {/if}
  577. {if $field.operate_name == 1}
  578. <th class="form-title">作业负责人</th>
  579. <th>{$detail.operate_head_name}</th>
  580. {/if}
  581. {if $field.operate_team_names == 1}
  582. <th class="form-title">作业成员</th>
  583. <th colspan="2">{$detail.operate_team_names}</th>
  584. {/if}
  585. </tr>
  586. <tr>
  587. {if $field.construction_unit == 1}
  588. <th class="form-title" colspan="1">施工单位</th>
  589. <th colspan="1">{$detail.construction_unit}</th>
  590. {/if}
  591. {if $field.construction_head == 1}
  592. <th class="form-title" colspan="1">负责人</th>
  593. <th colspan="6">{$detail.construction_head}</th>
  594. {/if}
  595. </tr>
  596. {/if}
  597. {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}
  598. <tr>
  599. <th colspan="9" class="forleft">金额详情</th>
  600. </tr>
  601. <tr>
  602. {if $field.sent_review_amount == 1}
  603. <th class="form-title" colspan="1">送审金额(元)</th>
  604. <th colspan="2">{$detail.sent_review_amount}</th>
  605. {/if}
  606. {if $field.authorize_amount == 1}
  607. <th class="form-title" colspan="1">审定金额(元)</th>
  608. <th colspan="2">{$detail.authorize_amount}</th>
  609. {/if}
  610. {if $field.review_add_reduce_amount == 1}
  611. <th class="form-title" colspan="1">审增金额(元)</th>
  612. <th colspan="2">{$detail.review_add_amount}</th>
  613. {/if}
  614. </tr>
  615. <tr>
  616. {if $field.review_add_reduce_amount == 1}
  617. <th class="form-title" colspan="1">审减金额(元)</th>
  618. <th colspan="2">{$detail.review_reduce_amount}</th>
  619. {/if}
  620. {if $field.review_add_reduce_rate == 1}
  621. <th class="form-title" colspan="1">审增减率(%)</th>
  622. <th colspan="2">{$detail.review_add_reduce_rate}</th>
  623. {/if}
  624. {if $field.sent_review_cost == 1}
  625. <th class="form-title" colspan="1">送审服务费 (元)</th>
  626. <th colspan="2">{$detail.sent_review_cost}</th>
  627. {/if}
  628. </tr>
  629. <tr>
  630. {if $field.sent_review_approver_amount == 1}
  631. <th class="form-title forright" colspan="1">
  632. 送审单位承担<br>审核费(元)
  633. </th>
  634. <th colspan="2">{$detail.sent_review_approver_amount}</th>
  635. {/if}
  636. {if $field.construction_approver_amount == 1}
  637. <th class="form-title forright" colspan="2">
  638. 施工单位负责<br>核减超5%评审费部分(元)
  639. </th>
  640. <th colspan="2">{$detail.construction_approver_amount}</th>
  641. {/if}
  642. {if $field.report_time == 1}
  643. <th class="form-title" colspan="1">报告时间</th>
  644. <th colspan="1" style="text-align: left; padding-left: 3.5vw;">{if
  645. $detail.report_time!=0}{$detail.report_time|date="Y-m-d"}{/if}
  646. </th>
  647. {/if}
  648. </tr>
  649. {/if}
  650. <tr>
  651. <th colspan="9" class="forleft">相关附件
  652. <!--<button class="layui-btn layui-btn-xs layui-btn-danger" style="float: right;" type="button"-->
  653. <!-- id="uploadBtn">上传附件-->
  654. <!--</button>-->
  655. <!--<button type="button" class="layui-btn layui-btn-xs layui-btn-danger" lay-on="page" style="float: right;">上传附件</button>-->
  656. <button type="button" class="layui-btn layui-btn-xs layui-btn-danger" lay-on="test-iframe-handle" style="float: right;">
  657. 上传附件
  658. <span id="ID-test-iframe-mark"></span>
  659. </button>
  660. </th>
  661. </tr>
  662. <tr>
  663. <th colspan="9" class="fujianimg" style="padding: 0px 0px;">
  664. <div id="filesBox2">
  665. <table class="layui-hide" id="get_file" lay-filter="get_file"></table>
  666. </div>
  667. </th>
  668. </tr>
  669. </table>
  670. <div class="py-3">
  671. <input type="hidden" name="id" value="{$detail.id}"/>
  672. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="savetime">保存</button>
  673. </div>
  674. </form>
  675. {/if}
  676. <script>
  677. function first(){
  678. var form = layui.form, tool = layui.tool, oaTool = layui.oaTool;
  679. let table = layui.table;
  680. //附件表格
  681. var allcount;
  682. parent.layui.get_fileTable = table.render({
  683. elem: '#get_file',
  684. title: '文档列表',
  685. toolbar: '#toolbarget_file',
  686. cellMinWidth: 80,
  687. parseData: function (res) { // 数据解析回调函数
  688. // 在这里可以获取数据总数
  689. allcount = res.data.length;
  690. return {
  691. code: res.code, // 数据状态码
  692. msg: res.msg, // 状态信息
  693. count: res.count, // 数据总数
  694. data: res.data // 当前页数据
  695. };
  696. },
  697. url: "/admin/project.api/get_file",
  698. where: {'id': project_id},
  699. page: true, //开启分页
  700. limit: 20,
  701. cols: [[
  702. {field: 'id', title: '序号', width: 80, align: 'center',
  703. templet: function (d) {
  704. //console.log(allcount,d.LAY_NUM)
  705. return allcount - (d.LAY_NUM - 1);
  706. }
  707. },
  708. {field: 'name', title: '附件名称', align: 'left',
  709. },
  710. {field: 'remark', title: '附件说明', align: 'left',
  711. },
  712. {field: 'admin_name', title: '上传人', align: 'center', width: 150},
  713. {field: 'create_time', title: '上传时间', align: 'center', width: 150,
  714. // templet:"<div>{{d.create_time}}</div>"
  715. templet:"<div>{{layui.util.toDateString(d.create_time*1000, 'yyyy-MM-dd HH:mm:ss')}}</div>"
  716. },
  717. {field: 'right', fixed: 'right', title: '操作', width: 150, align: 'center',
  718. templet: function (d) {
  719. var html = '<div class="layui-btn-group">';
  720. var btn1 = `<a href="https://view.officeapps.live.com/op/view.aspx?src=${d.filepath}" target="_blank" class="layui-btn layui-btn-xs">预览</a>`;
  721. var btn2 = `<a class="layui-btn layui-btn-xs layui-bg-blue" href="${d.filepath}" download="${d.name}" lay-event="">下载</a>`;
  722. var btn3 = `<span data-id="${d.id}" class="layui-btn layui-btn-xs layui-btn-danger file-del " >删除</span>`;
  723. return html + btn1 + btn2 + btn3 +'</div>';
  724. }
  725. }
  726. ]]
  727. });
  728. function res(){
  729. table.reload('get_file');
  730. }
  731. $('#filesBox2').on('click', '.file-del', function (e) {
  732. // console.log( $(this).attr('data-id'))
  733. let id = $(this).attr('data-id');
  734. layer.confirm('确定要删除该文件吗?请慎重', {icon: 3, title: '提示'}, function (index) {
  735. let callback = function (e) {
  736. layer.msg(e.msg);
  737. if (e.code == 0) {
  738. res()
  739. }
  740. }
  741. tool.delete("/admin/project.api/delete_file_proprietor", {id: id}, callback);// 删除附件
  742. layer.close(index);
  743. });
  744. })
  745. //上传附件弹出窗
  746. layui.use(function(){
  747. var $ = layui.$;
  748. var layer = layui.layer;
  749. var upload = layui.upload;
  750. var util = layui.util;
  751. // 事件
  752. util.on('lay-on', {
  753. 'test-iframe-handle': function(){
  754. layer.open({
  755. type: 2,
  756. area: ['680px', '520px'],
  757. content: 'ceshi?id={$detail.id}',
  758. fixed: false, // 不固定
  759. maxmin: true,
  760. shadeClose: true,
  761. title: '上传附件',
  762. btnAlign: 'c',
  763. yes: function(index, layero){
  764. // 获取 iframe 的窗口对象
  765. var iframeWin = window[layero.find('iframe')[0]['name']];
  766. var elemMark = iframeWin.$('#mark'); // 获得 iframe 中某个输入框元素
  767. var value = elemMark.val();
  768. if($.trim(value) === '') return elemMark.focus();
  769. // 显示获得的值
  770. layer.msg('获得 iframe 中的输入框标记值:'+ value);
  771. }
  772. });
  773. },
  774. })
  775. });
  776. oaTool.addFile({
  777. type: 1,
  778. isSave: true,
  779. ajaxSave: function (res) {
  780. let callback = function (e) {
  781. if("msg" in e){
  782. layer.msg(e.msg);
  783. }else{
  784. layer.msg('上传成功!')
  785. }
  786. setTimeout(function () {
  787. $("#filesBox2").load(location.href+" #filesBox>*","type=2")
  788. }, 500)
  789. }
  790. // console.log(1);
  791. // console.log(res,"{$detail.id}")
  792. tool.post("/admin/project.api/add_file", { // 上传附件
  793. 'topic_id': "{$detail.id}",
  794. 'file_id': res.data.id,
  795. 'file_name': res.data.name,
  796. 'module': 'project'
  797. }, callback);
  798. }
  799. });
  800. // var form = layui.form, tool = layui.tool, oaTool = layui.oaTool;
  801. //日期选择
  802. layui.laydate.render({
  803. elem: '#date',
  804. range: ['#start_time', '#end_time'],
  805. rangeLinked: true
  806. });
  807. // var selectedNature = $('input[name="fiscal_nature"]:checked').val();
  808. // if (selectedNature == "财政资金") {
  809. // $(".entrust_unit").show();
  810. // $(".review_unit").hide();
  811. // } else {
  812. // $(".review_unit").show();
  813. // $(".entrust_unit").hide();
  814. // }
  815. //radio选择
  816. form.on('radio(tax)', function (data) {
  817. if (data.value == "财政资金") {
  818. console.log(1)
  819. $(".entrust_unit").show();
  820. $(".review_unit").hide();
  821. } else {
  822. $(".review_unit").show();
  823. $(".entrust_unit").hide();
  824. }
  825. });
  826. $('.customer-picker').on('click', function () {
  827. let that = $(this);
  828. let callback = function(data){
  829. console.log(data);
  830. $('[name="review_unit"]').val(data.id);
  831. $('[name="review_unit_name"]').val(data.title);
  832. }
  833. oaTool.customerPicker(callback);
  834. });
  835. form.on('submit(add)', function (data) {
  836. if(data.field.fiscal_nature=="财政资金"){
  837. delete data.field.review_unit;
  838. delete data.field.review_unit_name;
  839. if(data.field.entrust_unit==""&&data.field.entrust_unit_name==""){
  840. layer.msg("请选择委托单位")
  841. return false;
  842. }
  843. }else {
  844. delete data.field.entrust_unit;
  845. delete data.field.entrust_unit_name;
  846. if(data.field.review_unit==""&&data.field.review_unit_name==""){
  847. layer.msg("请选择评审单位")
  848. return false;
  849. }
  850. }
  851. let c = 1;
  852. if (c) {
  853. let callback = function (e) {
  854. c = 1
  855. layer.msg(e.msg);
  856. if (e.code == 0) {
  857. tool.sideClose(1000);
  858. }
  859. }
  860. var engineering_type1 = '';
  861. if (data.field.engineering_type1 == 1) {
  862. engineering_type1 = '预算';
  863. } else if (data.field.engineering_type1 == 2) {
  864. engineering_type1 = '结算';
  865. }else if(data.field.engineering_type1==3){
  866. engineering_type1 ='概算';
  867. }else if(data.field.engineering_type1==4){
  868. engineering_type1 ='决算';
  869. }else if(data.field.engineering_type1==5){
  870. engineering_type1 ='工程总承包(EPC)';
  871. }
  872. var engineering_type2 = '';
  873. if (data.field.engineering_type2 == 1) {
  874. engineering_type2 = '审核';
  875. } else if (data.field.engineering_type2 == 2) {
  876. engineering_type2 = '编制';
  877. }
  878. if(engineering_type1!==""&&engineering_type2!==""){
  879. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  880. }
  881. tool.post("/admin/project.cost_proprietor/edit_main", data.field, callback);
  882. }
  883. c = 0
  884. return false;
  885. });
  886. let a = 1;
  887. //监听提交
  888. form.on('submit(webform)', function (data) {
  889. if(a){
  890. let callback = function (e) {
  891. a = 1
  892. layer.msg(e.msg);
  893. if (e.code == 0) {
  894. tool.sideClose(1000);
  895. }
  896. }
  897. if(data.field.engineering_type1!==""&&data.field.engineering_type2!==""){
  898. var engineering_type1 ='';
  899. if(data.field.engineering_type1==1){
  900. engineering_type1 ='预算';
  901. }else if(data.field.engineering_type1==2){
  902. engineering_type1 ='结算';
  903. }else if(data.field.engineering_type1==3){
  904. engineering_type1 ='概算';
  905. }else if(data.field.engineering_type1==4){
  906. engineering_type1 ='决算';
  907. }else if(data.field.engineering_type1==5){
  908. engineering_type1 ='工程总承包(EPC)';
  909. }
  910. var engineering_type2 = '';
  911. if(data.field.engineering_type2==1){
  912. engineering_type2 ='审核';
  913. }else if(data.field.engineering_type2==2) {
  914. engineering_type2 = '编制';
  915. }
  916. if(engineering_type1!==""&&engineering_type2!==""){
  917. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  918. }
  919. }
  920. tool.post("/admin/project.cost_proprietor/edit_main", data.field, callback);
  921. }
  922. a = 0
  923. return false;
  924. });
  925. let a1 = 1;
  926. form.on('submit(save)', function (data) {
  927. if(a1){
  928. let callback = function (e) {
  929. a1 = 1
  930. layer.msg(e.msg);
  931. if (e.code == 0) {
  932. tool.sideClose(1000);
  933. }
  934. }
  935. if(data.field.engineering_type1!==""&&data.field.engineering_type2!==""){
  936. var engineering_type1 ='';
  937. if(data.field.engineering_type1==1){
  938. engineering_type1 ='预算';
  939. }else if(data.field.engineering_type1==2){
  940. engineering_type1 ='结算';
  941. }else if(data.field.engineering_type1==3){
  942. engineering_type1 ='概算';
  943. }else if(data.field.engineering_type1==4){
  944. engineering_type1 ='决算';
  945. }else if(data.field.engineering_type1==5){
  946. engineering_type1 ='工程总承包(EPC)';
  947. }
  948. var engineering_type2 = '';
  949. if(data.field.engineering_type2==1){
  950. engineering_type2 ='审核';
  951. }else if(data.field.engineering_type2==2) {
  952. engineering_type2 = '编制';
  953. }
  954. if(engineering_type1!==""&&engineering_type2!==""){
  955. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  956. }
  957. }
  958. tool.post("/admin/project.cost_proprietor/save", data.field, callback);
  959. }
  960. a1 = 0
  961. return false;
  962. });
  963. let a2 = 1;
  964. form.on('submit(withdraw)', function (data) {
  965. if(a2){
  966. let callback = function (e) {
  967. a2 = 1
  968. layer.msg(e.msg);
  969. if (e.code == 0) {
  970. tool.sideClose(1000);
  971. }
  972. }
  973. if(data.field.engineering_type1!==""&&data.field.engineering_type2!==""){
  974. var engineering_type1 ='';
  975. if(data.field.engineering_type1==1){
  976. engineering_type1 ='预算';
  977. }else if(data.field.engineering_type1==2){
  978. engineering_type1 ='结算';
  979. }else if(data.field.engineering_type1==3){
  980. engineering_type1 ='概算';
  981. }else if(data.field.engineering_type1==4){
  982. engineering_type1 ='决算';
  983. }else if(data.field.engineering_type1==5){
  984. engineering_type1 ='工程总承包(EPC)';
  985. }
  986. var engineering_type2 = '';
  987. if(data.field.engineering_type2==1){
  988. engineering_type2 ='审核';
  989. }else if(data.field.engineering_type2==2) {
  990. engineering_type2 = '编制';
  991. }
  992. if(engineering_type1!==""&&engineering_type2!==""){
  993. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  994. }
  995. }
  996. tool.post("/admin/project.cost_proprietor/withdraw", data.field, callback);
  997. }
  998. a2 = 0
  999. return false;
  1000. });
  1001. let a3 = 1;
  1002. form.on('submit(savetime)', function (data) {
  1003. if(a3){
  1004. let callback = function (e) {
  1005. a3 = 1
  1006. layer.msg(e.msg);
  1007. if (e.code == 0) {
  1008. tool.sideClose(1000);
  1009. }
  1010. }
  1011. if(data.field.engineering_type1!==""&&data.field.engineering_type2!==""){
  1012. var engineering_type1 ='';
  1013. if(data.field.engineering_type1==1){
  1014. engineering_type1 ='预算';
  1015. }else if(data.field.engineering_type1==2){
  1016. engineering_type1 ='结算';
  1017. }else if(data.field.engineering_type1==3){
  1018. engineering_type1 ='概算';
  1019. }else if(data.field.engineering_type1==4){
  1020. engineering_type1 ='决算';
  1021. }else if(data.field.engineering_type1==5){
  1022. engineering_type1 ='工程总承包(EPC)';
  1023. }
  1024. var engineering_type2 = '';
  1025. if(data.field.engineering_type2==1){
  1026. engineering_type2 ='审核';
  1027. }else if(data.field.engineering_type2==2) {
  1028. engineering_type2 = '编制';
  1029. }
  1030. if(engineering_type1!==""&&engineering_type2!==""){
  1031. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  1032. }
  1033. }
  1034. tool.post("/admin/project.cost_proprietor/edit_main", data.field, callback);
  1035. }
  1036. a3 = 0
  1037. return false;
  1038. });
  1039. //项目区域
  1040. layui.use(['form', 'jquery'], function () {
  1041. var form = layui.form;
  1042. const $ = layui.jquery;
  1043. let adress;
  1044. $.ajax({
  1045. type: "get", //使用get方式
  1046. url: "/static/assets/layui/adress.json", //json文件相对于这个HTML的路径
  1047. dataType: "json",
  1048. async: false,
  1049. success: function (data) {
  1050. //这个data就是json数据
  1051. adress = data
  1052. var province = Object.keys(adress)
  1053. var proStrs = '<option value="">省</option>';
  1054. for (var i = 0; i < province.length; i++) {
  1055. proStrs += '<option value="' + province[i] + '">' + province[i] + '</option>';
  1056. }
  1057. $("#province").html(proStrs);
  1058. layui.form.render("select")
  1059. },
  1060. error: function () {
  1061. layer.alert("地址请求失败!! ");
  1062. }
  1063. });
  1064. function getFirstAttr(obj) {
  1065. for (var k in obj) return k;
  1066. }
  1067. function selectOption(selectedProvince, selectedCity = '', selectedArea = '') {
  1068. var proStr = '<option value="">省</option>', cityStr = '<option value="">市</option>',
  1069. areaStr = '<option value="">县</option>';
  1070. var pro = adress[selectedProvince], ci = adress[selectedProvince][selectedCity];
  1071. for (var province in adress) {
  1072. if (province == selectedProvince) proStr += '<option value="' + province + '" selected>' + province + '</option>';
  1073. else proStr += '<option value="' + province + '">' + province + '</option>';
  1074. }
  1075. $("#province").html(proStr);
  1076. for (var city in pro) {
  1077. if (city == selectedCity) cityStr += '<option value="' + city + '" selected>' + city + '</option>';
  1078. else cityStr += '<option value="' + city + '">' + city + '</option>';
  1079. }
  1080. $("#city").html(cityStr);
  1081. for (var area in ci) {
  1082. if (area == "remove") {
  1083. continue;
  1084. }
  1085. if (ci[area] == selectedArea) areaStr += '<option value="' + ci[area] + '" selected>' + ci[area] + '</option>';
  1086. else areaStr += '<option value="' + ci[area] + '">' + ci[area] + '</option>';
  1087. }
  1088. $("#area").html(areaStr);
  1089. form.render();
  1090. }
  1091. /*selectOption(1,2, 3);*/
  1092. form.on('select(province)', function (data) {
  1093. let thisProvince = data.value;
  1094. let thisCity = getFirstAttr(adress[thisProvince]);
  1095. selectOption(data.value);
  1096. });
  1097. form.on('select(city)', function (data) {
  1098. selectOption($("#province").val(), data.value, getFirstAttr(data.value));
  1099. });
  1100. selectOption("{$detail.province}","{$detail.city}","{$detail.area}")
  1101. })
  1102. }
  1103. </script>
  1104. <script>
  1105. // 获取具有指定 ID 的 <ul> 元素
  1106. var ulElement = document.getElementById("filesBox");
  1107. // 检查 <ul> 元素的子元素数量
  1108. if (ulElement.children.length === 0) {
  1109. // 如果子元素数量为 0,隐藏 <ul> 元素
  1110. ulElement.style.display = "none";
  1111. }
  1112. </script>