448c7dd36086193ad316887b79634bee.php 64 KB

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