121 lines
4.4 KiB
Plaintext
121 lines
4.4 KiB
Plaintext
<!--pages/electricQuery/index.wxml-->
|
||
<navigator title="用电查询" canBack="{{true}}" />
|
||
<view class="wrapper">
|
||
<view class="queryWrapper">
|
||
<view class="label">
|
||
选择电表
|
||
</view>
|
||
<view class="select" bind:tap="clickMeter">
|
||
<view class="selectContent">
|
||
{{ meterCode === "" ? '全部' : meterCode }}
|
||
</view>
|
||
<van-icon name="arrow-down" />
|
||
</view>
|
||
</view>
|
||
|
||
<view class="query">
|
||
<view class="typeQuery">
|
||
<van-row>
|
||
<van-col span="8">
|
||
<view class="typeQueryText" style="color: {{queryType === 0 ? '#0958d9' : '#000'}}" bind:tap="changeQueryType" data-type="{{0}}"> 电量查询 </view>
|
||
</van-col>
|
||
<van-col span="8">
|
||
<view class="typeQueryText" style="color: {{queryType === 1 ? '#0958d9' : '#000'}}" bind:tap="changeQueryType" data-type="{{1}}"> 抄表记录 </view>
|
||
</van-col>
|
||
<van-col span="8">
|
||
<view class="typeQueryText" style="color: {{queryType === 2 ? '#0958d9' : '#000'}}" bind:tap="changeQueryType" data-type="{{2}}"> 账务余额 </view>
|
||
</van-col>
|
||
</van-row>
|
||
</view>
|
||
<view class="timeQuery" wx:if="{{queryType === 0}}">
|
||
<van-row>
|
||
<van-col span="8">
|
||
<view class="timeQueryText" style="color: {{timeType === 0 ? '#0958d9' : '#000'}}" bind:tap="changeTimeType" data-type="{{0}}"> 日耗量 </view>
|
||
</van-col>
|
||
<van-col span="8">
|
||
<view class="timeQueryText" style="color: {{timeType === 1 ? '#0958d9' : '#000'}}" bind:tap="changeTimeType" data-type="{{1}}"> 月耗量 </view>
|
||
</van-col>
|
||
<van-col span="8">
|
||
<view class="timeQueryText" style="color: {{timeType === 2 ? '#0958d9' : '#000'}}" bind:tap="changeTimeType" data-type="{{2}}"> 年耗量 </view>
|
||
</van-col>
|
||
</van-row>
|
||
</view>
|
||
</view>
|
||
<view wx:if="{{queryType === 0}}">
|
||
<view class="tooltip">
|
||
不包括线损电量,显示为电表实际消耗电量。仅供参考,实际能耗电量以电费账单为主。如有疑问,请联系客服。
|
||
</view>
|
||
<view class="timeChooseWrapper">
|
||
<view> 选择时间 </view>
|
||
<view class="time" bind:tap="clickTime">
|
||
<view class="timeText" wx:if="{{timeType === 0}}"> {{yearMonthDay}} </view>
|
||
<view class="timeText" wx:elif="{{timeType === 1}}"> {{yearMonth}} </view>
|
||
<view class="timeText" wx:else> {{year}} </view>
|
||
<van-icon name="arrow-down" />
|
||
</view>
|
||
<van-button type="info" size="small"> 导出 </van-button>
|
||
</view>
|
||
</view>
|
||
<view wx:elif="{{queryType === 1}}">
|
||
<view class="tooltip">
|
||
显示为最新的一条抄表记录。电表更新数据有延迟,仅供参考,实际以电表上显示为准。
|
||
</view>
|
||
</view>
|
||
<view wx:elif="{{queryType === 2}}">
|
||
<view class="tooltip">
|
||
账务余额更新时间为:每次预存电费后,每次账单发布后,剩余的实际金额。电表余额与账务余额相差较大的用户,每半年统一处理一次。
|
||
</view>
|
||
</view>
|
||
|
||
</view>
|
||
<view wx:if="{{queryType === 0}}">
|
||
<view style="margin: 30rpx;">
|
||
<table header="{{header}}" list="{{list}}" wx:if="{{list.length}}" />
|
||
<empty bind:refresh="init" wx:else />
|
||
</view>
|
||
<view class="sum">
|
||
合计:表计数量:10,耗电量100
|
||
</view>
|
||
</view>
|
||
<view wx:if="{{queryType === 1}}">
|
||
<view style="margin: 30rpx;">
|
||
<table header="{{meterReadingHeader}}" list="{{meterReadingList}}" wx:if="{{meterReadingList.length}}" />
|
||
<empty bind:refresh="getReadingList" wx:else />
|
||
</view>
|
||
|
||
</view>
|
||
<view wx:if="{{queryType === 2}}">
|
||
<view style="margin: 30rpx;">
|
||
<accountingCard wx:for="{{accountingList}}" data="{{item}}" />
|
||
<!-- <table header="{{meterReadingHeader}}" list="{{accountingList}}" wx:if="{{accountingList.length}}" /> -->
|
||
<!-- <empty bind:refresh="init" wx:else /> -->
|
||
</view>
|
||
|
||
</view>
|
||
<!-- <echarts
|
||
style="width:200rpx;height:200rpx;position:relative"
|
||
id="echarts"
|
||
class='mychart-bar'
|
||
canvas-id="mychart-bar"
|
||
ec="{{ ec }}"
|
||
>
|
||
</echarts> -->
|
||
<custom-picker
|
||
title="{{title}}"
|
||
show="{{show}}"
|
||
valueKey="name"
|
||
columns="{{columns}}"
|
||
bind:ok="onOk"
|
||
bind:cancel="onCancel"
|
||
type="{{type}}"
|
||
/>
|
||
<timePicker
|
||
type="{{timePickerType}}"
|
||
year="{{year}}"
|
||
month="{{yearMonthStamp}}"
|
||
day="{{yearMonthDayStamp}}"
|
||
show="{{visible}}"
|
||
bind:cancel="onTimeCancel"
|
||
bind:close="onTimeClose"
|
||
bind:confirm="onTimeConfirm"
|
||
/> |