edit_first.html 37 KB

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