|
@@ -233,7 +233,7 @@
|
|
|
<view class="left-text">车辆所属车主</view>
|
|
|
<input style='text-align:right;' placeholder="输入车主姓名" v-model="dataDetails.owner" type="text">
|
|
|
<!-- <u--input inputAlign='left' border="none"> -->
|
|
|
- </u--input>
|
|
|
+ <!-- </u--input> -->
|
|
|
</view>
|
|
|
<view class="flex row" v-if="sign == '非挂车'">
|
|
|
<view class="left-text">总质量(千克)</view>
|
|
@@ -309,18 +309,18 @@
|
|
|
</view>
|
|
|
|
|
|
<view class="flex row">
|
|
|
- <view class="left-text">车辆所属车主</view>
|
|
|
+ <view class="left-text">挂车车辆所属车主</view>
|
|
|
<u--input placeholder="输入车主姓名" inputAlign='right' border="none" v-model="dataDetails.guaOwner">
|
|
|
</u--input>
|
|
|
</view>
|
|
|
<view class="flex row">
|
|
|
- <view class="left-text">整备质量(千克)</view>
|
|
|
+ <view class="left-text">挂车整备质量(千克)</view>
|
|
|
<u--input type='number' placeholder="输入整备质量" inputAlign='right' border="none"
|
|
|
v-model="dataDetails.guaServicingWeight">
|
|
|
</u--input>
|
|
|
</view>
|
|
|
<view class="flex row">
|
|
|
- <view class="left-text">核定载质量(千克)</view>
|
|
|
+ <view class="left-text">挂车核定载质量(千克)</view>
|
|
|
<u--input type='number' placeholder="输入核定载质量" inputAlign='right' border="none"
|
|
|
v-model="dataDetails.guaCarApprovedWeight">
|
|
|
</u--input>
|
|
@@ -1146,6 +1146,13 @@
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
+ if (this.dataDetails.lssuingAuthority.length<5||this.dataDetails.lssuingAuthority.length>25) {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: "行驶证发证机关输入错误!",
|
|
|
+ })
|
|
|
+ return true
|
|
|
+ }
|
|
|
if (uni.$u.test.isEmpty(this.dataDetails.energyType)) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
@@ -1210,6 +1217,13 @@
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
+ if (this.dataDetails.guaLssuingAuthority.length<5||this.dataDetails.guaLssuingAuthority.length>25) {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: "挂车行驶证发证机关输入错误!",
|
|
|
+ })
|
|
|
+ return true
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// true 为校验不通过
|
|
@@ -1235,6 +1249,14 @@
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
+ if (uni.$u.test.isEmpty(this.dataDetails.carTotalWeight)&& this.sign == '非挂车' && this.dataDetails.carTotalWeight<500
|
|
|
+ ||uni.$u.test.isEmpty(this.dataDetails.carTotalWeight)&& this.sign == '非挂车' && this.dataDetails.carTotalWeight>60000) {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: "总质量输入错误!",
|
|
|
+ })
|
|
|
+ return true
|
|
|
+ }
|
|
|
if (uni.$u.test.isEmpty(this.dataDetails.carApprovedWeight) && this.sign == '非挂车') {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
@@ -1242,7 +1264,14 @@
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
-
|
|
|
+ if (uni.$u.test.isEmpty(this.dataDetails.carApprovedWeight)&& this.sign == '非挂车' && this.dataDetails.carApprovedWeight<500||
|
|
|
+ uni.$u.test.isEmpty(this.dataDetails.carApprovedWeight) && this.sign == '非挂车' && this.dataDetails.carApprovedWeight>60000) {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: "核定载质量输入错误!",
|
|
|
+ })
|
|
|
+ return true
|
|
|
+ }
|
|
|
if (uni.$u.test.isEmpty(this.dataDetails.servicingWeight) && this.sign == '挂车') {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
@@ -1313,6 +1342,13 @@
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
+ if (this.dataDetails.guaCarApprovedWeight<500||this.dataDetails.guaCarApprovedWeight>60000) {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: "挂车核定载质量输入错误!",
|
|
|
+ })
|
|
|
+ return true
|
|
|
+ }
|
|
|
if (uni.$u.test.isEmpty(this.dataDetails.guaCarLong) || uni.$u.test.isEmpty(this.dataDetails.guaCarWidth) || uni.$u.test.isEmpty(this.dataDetails.guaCarHeight)) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|