From 33d752899016a582530d737790a0712597220dfa Mon Sep 17 00:00:00 2001
From: ZiHangQin <1420014281@qq.com>
Date: Mon, 21 Jul 2025 09:50:46 +0800
Subject: [PATCH 1/5] =?UTF-8?q?C=E7=AB=AF=E5=B0=8F=E7=A8=8B=E5=BA=8F?=
=?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
childPackage/pages/billDetail/index.wxml | 2 +-
.../components/accountingCard/index.wxml | 105 ++++++++++++------
.../components/accountingCard/index.wxss | 19 +++-
.../electricQuery/components/reading/index.js | 2 +-
.../components/reading/index.wxml | 60 +++++++++-
.../components/reading/index.wxss | 7 ++
childPackage/pages/electricQuery/index.wxml | 19 ++--
pages/rechargeDetail/index.wxml | 2 +-
project.config.json | 14 ++-
project.private.config.json | 88 ++++-----------
utils/index.js | 2 +-
11 files changed, 194 insertions(+), 126 deletions(-)
diff --git a/childPackage/pages/billDetail/index.wxml b/childPackage/pages/billDetail/index.wxml
index 26cc9d4..443e46a 100644
--- a/childPackage/pages/billDetail/index.wxml
+++ b/childPackage/pages/billDetail/index.wxml
@@ -11,7 +11,7 @@
- 用电地址:
+ 商户地址:
{{ detail.tenement.address }}
diff --git a/childPackage/pages/electricQuery/components/accountingCard/index.wxml b/childPackage/pages/electricQuery/components/accountingCard/index.wxml
index 5cae3e3..1146bb3 100644
--- a/childPackage/pages/electricQuery/components/accountingCard/index.wxml
+++ b/childPackage/pages/electricQuery/components/accountingCard/index.wxml
@@ -1,41 +1,72 @@
-
- {{data.meter.address}}
-
-
-
- 初始余额
-
-
- {{data.startMoney}}
-
-
-
-
- 储值累计金额
-
-
- {{data.rechargeMoney}}
-
-
-
-
- 电费
-
-
- {{data.electricMoney}}
-
-
-
-
-
- 账务余额
-
+
+ {{data.meter.address}}电表编号:{{data.meter.sn}}
+
+
+
+
+ 初始余额
+
+
+ {{data.startMoney}}
+
+
+ {{data.updateStartMoneyAt}}
+
+
-
-
- {{data.currentMoney}}
-
-
+
+
+ 累计充值金额
+
+
+ {{data.rechargeMoney}}
+
+
+ {{data.updateRechargeMoneyAt}}
+
+
+
+
+
+ 电费
+
+
+ {{data.electricMoney}}
+
+
+ {{data.updateElectricMoneyAt}}
+
+
+
+
+
+ 账务余额
+
+
+ {{data.accountMoney}}
+
+
+ {{data.updateAccountMoneyAt}}
+
+
+
+
+
+ 电表余额
+
+
+ {{data.meterMoney}}
+
+
+ {{data.updateMeterMoneyAt}}
+
+
\ No newline at end of file
diff --git a/childPackage/pages/electricQuery/components/accountingCard/index.wxss b/childPackage/pages/electricQuery/components/accountingCard/index.wxss
index c538ef6..bd91984 100644
--- a/childPackage/pages/electricQuery/components/accountingCard/index.wxss
+++ b/childPackage/pages/electricQuery/components/accountingCard/index.wxss
@@ -21,4 +21,21 @@
margin-bottom: 20rpx;
text-align: center;
font-size: 32rpx;
-}
\ No newline at end of file
+}
+.table-header {
+ display: flex;
+ width: 100%;
+ background-color: #f5f5f5;
+ border-bottom: 1rpx solid #eaeaea;
+ }
+ .table-header-row {
+ display: flex;
+ width: 100%;
+ }
+ .table-header-cell {
+ flex: 1;
+ text-align: center;
+ padding: 20rpx 0;
+ font-size: 25rpx;
+ color: #333;
+ }
\ No newline at end of file
diff --git a/childPackage/pages/electricQuery/components/reading/index.js b/childPackage/pages/electricQuery/components/reading/index.js
index 6a5347e..4a8bafb 100644
--- a/childPackage/pages/electricQuery/components/reading/index.js
+++ b/childPackage/pages/electricQuery/components/reading/index.js
@@ -35,7 +35,7 @@ Component({
meterReadingHeader: [
{ key: 'address', title: '电表地址', renderBody: (item) => item.meter?.address },
{ title: '倍率', key: 'ratio' },
- { key: 'number', title: '抄表记录' },
+ { key: 'number', title: '当前表字' },
],
meterReadingList: [],
yearMonthDayReading: dayjs().format("YYYY-MM-DD"),
diff --git a/childPackage/pages/electricQuery/components/reading/index.wxml b/childPackage/pages/electricQuery/components/reading/index.wxml
index 204d925..b73f004 100644
--- a/childPackage/pages/electricQuery/components/reading/index.wxml
+++ b/childPackage/pages/electricQuery/components/reading/index.wxml
@@ -49,54 +49,102 @@
label="地址"
readonly
/>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 上次抄表记录起,至现在时间内的用电量
diff --git a/childPackage/pages/electricQuery/components/reading/index.wxss b/childPackage/pages/electricQuery/components/reading/index.wxss
index 3779087..a9a3c5d 100644
--- a/childPackage/pages/electricQuery/components/reading/index.wxss
+++ b/childPackage/pages/electricQuery/components/reading/index.wxss
@@ -92,4 +92,11 @@ page {
content:"";
display:block;
clear:both
+ }
+
+ .text{
+ font-size: 28rpx;
+ color: #999999;
+ margin: 10rpx 0;
+ text-align: center;
}
\ No newline at end of file
diff --git a/childPackage/pages/electricQuery/index.wxml b/childPackage/pages/electricQuery/index.wxml
index 3598af7..4c8c574 100644
--- a/childPackage/pages/electricQuery/index.wxml
+++ b/childPackage/pages/electricQuery/index.wxml
@@ -30,23 +30,25 @@
- 日耗量
+ 日用电量
- 月耗量
+ 月电用量
- 年耗量
+ 年用电量
- 不包括线损电量,显示为电表实际消耗电量。仅供参考,实际能耗电量以电费账单为主。如有疑问,请联系客服。
+ 不包括线损电量,显示为电表实际消用电量。仅供参考,实际能用电量以电费账单为主。如有疑问,请联系客服。
- 选择时间
+ 选择时间
+ 选择日期
+ 选择月份
{{yearMonthDay}}
{{yearMonth}}
@@ -63,7 +65,10 @@
- 账务余额更新时间为:每次预存电费后,每次账单发布后,剩余的实际金额。电表余额与账务余额相差较大的用户,每半年统一处理一次。
+ 账务余额更新时间为:每次预存电费后,每次发布账单后剩余的实际金额。
+
+
+ 计算公式:账务余额 = 初始余额 + 累充充值金额 - 电费
@@ -95,7 +100,7 @@
/>
- 合计:表计数量:{{meterNumber}},耗电量:{{electricNumber}}
+ 合计:表计数量:{{meterNumber}},用电量:{{electricNumber}}
diff --git a/pages/rechargeDetail/index.wxml b/pages/rechargeDetail/index.wxml
index e054c66..41cf703 100644
--- a/pages/rechargeDetail/index.wxml
+++ b/pages/rechargeDetail/index.wxml
@@ -12,7 +12,7 @@
/>
Date: Mon, 21 Jul 2025 14:10:05 +0800
Subject: [PATCH 2/5] =?UTF-8?q?C=E7=AB=AF=E5=B0=8F=E7=A8=8B=E5=BA=8F?=
=?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=BC=98=E5=8C=96=20=E5=B7=A5=E4=BD=9C?=
=?UTF-8?q?=E5=8F=B0=E9=83=A8=E5=88=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../recharge/components/approve/index.js | 441 +++++++++++-------
.../recharge/components/approve/index.json | 4 +-
.../recharge/components/approve/index.wxml | 105 ++---
.../recharge/components/approve/index.wxss | 24 +
project.private.config.json | 11 +-
5 files changed, 336 insertions(+), 249 deletions(-)
diff --git a/pages/workBench/components/recharge/components/approve/index.js b/pages/workBench/components/recharge/components/approve/index.js
index 004ed18..351877d 100644
--- a/pages/workBench/components/recharge/components/approve/index.js
+++ b/pages/workBench/components/recharge/components/approve/index.js
@@ -1,190 +1,279 @@
// pages/workBench/components/recharge/components/waitApprove/index.js
-import { alertInfo, alertSuccess, loadingFunc } from "../../../../../../utils/index";
-import { getRechargeApproveList, rechargeApprove } from "../../../../../../service/recharge"
+import {
+ alertInfo,
+ alertSuccess,
+ loadingFunc
+} from "../../../../../../utils/index";
+import {
+ getRechargeApproveList,
+ rechargeApprove
+} from "../../../../../../service/recharge"
import request from "../../../../../../utils/request"
-const { OK } = request
+import dayjs from "../../../../../../utils/dayjs"
+const {
+ OK
+} = request
// pages/workBench/components/record/index.js
Component({
- /**
- * 组件的属性列表
- */
- properties: {
- status: Number
- },
-
- /**
- * 组件的初始数据
- */
- data: {
- keyword: "",
- keywordTemp: "",
- page: 1,
- },
- lifetimes: {
- attached() {
- loadingFunc(async () => {
- await this.init();
- })
- }
- },
- /**
- * 组件的方法列表
- */
- methods: {
- onParkFocus(e) {
- this.setData({
- show: true,
- title: "园区",
- type: 'park'
- })
+ /**
+ * 组件的属性列表
+ */
+ properties: {
+ status: Number
},
- onConfirm(e) {
- const { data } = e.detail;
- const that = this;
- this.setData({
- parkName: data.name,
- park: data.id,
- }, () => {
- loadingFunc(async () => {
- await that.init();
- })
- })
- this.onCancel();
+
+ /**
+ * 组件的初始数据
+ */
+ data: {
+ keyword: "",
+ keywordTemp: "",
+ page: 1,
+ currentActionSheet: null,
+ actionItems: [{
+ name: '查看详细',
+ value: 'detail'
+ }],
},
- onSearchKeyword(e) {
- const that = this;
- that.setData({
- keyword: e.detail
- }, () => {
- loadingFunc(async () => {
- await that.init();
- })
- })
- },
- onChangeKeyword(e) {
- this.setData({ keywordTemp: e.detail })
- },
- onSearch() {
- const that = this;
- that.setData({
- keyword: that.data.keywordTemp
- }, () => {
- loadingFunc(async () => {
- await that.init();
- })
- })
- },
- async init() {
- const { page, keyword, park, status } = this.data;
- const { code, message, data, total } = await getRechargeApproveList({ park, page, keyword, status })
- if (code !== OK) {
- alertInfo(message);
- return;
- }
- this.setData({
- list: data,
- total: total,
- totalPage: Math.ceil(total / 20)
- })
- },
- onChangeReason(e) {
- this.setData({
- reason: e.detail,
- })
- },
- onApproveClose() {
- this.setData({
- reason: "",
- approveShow: false,
- })
- },
- onApproveConfirm() {
- const { reason, record } = this.data;
- const that = this;
- if (!reason) {
- alertInfo("请输入拒绝理由")
- return;
- }
- loadingFunc(async () => {
- const { code, message } = await rechargeApprove({ id: record, status: 1, reason })
- if (code !== OK) {
- alertInfo(message)
- return;
- }
- alertSuccess("已拒绝")
- that.init();
- that.setData({
- reason: "",
- approveShow: false,
- record: "",
- })
- })
-
- },
- handleApprove(e) {
- const status = e.currentTarget.dataset.status;
- const that = this;
- if (status === '1') {
- this.setData({
- approveShow: true
- })
- return;
- }
- const { record, list } = this.data;
- const item = list.find(ele => ele.id === record)
-
- wx.showModal({
- title: '提示',
- content: `您确认要同意${item?.tenement?.shortName || 当前记录}吗?`,
- complete: async (res) => {
- if (res.cancel) {
-
- }
- if (res.confirm) {
+
+ lifetimes: {
+ attached() {
loadingFunc(async () => {
- const { code, message } = await rechargeApprove({ id: record, status: 0, })
- if (code !== OK) {
- alertInfo(message)
- return;
- }
- alertSuccess("已同意")
- that.init();
+ await this.init();
})
-
- }
}
- })
},
- jumpToDetail(e) {
- const { id } = e.currentTarget.dataset;
- wx.navigateTo({
- url: '/pages/rechargeDetail/index?id=' + id,
- })
- },
- async onChangePage(e) {
- const page = e.detail.currentIndex;
- const that = this;
- this.setData({
- page
- }, () => {
- loadingFunc(async () => {
- await that.init();
- })
- })
- },
- onCancel() {
- this.setData({
- show: false,
- title: "",
- type: "",
- })
- },
- onChangeSelectRecharge(e) {
- this.setData({
- record: e.detail
- })
+ /**
+ * 组件的方法列表
+ */
+ methods: {
+ onParkFocus(e) {
+ this.setData({
+ show: true,
+ title: "园区",
+ type: 'park'
+ })
+ },
+ onConfirm(e) {
+ const {
+ data
+ } = e.detail;
+ const that = this;
+ this.setData({
+ parkName: data.name,
+ park: data.id,
+ }, () => {
+ loadingFunc(async () => {
+ await that.init();
+ })
+ })
+ this.onCancel();
+ },
+ onSearchKeyword(e) {
+ const that = this;
+ that.setData({
+ keyword: e.detail
+ }, () => {
+ loadingFunc(async () => {
+ await that.init();
+ })
+ })
+ },
+ onChangeKeyword(e) {
+ this.setData({
+ keywordTemp: e.detail
+ })
+ },
+ onSearch() {
+ const that = this;
+ that.setData({
+ keyword: that.data.keywordTemp
+ }, () => {
+ loadingFunc(async () => {
+ await that.init();
+ })
+ })
+ },
+ async init() {
+ const {
+ page,
+ keyword,
+ park,
+ status
+ } = this.data;
+ const {
+ code,
+ message,
+ data,
+ total
+ } = await getRechargeApproveList({
+ park,
+ page,
+ keyword,
+ status
+ })
+ if (code !== OK) {
+ alertInfo(message);
+ return;
+ }
+ this.setData({
+ list: data.map(item => {
+ item.topTime = dayjs(item.topTime).format("MM-DD HH:mm:ss")
+ return item
+ }),
+ total: total,
+ totalPage: Math.ceil(total / 20)
+ })
+ },
+ onChangeReason(e) {
+ this.setData({
+ reason: e.detail,
+ })
+ },
+ onApproveClose() {
+ this.setData({
+ reason: "",
+ approveShow: false,
+ })
+ },
+ onApproveConfirm() {
+ const {
+ reason,
+ record
+ } = this.data;
+ const that = this;
+ if (!reason) {
+ alertInfo("请输入拒绝理由")
+ return;
+ }
+ loadingFunc(async () => {
+ const {
+ code,
+ message
+ } = await rechargeApprove({
+ id: record,
+ status: 1,
+ reason
+ })
+ if (code !== OK) {
+ alertInfo(message)
+ return;
+ }
+ alertSuccess("已拒绝")
+ that.init();
+ that.setData({
+ reason: "",
+ approveShow: false,
+ record: "",
+ })
+ })
+
+ },
+ handleApprove(e) {
+ const status = e.currentTarget.dataset.status;
+ const that = this;
+ if (status === '1') {
+ this.setData({
+ approveShow: true
+ })
+ return;
+ }
+ const {
+ record,
+ list
+ } = this.data;
+ const item = list.find(ele => ele.id === record)
+
+ wx.showModal({
+ title: '提示',
+ content: `您确认要同意${item?.tenement?.shortName || 当前记录}吗?`,
+ complete: async (res) => {
+ if (res.cancel) {
+
+ }
+ if (res.confirm) {
+ loadingFunc(async () => {
+ const {
+ code,
+ message
+ } = await rechargeApprove({
+ id: record,
+ status: 0,
+ })
+ if (code !== OK) {
+ alertInfo(message)
+ return;
+ }
+ alertSuccess("已同意")
+ that.init();
+ })
+
+ }
+ }
+ })
+ },
+
+ showActionMenu(e) {
+ this.setData({
+ currentActionSheet: e.currentTarget.dataset.id
+ });
+ },
+
+ hideActionMenu() {
+ this.setData({
+ currentActionSheet: null
+ });
+ },
+
+ onMenuSelect(e) {
+ const {
+ value
+ } = e.detail;
+ const id = e.currentTarget.dataset.id;
+
+ if (value === 'detail') {
+ this.jumpToDetail({
+ currentTarget: {
+ dataset: {
+ id
+ }
+ }
+ });
+ }
+ },
+
+ jumpToDetail(e) {
+ const {
+ id
+ } = e.currentTarget.dataset;
+ wx.navigateTo({
+ url: '/pages/rechargeDetail/index?id=' + id,
+ })
+ },
+ async onChangePage(e) {
+ const page = e.detail.currentIndex;
+ const that = this;
+ this.setData({
+ page
+ }, () => {
+ loadingFunc(async () => {
+ await that.init();
+ })
+ })
+ },
+ onCancel() {
+ this.setData({
+ show: false,
+ title: "",
+ type: "",
+ })
+ },
+ onChangeSelectRecharge(e) {
+ this.setData({
+ record: e.detail
+ })
+ }
}
- }
})
\ No newline at end of file
diff --git a/pages/workBench/components/recharge/components/approve/index.json b/pages/workBench/components/recharge/components/approve/index.json
index c064e73..145ec1b 100644
--- a/pages/workBench/components/recharge/components/approve/index.json
+++ b/pages/workBench/components/recharge/components/approve/index.json
@@ -11,6 +11,8 @@
"van-radio": "@vant/weapp/radio/index",
"van-radio-group": "@vant/weapp/radio-group/index",
"van-dialog": "@vant/weapp/dialog/index",
- "searchSelectWrapper": "/components/searchSelectWrapper/index"
+ "searchSelectWrapper": "/components/searchSelectWrapper/index",
+ "van-icon": "@vant/weapp/icon/index",
+ "van-action-sheet": "@vant/weapp/action-sheet/index"
}
}
\ No newline at end of file
diff --git a/pages/workBench/components/recharge/components/approve/index.wxml b/pages/workBench/components/recharge/components/approve/index.wxml
index a1795ce..9849d66 100644
--- a/pages/workBench/components/recharge/components/approve/index.wxml
+++ b/pages/workBench/components/recharge/components/approve/index.wxml
@@ -1,100 +1,65 @@
-
+
-
+
- 同意
- 拒绝
+ 同意
+ 拒绝
-
- 商户名字
- 充值金额
- 操作
+
+ 商户名字
+ 充值金额
+ 状态
+ 提交时间
+ 操作
-
-
+
+
- {{ item.tenement.shortName }}
- {{ item.money }}
-
-
- 查看详细
-
+
+ {{ item.tenement.shortName }}
+
+
+ {{ item.money }}
+
+
+ {{item.orderStatus}}
+
+
+ {{item.topTime}}
+
+
+
+
+
-
-
-
+
+
+
-
+
-
+
-
-
+
+
\ No newline at end of file
diff --git a/pages/workBench/components/recharge/components/approve/index.wxss b/pages/workBench/components/recharge/components/approve/index.wxss
index 311c82e..bb7ede4 100644
--- a/pages/workBench/components/recharge/components/approve/index.wxss
+++ b/pages/workBench/components/recharge/components/approve/index.wxss
@@ -43,3 +43,27 @@
word-break: break-all;
text-align: center;
}
+
+.more-icon {
+ padding: 20rpx;
+ color: #1989fa;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ }
+
+/* 基础标签样式 */
+.tag {
+ display: inline-block;
+ padding: 8px 16px;
+ margin-right: 12px;
+ border-radius: 16px;
+ background: #07c160;
+ color: white;
+ }
+
+ /* 激活状态样式 */
+ .tag.active {
+ background: #07c160;
+ color: white;
+ }
\ No newline at end of file
diff --git a/project.private.config.json b/project.private.config.json
index b843307..09bced0 100644
--- a/project.private.config.json
+++ b/project.private.config.json
@@ -24,12 +24,19 @@
"miniprogram": {
"list": [
{
- "name": "childPackage/pages/electricQuery/index",
- "pathName": "childPackage/pages/electricQuery/index",
+ "name": "pages/workBench/index",
+ "pathName": "pages/workBench/index",
"query": "",
"scene": null,
"launchMode": "default"
},
+ {
+ "name": "childPackage/pages/electricQuery/index",
+ "pathName": "childPackage/pages/electricQuery/index",
+ "query": "",
+ "launchMode": "default",
+ "scene": null
+ },
{
"name": "childPackage/pages/electricQuery/index",
"pathName": "childPackage/pages/electricQuery/index",
From 886a03cf162767a2e0fc9f316c4971366b118d66 Mon Sep 17 00:00:00 2001
From: ZiHangQin <1420014281@qq.com>
Date: Tue, 22 Jul 2025 08:58:30 +0800
Subject: [PATCH 3/5] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E5=8F=B0=20->=20?=
=?UTF-8?q?=E5=85=85=E5=80=BC=E5=AE=A1=E6=A0=B8=20->=20=E5=B7=B2=E5=AE=A1?=
=?UTF-8?q?=E6=A0=B8=E5=88=97=E8=A1=A8=E6=A0=87=E7=AD=BE=E5=AD=97=E4=BD=93?=
=?UTF-8?q?=E7=BC=A9=E5=B0=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/accountingCard/index.js | 33 +++--
.../components/accountingCard/index.wxml | 124 ++++++++++--------
.../components/accountingCard/index.wxss | 2 +-
.../components/reading/index.wxml | 17 ++-
pages/my/index.wxml | 2 +-
pages/rechargeDetail/index.wxml | 4 +-
.../recharge/components/approve/index.js | 2 +-
.../recharge/components/approve/index.wxml | 27 ++--
.../recharge/components/approve/index.wxss | 13 +-
project.private.config.json | 35 +++++
10 files changed, 154 insertions(+), 105 deletions(-)
diff --git a/childPackage/pages/electricQuery/components/accountingCard/index.js b/childPackage/pages/electricQuery/components/accountingCard/index.js
index 922326c..e1ed51e 100644
--- a/childPackage/pages/electricQuery/components/accountingCard/index.js
+++ b/childPackage/pages/electricQuery/components/accountingCard/index.js
@@ -1,24 +1,23 @@
// pages/electricQuery/components/accountingCard/index.js
Component({
+ /**
+ * 组件的属性列表
+ */
+ properties: {
+ data: Object
+ },
- /**
- * 组件的属性列表
- */
- properties: {
- data: Object
- },
+ /**
+ * 组件的初始数据
+ */
+ data: {
- /**
- * 组件的初始数据
- */
- data: {
+ },
- },
+ /**
+ * 组件的方法列表
+ */
+ methods: {
- /**
- * 组件的方法列表
- */
- methods: {
-
- }
+ }
})
\ No newline at end of file
diff --git a/childPackage/pages/electricQuery/components/accountingCard/index.wxml b/childPackage/pages/electricQuery/components/accountingCard/index.wxml
index 1146bb3..d49642f 100644
--- a/childPackage/pages/electricQuery/components/accountingCard/index.wxml
+++ b/childPackage/pages/electricQuery/components/accountingCard/index.wxml
@@ -1,72 +1,86 @@
- {{data.meter.address}}电表编号:{{data.meter.sn}}
+ {{data.meter.address}}
+ 电表编号:{{data.meter.sn}}
-
-
-
- 累计充值金额
-
-
- {{data.rechargeMoney}}
-
-
- {{data.updateRechargeMoneyAt}}
-
-
+
+
+
+ 初始余额
+
+
+ {{data.startMoney}}
+
+
+ {{data.updateStartMoneyAt || '--'}}
+
+
+
-
-
- 电费
-
-
- {{data.electricMoney}}
-
-
- {{data.updateElectricMoneyAt}}
-
-
+
+
+
+ 累计充值金额
+
+
+ {{data.rechargeMoney}}
+
+
+ {{data.updateRechargeMoneyAt || '--'}}
+
+
+
-
-
- 账务余额
-
-
- {{data.accountMoney}}
-
-
- {{data.updateAccountMoneyAt}}
-
-
+
+
+
+ 电费
+
+
+ {{data.electricMoney}}
+
+
+ {{data.updateElectricMoneyAt || '--'}}
+
+
+
-
-
- 电表余额
-
-
- {{data.meterMoney}}
-
-
- {{data.updateMeterMoneyAt}}
-
-
+
+
+
+ 账务余额
+
+
+ {{data.accountMoney}}
+
+
+ {{data.updateAccountMoneyAt || '--'}}
+
+
+
+
+
+
+
+ 电表余额
+
+
+ {{data.meterMoney}}
+
+
+ {{data.updateMeterMoneyAt || '--'}}
+
+
+
\ No newline at end of file
diff --git a/childPackage/pages/electricQuery/components/accountingCard/index.wxss b/childPackage/pages/electricQuery/components/accountingCard/index.wxss
index bd91984..776e121 100644
--- a/childPackage/pages/electricQuery/components/accountingCard/index.wxss
+++ b/childPackage/pages/electricQuery/components/accountingCard/index.wxss
@@ -17,7 +17,7 @@
}
.tableContent {
- margin-top: 10rpx;
+ margin-top: 25rpx;
margin-bottom: 20rpx;
text-align: center;
font-size: 32rpx;
diff --git a/childPackage/pages/electricQuery/components/reading/index.wxml b/childPackage/pages/electricQuery/components/reading/index.wxml
index b73f004..c68d434 100644
--- a/childPackage/pages/electricQuery/components/reading/index.wxml
+++ b/childPackage/pages/electricQuery/components/reading/index.wxml
@@ -75,7 +75,6 @@
border="{{ false }}"
label="当前表字(总)"
readonly
- wx:if="{{park.meter04kvType !== 1}}"
/>
上次抄表记录起,至现在时间内的用电量
diff --git a/pages/my/index.wxml b/pages/my/index.wxml
index 5c0684b..b898aa1 100644
--- a/pages/my/index.wxml
+++ b/pages/my/index.wxml
@@ -88,7 +88,7 @@
-
+
{
- item.topTime = dayjs(item.topTime).format("MM-DD HH:mm:ss")
+ item.topTime = dayjs(item.topTime).format("MM-DD")
return item
}),
total: total,
diff --git a/pages/workBench/components/recharge/components/approve/index.wxml b/pages/workBench/components/recharge/components/approve/index.wxml
index 9849d66..6e2a30a 100644
--- a/pages/workBench/components/recharge/components/approve/index.wxml
+++ b/pages/workBench/components/recharge/components/approve/index.wxml
@@ -13,33 +13,34 @@
-
- 商户名字
- 充值金额
- 状态
- 提交时间
- 操作
+
+
+ 商户名字
+ 充值金额
+ 状态
+ 提交时间
+ 操作
-
-
+
+
-
+
{{ item.tenement.shortName }}
-
+
{{ item.money }}
-
+
{{item.orderStatus}}
-
+
{{item.topTime}}
-
+
diff --git a/pages/workBench/components/recharge/components/approve/index.wxss b/pages/workBench/components/recharge/components/approve/index.wxss
index bb7ede4..641964d 100644
--- a/pages/workBench/components/recharge/components/approve/index.wxss
+++ b/pages/workBench/components/recharge/components/approve/index.wxss
@@ -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;
}
/* 激活状态样式 */
diff --git a/project.private.config.json b/project.private.config.json
index 09bced0..7cbcbb6 100644
--- a/project.private.config.json
+++ b/project.private.config.json
@@ -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",
From 5f56f9a6a8743d6403da9130fecd6971594e426c Mon Sep 17 00:00:00 2001
From: ZiHangQin <1420014281@qq.com>
Date: Wed, 23 Jul 2025 17:40:38 +0800
Subject: [PATCH 4/5] b
---
childPackage/pages/electricQuery/index.js | 31 ++++-------------------
1 file changed, 5 insertions(+), 26 deletions(-)
diff --git a/childPackage/pages/electricQuery/index.js b/childPackage/pages/electricQuery/index.js
index 3947497..34680ed 100644
--- a/childPackage/pages/electricQuery/index.js
+++ b/childPackage/pages/electricQuery/index.js
@@ -142,14 +142,14 @@ Page({
const times = [...new Set(data?.map(item => item.time))].
map(item => Number(item.replace(point, ""))).
sort((a, b) => a - b).
- map(ele => `${ele}${point}`.padStart(2, "0"));
-
+ map(ele => `${ele}${point}`.padStart(3, "0"));
+ console.log(times)
const options = {
tooltip: {
trigger: 'axis'
},
legend: {
- data: parkInfo?.category === 1 ? ["尖", "峰", "平", "谷"] : data?.map(item => item?.meter?.address),
+ data: data?.map(item => item?.meter?.address),
},
grid: {
left: '3%',
@@ -165,34 +165,13 @@ Page({
yAxis: {
type: 'value'
},
- series: parkInfo?.category === 1 ? [
- {
- name: "尖",
- type: 'line',
- data: data?.map(item => Number(item?.critical || 0))
- },
- {
- name: "峰",
- type: 'line',
- data: data?.map(item => Number(item?.peak || 0))
- },
- {
- name: "平",
- type: 'line',
- data: data?.map(item => Number(item?.flat || 0))
- },
- {
- name: "谷",
- type: 'line',
- data: data?.map(item => Number(item?.valley || 0))
- }
- ] : ids?.map(item => {
+ series: ids?.map(item => {
const element = data?.find(i => i?.meter?.id === item)
const list = data?.filter(ele => ele?.meter?.id === item)
const newList = [...times].map(item => {
const exist = list.find(ele => ele.time === item)
if (exist) {
- return exist.number;
+ return Number(exist.critical)+ Number(exist.peak)+Number(exist.flat)+Number(exist.valley);
}
return null
})
From 7bc344e90b737de6f87b6e488d55fefe98ea255e Mon Sep 17 00:00:00 2001
From: ZiHangQin <1420014281@qq.com>
Date: Mon, 28 Jul 2025 10:35:49 +0800
Subject: [PATCH 5/5] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8A=84=E8=A1=A8?=
=?UTF-8?q?=E8=AE=B0=E5=BD=95=E8=AF=A6=E6=83=85=E4=B8=ADsn=E5=8F=96?=
=?UTF-8?q?=E5=80=BC=E9=94=99=E8=AF=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
childPackage/pages/electricQuery/components/reading/index.wxml | 2 +-
utils/index.js | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/childPackage/pages/electricQuery/components/reading/index.wxml b/childPackage/pages/electricQuery/components/reading/index.wxml
index c68d434..7aff417 100644
--- a/childPackage/pages/electricQuery/components/reading/index.wxml
+++ b/childPackage/pages/electricQuery/components/reading/index.wxml
@@ -50,7 +50,7 @@
readonly
/>