电表箱支持按建筑筛选,倍率必填,拆表传id

This commit is contained in:
2025-11-14 17:22:11 +08:00
parent f138fabce9
commit 771bacdafa
5 changed files with 10 additions and 6 deletions

View File

@@ -384,7 +384,7 @@ Page({
tenement, sharp, peak, flat, valley, overall, url, sn,
collectionARatio, collectionBRatio, collectionCRatio
} = this.data;
if (!park || !(meter || sn) || !address || meterType == null || !building || !meterBox) {
if (!park || !(meter || sn) || !address || meterType == null || !building || !meterBox || ratio == null) {
alertInfo("请填写必填项后保存")
return;
}

View File

@@ -49,6 +49,7 @@
placeholder="请选择电表箱"
text="{{meterBoxName}}"
bind:search="onMeterBoxFocus"
required="{{true}}"
/>
<searchSelectWrapper
@@ -63,6 +64,7 @@
placeholder="请输入倍率"
type="input"
text="ratio"
required="{{true}}"
bind:changeText="changeRatio"
/>
<searchSelectWrapper
@@ -180,6 +182,7 @@
title="{{title}}"
type="{{type}}"
park="{{park}}"
building="{{building}}"
bindconfirm="onConfirm"
bindcancel="onCancel"
placeholder="{{placeholder}}"

View File

@@ -152,7 +152,7 @@ Page({
alertInfo("请选择表号")
return;
}
const { code, message } = await uninstallMeter({sn: meterInfo.meterSn, images: url, reason, tenement: meterInfo.tenement, critical, peak, flat, valley, overall, deepOverall})
const { code, message } = await uninstallMeter({sn: meter, images: url, reason, tenement: meterInfo.tenement, critical, peak, flat, valley, overall, deepOverall})
if (code !== OK) {
alertInfo(message)
return