electronicMonitoring.vue 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671
  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. @click="gotoUrl('/pages/equipmentDataMonitoring/electricityConsumptionDetail?id='
  94. +FormData.meterId+'&name='+tabsFrom.title)">
  95. <view class="item-title">
  96. <image class="img" src="@/assets/img/meterStatistics@3x.png"></image>电量统计(度)
  97. </view>
  98. <view class="item-value">
  99. <text>{{electricity}}</text> <u-icon name="arrow-right" color="#cccccc" size="24" ></u-icon>
  100. </view>
  101. </view>
  102. <view class="statistics-item" >
  103. <view class="item-title item-title2">
  104. <image class="img" src="@/assets/img/electricityStatistics@3x.png"></image>电费统计(元)
  105. </view>
  106. <view class="item-value">
  107. {{fee}}
  108. </view>
  109. </view>
  110. </view>
  111. <view class="radio">
  112. <u-radio-group v-model="value" @change="radioGroupChange">
  113. <u-radio @change="radioChange" v-for="(item, index) in list" :key="index" :name="item.id"
  114. :disabled="item.disabled">
  115. {{item.name}}
  116. </u-radio>
  117. </u-radio-group>
  118. </view>
  119. </view>
  120. <!-- 各时段用电量 -->
  121. <view class="electricity-chart">
  122. <view class="title">
  123. <view class="icon">
  124. </view>
  125. <view class="text">
  126. 各时段电量 (度)
  127. </view>
  128. <view class="more" @click="tabsFrom.show2=true,params.day=true">
  129. {{queryDay}}<u-icon name="arrow-down" color="#bbbbbb"></u-icon>
  130. </view>
  131. </view>
  132. <view class="chart">
  133. <view id="barEcharts" style="min-height:440rpx;">
  134. </view>
  135. </view>
  136. <view class="total" >
  137. <view class="total-item">
  138. 电量合计:{{sumQuantity}}度
  139. </view>
  140. <view class="total-item">
  141. 电费合计:{{sumFee}}元
  142. </view>
  143. </view>
  144. </view>
  145. <!-- 异常波动 -->
  146. <view class="abnormal" v-if="abnormalRecordsList.length != 0">
  147. <view class="headline">
  148. <view class="title">
  149. <view class="icon">
  150. </view>
  151. <view class="text">
  152. 异常告警
  153. </view>
  154. </view>
  155. <view class="more" @click="gotoUrl('/pages/abnormal/abnormalAlarmRecord?id='+companyId)">
  156. 查看全部
  157. <u-icon name="arrow-right" size="24" color="#d4d4d4"></u-icon>
  158. </view>
  159. </view>
  160. <view class="details">
  161. <view class="item" v-for="(item, index) in abnormalRecordsList" :key="index"
  162. @click="gotoUrl('/pages/abnormal/abnormalAlarmDetails?id='+item.id)">
  163. <view class="name">
  164. {{item.configName}}
  165. </view>
  166. <view class="time">
  167. {{item.createTime}}
  168. <!-- 箭头 -->
  169. <view class="more">
  170. <u-icon name="arrow-right" color="#acacac" size="24"></u-icon>
  171. </view>
  172. </view>
  173. </view>
  174. </view>
  175. </view>
  176. <!-- 能源监测 -->
  177. <view class="energy-inspection">
  178. <view class="title">
  179. <view class="icon">
  180. </view>
  181. <view class="text">
  182. 能源监测
  183. </view>
  184. </view>
  185. <view class="grid">
  186. <u-grid :col="3" :border="false">
  187. <u-grid-item @click="gotoInfo('3PhaseCurrentDetails','A','三相电流')">
  188. <view class="icon icon1">
  189. <image class="img" src="@/assets/img/Image@1.png" mode=""></image>
  190. </view>
  191. <view class="grid-text">三相电流</view>
  192. </u-grid-item>
  193. <u-grid-item @click="gotoInfo('3PhaseCurrentDetails','V','三相电压')">
  194. <view class="icon icon2">
  195. <image class="img" src="@/assets/img/Image@2.png" mode=""></image>
  196. </view>
  197. <view class="grid-text">三相电压</view>
  198. </u-grid-item>
  199. <u-grid-item @click="gotoInfo('3PhaseCurrentDetails','T','三相温度')">
  200. <view class="icon icon3">
  201. <image class="img" src="@/assets/img/Image@3.png" mode=""></image>
  202. </view>
  203. <view class="grid-text">三相温度</view>
  204. </u-grid-item>
  205. <u-grid-item @click="gotoInfo('3PhaseCurrentDetails','P','三相有功功率')">
  206. <view class="icon icon4">
  207. <image class="img" src="@/assets/img/Image@4.png" mode=""></image>
  208. </view>
  209. <view class="grid-text">三相有功功率</view>
  210. </u-grid-item>
  211. <u-grid-item @click="gotoInfo('3PhaseCurrentDetails','F','三相功率因数')">
  212. <view class="icon icon5">
  213. <image class="img" src="@/assets/img/Image@5.png" mode=""></image>
  214. </view>
  215. <view class="grid-text">三相功率因数</view>
  216. </u-grid-item>
  217. <u-grid-item @click="gotoInfo('3PhaseCurrentDetails','AF','平均功率因数')">
  218. <view class="icon icon6">
  219. <image class="img" src="@/assets/img/Image@5.png" mode=""></image>
  220. </view>
  221. <view class="grid-text">平均功率因数</view>
  222. </u-grid-item>
  223. </u-grid>
  224. </view>
  225. </view>
  226. <!-- 数据分析 -->
  227. <view class="data-analysis">
  228. <view class="title">
  229. <view class="icon">
  230. </view>
  231. <view class="text">
  232. 数据分析
  233. </view>
  234. </view>
  235. <view class="grid">
  236. <u-grid :col="3" :border="false">
  237. <u-grid-item @click="gotoInfo('chartYoY','','')">
  238. <view class="icon icon7">
  239. <image class="img" src="@/assets/img/Image@7.png" mode=""></image>
  240. </view>
  241. <view class="grid-text">同比分析</view>
  242. </u-grid-item>
  243. <u-grid-item @click="gotoInfo('chartMoM','','')">
  244. <view class="icon icon8">
  245. <image class="img" src="@/assets/img/Image@8.png" mode=""></image>
  246. </view>
  247. <view class="grid-text">环比分析</view>
  248. </u-grid-item>
  249. <u-grid-item @click="gotoUrl('/pages/equipmentDataMonitoring/electricityStatistics?id='+meterId)">
  250. <view class="icon icon9">
  251. <image class="img" src="@/assets/img/Image@9.svg" mode=""></image>
  252. </view>
  253. <view class="grid-text">用电统计</view>
  254. </u-grid-item>
  255. </u-grid>
  256. </view>
  257. </view>
  258. <!-- 设备信息 -->
  259. <view class="equipment-information">
  260. <view class="title">
  261. <view class="icon">
  262. </view>
  263. <view class="text">
  264. 设备信息
  265. </view>
  266. <view class="more" @click="equipmentInfosShow=true">
  267. 查看全部<u-icon name="arrow-right" size="24" color="#d4d4d4"></u-icon>
  268. </view>
  269. </view>
  270. <view class="infos">
  271. <view class="item" style="width: 30%;">
  272. <view class="item-title">
  273. 设备类型
  274. </view>
  275. <view class="item-value">
  276. {{meterDetail.deviceTypeN}}
  277. </view>
  278. </view>
  279. <view class="border">
  280. </view>
  281. <view class="item" style="width: 30%;">
  282. <view class="item-title">
  283. 设备编号
  284. </view>
  285. <view class="item-value">
  286. {{meterDetail.deviceNo}}
  287. </view>
  288. </view>
  289. <view class="border">
  290. </view>
  291. <view class="item" style="width: 30%;">
  292. <view class="item-title">
  293. 设备地址
  294. </view>
  295. <view class="item-value">
  296. {{meterDetail.installationAddressSimple}}
  297. </view>
  298. </view>
  299. </view>
  300. </view>
  301. <!-- 设备信息弹窗 -->
  302. <view class="equipment-popup">
  303. <u-popup v-model="equipmentInfosShow" mode="bottom" border-radius="12">
  304. <view class="content">
  305. <view class="headline">
  306. 设备信息
  307. </view>
  308. <view class="infos">
  309. <view class="item">
  310. <view class="item-title">
  311. 设备名称
  312. </view>
  313. <view class="item-value">
  314. {{meterDetail.name}}
  315. </view>
  316. </view>
  317. <view class="item">
  318. <view class="item-title">
  319. 设备类型
  320. </view>
  321. <view class="item-value">
  322. {{meterDetail.deviceTypeN}}
  323. </view>
  324. </view>
  325. <view class="item">
  326. <view class="item-title">
  327. 设备编号
  328. </view>
  329. <view class="item-value">
  330. {{meterDetail.deviceNo}}
  331. </view>
  332. </view>
  333. <view class="item">
  334. <view class="item-title">
  335. 产权单位
  336. </view>
  337. <view class="item-value">
  338. {{meterDetail.companyFullName}}
  339. </view>
  340. </view>
  341. <view class="item" @click="toMeterLocation">
  342. <view class="item-title">
  343. 设备地址
  344. </view>
  345. <view class="item-value">
  346. <span>{{meterDetail.installationAddress}}</span>
  347. <image class="img" src="@/assets/img/riFill-navigation-fill 1.svg"></image>
  348. </view>
  349. </view>
  350. <view class="item">
  351. <view class="item-title">
  352. 地址简称
  353. </view>
  354. <view class="item-value">
  355. {{meterDetail.installationAddressSimple}}
  356. </view>
  357. </view>
  358. <view class="item">
  359. <view class="item-title">
  360. 使用单位
  361. </view>
  362. <view class="item-value">
  363. {{meterDetail.customer}}
  364. </view>
  365. </view>
  366. <view class="item">
  367. <view class="item-title">
  368. 上线时间
  369. </view>
  370. <view class="item-value">
  371. {{meterDetail.enablingTime}}
  372. </view>
  373. </view>
  374. </view>
  375. <button class="get" @click="equipmentInfosShow=false">知道了</button>
  376. </view>
  377. </u-popup>
  378. </view>
  379. <!-- 故障上报 -->
  380. <view class="create-order" v-if="false">
  381. <view class="img-box">
  382. <image class="img" src="@/assets/img/fas fa-exclamation-triangle Copy 2@3x.png" mode=""></image>
  383. </view>
  384. <view class="text">
  385. 故障上报
  386. </view>
  387. </view>
  388. </view>
  389. </template>
  390. <script>
  391. import {
  392. parseUnixTime,
  393. beforeTimeStamp,
  394. getWeek
  395. } from '@/apis/utils'
  396. import * as echarts from 'echarts';
  397. import * as API from '@/apis/pagejs/index.js'
  398. import * as API_electricityMeter from '@/apis/pagejs/electricityMeter.js'
  399. import * as WxJsApi from '@/apis/utils/wxJsApi.js'
  400. export default {
  401. data() {
  402. return {
  403. meterDetail: {}, //设备信息
  404. electricity: 0, //电量统计
  405. fee: 0, //电费统计
  406. abnormalRecordsList: [], //异常list
  407. companyId: '', //企业id
  408. meterId: '', //设备id
  409. titleName: '',
  410. clickType: -1,
  411. sumQuantity: 0,
  412. sumFee: 0,
  413. equipmentInfosShow: false,
  414. kWhList: [],
  415. queryDay: '',
  416. showTop: [0, 0, 0, 0, 0, 0, 0, 0],
  417. FormData: {
  418. queryDate: '',
  419. meterId: '',
  420. type: 0
  421. },
  422. FormData2: {
  423. queryDate: '',
  424. meterId: ''
  425. },
  426. myChart: null,
  427. endYear: '',
  428. equipmentShow: false,
  429. multiSelector: [],
  430. equipmentList: [],
  431. params: {
  432. year: true,
  433. month: true,
  434. day: true,
  435. hour: false,
  436. minute: false,
  437. second: false
  438. },
  439. tabsFrom: {
  440. show1: false,
  441. show1Index: 0,
  442. show2Index: '',
  443. show2: false,
  444. show1Text: "全部类型",
  445. show2Text: "全部时间",
  446. selector1: [{
  447. label: '全部类型',
  448. value: '',
  449. },
  450. {
  451. label: '线上充值',
  452. value: '1',
  453. },
  454. {
  455. label: '线下充值',
  456. value: '2',
  457. },
  458. ]
  459. },
  460. background: {
  461. backgroundColor: '#1677FF',
  462. },
  463. list: [{
  464. id: 1,
  465. name: '本月',
  466. disabled: false
  467. }, {
  468. id: 4,
  469. name: '今日',
  470. disabled: false
  471. }, {
  472. id: 2,
  473. name: '上月',
  474. disabled: false
  475. }, {
  476. id: 3,
  477. name: '本年',
  478. disabled: false
  479. }, {
  480. id: 0,
  481. name: '合计',
  482. disabled: false
  483. }, {
  484. id: 10,
  485. name: '指定月份',
  486. disabled: false
  487. }],
  488. value: '2',
  489. intervalId: null, // 用于存储间隔ID
  490. intervalReady: true, // 用于存储间隔ID
  491. };
  492. },
  493. onLoad(op) {
  494. if (op.id) {
  495. this.FormData.meterId = op.id;
  496. this.FormData2.meterId = op.id;
  497. this.tabsFrom.title = op.name;
  498. this.meterId = op.id;
  499. this.titleName = op.name;
  500. this.companyId = op.companyId;
  501. }
  502. this.endYear = new Date().getFullYear();
  503. this.FormData.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  504. this.FormData2.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  505. this.FormData.type = 2;
  506. this.getElectricityStatistics();
  507. this.getTimeSlotStatistics();
  508. this.getCompanyInfoList();
  509. this.getAbnormalAlarmRecord();
  510. this.getMeterDetails(this.meterId);
  511. },
  512. onReady() {
  513. WxJsApi.getWxConfig(['getLocation', 'openLocation', 'addEventListener', 'scanQRCode']).then((res) => {
  514. // //(res)
  515. }).catch(error => {
  516. //(res)
  517. })
  518. },
  519. beforeDestroy() {
  520. this.clearTimer(); // 组件销毁前清除定时器
  521. this.intervalReady = false;
  522. console.log("组件销毁前清除定时器")
  523. },
  524. methods: {
  525. toMeterLocation() {
  526. // WxJsApi.openLocation({
  527. // latitude: parseFloat(this.meterDetail.latitude), //目的地latitude
  528. // longitude: parseFloat(this.meterDetail.longitude), //目的地longitude
  529. // name: this.meterDetail.name,
  530. // address: this.meterDetail.installationAddress,
  531. // scale: 15, //地图缩放大小,可根据情况具体调整
  532. // success(res) {
  533. // uni.hideLoading()
  534. // },
  535. // complete() {
  536. // // uni.hideLoading()
  537. // }
  538. // });
  539. },
  540. getMeterDetails(meterId) {
  541. uni.showLoading({
  542. title: "加载中",
  543. mask: true,
  544. })
  545. API_electricityMeter.meterDetails({
  546. meterId: meterId
  547. }).then((res) => {
  548. uni.hideLoading();
  549. this.meterDetail = res.data.meter;
  550. }).catch(error => {
  551. uni.showToast({
  552. title: error,
  553. icon: "none"
  554. })
  555. })
  556. },
  557. clearTimer() {
  558. if (this.intervalId) {
  559. clearInterval(this.intervalId); // 清除定时器
  560. this.intervalId = null; // 重置定时器ID
  561. }
  562. },
  563. startInterval() {
  564. this.clearTimer(); // 组件销毁前清除定时器
  565. this.intervalId = setInterval(() => {
  566. // 每隔5秒运行的代码
  567. // console.log('这段代码每隔5秒运行一次');
  568. this.getElectricityStatistics(true)
  569. this.getTimeSlotStatistics(true)
  570. }, 60000);
  571. },
  572. gotoInfo(path, type, name) {
  573. if (!this.FormData.meterId) {
  574. uni.showToast({
  575. title: "未查询到电表",
  576. icon: "none"
  577. })
  578. return
  579. }
  580. uni.navigateTo({
  581. url: "/pages/equipmentDataMonitoring/" + path + "?id=" + this.FormData.meterId + "&type=" + type +
  582. "&typeName=" + name+"&title="+this.tabsFrom.title
  583. })
  584. },
  585. // 异常告警记录
  586. getAbnormalAlarmRecord() {
  587. var queryDate = parseUnixTime(new Date(), '{y}-{m}');
  588. uni.showLoading({
  589. title: "加载中",
  590. mask: true,
  591. })
  592. API.alarmRecord({
  593. queryDate: queryDate,
  594. configId: '',
  595. pageIndex: 1,
  596. pageSize: 2,
  597. companyId: this.companyId,
  598. meterId: this.meterId
  599. }).then((res) => {
  600. uni.hideLoading();
  601. this.abnormalRecordsList = res.data.data;
  602. }).catch(error => {
  603. uni.showToast({
  604. title: error,
  605. icon: "none"
  606. })
  607. })
  608. },
  609. titleCk() {
  610. this.tabsFrom.show1 = true
  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. height: 150px;
  990. padding-bottom: 100rpx;
  991. position: relative;
  992. /deep/.u-border-bottom:after {
  993. border: none;
  994. }
  995. .u-nav-slot {
  996. margin-right: 32rpx;
  997. .img {
  998. width: 48rpx;
  999. height: 48rpx;
  1000. vertical-align: middle;
  1001. }
  1002. }
  1003. }
  1004. .background::after {
  1005. content: '';
  1006. position: absolute;
  1007. bottom:-39rpx;
  1008. width: 100%;
  1009. height: 40rpx; /* 弧形的高度 */
  1010. background-color: rgba(22, 119, 255, 1); /* 弧形的颜色 */
  1011. border-radius: 50%; /* 创建圆形 */
  1012. border-top-left-radius: 0;
  1013. border-top-right-radius: 0;
  1014. }
  1015. // // 日期
  1016. .date-box {
  1017. display: flex;
  1018. align-items: center;
  1019. justify-content: space-between;
  1020. margin: 24rpx 32rpx;
  1021. .item {
  1022. border-radius: 8px;
  1023. background-color: rgba(255, 255, 255, 0.1);
  1024. border: 1px solid rgba(255, 255, 255, 0.15);
  1025. width: 120rpx;
  1026. height: 120rpx;
  1027. color: #fff;
  1028. text-align: center;
  1029. display: flex;
  1030. flex-direction: column;
  1031. justify-content: center;
  1032. .date {
  1033. font-size: 40rpx;
  1034. }
  1035. }
  1036. .item-today {
  1037. background-color: rgba(255, 255, 255, 1);
  1038. position: relative;
  1039. .date {
  1040. color: rgba(22, 119, 255, 1);
  1041. }
  1042. .week {
  1043. color: rgba(16, 16, 16, 1);
  1044. }
  1045. .dot {
  1046. width: 10rpx;
  1047. height: 10rpx;
  1048. background-color: rgba(255, 150, 0, 1);
  1049. border-radius: 999px;
  1050. position: absolute;
  1051. bottom: -5rpx;
  1052. left: 50%;
  1053. transform: translateX(-50%);
  1054. }
  1055. }
  1056. }
  1057. // 用电量
  1058. .electricity-consumption {
  1059. background-color: #fff;
  1060. padding: 32rpx 32rpx 0rpx;
  1061. border-radius: 8px;
  1062. margin: -188rpx 32rpx 0;
  1063. position: relative;
  1064. border: 1px solid rgba(255,255,255,1);
  1065. background: linear-gradient(180deg, rgba(187,216,255,1) 0%,rgba(255,255,255,1) 63%);
  1066. // 统计
  1067. .statistics-content{
  1068. display: flex;
  1069. align-items: center;
  1070. justify-content: space-between;
  1071. .statistics-item{
  1072. width: 300rpx;
  1073. padding: 24rpx 0 24rpx 24rpx;
  1074. border-radius: 8px;
  1075. box-shadow: 0px 0px 8px 0px rgba(22,119,255,0.3);
  1076. background-color: #fff;
  1077. }
  1078. .item-title{
  1079. color: rgba(22,119,255,1);
  1080. font-size: 32rpx;
  1081. display: flex;
  1082. align-items: center;
  1083. font-weight: bold;
  1084. .img{
  1085. width: 32rpx;
  1086. height: 32rpx;
  1087. vertical-align: middle;
  1088. margin-right: 4rpx;
  1089. }
  1090. }
  1091. .item-title2{
  1092. color: rgba(129,97,255,1);
  1093. }
  1094. .item-value{
  1095. color: rgba(16,16,16,1);
  1096. font-size: 48rpx;
  1097. font-weight: bold;
  1098. margin-top: 8rpx;
  1099. overflow: hidden;
  1100. white-space: nowrap;
  1101. text-overflow: ellipsis;
  1102. text{
  1103. margin-right: 4rpx;
  1104. }
  1105. }
  1106. }
  1107. .title {
  1108. color: rgba(16, 16, 16, 1);
  1109. font-size: 36rpx;
  1110. }
  1111. .degree {
  1112. display: flex;
  1113. margin-top: 32rpx;
  1114. .item {
  1115. margin-right: 6rpx;
  1116. text-align: center;
  1117. .item-text {
  1118. color: rgba(16, 16, 16, 1);
  1119. }
  1120. .item-number {
  1121. margin-top: 24rpx;
  1122. width: 72rpx;
  1123. height: 96rpx;
  1124. background-color: rgba(16, 16, 16, 1);
  1125. color: #fff;
  1126. font-size: 72rpx;
  1127. }
  1128. .decimal {
  1129. background-color: #900005;
  1130. }
  1131. }
  1132. }
  1133. // .tab {
  1134. // width: 240rpx;
  1135. // height: 0;
  1136. // border-width: 0px 48rpx 72rpx 0px;
  1137. // border-radius: 8px 8px 0 0;
  1138. // border-style: none solid solid none;
  1139. // border-color: transparent transparent #fff;
  1140. // position: absolute;
  1141. // top: -72rpx;
  1142. // left: 0rpx;
  1143. // right: 0rpx;
  1144. // color: #101010;
  1145. // color: rgba(16, 16, 16, 1);
  1146. // text-align: center;
  1147. // line-height: 72rpx;
  1148. // z-index: 999;
  1149. // text-indent: 16rpx;
  1150. // }
  1151. // .tab2 {
  1152. // width: 240rpx;
  1153. // height: 0;
  1154. // border-width: 0px 48rpx 72rpx 0px;
  1155. // border-radius: 8px 8px 0 0;
  1156. // border-style: none solid solid none;
  1157. // border-color: transparent transparent #D4DBE4;
  1158. // position: absolute;
  1159. // top: -72rpx;
  1160. // left: 210rpx;
  1161. // right: 0rpx;
  1162. // color: #777777;
  1163. // text-align: center;
  1164. // line-height: 72rpx;
  1165. // text-indent: 16rpx;
  1166. // }
  1167. .radio {
  1168. margin-top: 24rpx;
  1169. padding-left: 8rpx;
  1170. /deep/.u-radio {
  1171. margin-bottom: 8px;
  1172. min-width: 25% !important;
  1173. }
  1174. /deep/.u-radio__label{
  1175. margin-left: 24rpx;
  1176. font-size: 28rpx; ;
  1177. }
  1178. }
  1179. }
  1180. //各时段用电量
  1181. .electricity-chart {
  1182. margin: 24rpx 32rpx;
  1183. padding: 40rpx 32rpx;
  1184. background-color: #fff;
  1185. border-radius: 8px;
  1186. .title {
  1187. display: flex;
  1188. align-items: center;
  1189. margin-bottom: 40rpx;
  1190. .icon {
  1191. width: 36rpx;
  1192. height: 36rpx;
  1193. background-color: rgba(182, 212, 255, 1);
  1194. border: 6px solid rgba(22, 119, 255, 1);
  1195. border-radius: 100px;
  1196. }
  1197. .text {
  1198. color: rgba(51, 51, 51, 1);
  1199. font-size: 36rpx;
  1200. margin-left: 16rpx;
  1201. font-weight: bold;
  1202. }
  1203. .more {
  1204. margin-left: auto;
  1205. border: 1px solid rgba(187,187,187,1);
  1206. border-radius: 4px;
  1207. padding: 8rpx;
  1208. font-size: 24rpx;
  1209. }
  1210. }
  1211. .total{
  1212. text-align: center;
  1213. color: rgba(51,51,51,1);
  1214. font-weight: bold;
  1215. }
  1216. .chart {
  1217. width: 100%;
  1218. height: 500rpx;
  1219. .img {
  1220. width: 100%;
  1221. height: 440rpx;
  1222. }
  1223. }
  1224. }
  1225. .equipment-information {
  1226. margin: 24rpx 32rpx;
  1227. padding: 40rpx 0rpx;
  1228. background-color: #fff;
  1229. border-radius: 8px;
  1230. .title {
  1231. display: flex;
  1232. align-items: center;
  1233. padding: 0 32rpx;
  1234. margin-bottom: 40rpx;
  1235. .icon {
  1236. width: 36rpx;
  1237. height: 36rpx;
  1238. background-color: rgba(182, 212, 255, 1);
  1239. border: 6px solid rgba(22, 119, 255, 1);
  1240. border-radius: 100px;
  1241. }
  1242. .text {
  1243. display: flex;
  1244. align-items: center;
  1245. color: rgba(51, 51, 51, 1);
  1246. font-size: 36rpx;
  1247. margin-left: 16rpx;
  1248. font-weight: bold;
  1249. }
  1250. .date {
  1251. margin-left: auto;
  1252. }
  1253. .more {
  1254. color: #838383;
  1255. font-size: 24rpx;
  1256. margin-left: auto;
  1257. }
  1258. }
  1259. .chart {
  1260. width: 100%;
  1261. height: 440rpx;
  1262. .img {
  1263. width: 100%;
  1264. height: 440rpx;
  1265. }
  1266. }
  1267. .infos {
  1268. padding: 0 32rpx;
  1269. display: flex;
  1270. justify-content: space-between;
  1271. text-align: center;
  1272. .border {
  1273. margin: auto 0;
  1274. height: 70rpx;
  1275. width: 2rpx;
  1276. background-color: rgba(204, 204, 204, 1);
  1277. ;
  1278. }
  1279. .item-title {
  1280. color: rgba(119, 119, 119, 1);
  1281. }
  1282. .item-value {
  1283. color: rgba(16, 16, 16, 1);
  1284. font-size: 32rpx;
  1285. margin-top: 16rpx;
  1286. }
  1287. }
  1288. }
  1289. // 异常
  1290. .abnormal {
  1291. margin: 24rpx 32rpx;
  1292. padding: 40rpx 32rpx;
  1293. background-color: #fff;
  1294. border-radius: 8px;
  1295. .headline {
  1296. display: flex;
  1297. align-items: center;
  1298. justify-content: space-between;
  1299. }
  1300. .title {
  1301. display: flex;
  1302. align-items: center;
  1303. font-weight: bold;
  1304. .icon {
  1305. width: 36rpx;
  1306. height: 36rpx;
  1307. background-color: rgba(182, 212, 255, 1);
  1308. border: 6px solid rgba(22, 119, 255, 1);
  1309. border-radius: 100px;
  1310. }
  1311. .text {
  1312. color: rgba(51, 51, 51, 1);
  1313. font-size: 36rpx;
  1314. margin-left: 16rpx;
  1315. }
  1316. }
  1317. .more {
  1318. color: #838383;
  1319. font-size: 24rpx
  1320. }
  1321. .details {
  1322. margin-top: 40rpx;
  1323. .item {
  1324. display: flex;
  1325. align-items: center;
  1326. justify-content: space-between;
  1327. margin-top: 32rpx;
  1328. .name {
  1329. color: rgba(51, 51, 51, 1);
  1330. }
  1331. .time {
  1332. color: rgba(119, 119, 119, 1);
  1333. font-size: 24rpx;
  1334. display: flex;
  1335. align-items: center;
  1336. .more{
  1337. margin-left: 4rpx;
  1338. }
  1339. }
  1340. }
  1341. }
  1342. }
  1343. // 能源监测
  1344. .energy-inspection,
  1345. .data-analysis {
  1346. margin: 24rpx 32rpx;
  1347. padding: 40rpx 32rpx;
  1348. background-color: #fff;
  1349. border-radius: 8px;
  1350. .title {
  1351. display: flex;
  1352. align-items: center;
  1353. font-weight: bold;
  1354. .icon {
  1355. width: 36rpx;
  1356. height: 36rpx;
  1357. background-color: rgba(182, 212, 255, 1);
  1358. border: 6px solid rgba(22, 119, 255, 1);
  1359. border-radius: 100px;
  1360. }
  1361. .text {
  1362. color: rgba(51, 51, 51, 1);
  1363. font-size: 36rpx;
  1364. margin-left: 16rpx;
  1365. }
  1366. }
  1367. .grid {
  1368. .icon {
  1369. width: 128rpx;
  1370. height: 128rpx;
  1371. border-radius: 12px;
  1372. background-color: rgba(35, 186, 178, 1);
  1373. display: flex;
  1374. align-items: center;
  1375. justify-content: center;
  1376. margin-bottom: 16rpx;
  1377. .img {
  1378. width: 80rpx;
  1379. height: 80rpx;
  1380. }
  1381. }
  1382. .icon2 {
  1383. background-color: rgba(42, 186, 72, 1);
  1384. }
  1385. .icon3 {
  1386. background-color: rgba(78, 96, 246, 1);
  1387. }
  1388. .icon4 {
  1389. background-color: rgba(22, 119, 255, 1);
  1390. }
  1391. .icon5 {
  1392. background-color: rgba(35, 186, 178, 1);
  1393. }
  1394. .icon6 {
  1395. background-color: rgba(42, 186, 72, 1);
  1396. }
  1397. .icon7 {
  1398. background-color: rgba(22, 119, 255, 1);
  1399. }
  1400. .icon8 {
  1401. background-color: rgba(35, 186, 178, 1);
  1402. }
  1403. .icon9 {
  1404. background-color: rgba(42, 186, 72, 1);
  1405. }
  1406. .grid-text {
  1407. color: #333333;
  1408. }
  1409. }
  1410. }
  1411. // 设备信息弹窗
  1412. .equipment-popup {
  1413. .content {
  1414. padding: 32rpx;
  1415. .headline {
  1416. color: rgba(16, 16, 16, 1);
  1417. font-size: 36rpx;
  1418. text-align: center;
  1419. font-weight: bold;
  1420. margin-bottom: 24rpx;
  1421. }
  1422. .infos {
  1423. padding-bottom: 100rpx;
  1424. .item:last-of-type {
  1425. border: none;
  1426. }
  1427. .item {
  1428. display: flex;
  1429. align-items: center;
  1430. line-height: 48rpx;
  1431. padding: 24rpx 0;
  1432. border-bottom: 1px solid #cccccc;
  1433. .item-title {
  1434. color: rgba(51, 51, 51, 1);
  1435. width: 200rpx;
  1436. }
  1437. .item-value {
  1438. color: #666666;
  1439. flex: 1;
  1440. margin-left: 16rpx;
  1441. display: flex;
  1442. align-items: center;
  1443. justify-content: space-between;
  1444. .img{
  1445. width: 32rpx;
  1446. height: 32rpx;
  1447. transform: rotate(90deg);
  1448. margin-left: 96rpx;
  1449. }
  1450. }
  1451. }
  1452. }
  1453. .get {
  1454. height: 80rpx;
  1455. line-height: 80rpx;
  1456. border-radius: 4px;
  1457. background-color: rgba(22, 119, 255, 1);
  1458. color: rgba(255, 255, 255, 1);
  1459. font-size: 32rpx;
  1460. }
  1461. }
  1462. }
  1463. // 创建工单
  1464. .create-order {
  1465. width: 120rpx;
  1466. height: 120rpx;
  1467. border-radius: 20px;
  1468. background: linear-gradient(180.29deg, rgba(255, 124, 112, 1) 0.9%, rgba(255, 79, 63, 1) 100.4%);
  1469. box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.4);
  1470. text-align: center;
  1471. display: flex;
  1472. flex-direction: column;
  1473. justify-content: center;
  1474. align-items: center;
  1475. position: fixed;
  1476. right: 32rpx;
  1477. bottom: 64rpx;
  1478. .img {
  1479. width: 56rpx;
  1480. height: 56rpx;
  1481. vertical-align: middle;
  1482. }
  1483. .text {
  1484. color: rgba(255, 255, 255, 1);
  1485. font-size: 22rpx;
  1486. }
  1487. }
  1488. </style>