edit_first.html 38 KB

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