修改字符串格式的数字为“”的时候接口报错的问题和装表的时候未过滤已装电表的问题

This commit is contained in:
2025-11-18 10:52:02 +08:00
parent 3a1b7f5a2a
commit c03d70b221
6 changed files with 30 additions and 24 deletions

View File

@@ -428,7 +428,13 @@ Page({
const { code, data, message } = await installMeter({
park, meterSn: meter, address, building, meterBox, meterType,
ratio, area, card, collectionA, collectionB, collectionC,
tenement, sharp, peak, flat, valley, overall, url, sn
tenement,
sharp: sharp === "" ? null : sharp,
peak: peak === "" ? null : peak,
flat: flat === "" ? null : flat,
valley: valley === "" ? null : valley,
overall: overall === "" ? null : overall,
url, sn
})
if (code !== OK) {
alertInfo(message)