工作台 -> 充值审核 -> 已审核列表标签字体缩小

This commit is contained in:
ZiHangQin 2025-07-22 08:58:30 +08:00
parent fccaee5f2b
commit 886a03cf16
10 changed files with 154 additions and 105 deletions

View File

@ -1,6 +1,5 @@
// pages/electricQuery/components/accountingCard/index.js
Component({
/**
* 组件的属性列表
*/

View File

@ -1,16 +1,21 @@
<!--pages/electricQuery/components/accountingCard/index.wxml-->
<view class="wrapper">
<view class="title">
<span>{{data.meter.address}}</span><span class="tableContent" style="font-size: 30rpx; margin-left: 100rpx;">电表编号:{{data.meter.sn}}</span>
<span>{{data.meter.address}}</span>
<span style="font-size: 30rpx; margin-left: 100rpx;">电表编号:{{data.meter.sn}}</span>
</view>
<van-row>
<view class="table-header">
<view class="table-header" style="border-bottom: 2rpx solid #000; ">
<view class="table-header-row">
<text class="table-header-cell">类目</text>
<text class="table-header-cell">金额</text>
<text class="table-header-cell">更新时间</text>
</view>
</view>
</van-row>
<view style="border-bottom: 2rpx solid rgba(12, 236, 188, 0.26); ">
<van-row>
<van-col span="7">
<view class="tableTitle"> 初始余额 </view>
</van-col>
@ -18,10 +23,12 @@
<view class="tableContent"> {{data.startMoney}} </view>
</van-col>
<van-col span="7">
<view calss="tableContent"> {{data.updateStartMoneyAt}} </view>
<view calss="tableContent"> {{data.updateStartMoneyAt || '--'}} </view>
</van-col>
</van-row>
</view>
<view style="border-bottom: 2rpx solid rgba(12, 236, 188, 0.26); ">
<van-row>
<van-col span="7">
<view class="tableTitle"> 累计充值金额 </view>
@ -30,10 +37,12 @@
<view class="tableContent"> {{data.rechargeMoney}} </view>
</van-col>
<van-col span="7">
<view calss="tableContent"> {{data.updateRechargeMoneyAt}} </view>
<view calss="tableContent"> {{data.updateRechargeMoneyAt || '--'}} </view>
</van-col>
</van-row>
</view>
<view style="border-bottom: 2rpx solid rgba(12, 236, 188, 0.26); ">
<van-row>
<van-col span="7">
<view class="tableTitle"> 电费 </view>
@ -42,10 +51,12 @@
<view class="tableContent"> {{data.electricMoney}} </view>
</van-col>
<van-col span="7">
<view calss="tableContent"> {{data.updateElectricMoneyAt}} </view>
<view calss="tableContent"> {{data.updateElectricMoneyAt || '--'}} </view>
</van-col>
</van-row>
</view>
<view style="border-bottom: 2rpx solid rgba(12, 236, 188, 0.26); ">
<van-row>
<van-col span="7">
<view class="tableTitle"> 账务余额 </view>
@ -54,10 +65,12 @@
<view class="tableContent"> {{data.accountMoney}} </view>
</van-col>
<van-col span="7">
<view calss="tableContent"> {{data.updateAccountMoneyAt}} </view>
<view calss="tableContent"> {{data.updateAccountMoneyAt || '--'}} </view>
</van-col>
</van-row>
</view>
<view style="border-bottom: 2rpx solid rgba(12, 236, 188, 0.26); ">
<van-row>
<van-col span="7">
<view class="tableTitle"> 电表余额 </view>
@ -66,7 +79,8 @@
<view class="tableContent"> {{data.meterMoney}} </view>
</van-col>
<van-col span="7">
<view calss="tableContent"> {{data.updateMeterMoneyAt}} </view>
<view calss="tableContent"> {{data.updateMeterMoneyAt || '--'}} </view>
</van-col>
</van-row>
</view>
</view>

View File

@ -17,7 +17,7 @@
}
.tableContent {
margin-top: 10rpx;
margin-top: 25rpx;
margin-bottom: 20rpx;
text-align: center;
font-size: 32rpx;

View File

@ -75,7 +75,6 @@
border="{{ false }}"
label="当前表字(总)"
readonly
wx:if="{{park.meter04kvType !== 1}}"
/>
<van-field
@ -90,14 +89,14 @@
border="{{ false }}"
label="当前表字(尖)"
readonly
wx:if="{{park.meter04kvType === 1}}"
wx:if="{{park.meter04kvType === 1|| park.meter04kvType === 2}}"
/>
<van-field
value="{{ readingDetail.sharpAmount }}"
border="{{ false }}"
label="尖用电量"
readonly
wx:if="{{park.meter04kvType === 1}}"
wx:if="{{park.meter04kvType === 1|| park.meter04kvType === 2}}"
/>
<van-field
@ -105,14 +104,14 @@
border="{{ false }}"
label="当前表字(峰)"
readonly
wx:if="{{park.meter04kvType === 1}}"
wx:if="{{park.meter04kvType === 1 || park.meter04kvType === 2}}"
/>
<van-field
value="{{ readingDetail.peakAmount }}"
border="{{ false }}"
label="峰用电量"
readonly
wx:if="{{park.meter04kvType === 1}}"
wx:if="{{park.meter04kvType === 1|| park.meter04kvType === 2}}"
/>
<van-field
@ -120,14 +119,14 @@
border="{{ false }}"
label="当前表字(平)"
readonly
wx:if="{{park.meter04kvType === 1}}"
wx:if="{{park.meter04kvType === 1|| park.meter04kvType === 2}}"
/>
<van-field
value="{{ readingDetail.flatAmount }}"
border="{{ false }}"
label="平用电量"
readonly
wx:if="{{park.meter04kvType === 1}}"
wx:if="{{park.meter04kvType === 1|| park.meter04kvType === 2}}"
/>
<van-field
@ -135,14 +134,14 @@
border="{{ false }}"
label="当前表字(谷)"
readonly
wx:if="{{park.meter04kvType === 1}}"
wx:if="{{park.meter04kvType === 1|| park.meter04kvType === 2}}"
/>
<van-field
value="{{ readingDetail.valleyAmount }}"
border="{{ false }}"
label="谷用电量"
readonly
wx:if="{{park.meter04kvType === 1}}"
wx:if="{{park.meter04kvType === 1|| park.meter04kvType === 2}}"
/>
<view class="text">上次抄表记录起,至现在时间内的用电量</view>
</van-cell-group>

View File

@ -88,7 +88,7 @@
<van-cell title="退出登录" icon="revoke" value="" is-link bind:tap="logout" />
</view>
<!-- <van-dialog id="van-dialog" /> -->
<van-dialog id="van-dialog" />
</view>
<van-dialog

View File

@ -11,8 +11,8 @@
border="{{ false }}"
/>
<van-field
value="{{detail.meter.code}}"
label="电表Sn"
value="{{detail.meter.sn}}(SN)"
label="电表编号"
readonly
autosize="{{true}}"
type="textarea"

View File

@ -120,7 +120,7 @@ Component({
}
this.setData({
list: data.map(item => {
item.topTime = dayjs(item.topTime).format("MM-DD HH:mm:ss")
item.topTime = dayjs(item.topTime).format("MM-DD")
return item
}),
total: total,

View File

@ -13,33 +13,34 @@
<view class="tableWrapper">
<view class="table">
<view class="thead">
<view class="th" style="flex: 0 0 100rpx;"> </view>
<view class="th" style="flex: 0 0 200rpx;"> 商户名字 </view>
<view class="th" style="flex: 0 0 250rpx;"> 充值金额 </view>
<view class="th" style="flex: 0 0 350rpx; display: {{status === 1 ? 'block' : 'none'}};">状态</view>
<view class="th" style="flex: 0 0 250rpx;">提交时间</view>
<view class="th"style="flex: 1; justify-content: flex-end; display: flex; align-items: center;"> 操作 </view>
<view class="th" style="flex: 0 0 80rpx; display: {{status === 2 ? 'block' : 'none'}};"> </view>
<!-- <view class="th" style="flex: 0 0 0rpx; display: {{status === 1 ? 'block' : 'none'}};"> </view> -->
<view class="th" style="flex: 0 0 130rpx;"> 商户名字</view>
<view class="th" style="flex: 0 0 150rpx;"> 充值金额 </view>
<view class="th" style="flex: 0 0 150rpx; display: {{status === 1 ? 'block' : 'none'}};">状态</view>
<view class="th" style="flex: 0 0 150rpx;">提交时间</view>
<view class="th"style="flex: 0 0 120rpx; justify-content: flex-end; display: flex; align-items: center;"> 操作 </view>
</view>
<view class="tbody">
<van-radio-group value="{{ record }}" bind:change="onChangeSelectRecharge">
<block wx:for="{{list}}" wx:for-index="itemIndex" wx:key="item">
<view class="tr" style="display: flex; align-items: center; ">
<view class="th" style="flex: 0 0 100rpx;">
<view class="th" style="flex: 0 0 80rpx; ; display: {{status === 2 ? 'block' : 'none'}};">
<van-radio wx:if="{{status === 2}}" name="{{item.id}}"></van-radio>
</view>
<view class="th" style="flex: 0 0 200rpx;">
<view class="th" style="flex: 0 0 130rpx;">
{{ item.tenement.shortName }}
</view>
<view class="th" style="flex: 0 0 250rpx;">
<view class="th" style="flex: 0 0 150rpx;">
{{ item.money }}
</view>
<view class="th" style="flex: 0 0 350rpx; display: {{status === 1 ? 'block' : 'none'}};">
<view class="th" style="flex: 0 0 150rpx; display: {{status === 1 ? 'block' : 'none'}};">
<view class="tag">{{item.orderStatus}}</view>
</view>
<view class="th" style="flex: 0 0 250rpx; font-size: 30rpx;">
<view class="th" style="flex: 0 0 150rpx; font-size: 30rpx;">
{{item.topTime}}
</view>
<view class="th" style="flex: 1; justify-content: flex-end; display: flex; align-items: center;">
<view class="th" style="flex: 0 0 120rpx; justify-content: flex-end; display: flex; align-items: center;">
<van-icon name="ellipsis" size="24px" bind:tap="showActionMenu" data-id="{{item.id}}" class="more-icon" />
<van-action-sheet show="{{ currentActionSheet === item.id }}" actions="{{ actionItems }}" bind:close="hideActionMenu" bind:select="onMenuSelect" data-id="{{item.id}}" close-on-click-action />
</view>

View File

@ -1,6 +1,6 @@
/* pages/workBench/components/recharge/components/waitApprove/index.wxss */
.table {
width: 810rpx;
width: 500rpx;
}
@ -17,7 +17,7 @@
}
.thead .th {
padding: 20rpx;
padding: 10rpx;
white-space: nowrap;
text-align: center;
box-sizing: border-box;
@ -28,11 +28,11 @@
}
.tbody {
width: 810rpx;
width: 500rpx;
}
.tbody .tr {
padding: 20rpx;
padding: 10rpx;
border-bottom: 1rpx solid #EEEEEE;
display: flex;
align-items: center;
@ -55,11 +55,12 @@
/* 基础标签样式 */
.tag {
display: inline-block;
padding: 8px 16px;
margin-right: 12px;
padding: 4px 5px;
margin-right: 0px;
border-radius: 16px;
background: #07c160;
color: white;
font-size: 25rpx;
}
/* 激活状态样式 */

View File

@ -30,6 +30,41 @@
"scene": null,
"launchMode": "default"
},
{
"name": "pages/workBench/index",
"pathName": "pages/workBench/index",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "childPackage/pages/electricQuery/index",
"pathName": "childPackage/pages/electricQuery/index",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "pages/workBench/index",
"pathName": "pages/workBench/index",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "childPackage/pages/electricQuery/index",
"pathName": "childPackage/pages/electricQuery/index",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "pages/workBench/index",
"pathName": "pages/workBench/index",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "childPackage/pages/electricQuery/index",
"pathName": "childPackage/pages/electricQuery/index",