electronicMonitoringWater.vue 35 KB

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