|
@@ -7,15 +7,15 @@
|
|
<text class="necessary">*</text>
|
|
<text class="necessary">*</text>
|
|
户号:
|
|
户号:
|
|
</view>
|
|
</view>
|
|
- <input name="input" v-model="formMess.account_number" maxlength="8"></input>
|
|
|
|
|
|
+ <input name="input" v-model="formMess.account_number" maxlength="20"></input>
|
|
</view>
|
|
</view>
|
|
<view class="form-item">
|
|
<view class="form-item">
|
|
<view class="title"><text class="necessary">*</text>流变变比:</view>
|
|
<view class="title"><text class="necessary">*</text>流变变比:</view>
|
|
- <input name="input" v-model="formMess.rheological_change" maxlength="8"></input>
|
|
|
|
|
|
+ <input name="input" v-model="formMess.rheological_change" maxlength="20"></input>
|
|
</view>
|
|
</view>
|
|
<view class="form-item">
|
|
<view class="form-item">
|
|
<view class="title" style="width:240rpx"><text class="necessary">*</text>单路电源容量:</view>
|
|
<view class="title" style="width:240rpx"><text class="necessary">*</text>单路电源容量:</view>
|
|
- <input name="input" v-model="formMess.power_capacity" maxlength="8"></input>
|
|
|
|
|
|
+ <input name="input" v-model="formMess.power_capacity" maxlength="20"></input>
|
|
</view>
|
|
</view>
|
|
<view class="form-item">
|
|
<view class="form-item">
|
|
<view class="title"><text class="necessary">*</text>线路:</view>
|
|
<view class="title"><text class="necessary">*</text>线路:</view>
|
|
@@ -170,7 +170,8 @@
|
|
</view>
|
|
</view>
|
|
<view class="form-item">
|
|
<view class="form-item">
|
|
<view class="title">备注:</view>
|
|
<view class="title">备注:</view>
|
|
- <input type="text" v-model="formMess.remarks">
|
|
|
|
|
|
+ <textarea name="" id=""v-model="formMess.remarks"></textarea>
|
|
|
|
+ <!-- <input type="text" v-model="formMess.remarks"> -->
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<view class="btn-area submitBottomBtn padding-lr-sm " style="position:static">
|
|
<view class="btn-area submitBottomBtn padding-lr-sm " style="position:static">
|
|
@@ -283,21 +284,21 @@
|
|
async addSubmit() {
|
|
async addSubmit() {
|
|
|
|
|
|
//提交验证
|
|
//提交验证
|
|
- if (!this.formMess.account_number) {
|
|
|
|
|
|
+ if (!this.formMess.account_number.replace(/^\s*/g,'')) {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: "请输入户号",
|
|
title: "请输入户号",
|
|
icon: "none"
|
|
icon: "none"
|
|
});
|
|
});
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.formMess.rheological_change) {
|
|
|
|
|
|
+ if (!this.formMess.rheological_change.replace(/^\s*/g,'')) {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: "请输入流变变化",
|
|
title: "请输入流变变化",
|
|
icon: "none"
|
|
icon: "none"
|
|
});
|
|
});
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.formMess.power_capacity) {
|
|
|
|
|
|
+ if (!this.formMess.power_capacity.replace(/^\s*/g,'')) {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: "请输入单路电源容量",
|
|
title: "请输入单路电源容量",
|
|
icon: "none"
|
|
icon: "none"
|
|
@@ -318,7 +319,7 @@
|
|
});
|
|
});
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.formMess.supervision_department_id) {
|
|
|
|
|
|
+ if (!this.formMess.supervision_department_id.replace(/^\s*/g,'')) {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: "请输入所属监察",
|
|
title: "请输入所属监察",
|
|
icon: "none"
|
|
icon: "none"
|