electronicMonitoringWater.vue 35 KB

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