edit_first.html 37 KB

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