抄表记录时间戳

This commit is contained in:
2025-09-17 17:23:40 +08:00
parent 49aeeb05a7
commit b61f3287fb
3 changed files with 18 additions and 3 deletions

View File

@@ -34,6 +34,18 @@ Page({
await that.getList();
})
},
onEditFinish() {
this.setData({
title: null,
visible: null,
time: null,
number: null,
id: null,
readAtTimestamp: null,
type: null,
})
this.refresh()
},
async getMeterInfo(id) {
const { code, message, data } = await getMeterReadingRouteMeterDetail(id)
if (code !== OK) {
@@ -85,6 +97,7 @@ Page({
time: data.readAt,
number: data.overall,
id: data.id,
readAtTimestamp: data.readAtTimestamp,
type: "edit",
}, () => {
console.log("this.data---------", this.data)