edit_first.html 36 KB

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