edit_first.html 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349
  1. <style>
  2. .heading th {
  3. text-align: center;
  4. }
  5. .form td {
  6. text-align: center;
  7. }
  8. /* 日志 */
  9. .log_top {
  10. padding-left: 1vw;
  11. }
  12. .log_top span {
  13. margin: 0 0.5vw;
  14. }
  15. /* 1,1,1 */
  16. .log_commentary {
  17. color: rgb(0, 176, 80);
  18. }
  19. .log_company {
  20. color: rgb(255, 33, 0);
  21. }
  22. .log_content {
  23. width: fit-content;
  24. margin: 0.3vw 1.5vw 1vw 1.5vw;
  25. padding: 0.5vw 0vw;
  26. text-indent: 1.2em;
  27. line-height: 2.1vh;
  28. background-color: rgb(255, 255, 255);
  29. border-radius: 0.5vw;
  30. box-shadow: 0.19vw 0.16vw 0.4vw 0.03vw rgba(0, 0, 0, 0.13);
  31. }
  32. .log_content_color {
  33. /* background-color: rgb(250,250,250); */
  34. }
  35. .log_content_img img {
  36. /* width: 10%; */
  37. border-radius: 0.5vw;
  38. margin: 0.3vw 0;
  39. padding-right: 18px;
  40. padding-bottom: 7px;
  41. padding-left: 2px;
  42. }
  43. .log_item_top {
  44. height: 70%;
  45. overflow: scroll;
  46. }
  47. .log_item_top {
  48. height: 60vh;
  49. /* background-color: rgb(255, 255, 255); */
  50. }
  51. .log_item_bottom {
  52. display: flex;
  53. /* height: 17vh; */
  54. /* border-top: 1px solid #eee; */
  55. margin: 0 1.5vw;
  56. /* background-color: rgb(250,250,250); */
  57. }
  58. .log_input input {
  59. width: 55vw;
  60. height: 10vh;
  61. border: #eee 1px solid;
  62. }
  63. .log_bottom_img {
  64. /* height: 5vh; */
  65. }
  66. .log_bottom_img img {
  67. height: 4vw;
  68. width: 6vw;
  69. border-radius: 0.5vw;
  70. margin: 0.5vw 0vw 0.5vw 0.3vw;
  71. }
  72. .log_bottom_left {
  73. width: 100%;
  74. margin-top: 1.5vh;
  75. }
  76. .log_bottom_right {
  77. width: 5%;
  78. }
  79. /* 上传图片 */
  80. .layui-upload-drag-self {
  81. background-color: #fbfdff;
  82. border: 1px dashed #c0ccda;
  83. border-radius: 6px;
  84. box-sizing: border-box;
  85. line-height: 4vw;
  86. vertical-align: top;
  87. display: inline-block;
  88. text-align: center;
  89. cursor: pointer;
  90. outline: 0;
  91. margin-right: 13px;
  92. float: left;
  93. }
  94. .layui-input-inlines-self {
  95. position: relative;
  96. margin-left: 90px;
  97. min-height: 36px;
  98. text-align: left;
  99. }
  100. .layui-upload-drag-self .layui-icon {
  101. font-size: 28px;
  102. color: #8c939d
  103. }
  104. .layui-upload-drag-self .img {
  105. position: relative;
  106. height: 148px;
  107. width: 148px;
  108. }
  109. .layui-upload-img {
  110. width: 148px;
  111. height: 148px;
  112. border-radius: 6px;
  113. margin-top: -3px;
  114. margin-left: -2px;
  115. }
  116. .handle {
  117. position: absolute;
  118. width: 148px;
  119. height: 100%;
  120. z-index: 100;
  121. border-radius: 6px;
  122. top: 0;
  123. background: rgba(59, 60, 61, 0.6);
  124. text-align: center;
  125. }
  126. .handle .icon-myself {
  127. z-index: 999;
  128. transition: all .3s;
  129. cursor: pointer;
  130. font-size: 25px;
  131. width: 25px;
  132. color: rgba(255, 255, 255, 0.91);
  133. margin: 0 4px;
  134. }
  135. .log_textarea {
  136. width: 89vw;
  137. height: 8vh;
  138. padding: 0.5vw;
  139. /* margin-right: 2vw; */
  140. margin: 1vw;
  141. }
  142. .log_button_img {
  143. width: 2vw;
  144. }
  145. .log_card {
  146. border: none !important;
  147. }
  148. /* 点击图片放大 */
  149. .content_img img {
  150. max-width: 100%;
  151. cursor: pointer;
  152. }
  153. .overlay {
  154. display: none;
  155. position: fixed;
  156. top: 0;
  157. left: 0;
  158. width: 100%;
  159. height: 100%;
  160. background-color: rgba(0, 0, 0, 0.7);
  161. justify-content: center;
  162. z-index: 1;
  163. }
  164. .overlay img {
  165. margin-top: 4%;
  166. max-width: 90%;
  167. max-height: 90%;
  168. object-fit: contain;
  169. }
  170. .p-4 {
  171. background-color: rgb(255, 255, 255);
  172. }
  173. /*表格*/
  174. #tabniubi {
  175. width: 100%;
  176. margin: 10px 0;
  177. background-color: #fff;
  178. color: #5f5f5f;
  179. }
  180. #tabniubi th {
  181. padding: 9px 15px;
  182. min-height: 20px;
  183. height: 0px;
  184. line-height:0px;
  185. text-align: center;
  186. /* font-size: 14px; */
  187. border-width: 1px;
  188. border-style: solid;
  189. border-color: #e2e2e2;
  190. font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif;
  191. }
  192. #tabniubi tr:first-child {
  193. padding: 0;
  194. min-height: 0;
  195. line-height: 0;
  196. border-width: 0;
  197. border-style: none;
  198. border-color: #fff;
  199. font-size: 0;
  200. }
  201. #tabniubi tr:first-child th {
  202. padding: 0;
  203. min-height: 0;
  204. line-height: 0;
  205. border-width: 0;
  206. border-style: none;
  207. border-color: #fff;
  208. font-size: 0;
  209. height: 0 !important;
  210. }
  211. .form-title {
  212. background-color: rgb(241, 241, 241);
  213. color: rgb(95, 95, 95);
  214. border-color: rgb(241, 241, 241);
  215. font-weight: 600;
  216. }
  217. /* .fujianimg img {
  218. width: 5vw;
  219. height: 5vh;
  220. } */
  221. .forleft {
  222. text-align: left !important;
  223. }
  224. .layui-form-select dl dd.layui-this {
  225. background-color: #f8f8f8;
  226. color: rgb(23, 145, 233);
  227. font-weight: 700;
  228. }
  229. .layui-input, .layui-textarea {
  230. /* padding-left: 3.75vw; */
  231. color: #5f5f5f;
  232. }
  233. .upimg {
  234. width: 250px;
  235. height: 250px;
  236. }
  237. .fujianimg img {
  238. height: 5.5vh;
  239. }
  240. .filelist{
  241. width: 100%;
  242. overflow: auto;
  243. justify-content:flex-start;
  244. align-content: space-between;
  245. flex-direction: column-reverse;
  246. flex-wrap: wrap;
  247. display: flex;
  248. }
  249. .filelist li{
  250. padding: 0.5vw 0.8vw 0.5vw 0.8vw;
  251. white-space: nowrap;
  252. overflow: hidden;
  253. text-overflow: ellipsis;
  254. display: inline-block;
  255. border-right: 1px solid #e2e2e2;
  256. float: left;
  257. }
  258. .filelist p{
  259. margin: 3px 0 5px 0;
  260. width: 11vw;
  261. overflow: hidden;
  262. text-overflow: ellipsis;
  263. text-align: center;
  264. }
  265. #filesBox2 li{
  266. padding: 0.5vw 0.8vw 0.5vw 0.8vw;
  267. white-space: nowrap;
  268. overflow: hidden;
  269. text-overflow: ellipsis;
  270. display: inline-block;
  271. border-right: 1px solid #e2e2e2;
  272. float: left;
  273. }
  274. /* 倒计时 */
  275. .countdown {
  276. height: 8.5vh;
  277. width: 6.5vw;
  278. font-size: 1vw;
  279. text-align: center;
  280. border: 1px solid #eee;
  281. }
  282. .countdown-top {
  283. height: 3.5vh;
  284. line-height: 3.5vh;
  285. border-bottom: 1px solid #eee;
  286. color: #fff;
  287. background-color: rgb(23, 145, 233);
  288. border-bottom: 1px solid rgb(23, 145, 233);
  289. font-size: 0.95vw;
  290. padding: 0;
  291. margin: 0;
  292. }
  293. .countdown-bottom {
  294. height: 5vh;
  295. line-height: 5vh;
  296. padding: 0;
  297. margin: 0;
  298. background-color: #fff;
  299. }
  300. #filesBox2 .layui-table-tool{
  301. display: none;
  302. }
  303. #filesBox2 .layui-table-view .layui-table{
  304. width: 100% !important;
  305. }
  306. #filesBox2 .layui-table-cell{
  307. display: flex;
  308. align-items: center;
  309. justify-content: center;
  310. }
  311. .laytable-cell-1-0-1, .laytable-cell-1-0-2{
  312. justify-content: flex-start !important;
  313. }
  314. .laytable-cell-1-0-0 span, .laytable-cell-1-0-1 span, .laytable-cell-1-0-2 span, .laytable-cell-1-0-3 span, .laytable-cell-1-0-4 span, th>.laytable-cell-1-0-5 span{
  315. display: flex;
  316. font: 14px red;
  317. font-weight: 600;
  318. color: #5f5f5f;
  319. }
  320. #tabniubi tr:first-child th{
  321. border-right: 1px solid #e2e2e2 !important;
  322. }
  323. #filesBox2 th:sixth-child{
  324. border-right: none !important;
  325. }
  326. </style>
  327. <!--业主项目审核以下-->
  328. {if $detail.proprietor_status<2}
  329. <form class="layui-form p-4">
  330. <table id="tabniubi" cellpadding="1" cellspacing="1">
  331. <tr>
  332. <th style="width: 10%;height: 0;"></th>
  333. <th style="width: 10%;height: 0;"></th>
  334. <th style="width: 10%;height: 0;"></th>
  335. <th style="width: 10%;height: 0;"></th>
  336. <th style="width: 10%;height: 0;"></th>
  337. <th style="width: 10%;height: 0;"></th>
  338. <th style="width: 10%;height: 0;"></th>
  339. <th style="width: 10%;height: 0;"></th>
  340. <th style="width: 10%;height: 0;"></th>
  341. </tr>
  342. <tr border="1">
  343. <th class="form-title">项目名称 <font style="color: red !important;">*</font></th>
  344. <th colspan="2">
  345. <input type="text" name="project_name" lay-verify="required" lay-reqText="请完善项目名称" value="{$detail.project_name}"
  346. autocomplete="off" placeholder="请输入项目名称" class="layui-input">
  347. </th>
  348. <th class="form-title">项目编号 <font style="color: red !important;">*</font></th>
  349. <th colspan="2">
  350. <input type="text" name="project_num" lay-verify="required" lay-reqText="请完善项目编号" value="{$detail.project_num}"
  351. autocomplete="off" placeholder="请输入项目编号" class="layui-input">
  352. </th>
  353. <th class="form-title">工程类别</th>
  354. <th colspan="2">
  355. <select name="engineering_category" lay-verify="engineering_category" >
  356. <option value="">请选择工程类型</option>
  357. <option value="建筑物" >建筑物</option>
  358. <option value="交通" >交通</option>
  359. <option value="水利" >水利</option>
  360. <option value="土地整治" >土地整治</option>
  361. <option value="市政园林" >市政园林</option>
  362. <option value="信息网络" >信息网络</option>
  363. <option value="其他" >其他</option>
  364. </select>
  365. </th>
  366. </tr>
  367. <tr>
  368. <th class="form-title">项目类型<font style="color: red !important;">*</font></th>
  369. <th colspan="2">
  370. <div>
  371. <select name="engineering_type1" lay-verify="required">
  372. <option value="">请选择项目类型</option>
  373. <option value="1" {eq name="$detail.engineering_type1" value="1"} selected {/eq}>预算</option>
  374. <option value="2"{eq name="$detail.engineering_type1" value="2"} selected {/eq}>结算</option>
  375. <option value="3" {eq name="$detail.engineering_type1" value="3"} selected {/eq}>概算</option>
  376. <option value="4" {eq name="$detail.engineering_type1" value="4"} selected {/eq}>决算</option>
  377. <option value="5" {eq name="$detail.engineering_type1" value="5"} selected {/eq}>工程总承包(EPC)</option>
  378. </select>
  379. </div>
  380. </th>
  381. <th class="form-title">——</th>
  382. <th colspan="2">
  383. <div>
  384. <select name="engineering_type2" lay-verify="required">
  385. <option value="">请选择项目类型</option>
  386. <option value="1" {eq name="$detail.engineering_type2" value="1"} selected {/eq}>审核</option>
  387. <option value="2" {eq name="$detail.engineering_type2" value="2"} selected {/eq}>编制</option>
  388. </select>
  389. </div>
  390. </th>
  391. </tr>
  392. <tr>
  393. <th class="form-title">项目区域</th>
  394. <th colspan="2">
  395. <div>
  396. <div class="layui-form-item"
  397. style="margin-bottom: 0;display: flex;flex-direction: row;justify-content: space-between;">
  398. <div class="layui-input-inline" style="width: 6.5vw;">
  399. <select id="province" lay-filter="province" name="province"></select>
  400. </div>
  401. <div class="layui-input-inline area" style="width: 6.5vw;">
  402. <select id="city" lay-filter="city" name="city"></select>
  403. </div>
  404. <div class="layui-input-inline area" style="width: 6.5vw;">
  405. <select id="area" lay-filter="area" name="area"></select>
  406. </div>
  407. </div>
  408. </div>
  409. </th>
  410. </tr>
  411. <tr>
  412. <th class="form-title">资金性质</th>
  413. <th>
  414. <input type="radio" name="fiscal_nature" value="财政资金" title="财政资金" lay-filter="tax"
  415. {eq name="$detail.fiscal_nature" value="财政资金"} checked {/eq} >
  416. <input type="radio" name="fiscal_nature" value="非财政资金" title="非财政资金" lay-filter="tax"
  417. {eq name="$detail.fiscal_nature" value="非财政资金"} checked {/eq} >
  418. </th>
  419. <th class="form-title entrust_unit">委托单位 <font style="color: red !important;">*</font></th>
  420. <th colspan="2" class="entrust_unit">
  421. <input type="text" name="entrust_unit_name" autocomplete="off" readonly value="{$detail.entrust_unit_name}" lay-reqText="当地财评委托单位" placeholder="当地财评委托单位" class="layui-input get-entrust">
  422. <input type="hidden" name="entrust_unit" value="{$detail.entrust_unit}">
  423. </th>
  424. <tr>
  425. <th class="form-title">审批人 <font style="color: red !important;">*</font></th>
  426. <th colspan="2">
  427. <select name="sent_review_approver" lay-verify="required" lay-reqText="请选择审批人">
  428. <option value="">请选择审批人</option>
  429. {dump($person)}
  430. {volist name="person" id="v"}
  431. <option value="{$v.id}" {eq name="$detail.sent_review_approver" value="$v.id" } selected="" {/eq}>{$v.nickname}</option>
  432. {/volist}
  433. </select>
  434. </th>
  435. <th colspan="2">
  436. <select name="sent_review_second_approver" lay-reqText="请选择审批人">
  437. <option value="">请选择第二审批人(可选)</option>
  438. {dump($person)}
  439. {volist name="person" id="v"}
  440. <option value="{$v.id}" {eq name="$detail.sent_review_second_approver" value="$v.id"} selected="" {/eq} {if!isset($detail.sent_review_second_approver)}name=""{/if}>{$v.nickname}</option>
  441. {/volist}
  442. </select>
  443. </th>
  444. </tr>
  445. <tr>
  446. <th colspan="9" class="forleft">相关附件
  447. <button class="layui-btn layui-btn-xs layui-btn-danger" style="float: right;" type="button"
  448. id="uploadBtn">上传附件
  449. </button>
  450. </th>
  451. </tr>
  452. <tr>
  453. <th colspan="9" class="fujianimg" style="padding: 9px 0;">
  454. <div id="filesBox2">
  455. <div class="filelist" id="filesBigBox">
  456. <ul id="filesBox" style="overflow: scroll;">
  457. {:fileCard($file_array)}
  458. </ul>
  459. </div>
  460. {empty name="$file_array" }
  461. <div class="layui-data-none">暂无附件</div>
  462. {/empty}
  463. </div>
  464. </th>
  465. </tr>
  466. </table>
  467. <div class="py-3">
  468. <input type="hidden" name="id" value="{$detail.id}"/>
  469. {if $detail.proprietor_status==0}
  470. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="add">保存</button>
  471. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="save">提交</button>
  472. {/if}
  473. <!-- //审核中-->
  474. {if $detail.proprietor_status == 1}
  475. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="withdraw">撤回</button>
  476. {/if}
  477. </div>
  478. </form>
  479. {else/}
  480. <!--之后的预览-->
  481. <form class="layui-form p-4">
  482. <table id="tabniubi" cellpadding="1" cellspacing="1">
  483. <tr>
  484. <th style="width: 10%;height: 0;"></th>
  485. <th style="width: 10%;height: 0;"></th>
  486. <th style="width: 10%;height: 0;"></th>
  487. <th style="width: 10%;height: 0;"></th>
  488. <th style="width: 10%;height: 0;"></th>
  489. <th style="width: 10%;height: 0;"></th>
  490. <th style="width: 10%;height: 0;"></th>
  491. <th style="width: 10%;height: 0;"></th>
  492. <th style="width: 10%;height: 0;"></th>
  493. </tr>
  494. <tr border="1">
  495. {if $field.project_status == 1}
  496. <th class="form-title">项目状态</th>
  497. <th>
  498. {switch $detail.project_status}
  499. {case 1}立项中{/case}
  500. {case 2}审批中{/case}
  501. {case 3}待接收{/case}
  502. {case 4}待分配{/case}
  503. {case 5}作业中{/case}
  504. {case 6}归档中{/case}
  505. {case 7}退审中{/case}
  506. {case 8}已归档{/case}
  507. {case 9}已退审{/case}
  508. {default /}未知
  509. {/switch}
  510. </th>
  511. {/if}
  512. {if $field.project_name == 1}
  513. <th class="form-title">项目名称</th>
  514. <th colspan="3">{$detail.project_name}</th>
  515. {/if}
  516. {if $field.project_num == 1}
  517. <th class="form-title">项目编号</th>
  518. <th colspan="2">{$detail.project_num}</th>
  519. {/if}
  520. </tr>
  521. <tr>
  522. {if $field.project_time == 1}
  523. <th class="form-title">项目周期</th>
  524. <th colspan="8" style="text-align: left; padding-left: 3.5vw;">{if $detail.project_start_time != null&& $detail.project_end_time != null}{$detail.project_start_time|date="Y-m-d"} 至 {$detail.project_end_time|date="Y-m-d"}{/if}</th>
  525. {/if}
  526. </tr>
  527. <tr>
  528. {if $field.engineering_type == 1}
  529. <th class="form-title">工程类型</th>
  530. <th>
  531. {if $detail.engineering_type1==1}
  532. 预算
  533. {elseif $detail.engineering_type1==2}
  534. 结算
  535. {elseif $detail.engineering_type1==3}
  536. 概算
  537. {elseif $detail.engineering_type1==4}
  538. 决算
  539. {elseif $detail.engineering_type1==5}
  540. 工程总承包(EPC)
  541. {/if}
  542. </th>
  543. <th class="form-title">——</th>
  544. <th>
  545. {if $detail.engineering_type2==1}审核{else}编制{/if}
  546. </th>
  547. {/if}
  548. {if $field.engineering_category == 1}
  549. <th class="form-title">工程类别</th>
  550. <th>{$detail.engineering_category}</th>
  551. {/if}
  552. {if $field.project_region == 1}
  553. <th class="form-title">项目区域</th>
  554. <th colspan="2">
  555. {$detail.province}-{$detail.city}-{$detail.area}
  556. </th>
  557. {/if}
  558. </tr>
  559. <tr>
  560. {if $field.fiscal_nature == 1}
  561. <th class="form-title">资金性质</th>
  562. <th>{$detail.fiscal_nature}</th>
  563. {/if}
  564. {if $field.project_scale == 1}
  565. <th class="form-title">项目规模</th>
  566. <th colspan="3">{$detail.project_scale}</th>
  567. {/if}
  568. {if $field.charge_standard == 1}
  569. <th class="form-title">收费标准</th>
  570. <th colspan="2">{$detail.charge_standard}</th>
  571. {/if}
  572. </tr>
  573. {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}
  574. <tr>
  575. <th colspan="9" class="forleft">相关单位</th>
  576. </tr>
  577. <tr>
  578. {if $field.entrust_unit == 1}
  579. <th class="form-title">委托单位</th>
  580. <th>{$detail.entrust_unit_name}</th>
  581. {/if}
  582. {if $field.entrust_head == 1}
  583. <th class="form-title">负责人</th>
  584. <th>{$detail.entrust_maker_name}</th>
  585. {/if}
  586. {if $field.sent_review_unit == 1}
  587. <th class="form-title">送审单位</th>
  588. <th>{$detail.sent_review_unit_name}</th>
  589. {/if}
  590. {if $field.sent_review_head == 1}
  591. <th class="form-title">负责人</th>
  592. <th colspan="2">{$detail.sent_review_head_name}</th>
  593. {/if}
  594. </tr>
  595. <tr>
  596. {if $field.review_unit == 1}
  597. <th class="form-title">评审机构</th>
  598. <th>{$detail.review_unit_name}</th>
  599. {/if}
  600. {if $field.review_head == 1}
  601. <th class="form-title">项目负责人</th>
  602. <th>{$detail.review_head_name}</th>
  603. {/if}
  604. {if $field.operate_name == 1}
  605. <th class="form-title">作业负责人</th>
  606. <th>{$detail.operate_head_name}</th>
  607. {/if}
  608. {if $field.operate_team_names == 1}
  609. <th class="form-title">作业成员</th>
  610. <th colspan="2">{$detail.operate_team_names}</th>
  611. {/if}
  612. </tr>
  613. <tr>
  614. {if $field.construction_unit == 1}
  615. <th class="form-title" colspan="1">施工单位</th>
  616. <th colspan="1">{$detail.construction_unit}</th>
  617. {/if}
  618. {if $field.construction_head == 1}
  619. <th class="form-title" colspan="1">负责人</th>
  620. <th colspan="6">{$detail.construction_head}</th>
  621. {/if}
  622. </tr>
  623. {/if}
  624. {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}
  625. <tr>
  626. <th colspan="9" class="forleft">金额详情</th>
  627. </tr>
  628. <tr>
  629. {if $field.sent_review_amount == 1}
  630. <th class="form-title" colspan="1">送审金额(元)</th>
  631. <th colspan="2">{$detail.sent_review_amount}</th>
  632. {/if}
  633. {if $field.authorize_amount == 1}
  634. <th class="form-title" colspan="1">审定金额(元)</th>
  635. <th colspan="2">{$detail.authorize_amount}</th>
  636. {/if}
  637. {if $field.review_add_reduce_amount == 1}
  638. <th class="form-title" colspan="1">审增金额(元)</th>
  639. <th colspan="2">{$detail.review_add_amount}</th>
  640. {/if}
  641. </tr>
  642. <tr>
  643. {if $field.review_add_reduce_amount == 1}
  644. <th class="form-title" colspan="1">审减金额(元)</th>
  645. <th colspan="2">{$detail.review_reduce_amount}</th>
  646. {/if}
  647. {if $field.review_add_reduce_rate == 1}
  648. <th class="form-title" colspan="1">审增减率(%)</th>
  649. <th colspan="2">{$detail.review_add_reduce_rate}</th>
  650. {/if}
  651. {if $field.sent_review_cost == 1}
  652. <th class="form-title" colspan="1">送审服务费 (元)</th>
  653. <th colspan="2">{$detail.sent_review_cost}</th>
  654. {/if}
  655. </tr>
  656. <tr>
  657. {if $field.sent_review_approver_amount == 1}
  658. <th class="form-title forright" colspan="1">
  659. 送审单位承担<br>审核费(元)
  660. </th>
  661. <th colspan="2">{$detail.sent_review_approver_amount}</th>
  662. {/if}
  663. {if $field.construction_approver_amount == 1}
  664. <th class="form-title forright" colspan="2">
  665. 施工单位负责<br>核减超5%评审费部分(元)
  666. </th>
  667. <th colspan="2">{$detail.construction_approver_amount}</th>
  668. {/if}
  669. {if $field.report_time == 1}
  670. <th class="form-title" colspan="1">报告时间</th>
  671. <th colspan="1" style="text-align: left; padding-left: 3.5vw;">{if
  672. $detail.report_time!=0}{$detail.report_time|date="Y-m-d"}{/if}
  673. </th>
  674. {/if}
  675. </tr>
  676. {/if}
  677. <tr>
  678. <th colspan="9" class="forleft">相关附件
  679. <!--<button class="layui-btn layui-btn-xs layui-btn-danger" style="float: right;" type="button"-->
  680. <!-- id="uploadBtn">上传附件-->
  681. <!--</button>-->
  682. <!--<button type="button" class="layui-btn layui-btn-xs layui-btn-danger" lay-on="page" style="float: right;">上传附件</button>-->
  683. <button type="button" class="layui-btn layui-btn-xs layui-btn-danger" lay-on="test-iframe-handle" style="float: right;">
  684. 上传附件
  685. <span id="ID-test-iframe-mark"></span>
  686. </button>
  687. </th>
  688. </tr>
  689. <tr>
  690. <th colspan="9" class="fujianimg" style="padding: 0px 0px;">
  691. <div id="filesBox2">
  692. <table class="layui-hide" id="get_file" lay-filter="get_file"></table>
  693. </div>
  694. </th>
  695. </tr>
  696. </table>
  697. <div class="py-3">
  698. <input type="hidden" name="id" value="{$detail.id}"/>
  699. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="savetime">保存</button>
  700. </div>
  701. </form>
  702. {/if}
  703. <script>
  704. function first(){
  705. var form = layui.form, tool = layui.tool, oaTool = layui.oaTool;
  706. let table = layui.table;
  707. //附件表格
  708. var allcount;
  709. parent.layui.get_fileTable = table.render({
  710. elem: '#get_file',
  711. title: '文档列表',
  712. toolbar: '#toolbarget_file',
  713. cellMinWidth: 80,
  714. parseData: function (res) { // 数据解析回调函数
  715. // 在这里可以获取数据总数
  716. allcount = res.data.length;
  717. return {
  718. code: res.code, // 数据状态码
  719. msg: res.msg, // 状态信息
  720. count: res.count, // 数据总数
  721. data: res.data // 当前页数据
  722. };
  723. },
  724. url: "/admin/project.api/get_file",
  725. where: {'id': project_id},
  726. page: true, //开启分页
  727. limit: 20,
  728. cols: [[
  729. {field: 'id', title: '序号', width: 80, align: 'center',
  730. templet: function (d) {
  731. //console.log(allcount,d.LAY_NUM)
  732. return allcount - (d.LAY_NUM - 1);
  733. }
  734. },
  735. {field: 'name', title: '附件名称', align: 'left',
  736. },
  737. {field: 'remark', title: '附件说明', align: 'left',
  738. },
  739. {field: 'admin_name', title: '上传人', align: 'center', width: 150},
  740. {field: 'create_time', title: '上传时间', align: 'center', width: 150,
  741. // templet:"<div>{{d.create_time}}</div>"
  742. templet:"<div>{{layui.util.toDateString(d.create_time*1000, 'yyyy-MM-dd HH:mm:ss')}}</div>"
  743. },
  744. {field: 'right', fixed: 'right', title: '操作', width: 150, align: 'center',
  745. templet: function (d) {
  746. var html = '<div class="layui-btn-group">';
  747. var btn1 = `<a href="https://view.officeapps.live.com/op/view.aspx?src=${d.filepath}" target="_blank" class="layui-btn layui-btn-xs">预览</a>`;
  748. var btn2 = `<a class="layui-btn layui-btn-xs layui-bg-blue" href="${d.filepath}" download="${d.name}" lay-event="">下载</a>`;
  749. var btn3 = `<span data-id="${d.id}" class="layui-btn layui-btn-xs layui-btn-danger file-del " >删除</span>`;
  750. return html + btn1 + btn2 + btn3 +'</div>';
  751. }
  752. }
  753. ]]
  754. });
  755. function res(){
  756. table.reload('get_file');
  757. }
  758. $('#filesBox2').on('click', '.file-del', function (e) {
  759. // console.log( $(this).attr('data-id'))
  760. let id = $(this).attr('data-id');
  761. layer.confirm('确定要删除该文件吗?请慎重', {icon: 3, title: '提示'}, function (index) {
  762. let callback = function (e) {
  763. layer.msg(e.msg);
  764. if (e.code == 0) {
  765. res()
  766. }
  767. }
  768. tool.delete("/admin/project.api/delete_file", {id: id}, callback);// 删除附件
  769. layer.close(index);
  770. });
  771. })
  772. //上传附件弹出窗
  773. layui.use(function(){
  774. var $ = layui.$;
  775. var layer = layui.layer;
  776. var upload = layui.upload;
  777. var util = layui.util;
  778. // 事件
  779. util.on('lay-on', {
  780. 'test-iframe-handle': function(){
  781. layer.open({
  782. type: 2,
  783. area: ['680px', '520px'],
  784. content: 'ceshi?id={$detail.id}',
  785. fixed: false, // 不固定
  786. maxmin: true,
  787. shadeClose: true,
  788. title: '上传附件',
  789. btnAlign: 'c',
  790. yes: function(index, layero){
  791. // 获取 iframe 的窗口对象
  792. var iframeWin = window[layero.find('iframe')[0]['name']];
  793. var elemMark = iframeWin.$('#mark'); // 获得 iframe 中某个输入框元素
  794. var value = elemMark.val();
  795. if($.trim(value) === '') return elemMark.focus();
  796. // 显示获得的值
  797. layer.msg('获得 iframe 中的输入框标记值:'+ value);
  798. }
  799. });
  800. },
  801. })
  802. });
  803. oaTool.addFile({
  804. type: 1,
  805. isSave: true,
  806. ajaxSave: function (res) {
  807. let callback = function (e) {
  808. if("msg" in e){
  809. layer.msg(e.msg);
  810. }else{
  811. layer.msg('上传成功!')
  812. }
  813. setTimeout(function () {
  814. $("#filesBox2").load(location.href+" #filesBox>*","type=2")
  815. }, 500)
  816. }
  817. // console.log(1);
  818. // console.log(res,"{$detail.id}")
  819. tool.post("/admin/project.api/add_file", { // 上传附件
  820. 'topic_id': "{$detail.id}",
  821. 'file_id': res.data.id,
  822. 'file_name': res.data.name,
  823. 'module': 'project'
  824. }, callback);
  825. }
  826. });
  827. // var form = layui.form, tool = layui.tool, oaTool = layui.oaTool;
  828. //日期选择
  829. layui.laydate.render({
  830. elem: '#date',
  831. range: ['#start_time', '#end_time'],
  832. rangeLinked: true
  833. });
  834. var selectedNature = $('input[name="fiscal_nature"]:checked').val();
  835. if (selectedNature == "财政资金") {
  836. $(".entrust_unit").show();
  837. $(".review_unit").hide();
  838. } else {
  839. $(".review_unit").show();
  840. $(".entrust_unit").hide();
  841. }
  842. //radio选择
  843. form.on('radio(tax)', function (data) {
  844. if (data.value == "财政资金") {
  845. console.log(1)
  846. $(".entrust_unit").show();
  847. $(".review_unit").hide();
  848. } else {
  849. $(".review_unit").show();
  850. $(".entrust_unit").hide();
  851. }
  852. });
  853. $('.customer-picker').on('click', function () {
  854. let that = $(this);
  855. let callback = function(data){
  856. console.log(data);
  857. $('[name="review_unit"]').val(data.id);
  858. $('[name="review_unit_name"]').val(data.title);
  859. }
  860. oaTool.customerPicker(callback);
  861. });
  862. $('.get-entrust').on('click', function () {
  863. let that = $(this);
  864. let callback = function(data){
  865. console.log(data);
  866. $('[name="entrust_unit"]').val(data.id);
  867. $('[name="entrust_unit_name"]').val(data.title);
  868. }
  869. oaTool.getEntrust(callback);
  870. });
  871. form.on('submit(add)', function (data) {
  872. if(data.field.fiscal_nature=="财政资金"){
  873. delete data.field.review_unit;
  874. delete data.field.review_unit_name;
  875. if(data.field.entrust_unit==""&&data.field.entrust_unit_name==""){
  876. layer.msg("请选择委托单位")
  877. return false;
  878. }
  879. }else {
  880. delete data.field.entrust_unit;
  881. delete data.field.entrust_unit_name;
  882. if(data.field.review_unit==""&&data.field.review_unit_name==""){
  883. layer.msg("请选择评审单位")
  884. return false;
  885. }
  886. }
  887. if (c) {
  888. let callback = function (e) {
  889. c = 1
  890. layer.msg(e.msg);
  891. if (e.code == 0) {
  892. tool.sideClose(1000);
  893. }
  894. }
  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. }
  901. var engineering_type2 = '';
  902. if (data.field.engineering_type2 == 1) {
  903. engineering_type2 = '审核';
  904. } else if (data.field.engineering_type2 == 2) {
  905. engineering_type2 = '编制';
  906. }
  907. if(engineering_type1!==""&&engineering_type2!==""){
  908. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  909. }
  910. tool.post("/admin/project.cost_proprietor/edit", data.field, callback);
  911. }
  912. c = 0
  913. return false;
  914. });
  915. let a = 1;
  916. //监听提交
  917. form.on('submit(webform)', function (data) {
  918. if(a){
  919. let callback = function (e) {
  920. a = 1
  921. layer.msg(e.msg);
  922. if (e.code == 0) {
  923. tool.sideClose(1000);
  924. }
  925. }
  926. if(data.field.engineering_type1!==""&&data.field.engineering_type2!==""){
  927. var engineering_type1 ='';
  928. if(data.field.engineering_type1==1){
  929. engineering_type1 ='预算';
  930. }else if(data.field.engineering_type1==2){
  931. engineering_type1 ='结算';
  932. }else if(data.field.engineering_type1==3){
  933. engineering_type1 ='概算';
  934. }else if(data.field.engineering_type1==4){
  935. engineering_type1 ='决算';
  936. }else if(data.field.engineering_type1==5){
  937. engineering_type1 ='工程总承包(EPC)';
  938. }
  939. var engineering_type2 = '';
  940. if(data.field.engineering_type2==1){
  941. engineering_type2 ='审核';
  942. }else if(data.field.engineering_type2==2) {
  943. engineering_type2 = '编制';
  944. }
  945. if(engineering_type1!==""&&engineering_type2!==""){
  946. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  947. }
  948. }
  949. tool.post("/admin/project.cost_proprietor/edit_main", data.field, callback);
  950. }
  951. a = 0
  952. return false;
  953. });
  954. let a1 = 1;
  955. form.on('submit(save)', function (data) {
  956. if(a1){
  957. let callback = function (e) {
  958. a1 = 1
  959. layer.msg(e.msg);
  960. if (e.code == 0) {
  961. tool.sideClose(1000);
  962. }
  963. }
  964. if(data.field.engineering_type1!==""&&data.field.engineering_type2!==""){
  965. var engineering_type1 ='';
  966. if(data.field.engineering_type1==1){
  967. engineering_type1 ='预算';
  968. }else if(data.field.engineering_type1==2){
  969. engineering_type1 ='结算';
  970. }else if(data.field.engineering_type1==3){
  971. engineering_type1 ='概算';
  972. }else if(data.field.engineering_type1==4){
  973. engineering_type1 ='决算';
  974. }else if(data.field.engineering_type1==5){
  975. engineering_type1 ='工程总承包(EPC)';
  976. }
  977. var engineering_type2 = '';
  978. if(data.field.engineering_type2==1){
  979. engineering_type2 ='审核';
  980. }else if(data.field.engineering_type2==2) {
  981. engineering_type2 = '编制';
  982. }
  983. if(engineering_type1!==""&&engineering_type2!==""){
  984. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  985. }
  986. }
  987. tool.post("/admin/project.cost_proprietor/save", data.field, callback);
  988. }
  989. a1 = 0
  990. return false;
  991. });
  992. let a2 = 1;
  993. form.on('submit(withdraw)', function (data) {
  994. if(a2){
  995. let callback = function (e) {
  996. a2 = 1
  997. layer.msg(e.msg);
  998. if (e.code == 0) {
  999. tool.sideClose(1000);
  1000. }
  1001. }
  1002. if(data.field.engineering_type1!==""&&data.field.engineering_type2!==""){
  1003. var engineering_type1 ='';
  1004. if(data.field.engineering_type1==1){
  1005. engineering_type1 ='预算';
  1006. }else if(data.field.engineering_type1==2){
  1007. engineering_type1 ='结算';
  1008. }else if(data.field.engineering_type1==3){
  1009. engineering_type1 ='概算';
  1010. }else if(data.field.engineering_type1==4){
  1011. engineering_type1 ='决算';
  1012. }else if(data.field.engineering_type1==5){
  1013. engineering_type1 ='工程总承包(EPC)';
  1014. }
  1015. var engineering_type2 = '';
  1016. if(data.field.engineering_type2==1){
  1017. engineering_type2 ='审核';
  1018. }else if(data.field.engineering_type2==2) {
  1019. engineering_type2 = '编制';
  1020. }
  1021. if(engineering_type1!==""&&engineering_type2!==""){
  1022. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  1023. }
  1024. }
  1025. tool.post("/admin/project.cost_proprietor/withdraw", data.field, callback);
  1026. }
  1027. a2 = 0
  1028. return false;
  1029. });
  1030. let a3 = 1;
  1031. form.on('submit(savetime)', function (data) {
  1032. if(a3){
  1033. let callback = function (e) {
  1034. a3 = 1
  1035. layer.msg(e.msg);
  1036. if (e.code == 0) {
  1037. tool.sideClose(1000);
  1038. }
  1039. }
  1040. if(data.field.engineering_type1!==""&&data.field.engineering_type2!==""){
  1041. var engineering_type1 ='';
  1042. if(data.field.engineering_type1==1){
  1043. engineering_type1 ='预算';
  1044. }else if(data.field.engineering_type1==2){
  1045. engineering_type1 ='结算';
  1046. }else if(data.field.engineering_type1==3){
  1047. engineering_type1 ='概算';
  1048. }else if(data.field.engineering_type1==4){
  1049. engineering_type1 ='决算';
  1050. }else if(data.field.engineering_type1==5){
  1051. engineering_type1 ='工程总承包(EPC)';
  1052. }
  1053. var engineering_type2 = '';
  1054. if(data.field.engineering_type2==1){
  1055. engineering_type2 ='审核';
  1056. }else if(data.field.engineering_type2==2) {
  1057. engineering_type2 = '编制';
  1058. }
  1059. if(engineering_type1!==""&&engineering_type2!==""){
  1060. data.field.engineering_type = engineering_type1 + "-" + engineering_type2;
  1061. }
  1062. }
  1063. tool.post("/admin/project.cost_proprietor/edit_main", data.field, callback);
  1064. }
  1065. a3 = 0
  1066. return false;
  1067. });
  1068. //项目区域
  1069. layui.use(['form', 'jquery'], function () {
  1070. var form = layui.form;
  1071. const $ = layui.jquery;
  1072. let adress;
  1073. $.ajax({
  1074. type: "get", //使用get方式
  1075. url: "/static/assets/layui/adress.json", //json文件相对于这个HTML的路径
  1076. dataType: "json",
  1077. async: false,
  1078. success: function (data) {
  1079. //这个data就是json数据
  1080. adress = data
  1081. var province = Object.keys(adress)
  1082. var proStrs = '<option value="">省</option>';
  1083. for (var i = 0; i < province.length; i++) {
  1084. proStrs += '<option value="' + province[i] + '">' + province[i] + '</option>';
  1085. }
  1086. $("#province").html(proStrs);
  1087. layui.form.render("select")
  1088. },
  1089. error: function () {
  1090. layer.alert("地址请求失败!! ");
  1091. }
  1092. });
  1093. function getFirstAttr(obj) {
  1094. for (var k in obj) return k;
  1095. }
  1096. function selectOption(selectedProvince, selectedCity = '', selectedArea = '') {
  1097. var proStr = '<option value="">省</option>', cityStr = '<option value="">市</option>',
  1098. areaStr = '<option value="">县</option>';
  1099. var pro = adress[selectedProvince], ci = adress[selectedProvince][selectedCity];
  1100. for (var province in adress) {
  1101. if (province == selectedProvince) proStr += '<option value="' + province + '" selected>' + province + '</option>';
  1102. else proStr += '<option value="' + province + '">' + province + '</option>';
  1103. }
  1104. $("#province").html(proStr);
  1105. for (var city in pro) {
  1106. if (city == selectedCity) cityStr += '<option value="' + city + '" selected>' + city + '</option>';
  1107. else cityStr += '<option value="' + city + '">' + city + '</option>';
  1108. }
  1109. $("#city").html(cityStr);
  1110. for (var area in ci) {
  1111. if (area == "remove") {
  1112. continue;
  1113. }
  1114. if (ci[area] == selectedArea) areaStr += '<option value="' + ci[area] + '" selected>' + ci[area] + '</option>';
  1115. else areaStr += '<option value="' + ci[area] + '">' + ci[area] + '</option>';
  1116. }
  1117. $("#area").html(areaStr);
  1118. form.render();
  1119. }
  1120. /*selectOption(1,2, 3);*/
  1121. form.on('select(province)', function (data) {
  1122. let thisProvince = data.value;
  1123. let thisCity = getFirstAttr(adress[thisProvince]);
  1124. selectOption(data.value);
  1125. });
  1126. form.on('select(city)', function (data) {
  1127. selectOption($("#province").val(), data.value, getFirstAttr(data.value));
  1128. });
  1129. selectOption("{$detail.province}","{$detail.city}","{$detail.area}")
  1130. })
  1131. }
  1132. </script>
  1133. <script>
  1134. // 获取具有指定 ID 的 <ul> 元素
  1135. var ulElement = document.getElementById("filesBox");
  1136. // 检查 <ul> 元素的子元素数量
  1137. if (ulElement.children.length === 0) {
  1138. // 如果子元素数量为 0,隐藏 <ul> 元素
  1139. ulElement.style.display = "none";
  1140. }
  1141. </script>