main_company.html 62 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591
  1. {extend name="common/base"/}
  2. {block name="style"}
  3. <link rel="stylesheet" href="{__GOUGU__}/icon-main/iconfont.css">
  4. <link rel="stylesheet" href="{__GOUGU__}/icons/main-icon/iconfont.css">
  5. <style type="text/css">
  6. .footer{
  7. width: 100%;
  8. height: 25px;
  9. text-align: center;
  10. margin-bottom: 0 !important;
  11. }
  12. .dashboard-num table {
  13. width: 100%;
  14. }
  15. .dashboard-num td {
  16. text-align: center;
  17. padding: 16px 0;
  18. width: 20%;
  19. border-left: 1px solid #f1f1f1;
  20. position: relative;
  21. }
  22. .dashboard-num td:nth-child(1) {
  23. border-left: none
  24. }
  25. .dashboard-num .num-title {
  26. padding-bottom: 10px;
  27. color: #999;
  28. }
  29. .dashboard-num .blue {
  30. font-size: 20px;
  31. font-weight: 300;
  32. }
  33. .dashboard-num td .badge {
  34. position: absolute;
  35. top: 0;
  36. right: 0;
  37. }
  38. .dashboard-num td .badge span {
  39. padding: 2px 4px;
  40. font-size: 12px;
  41. border-radius: 0 0 0 4px;
  42. }
  43. .dashboard-total td {
  44. border-top: 1px solid #f1f1f1
  45. }
  46. .dashboard-logs .layui-timeline-item {
  47. padding-bottom: 1px;
  48. }
  49. .info-td {
  50. width: 90px;
  51. text-align: right;
  52. background-color: #fafafa;
  53. color: #999;
  54. padding: 5px 3px;
  55. }
  56. .info-td {
  57. width: 90px;
  58. text-align: right;
  59. background-color: #fafafa;
  60. color: #999;
  61. padding: 5px 3px;
  62. }
  63. .layui-card-body .layui-timeline-title {
  64. padding-bottom: 0;
  65. font-size: 14px;
  66. }
  67. .layui-card-body .layui-timeline-item {
  68. padding-bottom: 5px;
  69. }
  70. .top-box {
  71. height: 30%;
  72. }
  73. .top-title {
  74. height: 4.5vh;
  75. font-size: 1vw;
  76. line-height: 4.5vh;
  77. color: grey;
  78. border-bottom: 1px solid rgb(221, 219, 219);
  79. }
  80. .top-box-middle {
  81. height: 16vh;
  82. /* background: url({__IMG__}/base.png) no-repeat;
  83. background-size: 70% 70%;
  84. background-position: 50% 85%; */
  85. }
  86. .top-box-bottom {
  87. height: 13.5vh;
  88. font-size: 1vw;
  89. }
  90. .top-box-bottom-1,
  91. .top-box-bottom-1 a {
  92. float: left;
  93. width: 97%;
  94. }
  95. .top-box-bottom-2,
  96. .top-box-bottom-2 a {
  97. float: left;
  98. width: 97%;
  99. }
  100. .sleep {
  101. width: 100%;
  102. height: 0.01vh;
  103. border-bottom: 1px solid rgb(221, 219, 219);
  104. float: left;
  105. /* margin-top: -1vh;
  106. left: -0.25vw; */
  107. position: relative;
  108. padding: 0;
  109. }
  110. .top-box-bottom-2 {
  111. float: left;
  112. height: 48px;
  113. }
  114. .bottom-box-left,
  115. .bottom-box-right {
  116. height: 64vh;
  117. }
  118. .heading {
  119. background-color: #f1f1f1;
  120. }
  121. .heading th {
  122. text-align: center;
  123. height: 2.5vh;
  124. }
  125. .form td {
  126. text-align: center;
  127. height: 2.5vh;
  128. }
  129. .layui-tab .layui-tab-title li {
  130. font-size: 0.7vw;
  131. }
  132. .layui-matter-item li a {
  133. display: block;
  134. padding: 12px;
  135. background-color: #f8f8f8;
  136. color: #999;
  137. border-radius: 3px;
  138. transition: all .3s;
  139. -webkit-transition: all .3s;
  140. font-size: 0.7vw;
  141. }
  142. .layui-matter-item li a:hover {
  143. background-color: #F2F8FF;
  144. }
  145. .layui-matter-item li span {
  146. float: right;
  147. }
  148. .layui-matter-item li cite {
  149. font-size: 0.7vw;
  150. font-weight: 300;
  151. color: #187FDD;
  152. }
  153. .top-head {
  154. width: 20%;
  155. }
  156. .middle-left {
  157. width: 60%;
  158. }
  159. .middle-right {
  160. width: 40%;
  161. }
  162. .top-box-middle-money {
  163. width: 100%;
  164. height: 15.2vh;
  165. line-height: 14.5vh;
  166. font-size: 2.1vw;
  167. text-align: center;
  168. }
  169. .top-box-middle-money-left {
  170. color: #1287ff;
  171. }
  172. .top-box-middle-money-right {
  173. color: #999;
  174. font-size: 0.9vw;
  175. }
  176. .top-box-middle-left {
  177. background: url({__IMG__}/main-first.png) no-repeat;
  178. background-size: 100% 85%;
  179. background-position: 85% 50%;
  180. }
  181. .top-box-middle-left-2 {
  182. background: url({__IMG__}/main-second.png) no-repeat;
  183. background-size: 85% 70%;
  184. background-position: 50% 50%;
  185. }
  186. .top-box-middle-left-3 {
  187. background: url({__IMG__}/main-third.png) no-repeat;
  188. background-size: 90% 70%;
  189. background-position: 50% 50%;
  190. }
  191. .top-box-middle-left-4 {
  192. background: url({__IMG__}/main-fourth.png) no-repeat;
  193. background-size: 80% 65%;
  194. background-position: 50% 50%;
  195. }
  196. /* 项目数量模块 */
  197. .number-box-top {
  198. width: 100%;
  199. height: 13.6vh;
  200. display: flex;
  201. justify-content: space-around;
  202. }
  203. .number-box-bottom {
  204. width: 100%;
  205. height: 13.6vh;
  206. display: flex;
  207. justify-content: space-around;
  208. }
  209. .number {
  210. width: 33%;
  211. height: 100%;
  212. border-left: 1px solid #e2e2e2;
  213. border-bottom: 1px solid #e2e2e2;
  214. }
  215. .number-1 {
  216. height: 4.55vh;
  217. text-align: center;
  218. padding-top: 2.8vh;
  219. font-size: 0.85vw;
  220. font-weight: 550;
  221. color: grey;
  222. }
  223. .number-2 {
  224. text-align: center;
  225. color: #1287ff;
  226. font-size: 1.25vw;
  227. }
  228. .ing{
  229. color: #999;
  230. font-size: 0.65vw;
  231. margin-top: -0.5vh;
  232. }
  233. .number-2 span {
  234. color: #999;
  235. font-size: 0.8vw;
  236. }
  237. .button-search {
  238. margin-left: 1vw;
  239. }
  240. #test2 {
  241. width: 100%;
  242. height: 32vh;
  243. }
  244. #test2 .layui-laydate-main {
  245. width: 100%;
  246. }
  247. #test2 .layui-laydate-content td {
  248. height: 3.645vh;
  249. }
  250. #test2 .layui-laydate-content th {
  251. width: 1%;
  252. padding: 7px 0;
  253. }
  254. .layui-laydate-content td>div{
  255. height: auto;
  256. }
  257. #test2 #layui-laydate1 .layui-laydate-header {
  258. background-color: #fff;
  259. border-bottom: 1px solid #e2e2e2;
  260. height: 4.6vh;
  261. font-size: 0.85vw;
  262. line-height: 2vh;
  263. }
  264. #test2 #layui-laydate1 .layui-laydate-header {
  265. background-color: #fff;
  266. border-bottom: 1px solid #e2e2e2;
  267. height: 4.6vh;
  268. font-size: 0.85vw;
  269. line-height: 2.5vh;
  270. }
  271. #test2 .laydate-theme-molv .layui-laydate-footer {
  272. border: none;
  273. }
  274. #test2 .laydate-theme-molv .layui-laydate-header i, .laydate-theme-molv .layui-laydate-header span{
  275. color: grey !important;
  276. font-weight: 600;
  277. }
  278. #test2 .laydate-theme-molv .layui-laydate-footer {
  279. border: none;
  280. }
  281. #test2 .laydate-theme-molv .layui-laydate-content {
  282. border: none;
  283. border-top: none;
  284. border-bottom: 1px solid #e2e2e2;
  285. height: 27.2vh;
  286. }
  287. .layui-laydate-content td > div {
  288. height: 25px;
  289. }
  290. .laydate-theme-molv {
  291. width: 100%;
  292. }
  293. .main-input {
  294. width: auto;
  295. }
  296. .main-input-name {
  297. display: flex;
  298. }
  299. .layui-form-label {
  300. padding: 9px 0;
  301. position: relative;
  302. display: block;
  303. text-align: left;
  304. width: 80px;
  305. font-weight: 400;
  306. line-height: 20px;
  307. }
  308. .eleven div{
  309. padding-bottom: 6px;
  310. }
  311. #test2 .layui-laydate, .layui-laydate-hint{
  312. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  313. }
  314. </style>
  315. {/block}
  316. <!-- 主体 -->
  317. {block name="body"}
  318. <div class="p-3">
  319. <div class="layui-row layui-col-space12">
  320. <div class="layui-col-md2 top-head">
  321. <div class="layui-card top-box">
  322. <div class="layui-card-header top-title"><span
  323. style="font-size: 0.85vw;font-weight: 600;">送审总额</span>
  324. </div>
  325. <div class="layui-card-body">
  326. <div class="layui-sales-info top-box-middle">
  327. <div class="top-box-middle-left" style="width: 37.5%;height: 95%;float: left;">
  328. </div>
  329. <div class="top-box-middle-right" style="width: 62.5%;height: 95%;float: left;">
  330. <p class="top-box-middle-money">
  331. <span class="top-box-middle-money-left">{$amount.sent_review_amount}</span>
  332. <span class="top-box-middle-money-right">万元</span>
  333. </p>
  334. </div>
  335. </div>
  336. <div class="layui-sales-info top-box-bt" style="height: 10.5vh;width: auto;margin-bottom: -0.8vh;">
  337. <ul class="layui-row layui-col-space12">
  338. <li class="layui-col-md12"
  339. style="height: 5.2vh;line-height: 5.2vh;font-size: 0.8vw;padding: 0;background-color: #f9faff;color: rgb(154,153,155);">
  340. &nbsp;&nbsp;&nbsp;&nbsp;预算总额&nbsp;&nbsp;&nbsp;<span
  341. style="float: right;">万元&nbsp;&nbsp;&nbsp;&nbsp;</span><span
  342. style="float: right;color: #187FDD;">{$sent_review_amount_tol.sent_review_amount_type1}&nbsp;</span>
  343. </li>
  344. <div class="sleep"></div>
  345. <li class="layui-col-md12"
  346. style="height: 5.2vh;line-height: 5.2vh;font-size: 0.8vw;padding: 0;background-color: #f9faff;color: rgb(154,153,155);">
  347. &nbsp;&nbsp;&nbsp;&nbsp;结算总额&nbsp;&nbsp;&nbsp;<span
  348. style="float: right;">万元&nbsp;&nbsp;&nbsp;&nbsp;</span><span
  349. style="float: right;color: #187FDD;">{$sent_review_amount_tol.sent_review_amount_type2}&nbsp;</span>
  350. </li>
  351. </ul>
  352. </div>
  353. </div>
  354. </div>
  355. </div>
  356. <div class="layui-col-md2 top-head">
  357. <div class="layui-card top-box">
  358. <div class="layui-card-header top-title"><span
  359. style="font-size: 0.85vw;font-weight: 600;">评审服务费</span>
  360. </div>
  361. <div class="layui-card-body">
  362. <div class="layui-sales-info top-box-middle">
  363. <div class="top-box-middle-left-2" style="width: 37.5%;height: 95%;float: left;">
  364. </div>
  365. <div class="top-box-middle-right" style="width: 62.5%;height: 95%;float: left;">
  366. <p class="top-box-middle-money">
  367. <span class="top-box-middle-money-left">{$amount.sent_review_cost}</span>
  368. <span class="top-box-middle-money-right">万元</span>
  369. </p>
  370. </div>
  371. </div>
  372. <div class="layui-sales-info top-box-bt" style="height: 10.5vh;width: auto;margin-bottom: -0.8vh;">
  373. <ul class="layui-row layui-col-space12">
  374. <li class="layui-col-md12"
  375. style="height: 5.2vh;line-height: 5.2vh;font-size: 0.8vw;padding: 0;background-color: #f9faff;color: rgb(154,153,155);">
  376. &nbsp;&nbsp;&nbsp;&nbsp;<span id="time1"></span>年上半年服务费用&nbsp;&nbsp;&nbsp;<span
  377. style="float: right;">万元&nbsp;&nbsp;&nbsp;&nbsp;</span><span
  378. style="float: right;color: #187FDD;">{$sent_review_cost.first_sent_review_cost}&nbsp;</span>
  379. </li>
  380. <div class="sleep"></div>
  381. <li class="layui-col-md12"
  382. style="height: 5.2vh;line-height: 5.2vh;font-size: 0.8vw;padding: 0;background-color: #f9faff;color: rgb(154,153,155);">
  383. &nbsp;&nbsp;&nbsp;&nbsp;<span id="time2"></span>年下半年服务费用&nbsp;&nbsp;&nbsp;<span
  384. style="float: right;">万元&nbsp;&nbsp;&nbsp;&nbsp;</span><span
  385. style="float: right;color: #187FDD;">{$sent_review_cost.second_sent_review_cost}&nbsp;</span>
  386. </li>
  387. </ul>
  388. </div>
  389. </div>
  390. </div>
  391. </div>
  392. <div class="layui-col-md2 top-head">
  393. <div class="layui-card top-box">
  394. <div class="layui-card-header top-title"><span
  395. style="font-size: 0.85vw;font-weight: 600;">总审增减率</span>
  396. </div>
  397. <div class="layui-card-body">
  398. <div class="layui-sales-info top-box-middle">
  399. <div class="top-box-middle-left-3" style="width: 37.5%;height: 95%;float: left;">
  400. </div>
  401. <div class="top-box-middle-right" style="width: 62.5%;height: 95%;float: left;">
  402. <p class="top-box-middle-money">
  403. <span class="top-box-middle-money-left">{$amount.review_add_reduce_rate}</span>
  404. <span class="top-box-middle-money-right">%</span>
  405. </p>
  406. </div>
  407. </div>
  408. <div class="layui-sales-info top-box-bt" style="height: 10.5vh;width: auto;margin-bottom: -0.8vh;">
  409. <ul class="layui-row layui-col-space12">
  410. <li class="layui-col-md12"
  411. style="height: 5.2vh;line-height: 5.2vh;font-size: 0.8vw;padding: 0;background-color: #f9faff;color: rgb(154,153,155);">
  412. &nbsp;&nbsp;&nbsp;&nbsp;预算核增减率&nbsp;&nbsp;&nbsp;<span
  413. style="float: right;">%&nbsp;&nbsp;&nbsp;&nbsp;</span><span
  414. style="float: right;color: #187FDD;">{$sent_review_amount_tol.review_add_reduce_rate_type1}&nbsp;</span>
  415. </li>
  416. <div class="sleep"></div>
  417. <li class="layui-col-md12"
  418. style="height: 5.2vh;line-height: 5.2vh;font-size: 0.8vw;padding: 0;background-color: #f9faff;color: rgb(154,153,155);">
  419. &nbsp;&nbsp;&nbsp;&nbsp;结算核增减率&nbsp;&nbsp;&nbsp;<span
  420. style="float: right;">%&nbsp;&nbsp;&nbsp;&nbsp;</span><span
  421. style="float: right;color: #187FDD;">{$sent_review_amount_tol.review_add_reduce_rate_type2}&nbsp;</span>
  422. </li>
  423. </ul>
  424. </div>
  425. </div>
  426. </div>
  427. </div>
  428. <div class="layui-col-md2 top-head">
  429. <div class="layui-card top-box">
  430. <div class="layui-card-header top-title"><span
  431. style="font-size: 0.85vw;font-weight: 600;">项目数量</span>
  432. </div>
  433. <div class="layui-card-body" style="padding: 0;">
  434. <div class="number-box-top">
  435. <div class="number" style="border-left:none">
  436. <div class="number-1"><i class="iconfont" style="color: rgb(83,150,255);">&#xe67e; </i>项目总数
  437. </div>
  438. <div class="number-2">{$num_project.num} <span>个</span></div>
  439. </div>
  440. <div class="number">
  441. <div class="number-1">
  442. <i class="iconfont" style="color: rgb(242,173,76);">&#xe6eb; </i>
  443. 预算项目
  444. <div class="ing">(进行中)</div>
  445. </div>
  446. <div class="number-2">{$num_project.yu} <span>个</span></div>
  447. </div>
  448. <div class="number">
  449. <div class="number-1">
  450. <i class="iconfont" style="color: rgb(38,131,245);">&#xe75e; </i>
  451. 结算项目
  452. <div class="ing">(进行中)</div>
  453. </div>
  454. <div class="number-2">{$num_project.jie} <span>个</span></div>
  455. </div>
  456. </div>
  457. <div class="number-box-bottom">
  458. <div class="number" style="border-left:none;border-bottom: none;">
  459. <div class="number-1"><i class="iconfont" style="color: rgb(81,161,255);">&#xe504; </i>作业中
  460. </div>
  461. <div class="number-2">{$num_project.zuo} <span>个</span></div>
  462. </div>
  463. <div class="number" style="border-bottom: none;">
  464. <div class="number-1"><i class="iconfont" style="color: rgb(0,221,3);">&#xe622; </i>已归档
  465. </div>
  466. <div class="number-2">{$num_project.gui} <span>个</span></div>
  467. </div>
  468. <div class="number" style="border-bottom: none;">
  469. <div class="number-1"><i class="iconfont" style="color: rgb(232,82,74);">&#xe6b8;</i>已退审
  470. </div>
  471. <div class="number-2">{$num_project.tui} <span>个</span></div>
  472. </div>
  473. </div>
  474. </div>
  475. </div>
  476. </div>
  477. <div class="layui-col-md2 top-head">
  478. <div id="test2" style="width: 100%;height: 32vh;"></div>
  479. </div>
  480. </div>
  481. <div class="layui-row layui-col-space12">
  482. {if $home_five.audit_project == 1}
  483. <div class="layui-col-md5 middle-left">
  484. <div class="layui-card">
  485. <div class="layui-card-body bottom-box-left" style="padding-top: 0;overflow: hidden">
  486. <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief" style="height: 88%;">
  487. <ul class="layui-tab-title" style="font-size: 1vw; font-weight: 600;">
  488. <li class="layui-this" style="font-size: 0.95vw;">
  489. 待接收任务
  490. </li>
  491. </ul>
  492. <div class="layui-tab-content" style="height: 100%; overflow: scroll;">
  493. <table class="layui-hide" id="cost_project" lay-filter="cost_project"></table>
  494. </div>
  495. </div>
  496. </div>
  497. </div>
  498. </div>
  499. {/if}
  500. {if $home_five.imminent_project == 1 || $home_five.overdue_item == 1}
  501. <div class="layui-col-md4 middle-right">
  502. <div class="layui-card">
  503. <div class="layui-card-body bottom-box-left" style="padding-top: 0;overflow: hidden;">
  504. <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
  505. <ul class="layui-tab-title" style="font-size: 1vw; font-weight: 600;color: grey;">
  506. {if $home_five.imminent_project == 1}
  507. <li class="layui-this" style="font-size: 0.95vw;">
  508. 临期项目
  509. </li>
  510. {/if}
  511. {if $home_five.overdue_item == 1}
  512. <li style="font-size: 0.95vw;">
  513. 逾期项目
  514. </li>
  515. {/if}
  516. </ul>
  517. <div class="layui-tab-content" style="height: 100%; overflow: scroll;">
  518. {if $home_five.imminent_project == 1}
  519. <div class="layui-tab-item layui-show">
  520. <table class="layui-hide" id="advent_project" lay-filter="advent_project"></table>
  521. </div>
  522. {/if}
  523. {if $home_five.overdue_item == 1}
  524. <div class="layui-tab-item">
  525. <table class="layui-hide" id="late_project" lay-filter="late_project"></table>
  526. </div>
  527. {/if}
  528. </div>
  529. </div>
  530. </div>
  531. </div>
  532. </div>
  533. {/if}
  534. {if $home_five.list_project == 1}
  535. <div class="layui-col-md3 middle-left">
  536. <div class="layui-card">
  537. <div class="layui-card-body bottom-box-left" style="padding-top: 0;overflow: hidden;">
  538. <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief" style="height: 88%;">
  539. <div class="layui-card-header top-title" style="font-size: 0.95vw;font-weight: 600;">
  540. 造价项目列表
  541. </div>
  542. <div class="layui-tab-content" style="height: 100%; overflow: scroll;padding: 0 0 10px 0;">
  543. <form id="projectForm" class="layui-form" lay-filter="barsearchform">
  544. <div class="layui-card-body layui-col-space11 eleven">
  545. <div class="layui-col-md3 main-input-name" style="width: 40%;">
  546. <label class="layui-form-label">
  547. 项目名称:
  548. </label>
  549. <div class="layui-input-block">
  550. <input type="text" name="keyword" placeholder="请输入项目名称" autocomplete="off"
  551. class="layui-input main-input">
  552. </div>
  553. </div>
  554. <div class="layui-col-md3 main-input-name" style="width: 35%;">
  555. <label class="layui-form-label" style="text-align: center;">
  556. 负责人:
  557. </label>
  558. <div class="layui-input-block">
  559. <input type="text" name="entrust_maker_name" placeholder="请输入负责人" autocomplete="off"
  560. class="layui-input main-input">
  561. </div>
  562. </div>
  563. <div class="layui-col-md2 main-input-name">
  564. <button class="layui-btn layui-btn-normal" type="button" lay-submit lay-filter="project_search" lay-filter="project_search"><i class="layui-icon layui-icon-search mr-1"></i>搜索</button>
  565. <button class="layui-btn layui-btn-reset" type="button" lay-submit lay-filter="project_reset">清空</button>
  566. </div>
  567. </div>
  568. </form>
  569. <div class="layui-tab-item layui-show">
  570. <table class="layui-hide" id="cost_project2" lay-filter="cost_project2"></table>
  571. </div>
  572. <div class="layui-tab-item"></div>
  573. </div>
  574. </div>
  575. </div>
  576. </div>
  577. </div>
  578. {/if}
  579. {if $home_five.address_book == 1}
  580. <div class="layui-col-md3 middle-right">
  581. <div class="layui-card">
  582. <div class="layui-card-body bottom-box-left" style="padding-top: 0;overflow: hidden;">
  583. <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
  584. <!-- <div class="layui-card-header top-title" style="font-size: 0.95vw;font-weight: 600;">
  585. 通讯录
  586. </div> -->
  587. <ul class="layui-tab-title" style="font-size: 1vw; font-weight: 600;color: grey;display: flex;justify-content: flex-end;align-items: center;">
  588. <div style="left: 2%;position: absolute;">通讯录</div>
  589. <li class="layui-this" style="font-size: 0.95vw;">
  590. 内部
  591. </li>
  592. <li style="font-size: 0.95vw;">
  593. 外部
  594. </li>
  595. </ul>
  596. <div class="layui-tab-content" style="height: 100%; overflow: scroll;padding: 0 0 10px 0;">
  597. <form id="peopleForm" class="layui-form" lay-filter="barsearchform">
  598. <div class="layui-card-body layui-col-space11 eleven">
  599. <div class="layui-col-md5 main-input-name" style="width: 65%;">
  600. <label class="layui-form-label" style="width: 7vw;">
  601. 联系人/单位名称:
  602. </label>
  603. <div class="layui-input-block">
  604. <input type="text" name="nickname" placeholder="请输入联系人/单位名称" autocomplete="off" class="layui-input main-input">
  605. </div>
  606. </div>
  607. <div class="layui-col-md2 main-input-name">
  608. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="webform"><i class="layui-icon layui-icon-search mr-1"></i>搜索</button>
  609. <button type="reset" class="layui-btn layui-btn-primary swiper-right-form-reset" lay-submit="" lay-filter="reset1">重置</button>
  610. </div>
  611. </div>
  612. </form>
  613. <div class="layui-tab-item layui-show">
  614. <table class="layui-hide" id="people" lay-filter="people"></table>
  615. </div>
  616. <div class="layui-tab-item">
  617. <table class="layui-hide" id="cp_head" lay-filter="cp_head"></table>
  618. </div>
  619. </div>
  620. </div>
  621. </div>
  622. </div>
  623. </div>
  624. {/if}
  625. </div>
  626. <!-- 弹窗 -->
  627. {/block}
  628. <!-- /主体 -->
  629. <!-- 脚本 -->
  630. {block name="script"}
  631. <script src="https://cdn.staticfile.org/echarts/5.3.0/echarts.min.js"></script>
  632. <script>
  633. const moduleInit = ['tool'];
  634. function gouguInit() {
  635. var table = layui.table,
  636. tool = layui.tool,
  637. form = layui.form;
  638. var allcount;
  639. layui.pageTable = table.render({
  640. elem: '#cost_project',
  641. title: '待接收任务',
  642. // toolbar: '#toolbarDemo',
  643. url: '/admin/project.audit_company/datalist',
  644. limit: 20,
  645. parseData: function(res) { // 数据解析回调函数
  646. // 在这里可以获取数据总数
  647. allcount = res.count;
  648. return {
  649. code: res.code, // 数据状态码
  650. msg: res.msg, // 状态信息
  651. count: res.count, // 数据总数
  652. data: res.data // 当前页数据
  653. };
  654. },
  655. cols: [
  656. [{fixed: 'left', field: 'id', title: '编号', align: 'center', width: 80,
  657. templet: function(d){
  658. return allcount - (d.LAY_NUM-1);
  659. }
  660. },
  661. {
  662. field: 'project_status',
  663. title: '项目状态',
  664. align: 'center',
  665. width: 100,
  666. templet: function (item) {
  667. var html;
  668. if (item.project_status === 3) {
  669. html = '<span class="layui-badge layui-bg-orange">待接收</span> ';
  670. }
  671. return html;
  672. }
  673. },
  674. {
  675. field: 'project_name',
  676. title: '项目名称',
  677. align: 'center',
  678. }, {
  679. field: 'project_num',
  680. title: '项目编号',
  681. align: 'center',
  682. }, {
  683. field: 'project_time',
  684. title: '项目周期',
  685. align: 'center',
  686. templet: function (item) {
  687. var html;
  688. html =
  689. "<div>" +
  690. layui.util.toDateString(item.project_start_time * 1000, 'yyyy-MM-dd') +
  691. "~" +
  692. layui.util.toDateString(item.project_end_time * 1000, 'yyyy-MM-dd') +
  693. "</div>";
  694. return html;
  695. }
  696. },
  697. {
  698. fixed: 'right',
  699. field: 'right',
  700. title: '操作',
  701. width: 136,
  702. align: 'center',
  703. templet: function (){
  704. var h = `<div class="layui-btn-group">
  705. <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="read">查看</a>
  706. <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="receive">接收</a>
  707. <!-- <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>-->
  708. </div>`
  709. return h;
  710. }
  711. }
  712. ]
  713. ]
  714. });
  715. //监听表格行工具事件
  716. table.on('tool(cost_project)', function (obj) {
  717. var data = obj.data;
  718. if (obj.event === 'read') {
  719. // console.log(obj.data.getTrusteeName.institution)
  720. tool.side('/admin/project.audit_company/read?id=' + obj.data.id);
  721. } else if (obj.event === 'edit') {
  722. tool.side('/admin/project.audit_company/edit?id=' + obj.data.id);
  723. } else if (obj.event === 'receive') {
  724. layer.confirm('确定要接收该项目?', {
  725. icon: 3,
  726. title: '提示'
  727. }, function (index) {
  728. let callback = function (e) {
  729. layer.msg(e.msg);
  730. if (e.code == 0) {
  731. obj.del();
  732. }
  733. }
  734. tool.delete("/admin/project.audit_company/receive", {id: data.id}, callback);
  735. layer.close(index);
  736. });
  737. }
  738. return false;
  739. });
  740. layui.pageTable = table.render({
  741. elem: '#advent_project',
  742. title: '临期项目',
  743. url: '/admin/project.cost_company/list1',
  744. page: false,
  745. limit: 20,
  746. parseData: function(res) { // 数据解析回调函数
  747. // 在这里可以获取数据总数
  748. allcount = res.count;
  749. return {
  750. code: res.code, // 数据状态码
  751. msg: res.msg, // 状态信息
  752. count: res.count, // 数据总数
  753. data: res.data // 当前页数据
  754. };
  755. },
  756. cols: [
  757. [{fixed: 'left', field: 'id', title: '编号', align: 'center', width: 80,
  758. templet: function(d){
  759. return allcount - (d.LAY_NUM-1);
  760. }
  761. }, {
  762. field: 'project_status',
  763. title: '项目状态',
  764. align: 'center',
  765. width: 100,
  766. templet: function (item) {
  767. var html = '';
  768. if (item.project_status === 1) {
  769. html = '<span class="layui-badge layui-bg-orange">立项中</span> ';
  770. } else if (item.project_status === 2) {
  771. html = '<span class="layui-badge layui-bg-blue">审批中</span> ';
  772. } else if (item.project_status === -1) {
  773. html = '<span class="layui-badge layui-bg-red">待修改</span> ';
  774. } else if (item.project_status === 3) {
  775. html = '<span class="layui-badge layui-bg-green">待接收</span> ';
  776. } else if (item.project_status === 4) {
  777. html =
  778. '<span class="layui-badge" style="background-color: #31bdec">分配中</span> ';
  779. } else if (item.project_status === 5) {
  780. html =
  781. '<span class="layui-badge" style="background-color: #31bdec">作业中</span> ';
  782. } else if (item.project_status === 6) {
  783. html =
  784. '<span class="layui-badge" style="background-color: #31bdec">归档中</span> ';
  785. } else if (item.project_status === 7) {
  786. html =
  787. '<span class="layui-badge" style="background-color: #31bdec">退审中</span> ';
  788. } else if (item.project_status === 8) {
  789. html =
  790. '<span class="layui-badge" style="background-color: #31bdec">已归档</span> ';
  791. } else if (item.project_status === 9) {
  792. html =
  793. '<span class="layui-badge" style="background-color: #31bdec">已退审</span> ';
  794. }
  795. return html;
  796. }
  797. }, {
  798. field: 'project_name',
  799. title: '项目名称',
  800. align: 'center',
  801. }, {
  802. field: 'project_num',
  803. title: '项目编号',
  804. align: 'center',
  805. }, {
  806. field: 'project_time',
  807. title: '剩余时间',
  808. align: 'center',
  809. width: 100,
  810. templet: function (item) {
  811. let outcome = Math.round(new Date().getTime() / 1000).toString();
  812. var advent_time = item.project_end_time - outcome
  813. console.log(advent_time);
  814. function getDuration(second) {
  815. var duration
  816. var days = Math.floor(second / 86400);
  817. var hours = Math.floor((second % 86400) / 3600);
  818. var minutes = Math.floor(((second % 86400) % 3600) / 60);
  819. var seconds = Math.floor(((second % 86400) % 3600) % 60);
  820. if (days > 0) duration = days + "天";
  821. else if (hours > 0) duration = hours + "小时";
  822. else if (minutes > 0) duration = minutes + "分";
  823. else if (seconds > 0) duration = seconds + "秒";
  824. return duration;
  825. }
  826. return getDuration(advent_time);
  827. }
  828. },
  829. {
  830. fixed: 'right',
  831. field: 'right',
  832. title: '操作',
  833. width: 136,
  834. align: 'center',
  835. templet: function (a) {
  836. var h = '';
  837. var arr = [3, 4, 5];
  838. if (a.self_id == a.entrust_maker) {
  839. if (a.project_status == 1) {
  840. h = '<div class="layui-btn-group"><a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="read">查看</a><a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a><a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a></div>'
  841. } else if (arr.indexOf(a.project_status) !== -1) {
  842. h = '<div class="layui-btn-group"><a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="read">查看</a><a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a></div>'
  843. } else {
  844. h = '<div class="layui-btn-group"><a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="read">查看</a><div'
  845. }
  846. } else {
  847. h = '<div class="layui-btn-group"><a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="read">查看</a><div'
  848. }
  849. return h;
  850. }
  851. }
  852. ]
  853. ]
  854. });
  855. //监听表格行工具事件
  856. table.on('tool(advent_project)', function (obj) {
  857. var data = obj.data;
  858. if (obj.event === 'read') {
  859. tool.side('/admin/project.cost_company/read?id=' + obj.data.id);
  860. } else if (obj.event === 'edit') {
  861. tool.side('/admin/project.cost_company/edit?id=' + obj.data.id);
  862. } else if (obj.event === 'del') {
  863. layer.confirm('确定要删除该记录吗?', {
  864. icon: 3,
  865. title: '提示'
  866. }, function (index) {
  867. if (data.project_status < 3) {
  868. let callback = function (e) {
  869. layer.msg(e.msg);
  870. if (e.code == 0) {
  871. obj.del();
  872. }
  873. }
  874. tool.delete("/admin/project.cost_company/del", {
  875. id: data.id
  876. }, callback);
  877. layer.close(index);
  878. }
  879. layer.msg("已审核,无法删除");
  880. });
  881. }
  882. return false;
  883. });
  884. layui.pageTable = table.render({
  885. elem: '#late_project',
  886. title: '逾期项目',
  887. url: '/admin/project.cost_company/list2',
  888. page: false,
  889. limit: 20,
  890. parseData: function(res) { // 数据解析回调函数
  891. // 在这里可以获取数据总数
  892. allcount = res.count;
  893. return {
  894. code: res.code, // 数据状态码
  895. msg: res.msg, // 状态信息
  896. count: res.count, // 数据总数
  897. data: res.data // 当前页数据
  898. };
  899. },
  900. cols: [
  901. [{fixed: 'left', field: 'id', title: '编号', align: 'center', width: 80,
  902. templet: function(d){
  903. return allcount - (d.LAY_NUM-1);
  904. }
  905. }, {
  906. field: 'project_status',
  907. title: '项目状态',
  908. align: 'center',
  909. width: 100,
  910. templet: function (item) {
  911. var html = '';
  912. if (item.project_status === 1) {
  913. html = '<span class="layui-badge layui-bg-orange">立项中</span> ';
  914. } else if (item.project_status === 2) {
  915. html = '<span class="layui-badge layui-bg-blue">审批中</span> ';
  916. } else if (item.project_status === -1) {
  917. html = '<span class="layui-badge layui-bg-red">待修改</span> ';
  918. } else if (item.project_status === 3) {
  919. html = '<span class="layui-badge layui-bg-green">待接收</span> ';
  920. } else if (item.project_status === 4) {
  921. html =
  922. '<span class="layui-badge" style="background-color: #31bdec">分配中</span> ';
  923. } else if (item.project_status === 5) {
  924. html =
  925. '<span class="layui-badge" style="background-color: #31bdec">作业中</span> ';
  926. } else if (item.project_status === 6) {
  927. html =
  928. '<span class="layui-badge" style="background-color: #31bdec">归档中</span> ';
  929. } else if (item.project_status === 7) {
  930. html =
  931. '<span class="layui-badge" style="background-color: #31bdec">退审中</span> ';
  932. } else if (item.project_status === 8) {
  933. html =
  934. '<span class="layui-badge" style="background-color: #31bdec">已归档</span> ';
  935. } else if (item.project_status === 9) {
  936. html =
  937. '<span class="layui-badge" style="background-color: #31bdec">已退审</span> ';
  938. }
  939. return html;
  940. }
  941. }, {
  942. field: 'project_name',
  943. title: '项目名称',
  944. align: 'center',
  945. }, {
  946. field: 'project_num',
  947. title: '项目编号',
  948. align: 'center',
  949. }, {
  950. field: 'project_time',
  951. title: '逾期时间',
  952. align: 'center',
  953. width: 100,
  954. templet: function (item) {
  955. let outcome = Math.round(new Date().getTime() / 1000).toString();
  956. var advent_time = item.project_end_time - outcome
  957. var time = getDuration(advent_time);
  958. var timestr = "<span style='color: green'>" + "剩余" + time + "</span>";
  959. if (advent_time < 0) {
  960. advent_time = -advent_time;
  961. if(advent_time > 30){
  962. timestr = "<span style='color: red'>" + "待归档" + "</span>"
  963. }else{
  964. time = getDuration(advent_time);
  965. timestr = "<span style='color: red'>" + "逾期" + time + "</span>";
  966. }
  967. }
  968. var html;
  969. html =
  970. "<div>" + timestr + "</div>";
  971. function getDuration(second) {
  972. var duration
  973. var days = Math.floor(second / 86400);
  974. var hours = Math.floor((second % 86400) / 3600);
  975. if (days > 0) duration = days + "天";
  976. else if (hours > 0) duration = "不足一天";
  977. else if (hours == 0) duration = "不足一天";
  978. return duration;
  979. }
  980. return html;
  981. }
  982. },
  983. {
  984. fixed: 'right',
  985. field: 'right',
  986. title: '操作',
  987. width: 136,
  988. align: 'center',
  989. templet: function (a) {
  990. var h = '';
  991. var arr = [3, 4, 5];
  992. if (a.self_id == a.entrust_maker) {
  993. if (a.project_status == 1) {
  994. h = '<div class="layui-btn-group"><a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="read">查看</a><a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a><a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a></div>'
  995. } else if (arr.indexOf(a.project_status) !== -1) {
  996. h = '<div class="layui-btn-group"><a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="read">查看</a><a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a></div>'
  997. } else {
  998. h = '<div class="layui-btn-group"><a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="read">查看</a><div'
  999. }
  1000. } else {
  1001. h = '<div class="layui-btn-group"><a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="read">查看</a><div'
  1002. }
  1003. return h;
  1004. }
  1005. }
  1006. ]
  1007. ]
  1008. });
  1009. table.on('tool(late_project)', function (obj) {
  1010. var data = obj.data;
  1011. if (obj.event === 'read') {
  1012. tool.side('/admin/project.cost_company/read?id=' + obj.data.id);
  1013. } else if (obj.event === 'edit') {
  1014. tool.side('/admin/project.cost_company/edit?id=' + obj.data.id);
  1015. } else if (obj.event === 'del') {
  1016. layer.confirm('确定要删除该记录吗?', {
  1017. icon: 3,
  1018. title: '提示'
  1019. }, function (index) {
  1020. if (data.project_status < 3) {
  1021. let callback = function (e) {
  1022. layer.msg(e.msg);
  1023. if (e.code == 0) {
  1024. obj.del();
  1025. }
  1026. }
  1027. tool.delete("/admin/project.cost_company/del", {
  1028. id: data.id
  1029. }, callback);
  1030. layer.close(index);
  1031. }
  1032. layer.msg("已审核,无法删除");
  1033. });
  1034. }
  1035. return false;
  1036. });
  1037. layui.costProjectTable = table.render({
  1038. elem: '#cost_project2',
  1039. title: '造价项目列表',
  1040. //toolbar: '#toolbarDemo',
  1041. url: '/admin/project.cost_company/datalist',
  1042. limit: 20,
  1043. parseData: function(res) { // 数据解析回调函数
  1044. // 在这里可以获取数据总数
  1045. allcount = res.count;
  1046. return {
  1047. code: res.code, // 数据状态码
  1048. msg: res.msg, // 状态信息
  1049. count: res.count, // 数据总数
  1050. data: res.data // 当前页数据
  1051. };
  1052. },
  1053. cols: [
  1054. [{fixed: 'left', field: 'id', title: '编号', align: 'center', width: 80,
  1055. templet: function(d){
  1056. return allcount - (d.LAY_NUM-1);
  1057. }
  1058. }, {
  1059. field: 'project_status',
  1060. title: '项目状态',
  1061. align: 'center',
  1062. width: 100,
  1063. templet: function (item) {
  1064. var html = '';
  1065. if (item.project_status === 1) {
  1066. html = '<span class="layui-badge layui-bg-orange">立项中</span> ';
  1067. } else if (item.project_status === 2) {
  1068. html = '<span class="layui-badge layui-bg-blue">审批中</span> ';
  1069. } else if (item.project_status === -1) {
  1070. html = '<span class="layui-badge layui-bg-red">待修改</span> ';
  1071. } else if (item.project_status === 3) {
  1072. html = '<span class="layui-badge layui-bg-green">待接收</span> ';
  1073. } else if (item.project_status === 4) {
  1074. html =
  1075. '<span class="layui-badge" style="background-color: #31bdec">分配中</span> ';
  1076. } else if (item.project_status === 5) {
  1077. html =
  1078. '<span class="layui-badge" style="background-color: #31bdec">作业中</span> ';
  1079. } else if (item.project_status === 6) {
  1080. html =
  1081. '<span class="layui-badge" style="background-color: #31bdec">归档中</span> ';
  1082. } else if (item.project_status === 7) {
  1083. html =
  1084. '<span class="layui-badge" style="background-color: #31bdec">退审中</span> ';
  1085. } else if (item.project_status === 8) {
  1086. html =
  1087. '<span class="layui-badge" style="background-color: #31bdec">已归档</span> ';
  1088. } else if (item.project_status === 9) {
  1089. html =
  1090. '<span class="layui-badge" style="background-color: #31bdec">已退审</span> ';
  1091. }
  1092. return html;
  1093. }
  1094. }, {
  1095. field: 'project_name',
  1096. title: '项目名称',
  1097. align: 'center',
  1098. width: 400
  1099. }, {
  1100. field: 'project_num',
  1101. title: '项目编号',
  1102. align: 'center',
  1103. width: 200
  1104. }, {
  1105. field: 'project_time',
  1106. title: '项目周期',
  1107. align: 'center',
  1108. width: 300,
  1109. templet: function (item) {
  1110. var html;
  1111. html =
  1112. "<div>" +
  1113. layui.util.toDateString(item.project_start_time * 1000, 'yyyy-MM-dd') +
  1114. "~" +
  1115. layui.util.toDateString(item.project_end_time * 1000, 'yyyy-MM-dd') +
  1116. "</div>";
  1117. return html;
  1118. }
  1119. }, {
  1120. field: 'entrust_unit_name',
  1121. title: '委托单位',
  1122. align: 'center',
  1123. width: 150
  1124. }, {
  1125. field: 'entrust_maker_name',
  1126. title: '委托单位负责人',
  1127. align: 'center',
  1128. width: 200
  1129. }, {
  1130. field: 'entrust_head_phone',
  1131. title: '委托单位负责人电话',
  1132. align: 'center',
  1133. width: 250
  1134. }, {
  1135. fixed: 'right',
  1136. field: 'right',
  1137. title: '操作',
  1138. width: 136,
  1139. align: 'center',
  1140. templet: function () {
  1141. var h;
  1142. h = `<div class="layui-btn-group">
  1143. <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
  1144. <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="finish">归档</a>
  1145. <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="dismissal">退审</a>
  1146. </div>`
  1147. return h;
  1148. }
  1149. }]
  1150. ]
  1151. });
  1152. //监听表格行工具事件
  1153. table.on('tool(cost_project2)', function (obj) {
  1154. var data = obj.data;
  1155. if (obj.event === 'read') {
  1156. tool.side('/admin/project.cost_company/read?id=' + obj.data.id);
  1157. } else if (obj.event === 'edit') {
  1158. if (obj.data.project_status<6) {
  1159. tool.side('/admin/project.cost_company/edit?id=' + obj.data.id);
  1160. } else {
  1161. layer.msg("已归档/已退审")
  1162. }
  1163. } else if (obj.event === 'finish') {
  1164. if (obj.data.project_status == 5 || obj.data.project_status == 4) {
  1165. var ttxx = layer.prompt({
  1166. title: '请输入<span style="color: red">归档</span>原因',
  1167. formType: 2,
  1168. area: ['35vw', '15vw']
  1169. }, function (text, index) {
  1170. let callback = function (e) {
  1171. window.location.reload()
  1172. layer.msg(e.msg);
  1173. setTimeout(function () {
  1174. layer.close(index);
  1175. }, 2000)
  1176. }
  1177. tool.post("/admin/project.cost_company/finish", { id: data.id, finish_reason: text}, callback);
  1178. })
  1179. } else {
  1180. layer.msg("已归档/已退审")
  1181. }
  1182. } else if (obj.event === 'dismissal') {
  1183. if (obj.data.project_status == 5 || obj.data.project_status == 4) {
  1184. var ttxx = layer.prompt({
  1185. title: '请输入<span style="color: red">退审</span>原因',
  1186. formType: 2,
  1187. area: ['35vw', '15vw']
  1188. }, function (text, index) {
  1189. let callback = function (e) {
  1190. window.location.reload()
  1191. layer.msg(e.msg);
  1192. setTimeout(function () {
  1193. layer.close(index);
  1194. }, 2000)
  1195. }
  1196. tool.post("/admin/project.cost_company/dismissal", {
  1197. id: data.id,
  1198. dismissal_reason: text,
  1199. }, callback);
  1200. });
  1201. } else {
  1202. layer.msg("已归档/已退审")
  1203. }
  1204. }
  1205. return false;
  1206. });
  1207. //通讯录
  1208. layui.peopleTable = table.render({
  1209. elem: '#people',
  1210. title: '通讯录',
  1211. //toolbar: '#toolbarDemo',
  1212. url: '/admin/index/people',
  1213. limit: 20,
  1214. parseData: function(res) { // 数据解析回调函数
  1215. // 在这里可以获取数据总数
  1216. allcount = res.count;
  1217. return {
  1218. code: res.code, // 数据状态码
  1219. msg: res.msg, // 状态信息
  1220. count: res.count, // 数据总数
  1221. data: res.data // 当前页数据
  1222. };
  1223. },
  1224. cols: [
  1225. [{field: 'id', title: '编号', align: 'center', width: 80,
  1226. templet: function(d){
  1227. return allcount - (d.LAY_NUM-1);
  1228. }
  1229. }, {
  1230. field: 'nickname',
  1231. title: '联系人',
  1232. align: 'center',
  1233. }, {
  1234. field: 'mobile',
  1235. title: '电话',
  1236. align: 'center',
  1237. }, {
  1238. field: 'email',
  1239. title: '电子邮箱',
  1240. align: 'center',
  1241. }]
  1242. ]
  1243. });
  1244. layui.cp_head = table.render({
  1245. elem: '#cp_head',
  1246. title: '联系人',
  1247. url: '/admin/index/cp_head',
  1248. page: false,
  1249. limit: 20,
  1250. parseData: function(res) { // 数据解析回调函数
  1251. // 在这里可以获取数据总数
  1252. allcount = res.count;
  1253. return {
  1254. code: res.code, // 数据状态码
  1255. msg: res.msg, // 状态信息
  1256. count: res.count, // 数据总数
  1257. data: res.data // 当前页数据
  1258. };
  1259. },
  1260. cols: [
  1261. [{fixed: 'left', field: 'id', title: '编号', align: 'center', width: 80,
  1262. templet: function(d){
  1263. return allcount - (d.LAY_NUM-1);
  1264. }
  1265. }, {
  1266. field: 'title',
  1267. title: '单位名称',
  1268. align: 'center',
  1269. },{
  1270. field: 'type',
  1271. title: '单位类型',
  1272. align: 'center',
  1273. templet:function (d) {
  1274. var h="";
  1275. if(d.type==1){
  1276. h="送审单位";
  1277. }else {
  1278. h="委托单位";
  1279. }
  1280. return h;
  1281. }
  1282. }, {
  1283. field: 'nickname',
  1284. title: '联系人',
  1285. align: 'center',
  1286. }, {
  1287. field: 'mobile',
  1288. title: '电话',
  1289. align: 'center',
  1290. }, {
  1291. field: 'email',
  1292. title: '电子邮箱',
  1293. align: 'center',
  1294. },
  1295. ]
  1296. ]
  1297. });
  1298. form.on('submit(webform)', function (data) {
  1299. console.log(data.field)
  1300. layui.peopleTable.reload({ where: data.field });
  1301. layui.cp_head.reload({ where: data.field });
  1302. return false;
  1303. });
  1304. form.on('submit(reset1)', function () {
  1305. $('[name="nickname"]').val("");
  1306. layui.peopleTable.reload({where:{}});
  1307. layui.cp_head.reload({where:{}});
  1308. return false;
  1309. });
  1310. form.on('submit(project_reset)', function () {
  1311. $('[name="keyword"]').val("");
  1312. $('[name="entrust_maker_name"]').val("");
  1313. layui.costProjectTable.reload({where:{}});
  1314. return false;
  1315. });
  1316. form.on('submit(project_search)', function (data) {
  1317. layui.costProjectTable.reload({
  1318. where: data.field,
  1319. });
  1320. return false;
  1321. });
  1322. }
  1323. </script>
  1324. <script src="{__GOUGU__}/layui/layui.js"></script>
  1325. <script>
  1326. layui.use(function () {
  1327. var layer = layui.layer;
  1328. var form = layui.form;
  1329. var laydate = layui.laydate;
  1330. var util = layui.util;
  1331. laydate.render({
  1332. elem: '#test2',
  1333. position: 'static',
  1334. theme: '#1A75FF',
  1335. calendar: 'true',
  1336. showBottom: false,
  1337. });
  1338. });
  1339. </script>
  1340. <script>
  1341. window.onbeforeunload = onbeforeunload_handlder;
  1342. window.onunload = onunload_handler;
  1343. function onbeforeunload_handlder() {
  1344. var warning = "消息页面";
  1345. return warning;
  1346. }
  1347. function onunload_handler() {
  1348. var warning = "消息页面";
  1349. alert(warning);
  1350. }
  1351. </script>
  1352. <!-- 弹窗 -->
  1353. <!--显示实时年份-->
  1354. <script>
  1355. `use strict`
  1356. var datetime = new Date().getFullYear();
  1357. console.log(datetime); // it will represent date in the console of developers tool
  1358. document.getElementById("time1").textContent = datetime; //it will print on html page
  1359. document.getElementById("time2").textContent = datetime;
  1360. </script>
  1361. {/block}
  1362. <!-- /脚本 -->