修改电表报表抄表记录

This commit is contained in:
2025-01-17 08:44:59 +08:00
parent 2b653ea3ed
commit 24f2ec9ead
13 changed files with 323 additions and 44 deletions

View File

@@ -1,5 +1,6 @@
// pages/meterList/index.js
import { getTenementMeterList } from "../../service/meter";
import dayjs from "../../utils/dayjs";
import { alertInfo, loadingFunc } from "../../utils/index";
import request from '../../utils/request';
const { OK } = request;
@@ -14,7 +15,7 @@ Page({
{ key: "money", title: '电表余额', },
{ key: 'overall', title: '电表总量' },
],
list: [{}],
list: [],
},
async getMeters({ id }) {
const { code, message, data } = await getTenementMeterList(id);
@@ -35,7 +36,6 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad(options) {
console.log('options', options)
loadingFunc(async () => {
await this.getMeters({ id: options?.id })
})
@@ -52,7 +52,9 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow() {
this.setData({
time: dayjs().format("YYYY-MM-DD HH:mm:ss"),
})
},
/**