electronicMonitoring.vue 35 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664
  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. if (this.tabsFrom.selector1.length > 1) {
  609. this.tabsFrom.show1 = true
  610. }
  611. },
  612. selector1confirm(e) {
  613. console.log(e)
  614. // var index = e[2];
  615. // this.tabsFrom.show1Index = index;
  616. if (e[2].value != null) {
  617. this.tabsFrom.show1Text = e[2].label;
  618. this.tabsFrom.title = e[2].label;
  619. this.FormData.meterId = e[2].value;
  620. this.FormData.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  621. this.FormData2.meterId = e[2].value;
  622. this.FormData2.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  623. //this.meterId =e[2].value;
  624. this.FormData.type = 2;
  625. this.value = '2';
  626. this.getTimeSlotStatistics();
  627. this.getElectricityStatistics();
  628. this.getMeterDetails(e[2].value);
  629. }
  630. },
  631. selector1cancel() {
  632. this.tabsFrom.show1Text = this.titleName;
  633. this.tabsFrom.title = this.titleName;
  634. this.FormData.meterId = this.meterId;
  635. this.FormData.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  636. this.FormData2.meterId = this.meterId;
  637. this.FormData2.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  638. this.FormData.type = 2;
  639. this.value = '2';
  640. this.getTimeSlotStatistics();
  641. this.getElectricityStatistics();
  642. this.getMeterDetails(this.meterId);
  643. },
  644. queryDate(queryTime, day) {
  645. if (day) {
  646. this.FormData2.queryDate = queryTime;
  647. //this.FormData2.type =day?"9":"10"
  648. //this.value="-1"
  649. this.getTimeSlotStatistics();
  650. } else {
  651. this.FormData.queryDate = queryTime + "-01";
  652. this.FormData.type = 10;
  653. this.value = "10";
  654. this.list[5].name = queryTime;
  655. this.getElectricityStatistics();
  656. }
  657. },
  658. getCompanyInfoList() {
  659. uni.showLoading({
  660. title: "加载中",
  661. mask: true,
  662. })
  663. API.deviceCompanyList().then((response) => {
  664. uni.hideLoading();
  665. var list = response.data.companyInfoList;
  666. this.tabsFrom.selector1 = [];
  667. this.tabsFrom.selector1 = list.map(item => {
  668. if (item.remoteReadingMeterList.length != 0 && item.remoteMonitorMeterList.length != 0) {
  669. return {
  670. label: item.name,
  671. value: item.id,
  672. children: [{
  673. label: '抄表',
  674. value: '1',
  675. children: item.remoteReadingMeterList.map(item => {
  676. return {
  677. label: item.name,
  678. value: item.id,
  679. }
  680. })
  681. },
  682. {
  683. label: '监控表',
  684. value: '1',
  685. children: item.remoteMonitorMeterList.map(item => {
  686. return {
  687. label: item.name,
  688. value: item.id,
  689. }
  690. })
  691. }
  692. ]
  693. }
  694. } else if (item.remoteReadingMeterList.length != 0 && item.remoteMonitorMeterList.length == 0) {
  695. return {
  696. label: item.name,
  697. value: item.id,
  698. children: [{
  699. label: '抄表',
  700. value: '1',
  701. children: item.remoteReadingMeterList.map(item => {
  702. return {
  703. label: item.name,
  704. value: item.id,
  705. }
  706. })
  707. }]
  708. }
  709. } else if (item.remoteReadingMeterList.length == 0 && item.remoteMonitorMeterList.length != 0) {
  710. return {
  711. label: item.name,
  712. value: item.id,
  713. children: [{
  714. label: '监控表',
  715. value: '1',
  716. children: item.remoteMonitorMeterList.map(item => {
  717. return {
  718. label: item.name,
  719. value: item.id,
  720. }
  721. })
  722. }]
  723. }
  724. } else {
  725. }
  726. })
  727. }).catch(error => {
  728. uni.showToast({
  729. title: error,
  730. icon: "none"
  731. })
  732. })
  733. },
  734. getTimeSlotStatistics(interval) {
  735. if (!interval) {
  736. uni.showLoading({
  737. title: "加载中",
  738. mask: true,
  739. })
  740. }
  741. this.queryDay = parseUnixTime(new Date(this.FormData2.queryDate), '{y}年{m}月{d}日');
  742. API.timeSlotStatistics(this.FormData2).then((response) => {
  743. if (!interval) {
  744. uni.hideLoading();
  745. }
  746. this.hourMap = response.data.hourMap;
  747. this.sumQuantity = response.data.kwhMap.kwh;
  748. this.sumFee = response.data.kwhMap.fee;
  749. this.getBarCharts(this.hourMap, interval);
  750. if (!interval) {
  751. this.startInterval(); // 组件挂载后开始间隔
  752. }
  753. }).catch(error => {
  754. uni.showToast({
  755. title: error,
  756. icon: "none"
  757. })
  758. })
  759. },
  760. getElectricityStatistics(interval) {
  761. if (!interval) {
  762. uni.showLoading({
  763. title: "加载中",
  764. mask: true,
  765. })
  766. }
  767. var obj = {
  768. ...this.FormData
  769. }
  770. // if(obj.type==10){
  771. // obj.queryDate+="-01"
  772. // }
  773. API.electricityStatistics(obj).then((response) => {
  774. if (!interval) {
  775. uni.hideLoading();
  776. }
  777. this.showTop = [0, 0, 0, 0, 0, 0, 0, 0]
  778. var electricity = response.data.kwhMap.kwh + "";
  779. this.electricity = response.data.kwhMap.kwh;
  780. this.fee = response.data.kwhMap.fee;
  781. if (electricity) {
  782. var sz = electricity.split(".")
  783. var str1 = sz[0];
  784. var str2 = [];
  785. if (sz.length > 1) {
  786. str2 = sz[1];
  787. this.showTop[7] = str2[0];
  788. }
  789. var j = 0;
  790. for (var i in str1) {
  791. if (i != undefined) {
  792. this.showTop[6 - str1.length + j + 1] = str1[i]
  793. }
  794. j++;
  795. }
  796. this.$forceUpdate()
  797. }
  798. if (!interval) {
  799. this.startInterval(); // 组件挂载后开始间隔
  800. }
  801. }).catch(error => {
  802. uni.showToast({
  803. title: error,
  804. icon: "none"
  805. })
  806. })
  807. },
  808. getBarCharts(list, interval) {
  809. if (!this.myChart) {
  810. this.myChart = echarts.init(document.getElementById('barEcharts'), null, {
  811. width: uni.upx2px(700),
  812. height: uni.upx2px(480)
  813. });
  814. }
  815. if (!interval) {
  816. this.myChart.clear();
  817. }
  818. var data1 = [];
  819. var data2 = [];
  820. // var sumQuantity=0
  821. for (var i in list) {
  822. data1.push(i)
  823. data2.push(list[i].kwh)
  824. // sumQuantity+=list[i]
  825. }
  826. var axisLabel = {
  827. rotate: 40,
  828. interval: 0,
  829. textStyle: {
  830. color: "#333"
  831. }
  832. }
  833. if (data1.length < 4) {
  834. axisLabel = {
  835. interval: 0,
  836. textStyle: {
  837. color: "#333"
  838. },
  839. }
  840. }
  841. // this.sumQuantity = sumQuantity.toFixed(2);
  842. var headitemby = "";
  843. var showkey = "";
  844. var option = {
  845. tooltip: {
  846. trigger: 'axis',
  847. axisPointer: {
  848. type: 'shadow'
  849. },
  850. formatter: (value) => {
  851. var name = value[0].name;
  852. var obj=list[name]
  853. var text= `<p>${name}</p>`
  854. if (obj.electricityPrice != undefined) {
  855. text += `<p>电价:${obj.electricityPrice}元/度</p>`
  856. }
  857. if (obj.kwh != undefined) {
  858. text += `电量:${obj.kwh}度`
  859. }
  860. if (obj.amount != undefined) {
  861. text += ` <p>电费:${obj.amount}元</p>`
  862. }
  863. return text
  864. }
  865. },
  866. grid: {
  867. top: '10%',
  868. left: '3%',
  869. right: '8%',
  870. bottom: '8%',
  871. containLabel: true
  872. },
  873. xAxis: {
  874. type: 'category',
  875. data: data1,
  876. axisLabel: axisLabel,
  877. },
  878. yAxis: {
  879. type: 'value',
  880. },
  881. series: [{
  882. name: '合计',
  883. data: data2,
  884. type: 'bar',
  885. label: {
  886. show: true,
  887. position: 'top',
  888. color: '#5C7BD9'
  889. }
  890. }]
  891. }
  892. console.log(option)
  893. this.myChart.setOption(option);
  894. },
  895. selector2confirm(e) {
  896. this.tabsFrom.show2Text = e.year + "年" + e.month + "月"
  897. this.tabsFrom.show2Index = e.year + "-" + e.month
  898. if (e.day) {
  899. this.tabsFrom.show2Text += e.day + "日"
  900. this.tabsFrom.show2Index += '-' + e.day
  901. this.queryDate(this.tabsFrom.show2Index, true)
  902. } else {
  903. this.queryDate(this.tabsFrom.show2Index, false)
  904. }
  905. },
  906. selector2cancel() {
  907. if(this.clickType != -1) {
  908. this.value = this.clickType;
  909. }
  910. },
  911. selector2reset(e) {
  912. console.log(e)
  913. this.tabsFrom.show2Text = '全部时间'
  914. this.tabsFrom.show2Index = '';
  915. if (e.day) {
  916. this.FormData2.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  917. this.queryDay = parseUnixTime(new Date(this.FormData2.queryDate), '{y}年{m}月{d}日');
  918. this.getTimeSlotStatistics();
  919. } else {
  920. this.FormData.type = this.clickType;
  921. this.value = this.clickType;
  922. if (this.value != 10) {
  923. this.list[5].name = '指定月份';
  924. }
  925. this.getElectricityStatistics();
  926. }
  927. },
  928. // 选中某个单选框时,由radio时触发
  929. radioChange(e) {
  930. console.log(`选择前的值: ${this.value}`);
  931. this.clickType = this.value;
  932. },
  933. // 选中任一radio时,由radio-group触发
  934. radioGroupChange(e) {
  935. console.log(e)
  936. this.FormData.type = e;
  937. if (e == 10) {
  938. this.tabsFrom.show2 = true;
  939. this.params.day = false;
  940. } else {
  941. this.list[5].name = '指定月份'
  942. this.getElectricityStatistics();
  943. }
  944. },
  945. backDataMonitoringList() {
  946. uni.navigateBack()
  947. },
  948. }
  949. };
  950. </script>
  951. <style lang="scss" scoped>
  952. page {
  953. padding-bottom: 184rpx;
  954. }
  955. /deep/.u-select__header__title {
  956. font-size: 36rpx;
  957. font-weight: bold;
  958. }
  959. .navbar-c {
  960. background-color: rgba(22, 119, 255, 1);
  961. position: fixed;
  962. top: 0;
  963. left: 0;
  964. right: 0;
  965. z-index: 999;
  966. .back {
  967. z-index: 999;
  968. width: 200rpx;
  969. }
  970. .title {
  971. color: #fff;
  972. display: flex;
  973. align-items: center;
  974. justify-content: center;
  975. }
  976. .right {
  977. .img {
  978. width: 48rpx;
  979. height: 48rpx;
  980. }
  981. }
  982. }
  983. /deep/.uicon-nav-back {
  984. color: #fff !important;
  985. }
  986. .background {
  987. background-color: rgba(22, 119, 255, 1);
  988. padding-top: 88rpx;
  989. padding-bottom: 100rpx;
  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. }
  1011. // // 日期
  1012. .date-box {
  1013. display: flex;
  1014. align-items: center;
  1015. justify-content: space-between;
  1016. margin: 24rpx 32rpx;
  1017. .item {
  1018. border-radius: 8px;
  1019. background-color: rgba(255, 255, 255, 0.1);
  1020. border: 1px solid rgba(255, 255, 255, 0.15);
  1021. width: 120rpx;
  1022. height: 120rpx;
  1023. color: #fff;
  1024. text-align: center;
  1025. display: flex;
  1026. flex-direction: column;
  1027. justify-content: center;
  1028. .date {
  1029. font-size: 40rpx;
  1030. }
  1031. }
  1032. .item-today {
  1033. background-color: rgba(255, 255, 255, 1);
  1034. position: relative;
  1035. .date {
  1036. color: rgba(22, 119, 255, 1);
  1037. }
  1038. .week {
  1039. color: rgba(16, 16, 16, 1);
  1040. }
  1041. .dot {
  1042. width: 10rpx;
  1043. height: 10rpx;
  1044. background-color: rgba(255, 150, 0, 1);
  1045. border-radius: 999px;
  1046. position: absolute;
  1047. bottom: -5rpx;
  1048. left: 50%;
  1049. transform: translateX(-50%);
  1050. }
  1051. }
  1052. }
  1053. // 用电量
  1054. .electricity-consumption {
  1055. background-color: #fff;
  1056. padding: 32rpx 32rpx 0rpx;
  1057. border-radius: 8px;
  1058. margin: -88rpx 32rpx 0;
  1059. position: relative;
  1060. border: 1px solid rgba(255,255,255,1);
  1061. background: linear-gradient(180deg, rgba(187,216,255,1) 0%,rgba(255,255,255,1) 63%);
  1062. // 统计
  1063. .statistics-content{
  1064. display: flex;
  1065. align-items: center;
  1066. justify-content: space-between;
  1067. .statistics-item{
  1068. width: 300rpx;
  1069. padding: 24rpx 0 24rpx 24rpx;
  1070. border-radius: 8px;
  1071. box-shadow: 0px 0px 8px 0px rgba(22,119,255,0.3);
  1072. background-color: #fff;
  1073. }
  1074. .item-title{
  1075. color: rgba(22,119,255,1);
  1076. font-size: 32rpx;
  1077. display: flex;
  1078. align-items: center;
  1079. font-weight: bold;
  1080. .img{
  1081. width: 32rpx;
  1082. height: 32rpx;
  1083. vertical-align: middle;
  1084. margin-right: 4rpx;
  1085. }
  1086. }
  1087. .item-title2{
  1088. color: rgba(129,97,255,1);
  1089. }
  1090. .item-value{
  1091. color: rgba(16,16,16,1);
  1092. font-size: 48rpx;
  1093. font-weight: bold;
  1094. margin-top: 8rpx;
  1095. overflow: hidden;
  1096. white-space: nowrap;
  1097. text-overflow: ellipsis;
  1098. }
  1099. }
  1100. .title {
  1101. color: rgba(16, 16, 16, 1);
  1102. font-size: 36rpx;
  1103. }
  1104. .degree {
  1105. display: flex;
  1106. margin-top: 32rpx;
  1107. .item {
  1108. margin-right: 6rpx;
  1109. text-align: center;
  1110. .item-text {
  1111. color: rgba(16, 16, 16, 1);
  1112. }
  1113. .item-number {
  1114. margin-top: 24rpx;
  1115. width: 72rpx;
  1116. height: 96rpx;
  1117. background-color: rgba(16, 16, 16, 1);
  1118. color: #fff;
  1119. font-size: 72rpx;
  1120. }
  1121. .decimal {
  1122. background-color: #900005;
  1123. }
  1124. }
  1125. }
  1126. // .tab {
  1127. // width: 240rpx;
  1128. // height: 0;
  1129. // border-width: 0px 48rpx 72rpx 0px;
  1130. // border-radius: 8px 8px 0 0;
  1131. // border-style: none solid solid none;
  1132. // border-color: transparent transparent #fff;
  1133. // position: absolute;
  1134. // top: -72rpx;
  1135. // left: 0rpx;
  1136. // right: 0rpx;
  1137. // color: #101010;
  1138. // color: rgba(16, 16, 16, 1);
  1139. // text-align: center;
  1140. // line-height: 72rpx;
  1141. // z-index: 999;
  1142. // text-indent: 16rpx;
  1143. // }
  1144. // .tab2 {
  1145. // width: 240rpx;
  1146. // height: 0;
  1147. // border-width: 0px 48rpx 72rpx 0px;
  1148. // border-radius: 8px 8px 0 0;
  1149. // border-style: none solid solid none;
  1150. // border-color: transparent transparent #D4DBE4;
  1151. // position: absolute;
  1152. // top: -72rpx;
  1153. // left: 210rpx;
  1154. // right: 0rpx;
  1155. // color: #777777;
  1156. // text-align: center;
  1157. // line-height: 72rpx;
  1158. // text-indent: 16rpx;
  1159. // }
  1160. .radio {
  1161. margin-top: 24rpx;
  1162. padding-left: 8rpx;
  1163. /deep/.u-radio {
  1164. margin-bottom: 8px;
  1165. min-width: 25% !important;
  1166. }
  1167. /deep/.u-radio__label{
  1168. margin-left: 24rpx;
  1169. font-size: 28rpx; ;
  1170. }
  1171. }
  1172. }
  1173. //各时段用电量
  1174. .electricity-chart {
  1175. margin: 24rpx 32rpx;
  1176. padding: 40rpx 32rpx;
  1177. background-color: #fff;
  1178. border-radius: 8px;
  1179. .title {
  1180. display: flex;
  1181. align-items: center;
  1182. margin-bottom: 40rpx;
  1183. .icon {
  1184. width: 36rpx;
  1185. height: 36rpx;
  1186. background-color: rgba(182, 212, 255, 1);
  1187. border: 6px solid rgba(22, 119, 255, 1);
  1188. border-radius: 100px;
  1189. }
  1190. .text {
  1191. color: rgba(51, 51, 51, 1);
  1192. font-size: 36rpx;
  1193. margin-left: 16rpx;
  1194. font-weight: bold;
  1195. }
  1196. .more {
  1197. margin-left: auto;
  1198. border: 1px solid rgba(187,187,187,1);
  1199. border-radius: 4px;
  1200. padding: 8rpx;
  1201. font-size: 24rpx;
  1202. }
  1203. }
  1204. .total{
  1205. text-align: center;
  1206. color: rgba(51,51,51,1);
  1207. font-weight: bold;
  1208. }
  1209. .chart {
  1210. width: 100%;
  1211. height: 500rpx;
  1212. .img {
  1213. width: 100%;
  1214. height: 440rpx;
  1215. }
  1216. }
  1217. }
  1218. .equipment-information {
  1219. margin: 24rpx 32rpx;
  1220. padding: 40rpx 0rpx;
  1221. background-color: #fff;
  1222. border-radius: 8px;
  1223. .title {
  1224. display: flex;
  1225. align-items: center;
  1226. padding: 0 32rpx;
  1227. margin-bottom: 40rpx;
  1228. .icon {
  1229. width: 36rpx;
  1230. height: 36rpx;
  1231. background-color: rgba(182, 212, 255, 1);
  1232. border: 6px solid rgba(22, 119, 255, 1);
  1233. border-radius: 100px;
  1234. }
  1235. .text {
  1236. display: flex;
  1237. align-items: center;
  1238. color: rgba(51, 51, 51, 1);
  1239. font-size: 36rpx;
  1240. margin-left: 16rpx;
  1241. font-weight: bold;
  1242. }
  1243. .date {
  1244. margin-left: auto;
  1245. }
  1246. .more {
  1247. color: #838383;
  1248. font-size: 24rpx;
  1249. margin-left: auto;
  1250. }
  1251. }
  1252. .chart {
  1253. width: 100%;
  1254. height: 440rpx;
  1255. .img {
  1256. width: 100%;
  1257. height: 440rpx;
  1258. }
  1259. }
  1260. .infos {
  1261. padding: 0 32rpx;
  1262. display: flex;
  1263. justify-content: space-between;
  1264. text-align: center;
  1265. .border {
  1266. margin: auto 0;
  1267. height: 70rpx;
  1268. width: 2rpx;
  1269. background-color: rgba(204, 204, 204, 1);
  1270. ;
  1271. }
  1272. .item-title {
  1273. color: rgba(119, 119, 119, 1);
  1274. }
  1275. .item-value {
  1276. color: rgba(16, 16, 16, 1);
  1277. font-size: 32rpx;
  1278. margin-top: 16rpx;
  1279. }
  1280. }
  1281. }
  1282. // 异常
  1283. .abnormal {
  1284. margin: 24rpx 32rpx;
  1285. padding: 40rpx 32rpx;
  1286. background-color: #fff;
  1287. border-radius: 8px;
  1288. .headline {
  1289. display: flex;
  1290. align-items: center;
  1291. justify-content: space-between;
  1292. }
  1293. .title {
  1294. display: flex;
  1295. align-items: center;
  1296. font-weight: bold;
  1297. .icon {
  1298. width: 36rpx;
  1299. height: 36rpx;
  1300. background-color: rgba(182, 212, 255, 1);
  1301. border: 6px solid rgba(22, 119, 255, 1);
  1302. border-radius: 100px;
  1303. }
  1304. .text {
  1305. color: rgba(51, 51, 51, 1);
  1306. font-size: 36rpx;
  1307. margin-left: 16rpx;
  1308. }
  1309. }
  1310. .more {
  1311. color: #838383;
  1312. font-size: 24rpx
  1313. }
  1314. .details {
  1315. margin-top: 40rpx;
  1316. .item {
  1317. display: flex;
  1318. align-items: center;
  1319. justify-content: space-between;
  1320. margin-top: 32rpx;
  1321. .name {
  1322. color: rgba(51, 51, 51, 1);
  1323. }
  1324. .time {
  1325. color: rgba(119, 119, 119, 1);
  1326. font-size: 24rpx;
  1327. display: flex;
  1328. align-items: center;
  1329. .more{
  1330. margin-left: 4rpx;
  1331. }
  1332. }
  1333. }
  1334. }
  1335. }
  1336. // 能源监测
  1337. .energy-inspection,
  1338. .data-analysis {
  1339. margin: 24rpx 32rpx;
  1340. padding: 40rpx 32rpx;
  1341. background-color: #fff;
  1342. border-radius: 8px;
  1343. .title {
  1344. display: flex;
  1345. align-items: center;
  1346. font-weight: bold;
  1347. .icon {
  1348. width: 36rpx;
  1349. height: 36rpx;
  1350. background-color: rgba(182, 212, 255, 1);
  1351. border: 6px solid rgba(22, 119, 255, 1);
  1352. border-radius: 100px;
  1353. }
  1354. .text {
  1355. color: rgba(51, 51, 51, 1);
  1356. font-size: 36rpx;
  1357. margin-left: 16rpx;
  1358. }
  1359. }
  1360. .grid {
  1361. .icon {
  1362. width: 128rpx;
  1363. height: 128rpx;
  1364. border-radius: 12px;
  1365. background-color: rgba(35, 186, 178, 1);
  1366. display: flex;
  1367. align-items: center;
  1368. justify-content: center;
  1369. margin-bottom: 16rpx;
  1370. .img {
  1371. width: 80rpx;
  1372. height: 80rpx;
  1373. }
  1374. }
  1375. .icon2 {
  1376. background-color: rgba(42, 186, 72, 1);
  1377. }
  1378. .icon3 {
  1379. background-color: rgba(78, 96, 246, 1);
  1380. }
  1381. .icon4 {
  1382. background-color: rgba(22, 119, 255, 1);
  1383. }
  1384. .icon5 {
  1385. background-color: rgba(35, 186, 178, 1);
  1386. }
  1387. .icon6 {
  1388. background-color: rgba(42, 186, 72, 1);
  1389. }
  1390. .icon7 {
  1391. background-color: rgba(22, 119, 255, 1);
  1392. }
  1393. .icon8 {
  1394. background-color: rgba(35, 186, 178, 1);
  1395. }
  1396. .icon9 {
  1397. background-color: rgba(42, 186, 72, 1);
  1398. }
  1399. .grid-text {
  1400. color: #333333;
  1401. }
  1402. }
  1403. }
  1404. // 设备信息弹窗
  1405. .equipment-popup {
  1406. .content {
  1407. padding: 32rpx;
  1408. .headline {
  1409. color: rgba(16, 16, 16, 1);
  1410. font-size: 36rpx;
  1411. text-align: center;
  1412. font-weight: bold;
  1413. margin-bottom: 24rpx;
  1414. }
  1415. .infos {
  1416. padding-bottom: 100rpx;
  1417. .item:last-of-type {
  1418. border: none;
  1419. }
  1420. .item {
  1421. display: flex;
  1422. align-items: center;
  1423. line-height: 48rpx;
  1424. padding: 24rpx 0;
  1425. border-bottom: 1px solid #cccccc;
  1426. .item-title {
  1427. color: rgba(51, 51, 51, 1);
  1428. width: 200rpx;
  1429. }
  1430. .item-value {
  1431. color: #666666;
  1432. flex: 1;
  1433. margin-left: 16rpx;
  1434. display: flex;
  1435. align-items: center;
  1436. justify-content: space-between;
  1437. .img{
  1438. width: 32rpx;
  1439. height: 32rpx;
  1440. transform: rotate(90deg);
  1441. margin-left: 96rpx;
  1442. }
  1443. }
  1444. }
  1445. }
  1446. .get {
  1447. height: 80rpx;
  1448. line-height: 80rpx;
  1449. border-radius: 4px;
  1450. background-color: rgba(22, 119, 255, 1);
  1451. color: rgba(255, 255, 255, 1);
  1452. font-size: 32rpx;
  1453. }
  1454. }
  1455. }
  1456. // 创建工单
  1457. .create-order {
  1458. width: 120rpx;
  1459. height: 120rpx;
  1460. border-radius: 20px;
  1461. background: linear-gradient(180.29deg, rgba(255, 124, 112, 1) 0.9%, rgba(255, 79, 63, 1) 100.4%);
  1462. box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.4);
  1463. text-align: center;
  1464. display: flex;
  1465. flex-direction: column;
  1466. justify-content: center;
  1467. align-items: center;
  1468. position: fixed;
  1469. right: 32rpx;
  1470. bottom: 64rpx;
  1471. .img {
  1472. width: 56rpx;
  1473. height: 56rpx;
  1474. vertical-align: middle;
  1475. }
  1476. .text {
  1477. color: rgba(255, 255, 255, 1);
  1478. font-size: 22rpx;
  1479. }
  1480. }
  1481. </style>