electronicMonitoring.vue 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672
  1. <template>
  2. <view>
  3. <view class="background">
  4. <!-- 日期选择器 -->
  5. <u-picker-select title="日期选择" v-model="tabsFrom.show2" :defaultTime="tabsFrom.show2Index" :endYear="endYear"
  6. mode="time" :params="params" :noselect="false" @confirm="selector2confirm" @cancel="selector2cancel"
  7. @reset="selector2reset">
  8. </u-picker-select>
  9. <view class="navbar-c">
  10. <view class="back" @click="backDataMonitoringList">
  11. <u-icon name="arrow-left" color="#fff" size="36"></u-icon>
  12. </view>
  13. <view class="title" @click="titleCk">
  14. {{tabsFrom.title}}
  15. <u-icon name="arrow-down" color="#fff" size="24"></u-icon>
  16. </view>
  17. </view>
  18. </view>
  19. <!-- 设备选择器 -->
  20. <u-select title="设备选择" v-model="tabsFrom.show1" mode="mutil-column-auto" :list="tabsFrom.selector1"
  21. @confirm="selector1confirm" cancel-text="重置" @cancel="selector1cancel">
  22. </u-select>
  23. <!-- 用电量 -->
  24. <view class="electricity-consumption">
  25. <!-- <view class="title">
  26. 用电量统计 (度)
  27. </view> -->
  28. <!-- <view class="degree">
  29. <view class="item">
  30. <view class="item-text">
  31. 百万
  32. </view>
  33. <view class="item-number" v-text="showTop[0]">
  34. 0
  35. </view>
  36. </view>
  37. <view class="item">
  38. <view class="item-text">
  39. 拾万
  40. </view>
  41. <view class="item-number" v-text="showTop[1]">
  42. 0
  43. </view>
  44. </view>
  45. <view class="item">
  46. <view class="item-text">
  47. </view>
  48. <view class="item-number" v-text="showTop[2]">
  49. 0
  50. </view>
  51. </view>
  52. <view class="item">
  53. <view class="item-text">
  54. </view>
  55. <view class="item-number" v-text="showTop[3]">
  56. 0
  57. </view>
  58. </view>
  59. <view class="item">
  60. <view class="item-text">
  61. </view>
  62. <view class="item-number" v-text="showTop[4]">
  63. 0
  64. </view>
  65. </view>
  66. <view class="item">
  67. <view class="item-text">
  68. </view>
  69. <view class="item-number" v-text="showTop[5]">
  70. 7
  71. </view>
  72. </view>
  73. <view class="item">
  74. <view class="item-text">
  75. 1
  76. </view>
  77. <view class="item-number" v-text="showTop[6]">
  78. 7
  79. </view>
  80. </view>
  81. <view class="item">
  82. <view class="item-text">
  83. 0.1
  84. </view>
  85. <view class="item-number decimal" v-text="showTop[7]">
  86. 7
  87. </view>
  88. </view>
  89. </view> -->
  90. <!-- 统计 -->
  91. <view class="statistics-content">
  92. <view class="statistics-item">
  93. <view class="item-title">
  94. <image class="img" src="@/assets/img/meterStatistics@3x.png"></image>电量统计(度)
  95. </view>
  96. <view class="item-value">
  97. {{electricity}}
  98. </view>
  99. </view>
  100. <view class="statistics-item" >
  101. <view class="item-title item-title2">
  102. <image class="img" src="@/assets/img/electricityStatistics@3x.png"></image>电费统计(元)
  103. </view>
  104. <view class="item-value">
  105. {{fee}}
  106. </view>
  107. </view>
  108. </view>
  109. <view class="radio">
  110. <u-radio-group v-model="value" @change="radioGroupChange">
  111. <u-radio @change="radioChange" v-for="(item, index) in list" :key="index" :name="item.id"
  112. :disabled="item.disabled">
  113. {{item.name}}
  114. </u-radio>
  115. </u-radio-group>
  116. </view>
  117. </view>
  118. <!-- 各时段用电量 -->
  119. <view class="electricity-chart">
  120. <view class="title">
  121. <view class="icon">
  122. </view>
  123. <view class="text">
  124. 各时段电量 (度)
  125. </view>
  126. <view class="more" @click="tabsFrom.show2=true,params.day=true">
  127. {{queryDay}}<u-icon name="arrow-down" color="#bbbbbb"></u-icon>
  128. </view>
  129. </view>
  130. <view class="chart">
  131. <view id="barEcharts" style="min-height:440rpx;">
  132. </view>
  133. </view>
  134. <view class="total" >
  135. <view class="total-item">
  136. 电量合计:{{sumQuantity}}度
  137. </view>
  138. <view class="total-item">
  139. 电费合计:{{sumFee}}元
  140. </view>
  141. </view>
  142. </view>
  143. <!-- 异常波动 -->
  144. <view class="abnormal" v-if="abnormalRecordsList.length != 0">
  145. <view class="headline">
  146. <view class="title">
  147. <view class="icon">
  148. </view>
  149. <view class="text">
  150. 异常告警
  151. </view>
  152. </view>
  153. <view class="more" @click="gotoUrl('/pages/abnormal/abnormalAlarmRecord?id='+companyId)">
  154. 查看全部
  155. <u-icon name="arrow-right" size="24" color="#d4d4d4"></u-icon>
  156. </view>
  157. </view>
  158. <view class="details">
  159. <view class="item" v-for="(item, index) in abnormalRecordsList" :key="index"
  160. @click="gotoUrl('/pages/abnormal/abnormalAlarmDetails?id='+item.id)">
  161. <view class="name">
  162. {{item.configName}}
  163. </view>
  164. <view class="time">
  165. {{item.createTime}}
  166. <!-- 箭头 -->
  167. <view class="more">
  168. <u-icon name="arrow-right" color="#acacac" size="24"></u-icon>
  169. </view>
  170. </view>
  171. </view>
  172. </view>
  173. </view>
  174. <!-- 能源监测 -->
  175. <view class="energy-inspection">
  176. <view class="title">
  177. <view class="icon">
  178. </view>
  179. <view class="text">
  180. 能源监测
  181. </view>
  182. </view>
  183. <view class="grid">
  184. <u-grid :col="3" :border="false">
  185. <u-grid-item @click="gotoInfo('3PhaseCurrentDetails','A','三相电流')">
  186. <view class="icon icon1">
  187. <image class="img" src="@/assets/img/Image@1.png" mode=""></image>
  188. </view>
  189. <view class="grid-text">三相电流</view>
  190. </u-grid-item>
  191. <u-grid-item @click="gotoInfo('3PhaseCurrentDetails','V','三相电压')">
  192. <view class="icon icon2">
  193. <image class="img" src="@/assets/img/Image@2.png" mode=""></image>
  194. </view>
  195. <view class="grid-text">三相电压</view>
  196. </u-grid-item>
  197. <u-grid-item @click="gotoInfo('3PhaseCurrentDetails','T','三相温度')">
  198. <view class="icon icon3">
  199. <image class="img" src="@/assets/img/Image@3.png" mode=""></image>
  200. </view>
  201. <view class="grid-text">三相温度</view>
  202. </u-grid-item>
  203. <u-grid-item @click="gotoInfo('3PhaseCurrentDetails','P','三相有功功率')">
  204. <view class="icon icon4">
  205. <image class="img" src="@/assets/img/Image@4.png" mode=""></image>
  206. </view>
  207. <view class="grid-text">三相有功功率</view>
  208. </u-grid-item>
  209. <u-grid-item @click="gotoInfo('3PhaseCurrentDetails','F','三相功率因数')">
  210. <view class="icon icon5">
  211. <image class="img" src="@/assets/img/Image@5.png" mode=""></image>
  212. </view>
  213. <view class="grid-text">三相功率因数</view>
  214. </u-grid-item>
  215. <u-grid-item @click="gotoInfo('3PhaseCurrentDetails','AF','平均功率因数')">
  216. <view class="icon icon6">
  217. <image class="img" src="@/assets/img/Image@5.png" mode=""></image>
  218. </view>
  219. <view class="grid-text">平均功率因数</view>
  220. </u-grid-item>
  221. </u-grid>
  222. </view>
  223. </view>
  224. <!-- 数据分析 -->
  225. <view class="data-analysis">
  226. <view class="title">
  227. <view class="icon">
  228. </view>
  229. <view class="text">
  230. 数据分析
  231. </view>
  232. </view>
  233. <view class="grid">
  234. <u-grid :col="3" :border="false">
  235. <u-grid-item @click="gotoInfo('chartYoY','','')">
  236. <view class="icon icon7">
  237. <image class="img" src="@/assets/img/Image@7.png" mode=""></image>
  238. </view>
  239. <view class="grid-text">同比分析</view>
  240. </u-grid-item>
  241. <u-grid-item @click="gotoInfo('chartMoM','','')">
  242. <view class="icon icon8">
  243. <image class="img" src="@/assets/img/Image@8.png" mode=""></image>
  244. </view>
  245. <view class="grid-text">环比分析</view>
  246. </u-grid-item>
  247. <u-grid-item @click="gotoUrl('/pages/equipmentDataMonitoring/electricityStatistics?id='+meterId)">
  248. <view class="icon icon9">
  249. <image class="img" src="@/assets/img/Image@9.svg" mode=""></image>
  250. </view>
  251. <view class="grid-text">用电统计</view>
  252. </u-grid-item>
  253. </u-grid>
  254. </view>
  255. </view>
  256. <!-- 设备信息 -->
  257. <view class="equipment-information">
  258. <view class="title">
  259. <view class="icon">
  260. </view>
  261. <view class="text">
  262. 设备信息
  263. </view>
  264. <view class="more" @click="equipmentInfosShow=true">
  265. 查看全部<u-icon name="arrow-right" size="24" color="#d4d4d4"></u-icon>
  266. </view>
  267. </view>
  268. <view class="infos">
  269. <view class="item" style="width: 30%;">
  270. <view class="item-title">
  271. 设备类型
  272. </view>
  273. <view class="item-value">
  274. {{meterDetail.deviceTypeN}}
  275. </view>
  276. </view>
  277. <view class="border">
  278. </view>
  279. <view class="item" style="width: 30%;">
  280. <view class="item-title">
  281. 设备编号
  282. </view>
  283. <view class="item-value">
  284. {{meterDetail.deviceNo}}
  285. </view>
  286. </view>
  287. <view class="border">
  288. </view>
  289. <view class="item" style="width: 30%;">
  290. <view class="item-title">
  291. 设备地址
  292. </view>
  293. <view class="item-value">
  294. {{meterDetail.installationAddressSimple}}
  295. </view>
  296. </view>
  297. </view>
  298. </view>
  299. <!-- 设备信息弹窗 -->
  300. <view class="equipment-popup">
  301. <u-popup v-model="equipmentInfosShow" mode="bottom" border-radius="12">
  302. <view class="content">
  303. <view class="headline">
  304. 设备信息
  305. </view>
  306. <view class="infos">
  307. <view class="item">
  308. <view class="item-title">
  309. 设备名称
  310. </view>
  311. <view class="item-value">
  312. {{meterDetail.name}}
  313. </view>
  314. </view>
  315. <view class="item">
  316. <view class="item-title">
  317. 设备类型
  318. </view>
  319. <view class="item-value">
  320. {{meterDetail.deviceTypeN}}
  321. </view>
  322. </view>
  323. <view class="item">
  324. <view class="item-title">
  325. 设备编号
  326. </view>
  327. <view class="item-value">
  328. {{meterDetail.deviceNo}}
  329. </view>
  330. </view>
  331. <view class="item">
  332. <view class="item-title">
  333. 产权单位
  334. </view>
  335. <view class="item-value">
  336. {{meterDetail.companyFullName}}
  337. </view>
  338. </view>
  339. <view class="item" @click="toMeterLocation">
  340. <view class="item-title">
  341. 设备地址
  342. </view>
  343. <view class="item-value">
  344. <span>{{meterDetail.installationAddress}}</span>
  345. <image class="img" src="@/assets/img/riFill-navigation-fill 1.svg"></image>
  346. </view>
  347. </view>
  348. <view class="item">
  349. <view class="item-title">
  350. 地址简称
  351. </view>
  352. <view class="item-value">
  353. {{meterDetail.installationAddressSimple}}
  354. </view>
  355. </view>
  356. <view class="item">
  357. <view class="item-title">
  358. 使用单位
  359. </view>
  360. <view class="item-value">
  361. {{meterDetail.customer}}
  362. </view>
  363. </view>
  364. <view class="item">
  365. <view class="item-title">
  366. 上线时间
  367. </view>
  368. <view class="item-value">
  369. {{meterDetail.enablingTime}}
  370. </view>
  371. </view>
  372. </view>
  373. <button class="get" @click="equipmentInfosShow=false">知道了</button>
  374. </view>
  375. </u-popup>
  376. </view>
  377. <!-- 故障上报 -->
  378. <view class="create-order" v-if="false">
  379. <view class="img-box">
  380. <image class="img" src="@/assets/img/fas fa-exclamation-triangle Copy 2@3x.png" mode=""></image>
  381. </view>
  382. <view class="text">
  383. 故障上报
  384. </view>
  385. </view>
  386. </view>
  387. </template>
  388. <script>
  389. import {
  390. parseUnixTime,
  391. beforeTimeStamp,
  392. getWeek
  393. } from '@/apis/utils'
  394. import * as echarts from 'echarts';
  395. import * as API from '@/apis/pagejs/index.js'
  396. import * as API_electricityMeter from '@/apis/pagejs/electricityMeter.js'
  397. import * as WxJsApi from '@/apis/utils/wxJsApi.js'
  398. export default {
  399. data() {
  400. return {
  401. meterDetail: {}, //设备信息
  402. electricity: 0, //电量统计
  403. fee: 0, //电费统计
  404. abnormalRecordsList: [], //异常list
  405. companyId: '', //企业id
  406. meterId: '', //设备id
  407. titleName: '',
  408. clickType: -1,
  409. sumQuantity: 0,
  410. sumFee: 0,
  411. equipmentInfosShow: false,
  412. kWhList: [],
  413. queryDay: '',
  414. showTop: [0, 0, 0, 0, 0, 0, 0, 0],
  415. FormData: {
  416. queryDate: '',
  417. meterId: '',
  418. type: 0
  419. },
  420. FormData2: {
  421. queryDate: '',
  422. meterId: ''
  423. },
  424. myChart: null,
  425. endYear: '',
  426. equipmentShow: false,
  427. multiSelector: [],
  428. equipmentList: [],
  429. params: {
  430. year: true,
  431. month: true,
  432. day: true,
  433. hour: false,
  434. minute: false,
  435. second: false
  436. },
  437. tabsFrom: {
  438. show1: false,
  439. show1Index: 0,
  440. show2Index: '',
  441. show2: false,
  442. show1Text: "全部类型",
  443. show2Text: "全部时间",
  444. selector1: [{
  445. label: '全部类型',
  446. value: '',
  447. },
  448. {
  449. label: '线上充值',
  450. value: '1',
  451. },
  452. {
  453. label: '线下充值',
  454. value: '2',
  455. },
  456. ]
  457. },
  458. background: {
  459. backgroundColor: '#1677FF',
  460. },
  461. list: [{
  462. id: 1,
  463. name: '本月',
  464. disabled: false
  465. }, {
  466. id: 4,
  467. name: '今日',
  468. disabled: false
  469. }, {
  470. id: 2,
  471. name: '上月',
  472. disabled: false
  473. }, {
  474. id: 3,
  475. name: '本年',
  476. disabled: false
  477. }, {
  478. id: 0,
  479. name: '合计',
  480. disabled: false
  481. }, {
  482. id: 10,
  483. name: '指定月份',
  484. disabled: false
  485. }],
  486. value: '2',
  487. intervalId: null, // 用于存储间隔ID
  488. intervalReady: true, // 用于存储间隔ID
  489. };
  490. },
  491. onLoad(op) {
  492. if (op.id) {
  493. this.FormData.meterId = op.id;
  494. this.FormData2.meterId = op.id;
  495. this.tabsFrom.title = op.name;
  496. this.meterId = op.id;
  497. this.titleName = op.name;
  498. this.companyId = op.companyId;
  499. }
  500. this.endYear = new Date().getFullYear();
  501. this.FormData.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  502. this.FormData2.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  503. this.FormData.type = 2;
  504. this.getElectricityStatistics();
  505. this.getTimeSlotStatistics();
  506. this.getCompanyInfoList();
  507. this.getAbnormalAlarmRecord();
  508. this.getMeterDetails(this.meterId);
  509. },
  510. onReady() {
  511. WxJsApi.getWxConfig(['getLocation', 'openLocation', 'addEventListener', 'scanQRCode']).then((res) => {
  512. // //(res)
  513. }).catch(error => {
  514. //(res)
  515. })
  516. },
  517. beforeDestroy() {
  518. this.clearTimer(); // 组件销毁前清除定时器
  519. this.intervalReady = false;
  520. console.log("组件销毁前清除定时器")
  521. },
  522. methods: {
  523. toMeterLocation() {
  524. // WxJsApi.openLocation({
  525. // latitude: parseFloat(this.meterDetail.latitude), //目的地latitude
  526. // longitude: parseFloat(this.meterDetail.longitude), //目的地longitude
  527. // name: this.meterDetail.name,
  528. // address: this.meterDetail.installationAddress,
  529. // scale: 15, //地图缩放大小,可根据情况具体调整
  530. // success(res) {
  531. // uni.hideLoading()
  532. // },
  533. // complete() {
  534. // // uni.hideLoading()
  535. // }
  536. // });
  537. },
  538. getMeterDetails(meterId) {
  539. uni.showLoading({
  540. title: "加载中",
  541. mask: true,
  542. })
  543. API_electricityMeter.meterDetails({
  544. meterId: meterId
  545. }).then((res) => {
  546. uni.hideLoading();
  547. this.meterDetail = res.data.meter;
  548. }).catch(error => {
  549. uni.showToast({
  550. title: error,
  551. icon: "none"
  552. })
  553. })
  554. },
  555. clearTimer() {
  556. if (this.intervalId) {
  557. clearInterval(this.intervalId); // 清除定时器
  558. this.intervalId = null; // 重置定时器ID
  559. }
  560. },
  561. startInterval() {
  562. this.clearTimer(); // 组件销毁前清除定时器
  563. this.intervalId = setInterval(() => {
  564. // 每隔5秒运行的代码
  565. // console.log('这段代码每隔5秒运行一次');
  566. this.getElectricityStatistics(true)
  567. this.getTimeSlotStatistics(true)
  568. }, 60000);
  569. },
  570. gotoInfo(path, type, name) {
  571. if (!this.FormData.meterId) {
  572. uni.showToast({
  573. title: "未查询到电表",
  574. icon: "none"
  575. })
  576. return
  577. }
  578. uni.navigateTo({
  579. url: "/pages/equipmentDataMonitoring/" + path + "?id=" + this.FormData.meterId + "&type=" + type +
  580. "&typeName=" + name
  581. })
  582. },
  583. // 异常告警记录
  584. getAbnormalAlarmRecord() {
  585. var queryDate = parseUnixTime(new Date(), '{y}-{m}');
  586. uni.showLoading({
  587. title: "加载中",
  588. mask: true,
  589. })
  590. API.alarmRecord({
  591. queryDate: queryDate,
  592. configId: '',
  593. pageIndex: 1,
  594. pageSize: 2,
  595. companyId: this.companyId,
  596. meterId: this.meterId
  597. }).then((res) => {
  598. uni.hideLoading();
  599. this.abnormalRecordsList = res.data.data;
  600. }).catch(error => {
  601. uni.showToast({
  602. title: error,
  603. icon: "none"
  604. })
  605. })
  606. },
  607. titleCk() {
  608. this.tabsFrom.show1 = true
  609. },
  610. selector1confirm(e) {
  611. console.log(e)
  612. // var index = e[2];
  613. // this.tabsFrom.show1Index = index;
  614. if (e[2].value != null) {
  615. this.tabsFrom.show1Text = e[2].label;
  616. this.tabsFrom.title = e[2].label;
  617. this.FormData.meterId = e[2].value;
  618. this.FormData.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  619. this.FormData2.meterId = e[2].value;
  620. this.FormData2.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  621. //this.meterId =e[2].value;
  622. this.FormData.type = 2;
  623. this.value = '2';
  624. this.getTimeSlotStatistics();
  625. this.getElectricityStatistics();
  626. this.getMeterDetails(e[2].value);
  627. }
  628. },
  629. selector1cancel() {
  630. this.tabsFrom.show1Text = this.titleName;
  631. this.tabsFrom.title = this.titleName;
  632. this.FormData.meterId = this.meterId;
  633. this.FormData.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  634. this.FormData2.meterId = this.meterId;
  635. this.FormData2.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  636. this.FormData.type = 2;
  637. this.value = '2';
  638. this.getTimeSlotStatistics();
  639. this.getElectricityStatistics();
  640. this.getMeterDetails(this.meterId);
  641. },
  642. queryDate(queryTime, day) {
  643. if (day) {
  644. this.FormData2.queryDate = queryTime;
  645. //this.FormData2.type =day?"9":"10"
  646. //this.value="-1"
  647. this.getTimeSlotStatistics();
  648. } else {
  649. this.FormData.queryDate = queryTime + "-01";
  650. this.FormData.type = 10;
  651. this.value = "10";
  652. this.list[5].name = queryTime;
  653. this.getElectricityStatistics();
  654. }
  655. },
  656. getCompanyInfoList() {
  657. uni.showLoading({
  658. title: "加载中",
  659. mask: true,
  660. })
  661. API.deviceCompanyList().then((response) => {
  662. uni.hideLoading();
  663. var list = response.data.companyInfoList;
  664. this.tabsFrom.selector1 = [];
  665. this.tabsFrom.selector1 = list.map(item => {
  666. if (item.remoteReadingMeterList.length != 0 && item.remoteMonitorMeterList.length != 0) {
  667. return {
  668. label: item.name,
  669. value: item.id,
  670. children: [{
  671. label: '抄表',
  672. value: '1',
  673. children: item.remoteReadingMeterList.map(item => {
  674. return {
  675. label: item.name,
  676. value: item.id,
  677. }
  678. })
  679. },
  680. {
  681. label: '监控表',
  682. value: '1',
  683. children: item.remoteMonitorMeterList.map(item => {
  684. return {
  685. label: item.name,
  686. value: item.id,
  687. }
  688. })
  689. }
  690. ]
  691. }
  692. } else if (item.remoteReadingMeterList.length != 0 && item.remoteMonitorMeterList.length == 0) {
  693. return {
  694. label: item.name,
  695. value: item.id,
  696. children: [{
  697. label: '抄表',
  698. value: '1',
  699. children: item.remoteReadingMeterList.map(item => {
  700. return {
  701. label: item.name,
  702. value: item.id,
  703. }
  704. })
  705. }]
  706. }
  707. } else if (item.remoteReadingMeterList.length == 0 && item.remoteMonitorMeterList.length != 0) {
  708. return {
  709. label: item.name,
  710. value: item.id,
  711. children: [{
  712. label: '监控表',
  713. value: '1',
  714. children: item.remoteMonitorMeterList.map(item => {
  715. return {
  716. label: item.name,
  717. value: item.id,
  718. }
  719. })
  720. }]
  721. }
  722. } else {
  723. }
  724. })
  725. }).catch(error => {
  726. uni.showToast({
  727. title: error,
  728. icon: "none"
  729. })
  730. })
  731. },
  732. getTimeSlotStatistics(interval) {
  733. if (!interval) {
  734. uni.showLoading({
  735. title: "加载中",
  736. mask: true,
  737. })
  738. }
  739. this.queryDay = parseUnixTime(new Date(this.FormData2.queryDate), '{y}年{m}月{d}日');
  740. API.timeSlotStatistics(this.FormData2).then((response) => {
  741. if (!interval) {
  742. uni.hideLoading();
  743. }
  744. this.hourMap = response.data.hourMap;
  745. this.sumQuantity = response.data.kwhMap.kwh;
  746. this.sumFee = response.data.kwhMap.fee;
  747. this.getBarCharts(this.hourMap, interval);
  748. if (!interval) {
  749. this.startInterval(); // 组件挂载后开始间隔
  750. }
  751. }).catch(error => {
  752. uni.showToast({
  753. title: error,
  754. icon: "none"
  755. })
  756. })
  757. },
  758. getElectricityStatistics(interval) {
  759. if (!interval) {
  760. uni.showLoading({
  761. title: "加载中",
  762. mask: true,
  763. })
  764. }
  765. var obj = {
  766. ...this.FormData
  767. }
  768. // if(obj.type==10){
  769. // obj.queryDate+="-01"
  770. // }
  771. API.electricityStatistics(obj).then((response) => {
  772. if (!interval) {
  773. uni.hideLoading();
  774. }
  775. this.showTop = [0, 0, 0, 0, 0, 0, 0, 0]
  776. var electricity = response.data.kwhMap.kwh + "";
  777. this.electricity = response.data.kwhMap.kwh;
  778. this.fee = response.data.kwhMap.fee;
  779. if (electricity) {
  780. var sz = electricity.split(".")
  781. var str1 = sz[0];
  782. var str2 = [];
  783. if (sz.length > 1) {
  784. str2 = sz[1];
  785. this.showTop[7] = str2[0];
  786. }
  787. var j = 0;
  788. for (var i in str1) {
  789. if (i != undefined) {
  790. this.showTop[6 - str1.length + j + 1] = str1[i]
  791. }
  792. j++;
  793. }
  794. this.$forceUpdate()
  795. }
  796. if (!interval) {
  797. this.startInterval(); // 组件挂载后开始间隔
  798. }
  799. }).catch(error => {
  800. uni.showToast({
  801. title: error,
  802. icon: "none"
  803. })
  804. })
  805. },
  806. getBarCharts(list, interval) {
  807. if (!this.myChart) {
  808. this.myChart = echarts.init(document.getElementById('barEcharts'), null, {
  809. // width: uni.upx2px(700),
  810. height: uni.upx2px(480)
  811. });
  812. }
  813. if (!interval) {
  814. this.myChart.clear();
  815. }
  816. var data1 = [];
  817. var data2 = [];
  818. // var sumQuantity=0
  819. for (var i in list) {
  820. data1.push(i)
  821. data2.push(list[i].kwh)
  822. // sumQuantity+=list[i]
  823. }
  824. var axisLabel = {
  825. rotate: 40,
  826. interval: 0,
  827. textStyle: {
  828. color: "#333"
  829. }
  830. }
  831. if (data1.length < 4) {
  832. axisLabel = {
  833. interval: 0,
  834. textStyle: {
  835. color: "#333"
  836. },
  837. }
  838. }
  839. // this.sumQuantity = sumQuantity.toFixed(2);
  840. var headitemby = "";
  841. var showkey = "";
  842. var option = {
  843. tooltip: {
  844. trigger: 'axis',
  845. axisPointer: {
  846. type: 'shadow'
  847. },
  848. formatter: (value) => {
  849. var name = value[0].name;
  850. var obj=list[name]
  851. var text= `<p>${name}</p>`
  852. if (obj.electricityPrice != undefined) {
  853. text += `<p>电价:${obj.electricityPrice}元/度</p>`
  854. }
  855. if (obj.kwh != undefined) {
  856. text += `电量:${obj.kwh}度`
  857. }
  858. if (obj.amount != undefined) {
  859. text += ` <p>电费:${obj.amount}元</p>`
  860. }
  861. return text
  862. }
  863. },
  864. grid: {
  865. top: '10%',
  866. left: '3%',
  867. right: '8%',
  868. bottom: '8%',
  869. containLabel: true
  870. },
  871. xAxis: {
  872. type: 'category',
  873. data: data1,
  874. axisLabel: axisLabel,
  875. },
  876. yAxis: {
  877. type: 'value',
  878. },
  879. series: [{
  880. name: '合计',
  881. data: data2,
  882. type: 'bar',
  883. label: {
  884. show: true,
  885. position: 'top',
  886. color: '#5C7BD9'
  887. }
  888. }]
  889. }
  890. console.log(option)
  891. this.myChart.setOption(option);
  892. },
  893. selector2confirm(e) {
  894. this.tabsFrom.show2Text = e.year + "年" + e.month + "月"
  895. this.tabsFrom.show2Index = e.year + "-" + e.month
  896. if (e.day) {
  897. this.tabsFrom.show2Text += e.day + "日"
  898. this.tabsFrom.show2Index += '-' + e.day
  899. this.queryDate(this.tabsFrom.show2Index, true)
  900. } else {
  901. this.queryDate(this.tabsFrom.show2Index, false)
  902. }
  903. },
  904. selector2cancel() {
  905. if(this.clickType != -1) {
  906. this.value = this.clickType;
  907. }
  908. },
  909. selector2reset(e) {
  910. console.log(e)
  911. this.tabsFrom.show2Text = '全部时间'
  912. this.tabsFrom.show2Index = '';
  913. if (e.day) {
  914. this.FormData2.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  915. this.queryDay = parseUnixTime(new Date(this.FormData2.queryDate), '{y}年{m}月{d}日');
  916. this.getTimeSlotStatistics();
  917. } else {
  918. this.FormData.type = this.clickType;
  919. this.value = this.clickType;
  920. if (this.value != 10) {
  921. this.list[5].name = '指定月份';
  922. }
  923. this.getElectricityStatistics();
  924. }
  925. },
  926. // 选中某个单选框时,由radio时触发
  927. radioChange(e) {
  928. console.log(`选择前的值: ${this.value}`);
  929. this.clickType = this.value;
  930. },
  931. // 选中任一radio时,由radio-group触发
  932. radioGroupChange(e) {
  933. console.log(e)
  934. this.FormData.type = e;
  935. if (e == 10) {
  936. this.tabsFrom.show2 = true;
  937. this.params.day = false;
  938. } else {
  939. this.list[5].name = '指定月份'
  940. this.getElectricityStatistics();
  941. }
  942. },
  943. backDataMonitoringList() {
  944. uni.navigateBack()
  945. },
  946. }
  947. };
  948. </script>
  949. <style lang="scss" scoped>
  950. page {
  951. padding-bottom: 184rpx;
  952. }
  953. /deep/.u-select__header__title {
  954. font-size: 36rpx;
  955. font-weight: bold;
  956. }
  957. .navbar-c {
  958. background-color: rgba(22, 119, 255, 1);
  959. position: fixed;
  960. top: 0;
  961. left: 0;
  962. right: 0;
  963. z-index: 999;
  964. .back {
  965. z-index: 999;
  966. width: 200rpx;
  967. }
  968. .title {
  969. color: #fff;
  970. display: flex;
  971. align-items: center;
  972. justify-content: center;
  973. }
  974. .right {
  975. .img {
  976. width: 48rpx;
  977. height: 48rpx;
  978. }
  979. }
  980. }
  981. /deep/.uicon-nav-back {
  982. color: #fff !important;
  983. }
  984. .background {
  985. background-color: rgba(22, 119, 255, 1);
  986. padding-top: 88rpx;
  987. height: 150px;
  988. padding-bottom: 100rpx;
  989. position: relative;
  990. /deep/.u-border-bottom:after {
  991. border: none;
  992. }
  993. .u-nav-slot {
  994. margin-right: 32rpx;
  995. .img {
  996. width: 48rpx;
  997. height: 48rpx;
  998. vertical-align: middle;
  999. }
  1000. }
  1001. }
  1002. .background::after {
  1003. // content: '';
  1004. // position: absolute;
  1005. // width: 160%;
  1006. // height: 150px;
  1007. // background-color: rgba(22, 119, 255, 1);
  1008. // left: -30%;
  1009. // border-radius: 0 0 50% 50%;
  1010. content: '';
  1011. position: absolute;
  1012. bottom:-39rpx;
  1013. width: 100%;
  1014. height: 40rpx; /* 弧形的高度 */
  1015. background-color: rgba(22, 119, 255, 1); /* 弧形的颜色 */
  1016. border-radius: 50%; /* 创建圆形 */
  1017. border-top-left-radius: 0;
  1018. border-top-right-radius: 0;
  1019. }
  1020. // // 日期
  1021. .date-box {
  1022. display: flex;
  1023. align-items: center;
  1024. justify-content: space-between;
  1025. margin: 24rpx 32rpx;
  1026. .item {
  1027. border-radius: 8px;
  1028. background-color: rgba(255, 255, 255, 0.1);
  1029. border: 1px solid rgba(255, 255, 255, 0.15);
  1030. width: 120rpx;
  1031. height: 120rpx;
  1032. color: #fff;
  1033. text-align: center;
  1034. display: flex;
  1035. flex-direction: column;
  1036. justify-content: center;
  1037. .date {
  1038. font-size: 40rpx;
  1039. }
  1040. }
  1041. .item-today {
  1042. background-color: rgba(255, 255, 255, 1);
  1043. position: relative;
  1044. .date {
  1045. color: rgba(22, 119, 255, 1);
  1046. }
  1047. .week {
  1048. color: rgba(16, 16, 16, 1);
  1049. }
  1050. .dot {
  1051. width: 10rpx;
  1052. height: 10rpx;
  1053. background-color: rgba(255, 150, 0, 1);
  1054. border-radius: 999px;
  1055. position: absolute;
  1056. bottom: -5rpx;
  1057. left: 50%;
  1058. transform: translateX(-50%);
  1059. }
  1060. }
  1061. }
  1062. // 用电量
  1063. .electricity-consumption {
  1064. background-color: #fff;
  1065. padding: 32rpx 32rpx 0rpx;
  1066. border-radius: 8px;
  1067. margin: -188rpx 32rpx 0;
  1068. position: relative;
  1069. border: 1px solid rgba(255,255,255,1);
  1070. background: linear-gradient(180deg, rgba(187,216,255,1) 0%,rgba(255,255,255,1) 63%);
  1071. // 统计
  1072. .statistics-content{
  1073. display: flex;
  1074. align-items: center;
  1075. justify-content: space-between;
  1076. .statistics-item{
  1077. width: 300rpx;
  1078. padding: 24rpx 0 24rpx 24rpx;
  1079. border-radius: 8px;
  1080. box-shadow: 0px 0px 8px 0px rgba(22,119,255,0.3);
  1081. background-color: #fff;
  1082. }
  1083. .item-title{
  1084. color: rgba(22,119,255,1);
  1085. font-size: 32rpx;
  1086. display: flex;
  1087. align-items: center;
  1088. font-weight: bold;
  1089. .img{
  1090. width: 32rpx;
  1091. height: 32rpx;
  1092. vertical-align: middle;
  1093. margin-right: 4rpx;
  1094. }
  1095. }
  1096. .item-title2{
  1097. color: rgba(129,97,255,1);
  1098. }
  1099. .item-value{
  1100. color: rgba(16,16,16,1);
  1101. font-size: 48rpx;
  1102. font-weight: bold;
  1103. margin-top: 8rpx;
  1104. overflow: hidden;
  1105. white-space: nowrap;
  1106. text-overflow: ellipsis;
  1107. }
  1108. }
  1109. .title {
  1110. color: rgba(16, 16, 16, 1);
  1111. font-size: 36rpx;
  1112. }
  1113. .degree {
  1114. display: flex;
  1115. margin-top: 32rpx;
  1116. .item {
  1117. margin-right: 6rpx;
  1118. text-align: center;
  1119. .item-text {
  1120. color: rgba(16, 16, 16, 1);
  1121. }
  1122. .item-number {
  1123. margin-top: 24rpx;
  1124. width: 72rpx;
  1125. height: 96rpx;
  1126. background-color: rgba(16, 16, 16, 1);
  1127. color: #fff;
  1128. font-size: 72rpx;
  1129. }
  1130. .decimal {
  1131. background-color: #900005;
  1132. }
  1133. }
  1134. }
  1135. // .tab {
  1136. // width: 240rpx;
  1137. // height: 0;
  1138. // border-width: 0px 48rpx 72rpx 0px;
  1139. // border-radius: 8px 8px 0 0;
  1140. // border-style: none solid solid none;
  1141. // border-color: transparent transparent #fff;
  1142. // position: absolute;
  1143. // top: -72rpx;
  1144. // left: 0rpx;
  1145. // right: 0rpx;
  1146. // color: #101010;
  1147. // color: rgba(16, 16, 16, 1);
  1148. // text-align: center;
  1149. // line-height: 72rpx;
  1150. // z-index: 999;
  1151. // text-indent: 16rpx;
  1152. // }
  1153. // .tab2 {
  1154. // width: 240rpx;
  1155. // height: 0;
  1156. // border-width: 0px 48rpx 72rpx 0px;
  1157. // border-radius: 8px 8px 0 0;
  1158. // border-style: none solid solid none;
  1159. // border-color: transparent transparent #D4DBE4;
  1160. // position: absolute;
  1161. // top: -72rpx;
  1162. // left: 210rpx;
  1163. // right: 0rpx;
  1164. // color: #777777;
  1165. // text-align: center;
  1166. // line-height: 72rpx;
  1167. // text-indent: 16rpx;
  1168. // }
  1169. .radio {
  1170. margin-top: 24rpx;
  1171. padding-left: 8rpx;
  1172. /deep/.u-radio {
  1173. margin-bottom: 8px;
  1174. min-width: 25% !important;
  1175. }
  1176. /deep/.u-radio__label{
  1177. margin-left: 24rpx;
  1178. font-size: 28rpx; ;
  1179. }
  1180. }
  1181. }
  1182. //各时段用电量
  1183. .electricity-chart {
  1184. margin: 24rpx 32rpx;
  1185. padding: 40rpx 32rpx;
  1186. background-color: #fff;
  1187. border-radius: 8px;
  1188. .title {
  1189. display: flex;
  1190. align-items: center;
  1191. margin-bottom: 40rpx;
  1192. .icon {
  1193. width: 36rpx;
  1194. height: 36rpx;
  1195. background-color: rgba(182, 212, 255, 1);
  1196. border: 6px solid rgba(22, 119, 255, 1);
  1197. border-radius: 100px;
  1198. }
  1199. .text {
  1200. color: rgba(51, 51, 51, 1);
  1201. font-size: 36rpx;
  1202. margin-left: 16rpx;
  1203. font-weight: bold;
  1204. }
  1205. .more {
  1206. margin-left: auto;
  1207. border: 1px solid rgba(187,187,187,1);
  1208. border-radius: 4px;
  1209. padding: 8rpx;
  1210. font-size: 24rpx;
  1211. }
  1212. }
  1213. .total{
  1214. text-align: center;
  1215. color: rgba(51,51,51,1);
  1216. font-weight: bold;
  1217. }
  1218. .chart {
  1219. width: 100%;
  1220. height: 500rpx;
  1221. .img {
  1222. width: 100%;
  1223. height: 440rpx;
  1224. }
  1225. }
  1226. }
  1227. .equipment-information {
  1228. margin: 24rpx 32rpx;
  1229. padding: 40rpx 0rpx;
  1230. background-color: #fff;
  1231. border-radius: 8px;
  1232. .title {
  1233. display: flex;
  1234. align-items: center;
  1235. padding: 0 32rpx;
  1236. margin-bottom: 40rpx;
  1237. .icon {
  1238. width: 36rpx;
  1239. height: 36rpx;
  1240. background-color: rgba(182, 212, 255, 1);
  1241. border: 6px solid rgba(22, 119, 255, 1);
  1242. border-radius: 100px;
  1243. }
  1244. .text {
  1245. display: flex;
  1246. align-items: center;
  1247. color: rgba(51, 51, 51, 1);
  1248. font-size: 36rpx;
  1249. margin-left: 16rpx;
  1250. font-weight: bold;
  1251. }
  1252. .date {
  1253. margin-left: auto;
  1254. }
  1255. .more {
  1256. color: #838383;
  1257. font-size: 24rpx;
  1258. margin-left: auto;
  1259. }
  1260. }
  1261. .chart {
  1262. width: 100%;
  1263. height: 440rpx;
  1264. .img {
  1265. width: 100%;
  1266. height: 440rpx;
  1267. }
  1268. }
  1269. .infos {
  1270. padding: 0 32rpx;
  1271. display: flex;
  1272. justify-content: space-between;
  1273. text-align: center;
  1274. .border {
  1275. margin: auto 0;
  1276. height: 70rpx;
  1277. width: 2rpx;
  1278. background-color: rgba(204, 204, 204, 1);
  1279. ;
  1280. }
  1281. .item-title {
  1282. color: rgba(119, 119, 119, 1);
  1283. }
  1284. .item-value {
  1285. color: rgba(16, 16, 16, 1);
  1286. font-size: 32rpx;
  1287. margin-top: 16rpx;
  1288. }
  1289. }
  1290. }
  1291. // 异常
  1292. .abnormal {
  1293. margin: 24rpx 32rpx;
  1294. padding: 40rpx 32rpx;
  1295. background-color: #fff;
  1296. border-radius: 8px;
  1297. .headline {
  1298. display: flex;
  1299. align-items: center;
  1300. justify-content: space-between;
  1301. }
  1302. .title {
  1303. display: flex;
  1304. align-items: center;
  1305. font-weight: bold;
  1306. .icon {
  1307. width: 36rpx;
  1308. height: 36rpx;
  1309. background-color: rgba(182, 212, 255, 1);
  1310. border: 6px solid rgba(22, 119, 255, 1);
  1311. border-radius: 100px;
  1312. }
  1313. .text {
  1314. color: rgba(51, 51, 51, 1);
  1315. font-size: 36rpx;
  1316. margin-left: 16rpx;
  1317. }
  1318. }
  1319. .more {
  1320. color: #838383;
  1321. font-size: 24rpx
  1322. }
  1323. .details {
  1324. margin-top: 40rpx;
  1325. .item {
  1326. display: flex;
  1327. align-items: center;
  1328. justify-content: space-between;
  1329. margin-top: 32rpx;
  1330. .name {
  1331. color: rgba(51, 51, 51, 1);
  1332. }
  1333. .time {
  1334. color: rgba(119, 119, 119, 1);
  1335. font-size: 24rpx;
  1336. display: flex;
  1337. align-items: center;
  1338. .more{
  1339. margin-left: 4rpx;
  1340. }
  1341. }
  1342. }
  1343. }
  1344. }
  1345. // 能源监测
  1346. .energy-inspection,
  1347. .data-analysis {
  1348. margin: 24rpx 32rpx;
  1349. padding: 40rpx 32rpx;
  1350. background-color: #fff;
  1351. border-radius: 8px;
  1352. .title {
  1353. display: flex;
  1354. align-items: center;
  1355. font-weight: bold;
  1356. .icon {
  1357. width: 36rpx;
  1358. height: 36rpx;
  1359. background-color: rgba(182, 212, 255, 1);
  1360. border: 6px solid rgba(22, 119, 255, 1);
  1361. border-radius: 100px;
  1362. }
  1363. .text {
  1364. color: rgba(51, 51, 51, 1);
  1365. font-size: 36rpx;
  1366. margin-left: 16rpx;
  1367. }
  1368. }
  1369. .grid {
  1370. .icon {
  1371. width: 128rpx;
  1372. height: 128rpx;
  1373. border-radius: 12px;
  1374. background-color: rgba(35, 186, 178, 1);
  1375. display: flex;
  1376. align-items: center;
  1377. justify-content: center;
  1378. margin-bottom: 16rpx;
  1379. .img {
  1380. width: 80rpx;
  1381. height: 80rpx;
  1382. }
  1383. }
  1384. .icon2 {
  1385. background-color: rgba(42, 186, 72, 1);
  1386. }
  1387. .icon3 {
  1388. background-color: rgba(78, 96, 246, 1);
  1389. }
  1390. .icon4 {
  1391. background-color: rgba(22, 119, 255, 1);
  1392. }
  1393. .icon5 {
  1394. background-color: rgba(35, 186, 178, 1);
  1395. }
  1396. .icon6 {
  1397. background-color: rgba(42, 186, 72, 1);
  1398. }
  1399. .icon7 {
  1400. background-color: rgba(22, 119, 255, 1);
  1401. }
  1402. .icon8 {
  1403. background-color: rgba(35, 186, 178, 1);
  1404. }
  1405. .icon9 {
  1406. background-color: rgba(42, 186, 72, 1);
  1407. }
  1408. .grid-text {
  1409. color: #333333;
  1410. }
  1411. }
  1412. }
  1413. // 设备信息弹窗
  1414. .equipment-popup {
  1415. .content {
  1416. padding: 32rpx;
  1417. .headline {
  1418. color: rgba(16, 16, 16, 1);
  1419. font-size: 36rpx;
  1420. text-align: center;
  1421. font-weight: bold;
  1422. margin-bottom: 24rpx;
  1423. }
  1424. .infos {
  1425. padding-bottom: 100rpx;
  1426. .item:last-of-type {
  1427. border: none;
  1428. }
  1429. .item {
  1430. display: flex;
  1431. align-items: center;
  1432. line-height: 48rpx;
  1433. padding: 24rpx 0;
  1434. border-bottom: 1px solid #cccccc;
  1435. .item-title {
  1436. color: rgba(51, 51, 51, 1);
  1437. width: 200rpx;
  1438. }
  1439. .item-value {
  1440. color: #666666;
  1441. flex: 1;
  1442. margin-left: 16rpx;
  1443. display: flex;
  1444. align-items: center;
  1445. justify-content: space-between;
  1446. .img{
  1447. width: 32rpx;
  1448. height: 32rpx;
  1449. transform: rotate(90deg);
  1450. margin-left: 96rpx;
  1451. }
  1452. }
  1453. }
  1454. }
  1455. .get {
  1456. height: 80rpx;
  1457. line-height: 80rpx;
  1458. border-radius: 4px;
  1459. background-color: rgba(22, 119, 255, 1);
  1460. color: rgba(255, 255, 255, 1);
  1461. font-size: 32rpx;
  1462. }
  1463. }
  1464. }
  1465. // 创建工单
  1466. .create-order {
  1467. width: 120rpx;
  1468. height: 120rpx;
  1469. border-radius: 20px;
  1470. background: linear-gradient(180.29deg, rgba(255, 124, 112, 1) 0.9%, rgba(255, 79, 63, 1) 100.4%);
  1471. box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.4);
  1472. text-align: center;
  1473. display: flex;
  1474. flex-direction: column;
  1475. justify-content: center;
  1476. align-items: center;
  1477. position: fixed;
  1478. right: 32rpx;
  1479. bottom: 64rpx;
  1480. .img {
  1481. width: 56rpx;
  1482. height: 56rpx;
  1483. vertical-align: middle;
  1484. }
  1485. .text {
  1486. color: rgba(255, 255, 255, 1);
  1487. font-size: 22rpx;
  1488. }
  1489. }
  1490. </style>