电表箱支持按建筑筛选,倍率必填,拆表传id
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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}}"
|
||||
|
||||
Reference in New Issue
Block a user