main_company.html 62 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587
  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. time = getDuration(advent_time);
  962. timestr = "<span style='color: red'>" + "逾期" + time + "</span>";
  963. }
  964. var html;
  965. html =
  966. "<div>" + timestr + "</div>";
  967. function getDuration(second) {
  968. var duration
  969. var days = Math.floor(second / 86400);
  970. var hours = Math.floor((second % 86400) / 3600);
  971. if (days > 0) duration = days + "天";
  972. else if (hours > 0) duration = "不足一天";
  973. else if (hours == 0) duration = "不足一天";
  974. return duration;
  975. }
  976. return html;
  977. }
  978. },
  979. {
  980. fixed: 'right',
  981. field: 'right',
  982. title: '操作',
  983. width: 136,
  984. align: 'center',
  985. templet: function (a) {
  986. var h = '';
  987. var arr = [3, 4, 5];
  988. if (a.self_id == a.entrust_maker) {
  989. if (a.project_status == 1) {
  990. 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>'
  991. } else if (arr.indexOf(a.project_status) !== -1) {
  992. 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>'
  993. } else {
  994. h = '<div class="layui-btn-group"><a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="read">查看</a><div'
  995. }
  996. } else {
  997. h = '<div class="layui-btn-group"><a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="read">查看</a><div'
  998. }
  999. return h;
  1000. }
  1001. }
  1002. ]
  1003. ]
  1004. });
  1005. table.on('tool(late_project)', function (obj) {
  1006. var data = obj.data;
  1007. if (obj.event === 'read') {
  1008. tool.side('/admin/project.cost_company/read?id=' + obj.data.id);
  1009. } else if (obj.event === 'edit') {
  1010. tool.side('/admin/project.cost_company/edit?id=' + obj.data.id);
  1011. } else if (obj.event === 'del') {
  1012. layer.confirm('确定要删除该记录吗?', {
  1013. icon: 3,
  1014. title: '提示'
  1015. }, function (index) {
  1016. if (data.project_status < 3) {
  1017. let callback = function (e) {
  1018. layer.msg(e.msg);
  1019. if (e.code == 0) {
  1020. obj.del();
  1021. }
  1022. }
  1023. tool.delete("/admin/project.cost_company/del", {
  1024. id: data.id
  1025. }, callback);
  1026. layer.close(index);
  1027. }
  1028. layer.msg("已审核,无法删除");
  1029. });
  1030. }
  1031. return false;
  1032. });
  1033. layui.costProjectTable = table.render({
  1034. elem: '#cost_project2',
  1035. title: '造价项目列表',
  1036. //toolbar: '#toolbarDemo',
  1037. url: '/admin/project.cost_company/datalist',
  1038. limit: 20,
  1039. parseData: function(res) { // 数据解析回调函数
  1040. // 在这里可以获取数据总数
  1041. allcount = res.count;
  1042. return {
  1043. code: res.code, // 数据状态码
  1044. msg: res.msg, // 状态信息
  1045. count: res.count, // 数据总数
  1046. data: res.data // 当前页数据
  1047. };
  1048. },
  1049. cols: [
  1050. [{fixed: 'left', field: 'id', title: '编号', align: 'center', width: 80,
  1051. templet: function(d){
  1052. return allcount - (d.LAY_NUM-1);
  1053. }
  1054. }, {
  1055. field: 'project_status',
  1056. title: '项目状态',
  1057. align: 'center',
  1058. width: 100,
  1059. templet: function (item) {
  1060. var html = '';
  1061. if (item.project_status === 1) {
  1062. html = '<span class="layui-badge layui-bg-orange">立项中</span> ';
  1063. } else if (item.project_status === 2) {
  1064. html = '<span class="layui-badge layui-bg-blue">审批中</span> ';
  1065. } else if (item.project_status === -1) {
  1066. html = '<span class="layui-badge layui-bg-red">待修改</span> ';
  1067. } else if (item.project_status === 3) {
  1068. html = '<span class="layui-badge layui-bg-green">待接收</span> ';
  1069. } else if (item.project_status === 4) {
  1070. html =
  1071. '<span class="layui-badge" style="background-color: #31bdec">分配中</span> ';
  1072. } else if (item.project_status === 5) {
  1073. html =
  1074. '<span class="layui-badge" style="background-color: #31bdec">作业中</span> ';
  1075. } else if (item.project_status === 6) {
  1076. html =
  1077. '<span class="layui-badge" style="background-color: #31bdec">归档中</span> ';
  1078. } else if (item.project_status === 7) {
  1079. html =
  1080. '<span class="layui-badge" style="background-color: #31bdec">退审中</span> ';
  1081. } else if (item.project_status === 8) {
  1082. html =
  1083. '<span class="layui-badge" style="background-color: #31bdec">已归档</span> ';
  1084. } else if (item.project_status === 9) {
  1085. html =
  1086. '<span class="layui-badge" style="background-color: #31bdec">已退审</span> ';
  1087. }
  1088. return html;
  1089. }
  1090. }, {
  1091. field: 'project_name',
  1092. title: '项目名称',
  1093. align: 'center',
  1094. width: 400
  1095. }, {
  1096. field: 'project_num',
  1097. title: '项目编号',
  1098. align: 'center',
  1099. width: 200
  1100. }, {
  1101. field: 'project_time',
  1102. title: '项目周期',
  1103. align: 'center',
  1104. width: 300,
  1105. templet: function (item) {
  1106. var html;
  1107. html =
  1108. "<div>" +
  1109. layui.util.toDateString(item.project_start_time * 1000, 'yyyy-MM-dd') +
  1110. "~" +
  1111. layui.util.toDateString(item.project_end_time * 1000, 'yyyy-MM-dd') +
  1112. "</div>";
  1113. return html;
  1114. }
  1115. }, {
  1116. field: 'entrust_unit_name',
  1117. title: '委托单位',
  1118. align: 'center',
  1119. width: 150
  1120. }, {
  1121. field: 'entrust_maker_name',
  1122. title: '委托单位负责人',
  1123. align: 'center',
  1124. width: 200
  1125. }, {
  1126. field: 'entrust_head_phone',
  1127. title: '委托单位负责人电话',
  1128. align: 'center',
  1129. width: 250
  1130. }, {
  1131. fixed: 'right',
  1132. field: 'right',
  1133. title: '操作',
  1134. width: 136,
  1135. align: 'center',
  1136. templet: function () {
  1137. var h;
  1138. h = `<div class="layui-btn-group">
  1139. <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
  1140. <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="finish">归档</a>
  1141. <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="dismissal">退审</a>
  1142. </div>`
  1143. return h;
  1144. }
  1145. }]
  1146. ]
  1147. });
  1148. //监听表格行工具事件
  1149. table.on('tool(cost_project2)', function (obj) {
  1150. var data = obj.data;
  1151. if (obj.event === 'read') {
  1152. tool.side('/admin/project.cost_company/read?id=' + obj.data.id);
  1153. } else if (obj.event === 'edit') {
  1154. if (obj.data.project_status<6) {
  1155. tool.side('/admin/project.cost_company/edit?id=' + obj.data.id);
  1156. } else {
  1157. layer.msg("已归档/已退审")
  1158. }
  1159. } else if (obj.event === 'finish') {
  1160. if (obj.data.project_status == 5 || obj.data.project_status == 4) {
  1161. var ttxx = layer.prompt({
  1162. title: '请输入<span style="color: red">归档</span>原因',
  1163. formType: 2,
  1164. area: ['35vw', '15vw']
  1165. }, function (text, index) {
  1166. let callback = function (e) {
  1167. window.location.reload()
  1168. layer.msg(e.msg);
  1169. setTimeout(function () {
  1170. layer.close(index);
  1171. }, 2000)
  1172. }
  1173. tool.post("/admin/project.cost_company/finish", { id: data.id, finish_reason: text}, callback);
  1174. })
  1175. } else {
  1176. layer.msg("已归档/已退审")
  1177. }
  1178. } else if (obj.event === 'dismissal') {
  1179. if (obj.data.project_status == 5 || obj.data.project_status == 4) {
  1180. var ttxx = layer.prompt({
  1181. title: '请输入<span style="color: red">退审</span>原因',
  1182. formType: 2,
  1183. area: ['35vw', '15vw']
  1184. }, function (text, index) {
  1185. let callback = function (e) {
  1186. window.location.reload()
  1187. layer.msg(e.msg);
  1188. setTimeout(function () {
  1189. layer.close(index);
  1190. }, 2000)
  1191. }
  1192. tool.post("/admin/project.cost_company/dismissal", {
  1193. id: data.id,
  1194. dismissal_reason: text,
  1195. }, callback);
  1196. });
  1197. } else {
  1198. layer.msg("已归档/已退审")
  1199. }
  1200. }
  1201. return false;
  1202. });
  1203. //通讯录
  1204. layui.peopleTable = table.render({
  1205. elem: '#people',
  1206. title: '通讯录',
  1207. //toolbar: '#toolbarDemo',
  1208. url: '/admin/index/people',
  1209. limit: 20,
  1210. parseData: function(res) { // 数据解析回调函数
  1211. // 在这里可以获取数据总数
  1212. allcount = res.count;
  1213. return {
  1214. code: res.code, // 数据状态码
  1215. msg: res.msg, // 状态信息
  1216. count: res.count, // 数据总数
  1217. data: res.data // 当前页数据
  1218. };
  1219. },
  1220. cols: [
  1221. [{field: 'id', title: '编号', align: 'center', width: 80,
  1222. templet: function(d){
  1223. return allcount - (d.LAY_NUM-1);
  1224. }
  1225. }, {
  1226. field: 'nickname',
  1227. title: '联系人',
  1228. align: 'center',
  1229. }, {
  1230. field: 'mobile',
  1231. title: '电话',
  1232. align: 'center',
  1233. }, {
  1234. field: 'email',
  1235. title: '电子邮箱',
  1236. align: 'center',
  1237. }]
  1238. ]
  1239. });
  1240. layui.cp_head = table.render({
  1241. elem: '#cp_head',
  1242. title: '联系人',
  1243. url: '/admin/index/cp_head',
  1244. page: false,
  1245. limit: 20,
  1246. parseData: function(res) { // 数据解析回调函数
  1247. // 在这里可以获取数据总数
  1248. allcount = res.count;
  1249. return {
  1250. code: res.code, // 数据状态码
  1251. msg: res.msg, // 状态信息
  1252. count: res.count, // 数据总数
  1253. data: res.data // 当前页数据
  1254. };
  1255. },
  1256. cols: [
  1257. [{fixed: 'left', field: 'id', title: '编号', align: 'center', width: 80,
  1258. templet: function(d){
  1259. return allcount - (d.LAY_NUM-1);
  1260. }
  1261. }, {
  1262. field: 'title',
  1263. title: '单位名称',
  1264. align: 'center',
  1265. },{
  1266. field: 'type',
  1267. title: '单位类型',
  1268. align: 'center',
  1269. templet:function (d) {
  1270. var h="";
  1271. if(d.type==1){
  1272. h="送审单位";
  1273. }else {
  1274. h="委托单位";
  1275. }
  1276. return h;
  1277. }
  1278. }, {
  1279. field: 'nickname',
  1280. title: '联系人',
  1281. align: 'center',
  1282. }, {
  1283. field: 'mobile',
  1284. title: '电话',
  1285. align: 'center',
  1286. }, {
  1287. field: 'email',
  1288. title: '电子邮箱',
  1289. align: 'center',
  1290. },
  1291. ]
  1292. ]
  1293. });
  1294. form.on('submit(webform)', function (data) {
  1295. console.log(data.field)
  1296. layui.peopleTable.reload({ where: data.field });
  1297. layui.cp_head.reload({ where: data.field });
  1298. return false;
  1299. });
  1300. form.on('submit(reset1)', function () {
  1301. $('[name="nickname"]').val("");
  1302. layui.peopleTable.reload({where:{}});
  1303. layui.cp_head.reload({where:{}});
  1304. return false;
  1305. });
  1306. form.on('submit(project_reset)', function () {
  1307. $('[name="keyword"]').val("");
  1308. $('[name="entrust_maker_name"]').val("");
  1309. layui.costProjectTable.reload({where:{}});
  1310. return false;
  1311. });
  1312. form.on('submit(project_search)', function (data) {
  1313. layui.costProjectTable.reload({
  1314. where: data.field,
  1315. });
  1316. return false;
  1317. });
  1318. }
  1319. </script>
  1320. <script src="{__GOUGU__}/layui/layui.js"></script>
  1321. <script>
  1322. layui.use(function () {
  1323. var layer = layui.layer;
  1324. var form = layui.form;
  1325. var laydate = layui.laydate;
  1326. var util = layui.util;
  1327. laydate.render({
  1328. elem: '#test2',
  1329. position: 'static',
  1330. theme: '#1A75FF',
  1331. calendar: 'true',
  1332. showBottom: false,
  1333. });
  1334. });
  1335. </script>
  1336. <script>
  1337. window.onbeforeunload = onbeforeunload_handlder;
  1338. window.onunload = onunload_handler;
  1339. function onbeforeunload_handlder() {
  1340. var warning = "消息页面";
  1341. return warning;
  1342. }
  1343. function onunload_handler() {
  1344. var warning = "消息页面";
  1345. alert(warning);
  1346. }
  1347. </script>
  1348. <!-- 弹窗 -->
  1349. <!--显示实时年份-->
  1350. <script>
  1351. `use strict`
  1352. var datetime = new Date().getFullYear();
  1353. console.log(datetime); // it will represent date in the console of developers tool
  1354. document.getElementById("time1").textContent = datetime; //it will print on html page
  1355. document.getElementById("time2").textContent = datetime;
  1356. </script>
  1357. {/block}
  1358. <!-- /脚本 -->