edit_first.html 38 KB

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