logisticsAssets.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704
  1. <template>
  2. <div class="main-data logistics-assets-operation" @click="showAssets" @mouseover="showAssets">
  3. <!-- <div class="title-area">后勤资产</div> -->
  4. <div class="content-area">
  5. <div class="dialog-left">
  6. <div class="dialog-list">
  7. <div class="dialog-item wid100">
  8. <div class="content-title">
  9. <span class="title">赋码贴签</span>
  10. </div>
  11. <div class="content">
  12. <div class="device-cont">
  13. <div class="device-info">
  14. <div class="device-item1">
  15. <img src="@/assets/images/logistics_guarantee/boxhigh.png" class="icon" alt="" />
  16. <div class="rate">
  17. <div class="rate-data">
  18. <div class="data">100</div>
  19. <div class="unit">%</div>
  20. </div>
  21. <div class="desc">赋码率</div>
  22. </div>
  23. </div>
  24. <div class="device-item1">
  25. <img src="@/assets/images/logistics_guarantee/boxhigh.png" class="icon" alt="" />
  26. <div class="rate">
  27. <div class="rate-data">
  28. <div class="data">100</div>
  29. <div class="unit">%</div>
  30. </div>
  31. <div class="desc">贴签率</div>
  32. </div>
  33. </div>
  34. <div class="device-item1">
  35. <pie-chart
  36. position="left"
  37. :chart-data="pieData"
  38. :legend="pieLegend"
  39. :center="['35%','40%']"
  40. width="220px"
  41. height="180px"
  42. />
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. <div class="dialog-list">
  50. <div class="dialog-item wid100">
  51. <div class="content-title">
  52. <span class="title">资产台账</span>
  53. </div>
  54. <div class="content">
  55. <div class="leftNav">
  56. <div
  57. :class="['model', 0 == curIndex ? 'cur' : '']"
  58. @click="chooseTab(0, 'main')"
  59. >
  60. 楼宇资产占比
  61. </div>
  62. <div
  63. :class="['model', 1 == curIndex ? 'cur' : '']"
  64. @click="chooseTab(1, 'service')"
  65. >
  66. 服务资产占比
  67. </div>
  68. <div
  69. :class="['model', 2 == curIndex ? 'cur' : '']"
  70. @click="chooseTab(2, 'logistics')"
  71. >
  72. 办公资产占比
  73. </div>
  74. </div>
  75. <div class="device-item1" v-if="showTab === 'main'">
  76. <pie-chart
  77. position="left"
  78. :chart-data="lyData"
  79. :legend="lyLegend"
  80. :center="['30%','60%']"
  81. width="400px"
  82. height="180px"
  83. />
  84. </div>
  85. <div class="device-item1" v-else-if="showTab === 'service'">
  86. <pie-chart
  87. position="left"
  88. :chart-data="fwData"
  89. :legend="fwLegend"
  90. :center="['30%','60%']"
  91. width="400px"
  92. height="180px"
  93. />
  94. </div>
  95. <div class="device-item1" v-else-if="showTab === 'logistics'">
  96. <pie-chart
  97. position="left"
  98. :chart-data="bgData"
  99. :legend="bgLegend"
  100. :center="['30%','60%']"
  101. width="400px"
  102. height="180px"
  103. />
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108. <div class="content">
  109. <div class="total-cont">
  110. <span class="title">资产存量</span>
  111. </div>
  112. <div class="rightList1">
  113. <div class="left-list">
  114. <div class="left-info">
  115. <div class="name">
  116. <div> <img src="@/assets/images/service_new/liveSwin.png"></div>
  117. <div>楼宇</div>
  118. </div>
  119. <div class="num">56<span class="unit">m²</span></div>
  120. </div>
  121. </div>
  122. <div class="left-list">
  123. <div class="left-info">
  124. <div class="name">
  125. <div> <img src="@/assets/images/service_new/liveSwin.png"></div>
  126. <div>服务</div>
  127. </div>
  128. <div class="num">51<span class="unit">m²</span></div>
  129. </div>
  130. </div>
  131. <div class="left-list">
  132. <div class="left-info">
  133. <div class="name">
  134. <div> <img src="@/assets/images/service_new/liveSwin.png"></div>
  135. <div>办公</div>
  136. </div>
  137. <div class="num">48<span class="unit">m²</span></div>
  138. </div>
  139. </div>
  140. </div>
  141. </div>
  142. <div class="content">
  143. <div class="total-cont">
  144. <span class="title">资产新增数量</span>
  145. </div>
  146. <div class="rightList1">
  147. <div class="left-list">
  148. <div class="left-info">
  149. <div class="name">
  150. <div> <img src="@/assets/images/service_new/liveSwin.png"></div>
  151. <div>楼宇</div>
  152. </div>
  153. <div class="num">56<span class="unit">m²</span></div>
  154. </div>
  155. </div>
  156. <div class="left-list">
  157. <div class="left-info">
  158. <div class="name">
  159. <div> <img src="@/assets/images/service_new/liveSwin.png"></div>
  160. <div>服务</div>
  161. </div>
  162. <div class="num">51<span class="unit">m²</span></div>
  163. </div>
  164. </div>
  165. <div class="left-list">
  166. <div class="left-info">
  167. <div class="name">
  168. <div> <img src="@/assets/images/service_new/liveSwin.png"></div>
  169. <div>办公</div>
  170. </div>
  171. <div class="num">48<span class="unit">m²</span></div>
  172. </div>
  173. </div>
  174. </div>
  175. </div>
  176. <div class="content">
  177. <div class="total-cont">
  178. <span class="title">资产报废数量</span>
  179. </div>
  180. <div class="rightList1">
  181. <div class="left-list">
  182. <div class="left-info">
  183. <div class="name">
  184. <div> <img src="@/assets/images/service_new/liveSwin.png"></div>
  185. <div>楼宇</div>
  186. </div>
  187. <div class="num">56<span class="unit">m²</span></div>
  188. </div>
  189. </div>
  190. <div class="left-list">
  191. <div class="left-info">
  192. <div class="name">
  193. <div> <img src="@/assets/images/service_new/liveSwin.png"></div>
  194. <div>服务</div>
  195. </div>
  196. <div class="num">51<span class="unit">m²</span></div>
  197. </div>
  198. </div>
  199. <div class="left-list">
  200. <div class="left-info">
  201. <div class="name">
  202. <div> <img src="@/assets/images/service_new/liveSwin.png"></div>
  203. <div>办公</div>
  204. </div>
  205. <div class="num">48<span class="unit">m²</span></div>
  206. </div>
  207. </div>
  208. </div>
  209. </div>
  210. </div>
  211. </div>
  212. </div>
  213. </template>
  214. <script>
  215. import LineChart from "@/components/Echarts/LineChart.vue";
  216. import PieChart from "@/components/Echarts/PieChart.vue";
  217. import BarChart from "@/components/Echarts/BarChart.vue";
  218. import echarts from "echarts";
  219. export default {
  220. name: "LogisticsAssets",
  221. components: {BarChart, PieChart, LineChart},
  222. props: {
  223. appOrg: {
  224. type: String,
  225. default: "0000",
  226. },
  227. },
  228. watch:{
  229. appOrg(newValue,oldValue){
  230. this.show = false;
  231. setTimeout(()=>{
  232. this.show = true;
  233. },0)
  234. },
  235. },
  236. data() {
  237. return {
  238. curIndex: 0,
  239. showTab: "main",
  240. pieData: [
  241. { value: 24.15, name: "楼宇" },
  242. { value: 24.15, name: "办公" },
  243. { value: 24.15, name: "服务" },
  244. ],
  245. pieLegend: {
  246. top: 25,
  247. orient: "vertical",
  248. right: 15,
  249. itemWidth: 8, // 设置图例标记的宽度
  250. itemHeight: 8, // 设置图例标记的高度
  251. textStyle: {
  252. color: "#FFF",
  253. },
  254. },
  255. //楼宇资产占比
  256. lyData: [
  257. { value: 24.15, name: "电梯" },
  258. { value: 24.15, name: "电气" },
  259. { value: 44.15, name: "楼宇通风" },
  260. { value: 24.15, name: "供热采暖" },
  261. { value: 24.15, name: "消防" },
  262. { value: 24.15, name: "给排水" },
  263. ],
  264. lyLegend: {
  265. top: 25,
  266. orient: "vertical",
  267. left: 200,
  268. itemWidth: 8, // 设置图例标记的宽度
  269. itemHeight: 8, // 设置图例标记的高度
  270. textStyle: {
  271. color: "#FFF",
  272. },
  273. },
  274. //服务资产占比
  275. fwData: [
  276. { value: 24.15, name: "电梯" },
  277. { value: 24.15, name: "电气" },
  278. { value: 44.15, name: "楼宇通风" },
  279. // { value: 24.15, name: "供热采暖" },
  280. // { value: 24.15, name: "消防" },
  281. // { value: 24.15, name: "给排水" },
  282. ],
  283. fwLegend: {
  284. top: 25,
  285. orient: "vertical",
  286. left: 200,
  287. itemWidth: 8, // 设置图例标记的宽度
  288. itemHeight: 8, // 设置图例标记的高度
  289. textStyle: {
  290. color: "#FFF",
  291. },
  292. },
  293. //办公资产占比
  294. bgData: [
  295. { value: 24.15, name: "电梯" },
  296. { value: 24.15, name: "电气" },
  297. { value: 44.15, name: "楼宇通风" },
  298. { value: 24.15, name: "供热采暖" },
  299. ],
  300. bgLegend: {
  301. top: 25,
  302. orient: "vertical",
  303. left: 200,
  304. itemWidth: 8, // 设置图例标记的宽度
  305. itemHeight: 8, // 设置图例标记的高度
  306. textStyle: {
  307. color: "#FFF",
  308. },
  309. },
  310. };
  311. },
  312. created() {
  313. },
  314. destroyed() {},
  315. beforeDestroy() {},
  316. mounted() {},
  317. methods: {
  318. //切换菜单
  319. chooseTab(index) {
  320. this.curIndex = index;
  321. this.showTab = this.tabs[index].tab;
  322. },
  323. //点击显示
  324. showAssets(){
  325. this.$emit('onClick')
  326. }
  327. },
  328. };
  329. </script>
  330. <style lang="scss">
  331. .logistics-assets-operation {
  332. .content-area {
  333. display: flex;
  334. padding: 15px 20px 0 15px;
  335. align-items: flex-start;
  336. justify-content: space-between;
  337. }
  338. // .content-title {
  339. // width: 230px;
  340. // height: 26px;
  341. // background: url("../../../assets/images/main/title_pro.png") no-repeat;
  342. // background-size: 100% 100%;
  343. // font-family: "PingFangSC";
  344. // font-size: 14px;
  345. // font-weight: bold;
  346. // color: #00ffff;
  347. // padding-left: 17px;
  348. // .title {
  349. // display: block;
  350. // }
  351. // }
  352. .content-title {
  353. width: 230px;
  354. height: 26px;
  355. background: url("../../../assets/images/main/title_pro_long.png") no-repeat !important;
  356. background-size: 100% 100%;
  357. font-family: "PingFangSC";
  358. font-size: 16px;
  359. font-weight: bold;
  360. color: #00ffff;
  361. padding-left: 20px !important;
  362. .title {
  363. display: block;
  364. position: relative;
  365. top:-5px !important;
  366. }
  367. }
  368. .content-title.long {
  369. width: 100%;
  370. background: url("../../../assets/images/main/title_pro_long.png") no-repeat !important;
  371. }
  372. .title-format {
  373. display: flex;
  374. flex-direction: row;
  375. align-items: center;
  376. img {
  377. width: 6px;
  378. height: 24px;
  379. margin-right: 6px;
  380. }
  381. .title-info {
  382. display: flex;
  383. flex-direction: column;
  384. font-size: 12px;
  385. color: #ffffff;
  386. .title-en {
  387. font-size: 8px;
  388. color: #ffffff;
  389. opacity: 0.4;
  390. }
  391. }
  392. }
  393. .tab-cont {
  394. width: 100%;
  395. display: flex;
  396. align-items: center;
  397. padding-left: 15px;
  398. padding-bottom: 15px;
  399. padding-top:10px;
  400. .tab-list {
  401. width: 98px;
  402. height: 30px;
  403. background: url("../../../assets/images/logistics_guarantee/img_2.png")
  404. no-repeat;
  405. background-size: 100% 100%;
  406. font-family: "PingFangSC";
  407. font-size: 14px;
  408. font-weight: 500;
  409. color: #00ffff;
  410. padding-left: 15px;
  411. line-height: 30px;
  412. }
  413. .tab-list:last-child {
  414. margin-left: 15px;
  415. }
  416. }
  417. .total-cont{
  418. width: 100%;
  419. height: 35px;
  420. background: url("../../../assets/images/main/lightLone.png") no-repeat;
  421. background-size: 100% 100%;
  422. font-family: "PingFangSC";
  423. font-size: 14px;
  424. font-weight: bold;
  425. color: #ffffff;
  426. padding-left: 25px;
  427. padding-top: 8px;
  428. .line{
  429. width: 1px;
  430. height: 45px;
  431. opacity: 1;
  432. background: rgba(25, 252, 222, 0.2);
  433. }
  434. .total-list{
  435. width:auto;
  436. .total-top{
  437. display: flex;
  438. align-items: center;
  439. .img{
  440. display: block;
  441. width: 14px !important;
  442. height: 14px !important;
  443. }
  444. .total-top-info{
  445. padding-left: 6px;
  446. .name{
  447. font-size:14px;
  448. color:#FFFFFF;
  449. }
  450. .desc{
  451. font-size:8px;
  452. color:#FFFFFF;
  453. opacity: 0.4;
  454. }
  455. }
  456. }
  457. .total-bot{
  458. width:100%;
  459. padding-top:6px;
  460. display: flex;
  461. align-items: center;
  462. .num-list{
  463. display: flex;
  464. align-items: center;
  465. padding-right:15px;
  466. .num{
  467. font-size: 26px;
  468. color: #00FFFF;
  469. font-weight: bold;
  470. font-family: "electronicFont";
  471. }
  472. .unit{
  473. font-size: 12px;
  474. color: #00FFFF;
  475. font-weight: 500;
  476. position: relative;
  477. top:3px;
  478. left:2px;
  479. }
  480. }
  481. .num-list:last-child{
  482. padding-right: 0;
  483. }
  484. }
  485. }
  486. }
  487. .charts-cont{
  488. width:100%;
  489. padding-top:20px;
  490. }
  491. .device-cont{
  492. width:100%;
  493. padding:10px 15px 0 15px;
  494. .title{
  495. font-size: 14px;
  496. color: #FFFFFF;
  497. font-weight: bold;
  498. }
  499. .device-info{
  500. display: flex;
  501. justify-content: space-between;
  502. align-items: center;
  503. padding-top:15px;
  504. .device-item1 {
  505. position: relative;
  506. img {
  507. width: 95px;
  508. height: 88px;
  509. }
  510. .rate {
  511. display: flex;
  512. flex-direction: column;
  513. align-items: center;
  514. justify-content: center;
  515. width: 100%;
  516. position: absolute;
  517. top: -10px;
  518. left: 2px;
  519. color: #fff;
  520. .rate-data {
  521. display: flex;
  522. flex-direction: row;
  523. align-items: baseline;
  524. color: #00ffff;
  525. .data {
  526. font-size: 35px;
  527. font-family: "electronicFont";
  528. text-shadow:
  529. 0px 0px 0 #bbb,
  530. -1px -1px 0 #bbb,
  531. 0px -1px 0 #bbb,
  532. -1px 1px 0 #bbb;
  533. transform: translateZ(1px);
  534. transform: translate3d(0, 0, 1px);
  535. }
  536. .unit {
  537. font-size: 12px;
  538. }
  539. }
  540. .desc {
  541. font-size: 14px;
  542. text-align: center;
  543. margin-top: 18px;
  544. }
  545. }
  546. }
  547. }
  548. }
  549. .content {
  550. margin-top: 10px;
  551. padding-left: 20px;
  552. }
  553. .dialog-left{
  554. width: 520px;
  555. float: left;
  556. }
  557. .dialog-list{
  558. width: 100%;
  559. display: flex;
  560. justify-content: space-between !important;
  561. margin-bottom:20px;
  562. .dialog-item{
  563. width: calc(50% - 20px);
  564. }
  565. .dialog-item-cont{
  566. display: flex;
  567. justify-content: center;
  568. align-items: center;
  569. margin-top:40px;
  570. }
  571. .wid100{
  572. width:100%;
  573. .content-title{
  574. width:100%;
  575. background: url("../../../assets/images/main/title_pro_long.png") no-repeat;
  576. }
  577. }
  578. }
  579. //左边菜单
  580. .rightList1{
  581. display: flex;
  582. flex-wrap: wrap;
  583. padding: 15px;
  584. .left-list{
  585. display: flex;
  586. align-items: center;
  587. margin-bottom: 15px;
  588. margin-right: 60px;
  589. img{
  590. display: block;
  591. width:20px;
  592. height:20px;
  593. margin-right: 5px;
  594. }
  595. .left-info{
  596. padding-left:12px;
  597. .num{
  598. font-size: 30px;
  599. color:#00FFFF;
  600. font-family: "electronicFont";
  601. display: flex;
  602. flex-direction: row;
  603. align-items: baseline;
  604. .unit{
  605. font-size: 12px;
  606. }
  607. }
  608. .name{
  609. display: flex;
  610. font-size: 14px;
  611. color:#FFFFFF;
  612. font-family: 'fashionZh';
  613. padding-top:4px;
  614. }
  615. }
  616. }
  617. }
  618. .leftNav{
  619. display: flex;
  620. .model {
  621. margin-right: 15px;
  622. width: 130px;
  623. height: 45px;
  624. line-height: 30px;
  625. text-align: center;
  626. font-family: "PingFangSc";
  627. font-size: 14px;
  628. font-weight: bold;
  629. background: url("../../../assets/images/main/choose_bg_long.png") no-repeat;
  630. // background-size: 95% 95%;
  631. color: #CED6D6;
  632. cursor: pointer;
  633. }
  634. .model:last-child {
  635. margin-right: 0;
  636. }
  637. .cur {
  638. color: #05FEFE;
  639. // background: url("../../../../assets/images/main/menu_chooe.png") no-repeat;
  640. }
  641. }
  642. ::-webkit-scrollbar-thumb {
  643. //滑块部分
  644. // border-radius: 5px;
  645. background-color: #58cbbb;
  646. }
  647. ::-webkit-scrollbar-track {
  648. //轨道部分
  649. // box-shadow: inset 0 0 5px #ddd;
  650. background: #ddd;
  651. // border-radius: 5px;
  652. }
  653. .unit-label{
  654. color: rgba(255,255,255,0) !important;
  655. }
  656. }
  657. </style>