index_company.html 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817
  1. {extend name="common/base"/}
  2. {block name="style"}
  3. <style>
  4. .footer{
  5. width: 100%;
  6. height: 25px;
  7. text-align: center;
  8. margin-bottom: 0 !important;
  9. }
  10. /* .left-box {
  11. height: 99vh !important;
  12. } */
  13. .left-box-font {
  14. color: #666666;
  15. font-size: 0.75vw;
  16. }
  17. .button-search {
  18. /* margin: 0 0 0 3vh; */
  19. margin-top: 2vw;
  20. background-color: rgb(23, 145, 233);
  21. }
  22. .layui-card-header {
  23. border-bottom: 1px solid #eee;
  24. line-height: 0;
  25. }
  26. .choose {
  27. margin-left: 1.4vw;
  28. display: flex;
  29. align-items: center;
  30. justify-content: space-between;
  31. line-height: 0;
  32. }
  33. .record {
  34. float: right;
  35. margin-right: 1.8vw;
  36. text-align: right;
  37. width: 45%;
  38. font-size: 0.75vw !important;
  39. }
  40. .box-right-top {
  41. height: 8vh;
  42. font-size: 0.75VW;
  43. }
  44. .box-right-top-1 {
  45. color: rgb(23, 145, 233);
  46. font-size: 1.5vw;
  47. height: 60%;
  48. }
  49. .countdown {
  50. height: 7vh;
  51. font-size: 1vw;
  52. text-align: center;
  53. border: 1px solid #eee;
  54. }
  55. .countdown-top {
  56. height: 3vh;
  57. line-height: 3vh;
  58. border-bottom: 1px solid #eee;
  59. color: #fff;
  60. background-color: rgb(23, 145, 233);
  61. border-bottom: 1px solid rgb(23, 145, 233);
  62. font-size: 0.8vw;
  63. padding: 0;
  64. margin: 0;
  65. }
  66. .countdown-bottom {
  67. height: 4vh;
  68. line-height: 4vh;
  69. padding: 0;
  70. margin: 0;
  71. background-color: #fff;
  72. }
  73. .fund {
  74. border: 1px solid rgba(209, 209, 204, 0.719);
  75. margin-top: 1.5vh;
  76. border-radius: 0.2vw;
  77. background-color: rgb(250, 250, 250);
  78. }
  79. .fund-top {
  80. font-size: 0.8vw;
  81. font-weight: 550;
  82. }
  83. .list {
  84. font-size: 0.75vw;
  85. }
  86. .layui-form-checked[lay-skin=primary]>i {
  87. border-color: rgb(23, 145, 233) !important;
  88. background-color: rgb(23, 145, 233);
  89. }
  90. .layui-form-checkbox[lay-skin=primary]:hover>i {
  91. border-color: rgb(23, 145, 233);
  92. }
  93. .bar {
  94. position: relative;
  95. }
  96. /* .progress-box {
  97. margin-left: 4vw;
  98. } */
  99. .line {
  100. width: 50%;
  101. height: 1px;
  102. background-color: black;
  103. float: left;
  104. top: 1vh;
  105. position: relative;
  106. margin: auto;
  107. position: absolute;
  108. left: 42%;
  109. top: 50%;
  110. margin-left: 1.25vw;
  111. }
  112. /* .text-line {
  113. float: left;
  114. } */
  115. .schedule {
  116. font-size: 2vw;
  117. vertical-align: middle;
  118. }
  119. .dynamic-top {
  120. width: 6.5vw;
  121. height: 3.5vh;
  122. border: 1px solid;
  123. /* color: rgb(23, 145, 233); */
  124. line-height: 3.5vh;
  125. text-align: center;
  126. margin: 0 auto;
  127. border-radius: 0.2vw;
  128. font-weight: 600;
  129. font-size: 0.8vw;
  130. margin-top: 3vh;
  131. }
  132. .dynamic-bottom {
  133. width: 6.5vw;
  134. height: 3.5vh;
  135. border: 1px solid;
  136. /* color: rgb(23, 145, 233); */
  137. line-height: 3.5vh;
  138. text-align: center;
  139. margin: 0 auto;
  140. border-radius: 0.2vw;
  141. font-weight: 600;
  142. font-size: 0.8vw;
  143. margin-top: 1.5vh;
  144. }
  145. .dynamic span {
  146. float: right;
  147. }
  148. .dynamic-top~p {
  149. color: grey;
  150. text-align: center;
  151. }
  152. .dynamic-bottom~p {
  153. color: grey;
  154. text-align: center;
  155. margin-bottom: 3vh;
  156. }
  157. .dynamic-top1 {
  158. width: 6.5vw;
  159. height: 3.5vh;
  160. border: 1px solid;
  161. /* color: rgb(23, 145, 233); */
  162. line-height: 3.5vh;
  163. text-align: center;
  164. margin: 0 auto;
  165. border-radius: 0.2vw;
  166. font-weight: 600;
  167. font-size: 0.8vw;
  168. margin-top: 3vh;
  169. }
  170. .dynamic-top1~p {
  171. color: grey;
  172. text-align: center;
  173. }
  174. .dynamic div {
  175. float: left;
  176. }
  177. .detail {
  178. color: rgb(23, 145, 233);
  179. }
  180. .project-list {
  181. border-bottom: 1px solid #eee;
  182. }
  183. .information {
  184. width: 6vw;
  185. height: 3.5vh;
  186. line-height: 3.5vh;
  187. border-radius: 0.25vw;
  188. }
  189. .table-header {
  190. height: 4.5vh;
  191. line-height: 4.5vh;
  192. }
  193. .basic-information {
  194. /* width: 7vw; */
  195. /* height: 3.5vh; */
  196. border: 1px solid rgb(23, 145, 233);
  197. color: rgb(23, 145, 233);
  198. line-height: 3.5vh;
  199. text-align: center;
  200. border-radius: 0.2vw;
  201. font-weight: 600;
  202. font-size: 0.8vw;
  203. float: left;
  204. padding: 0 2%;
  205. }
  206. .layui-tab .layui-tab-title .layui-this {
  207. background-color: rgb(247, 251, 255);
  208. color: rgb(23, 145, 233);
  209. border-color: rgb(236, 246, 255);
  210. font-size: 0.8vw;
  211. height: 4vh;
  212. line-height: 4vh;
  213. font-weight: 600;
  214. }
  215. .layui-tab .layui-tab-title li {
  216. width: 4.5vw;
  217. font-size: 0.8vw;
  218. height: 4vh;
  219. line-height: 4vh;
  220. }
  221. .layui-tab .layui-tab-title {
  222. /* height: 4vh; */
  223. height: unset;
  224. }
  225. .layui-tab-title .layui-this:after {
  226. border-style: none;
  227. }
  228. .per {
  229. height: 4vh;
  230. width: 4vw;
  231. text-align: center;
  232. line-height: 4vh;
  233. margin-top: 65%;
  234. border-radius: 5px;
  235. border: 1.5px solid rgb(25, 144, 255);
  236. }
  237. /* .percentage-box {
  238. height: 8vh;
  239. width: 4vw;
  240. } */
  241. .project-list-name {
  242. font-size: 0.75vw;
  243. }
  244. .h3 {
  245. font-size: 1vw;
  246. }
  247. .layui-form-checkbox>div {
  248. font-size: 0.75vw !important;
  249. }
  250. .layui-form-label {
  251. width: 110px;
  252. }
  253. .line-style {
  254. width: 100%;
  255. overflow: hidden;
  256. }
  257. .line-style-right {
  258. width: 45%;
  259. overflow: hidden;
  260. }
  261. .dynamic-line {
  262. padding: 8px 0;
  263. }
  264. /* 日志 */
  265. .log_top {
  266. padding-left: 1vw;
  267. }
  268. .log_top span {
  269. margin: 0 0.5vw;
  270. }
  271. /* 1,1,1 */
  272. .log_commentary {
  273. color: rgb(0, 176, 80);
  274. }
  275. .log_company {
  276. color: rgb(255, 33, 0);
  277. }
  278. .log_content {
  279. margin: 1vw 1.5vw 0 1.5vw;
  280. padding: 0.5vw 1vw;
  281. text-indent: 1.2em;
  282. line-height: 2.1vh;
  283. background-color: rgb(255, 255, 255);
  284. /* background-color: aqua; */
  285. border-radius: 0.5vw;
  286. box-shadow: 0.19vw 0.16vw 0.4vw 0.03vw rgba(0, 0, 0, 0.13);
  287. }
  288. /* .log_content_color {
  289. background-color: rgb(250,250,250);
  290. } */
  291. .log_content_img img {
  292. /* height: 6vw;
  293. width: 9vw; */
  294. border-radius: 0.5vw;
  295. margin: 0.3vw 0;
  296. }
  297. .log_item_top {
  298. height: 70%;
  299. overflow: scroll;
  300. }
  301. .log_item_top {
  302. height: 79vh !important;
  303. }
  304. .log_item_bottom {
  305. display: flex;
  306. /* height: 17vh; */
  307. /* border-top: 1px solid #eee; */
  308. margin: 0 1.5vw;
  309. /* background-color: rgb(250,250,250); */
  310. }
  311. .log_input input {
  312. width: 55vw;
  313. height: 10vh;
  314. border: #eee 1px solid;
  315. }
  316. .log_bottom_img {
  317. /* height: 5vh; */
  318. }
  319. .log_bottom_img img {
  320. height: 4vw;
  321. width: 6vw;
  322. border-radius: 0.5vw;
  323. margin: 0.5vw 0vw 0.5vw 0.3vw;
  324. }
  325. .log_bottom_left {
  326. width: 95%;
  327. margin-top: 1.5vh;
  328. }
  329. .log_bottom_right {
  330. width: 5%;
  331. }
  332. /* 上传图片 */
  333. /* .layui-upload-drag-self {
  334. background-color: #fbfdff;
  335. border: 1px dashed #c0ccda;
  336. border-radius: 6px;
  337. box-sizing: border-box;
  338. width: 6vw;
  339. height: 4vw;
  340. line-height: 4vw;
  341. vertical-align: top;
  342. display: inline-block;
  343. text-align: center;
  344. cursor: pointer;
  345. outline: 0;
  346. margin-right: 13px;
  347. float: left;
  348. } */
  349. /* .layui-input-inlines-self {
  350. position: relative;
  351. margin-left: 90px;
  352. min-height: 36px;
  353. text-align: left;
  354. }
  355. .layui-upload-drag-self .layui-icon {
  356. font-size: 28px;
  357. color: #8c939d
  358. }
  359. .layui-upload-drag-self .img {
  360. position: relative;
  361. height: 148px;
  362. width: 148px;
  363. }
  364. .layui-upload-img {
  365. width: 148px;
  366. height: 148px;
  367. border-radius: 6px;
  368. margin-top: -3px;
  369. margin-left: -2px;
  370. } */
  371. .handle {
  372. position: absolute;
  373. width: 148px;
  374. height: 100%;
  375. z-index: 100;
  376. border-radius: 6px;
  377. top: 0;
  378. background: rgba(59, 60, 61, 0.6);
  379. text-align: center;
  380. }
  381. .handle .icon-myself {
  382. z-index: 999;
  383. transition: all .3s;
  384. cursor: pointer;
  385. font-size: 25px;
  386. width: 25px;
  387. color: rgba(255, 255, 255, 0.91);
  388. margin: 0 4px;
  389. }
  390. .log_textarea {
  391. width: 60vw;
  392. height: 8vh;
  393. padding: 0.5vw;
  394. /* margin-right: 2vw; */
  395. }
  396. .log_button_img {
  397. width: 2vw;
  398. }
  399. .log_card {
  400. border: none !important;
  401. }
  402. /* 点击图片放大 */
  403. /* .content_img img {
  404. max-width: 100%;
  405. cursor: pointer;
  406. }
  407. .overlay {
  408. display: none;
  409. position: fixed;
  410. top: 0;
  411. left: 0;
  412. width: 100%;
  413. height: 100%;
  414. background-color: rgba(0, 0, 0, 0.7);
  415. justify-content: center;
  416. align-items: center;
  417. z-index: 1;
  418. }
  419. .overlay img {
  420. max-width: 90%;
  421. max-height: 90%;
  422. object-fit: contain;
  423. }
  424. .layui-card:last-child {
  425. margin-bottom: 46px;
  426. }
  427. .layui-input,.layui-form-select {
  428. display: block;
  429. width: auto;
  430. padding-right: auto;
  431. } */
  432. /* .layui-form-select{
  433. padding-right:0;
  434. } */
  435. .project-select {
  436. width: auto !important;
  437. }
  438. .layui-form-select .layui-input {
  439. padding-right: 0;
  440. text-align: left;
  441. font-size: 0.75vw;
  442. }
  443. .filelist {
  444. width: 100%;
  445. overflow: scroll;
  446. height: 8vw;
  447. justify-content: flex-start;
  448. align-content: space-between;
  449. /* flex-direction: column-reverse; */
  450. flex-wrap: wrap;
  451. display: flex;
  452. }
  453. .filelist li {
  454. padding: 0.5vw 0.7vw 0.5vw 0.7vw;
  455. white-space: nowrap;
  456. overflow: hidden;
  457. text-overflow: ellipsis;
  458. display: inline-block;
  459. border-right: 1px solid #e2e2e2;
  460. }
  461. .filelist p {
  462. margin: 3px 0 5px 0;
  463. width: 5vw;
  464. text-align: center;
  465. }
  466. .filelist:hover li {
  467. /* display: initial; */
  468. }
  469. .layui-col-md4 {
  470. padding: 6px 0 !important;
  471. }
  472. .layui-col-md12 {
  473. padding-left: 0 !important;
  474. }
  475. .navleft-body {
  476. height: 85vh;
  477. overflow: auto;
  478. }
  479. .video {
  480. height: 100vh;
  481. overflow: auto;
  482. }
  483. </style>
  484. {/block}
  485. <!-- 主体 -->
  486. {block name="body"}
  487. <div class="p-3">
  488. <div class="layui-row layui-col-space12">
  489. <div class="layui-col-md4 left-box layui-card">
  490. <form class="layui-form" action="" lay-filter="component-form-element">
  491. <div class="layui-card-body layui-row layui-col-space12">
  492. <div class="layui-col-md10 layui-form" style="width: 82%;">
  493. <div class="layui-card-body layui-row layui-col-space12" style="padding: 10px 0;">
  494. <div class="layui-col-md6 " style="display: flex;">
  495. <label class="layui-form-label left-box-font" style="padding: 9px 0;">
  496. 项目名称:
  497. </label>
  498. <div class="layui-input-block left-box-font">
  499. <input type="text" name="project_name" placeholder="请输入" autocomplete="off"
  500. class="layui-input " style="font-size: 0.75vw;">
  501. </div>
  502. </div>
  503. <div class="layui-col-md6" style="display: flex;">
  504. <label class="layui-form-label left-box-font" style="padding: 9px 0;">
  505. 项目状态:
  506. </label>
  507. <div class="layui-input-block project-select">
  508. <select name="project_status" id="">
  509. <option value=""></option>
  510. <option value="4">分配中</option>
  511. <option value="5">作业中</option>
  512. <option value="6">归档中</option>
  513. <option value="8">已归档</option>
  514. <option value="7">退审中</option>
  515. <option value="9">已退审</option>
  516. </select>
  517. </div>
  518. </div>
  519. <div class="layui-col-md6" style="display: flex;">
  520. <label class="layui-form-label left-box-font" style="padding: 9px 0;">
  521. 送审部门:
  522. </label>
  523. <div class="layui-input-block">
  524. <input type="text" name="sent_review_unit_name" placeholder="请输入" autocomplete="off"
  525. class="layui-input" style="font-size: 0.75vw;">
  526. </div>
  527. </div>
  528. <div class="layui-col-md6" style="display: flex;">
  529. <label class="layui-form-label left-box-font" style="padding: 9px 0;">
  530. 负责人:
  531. </label>
  532. <div class="layui-input-block">
  533. <input type="text" name="entrust_unit_name" placeholder="请输入" autocomplete="off"
  534. class="layui-input" style="font-size: 0.75vw;">
  535. </div>
  536. </div>
  537. </div>
  538. </div>
  539. <div style="display: flex;justify-content: center;">
  540. <button class="layui-btn layui-btn-warm button-search" lay-submit="" lay-filter="webform"><i
  541. class="layui-icon">&#xe615;</i></button>
  542. </div>
  543. </div>
  544. </form>
  545. <!--<div class="layui-form">
  546. <div class="layui-card-header">
  547. <div class="choose">
  548. <input type="checkbox" name="interest[write]" title="与我有关" lay-skin="primary">
  549. <input type="checkbox" name="interest[read]" title="与我部门有关" lay-skin="primary">
  550. <input type="checkbox" name="interest[code]" title="未完成" checked lay-skin="primary">
  551. <p class="record">共3条记录</p>
  552. </div>
  553. </div>
  554. </div>-->
  555. <div class="navleft-body">
  556. {volist name="detail" id="vo"}
  557. <div class="layui-form navleft" style="cursor: pointer;" data-id="{$vo.id}">
  558. <div class="layui-card-body">
  559. <div class="layui-card-body layui-row layui-col-space12 project-list">
  560. <div class="layui-col-md2" style="padding: 0;">
  561. <div class="layui-card-body" style="padding: 0;">
  562. <div id="main222" class="per">
  563. {switch $vo.project_status}
  564. {case 1}立项中{/case}
  565. {case 2}审批中{/case}
  566. {case 3}待接收{/case}
  567. {case 4}待分配{/case}
  568. {case 5}作业中{/case}
  569. {case 6}归档中{/case}
  570. {case 7}退审中{/case}
  571. {case 8}已归档{/case}
  572. {case 9}已退审{/case}
  573. {default /}未知
  574. {/switch}
  575. </div>
  576. </div>
  577. </div>
  578. <div class="layui-col-md10 list">
  579. <a href="JavaScript:void(0)">
  580. <div class="layui-card-body layui-row layui-col-space12" style="padding-right: 0;">
  581. <div class="layui-col-md12 h3">
  582. {$vo.project_name}
  583. </div>
  584. <div class="layui-col-md12">
  585. 服务单位:{$vo.review_unit_name}
  586. </div>
  587. <!-- <div class="layui-col-md4 text-middle">
  588. 项目状态:
  589. {switch $vo.project_status}
  590. {case 1}立项中{/case}
  591. {case 2}审批中{/case}
  592. {case 3}待接收{/case}
  593. {case 4}待分配{/case}
  594. {case 5}作业中{/case}
  595. {case 6}归档中{/case}
  596. {case 7}退审中{/case}
  597. {case 8}已归档{/case}
  598. {case 9}已退审{/case}
  599. {default /}未知
  600. {/switch}
  601. </div> -->
  602. <div class="layui-col-md4">
  603. 作业人:{$vo.operate_head_name}
  604. </div>
  605. <div class="layui-col-md4">
  606. 负责人:{$vo.review_head_name}
  607. </div>
  608. <div class="layui-col-md4">
  609. 工程类别:{$vo.engineering_type}
  610. </div>
  611. <div class="layui-col-md8" style="padding-left: 0;">
  612. 送审金额:{if !empty($vo.sent_review_amount)}{$vo.sent_review_amount}万{/if}
  613. </div>
  614. <div class="layui-col-md4">
  615. {$vo.create_time|date="Y-m-d"} 创建
  616. </div>
  617. </div>
  618. </a>
  619. </div>
  620. </div>
  621. </div>
  622. </div>
  623. {/volist}
  624. </div>
  625. </div>
  626. <div class="layui-col-md8 video" id="projectkanban">
  627. </div>
  628. </div>
  629. </div>
  630. {/block}
  631. <!-- /脚本 -->
  632. <!-- 脚本 -->
  633. {block name="script"}
  634. <script>
  635. const moduleInit = ['tool'];
  636. function gouguInit() {
  637. var form = layui.form,
  638. tool = layui.tool,
  639. upload = layui.upload;
  640. var $ = layui.jquery,
  641. layer = layui.layer;
  642. $('.navleft').click((e) => {
  643. let projectId = $(e)[0].currentTarget.dataset.id;
  644. var cindex = layer.load(3, {
  645. shade: 0.1
  646. });
  647. $("#projectkanban").load("/admin/project/kan_c?id=" + projectId, '', function () {
  648. layer.close(cindex);
  649. })
  650. })
  651. $(".navleft")[0].click();
  652. var element = layui.element;
  653. element.on('tab(test-hash)', function (data) {
  654. let index = $(this).attr('data-id');
  655. console.log(index)
  656. if (index == 1) {
  657. comment()
  658. } else if (index == 2) {
  659. record(index);
  660. } else if (index == 3) {
  661. report(index);
  662. } else if (index == 4) {
  663. project_user()
  664. } else if (index == 5) {
  665. } else if (index == 6) {
  666. contact(index)
  667. } else if (index == 7) {
  668. }
  669. });
  670. form.on('submit(webform)', function (data) {
  671. console.log(data.field)
  672. let host=window.location.host
  673. window.location.href = 'https://'+host+'/admin/project/index_company?project_name=' + data.field['project_name'] + '&sent_review_unit_name=' + data.field['sent_review_unit_name'] + '&entrust_unit_name=' + data.field['entrust_unit_name']+ '&project_status=' + data.field['project_status'];
  674. // tool.post("/admin/project/index", data.field, callback);
  675. return false;
  676. });
  677. //看报告
  678. $('[lay-data="readreport"]').click(function () {
  679. var id = $(this).attr('data-id');
  680. parent.layui.tool.side('/admin/project.report/view/id/' + id); // 项目id
  681. })
  682. };
  683. </script>
  684. {/block}