|
@@ -127,8 +127,8 @@
|
|
|
</view>
|
|
|
<view class="flex row noborder">
|
|
|
<view class="left-text">车辆能源类型</view>
|
|
|
- <view class="" @click="driveType">
|
|
|
- {{dataDetails.energyType?dataDetails.energyType:'选择车辆能源类型>'}}
|
|
|
+ <view style='text-align:right;width:50%;' class="" @click="driveType">
|
|
|
+ {{dataDetails.energyType?dataDetails.energyType:'选择车辆能源类型>'}}>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -225,7 +225,8 @@
|
|
|
|
|
|
<view class="flex row">
|
|
|
<view class="left-text">车辆所属车主</view>
|
|
|
- <u--input placeholder="输入车主姓名" inputAlign='left' border="none" v-model="dataDetails.owner">
|
|
|
+ <input placeholder="输入车主姓名" v-model="dataDetails.owner" type="text">
|
|
|
+ <!-- <u--input inputAlign='left' border="none"> -->
|
|
|
</u--input>
|
|
|
</view>
|
|
|
<view class="flex row" v-if="sign == '非挂车'">
|
|
@@ -246,6 +247,8 @@
|
|
|
</view>
|
|
|
<view class="flex row noborder input-ckg">
|
|
|
<view class="input-positon">
|
|
|
+ <!-- <input type='number' class="input" placeholder="长" border="none"
|
|
|
+ v-model="dataDetails.carLong"> -->
|
|
|
<u--input type='number' class="input" placeholder="长" inputAlign='left' border="none"
|
|
|
v-model="dataDetails.carLong">
|
|
|
</u--input>
|
|
@@ -255,6 +258,8 @@
|
|
|
</view>
|
|
|
<view class="star">*</view>
|
|
|
<view class="input-positon">
|
|
|
+ <!-- <input type='number' class="input" placeholder="宽" border="none"
|
|
|
+ v-model="dataDetails.carWidth"> -->
|
|
|
<u--input type='number' placeholder="宽" inputAlign='left' border="none" v-model="dataDetails.carWidth">
|
|
|
</u--input>
|
|
|
<view class="position-right">
|
|
@@ -263,6 +268,8 @@
|
|
|
</view>
|
|
|
<view class="star">*</view>
|
|
|
<view class="input-positon">
|
|
|
+ <!-- <input type='number' class="input" placeholder="高" border="none"
|
|
|
+ v-model="dataDetails.carHeight"> -->
|
|
|
<u--input type='number' placeholder="高" inputAlign='left' border="none" v-model="dataDetails.carHeight">
|
|
|
</u--input>
|
|
|
<view class="position-right">
|
|
@@ -389,6 +396,7 @@
|
|
|
useNature: "营业特种车",
|
|
|
guaUseNature: "营运挂车",
|
|
|
energyType:"汽油",
|
|
|
+ owner:''
|
|
|
// carTotalWeight: '',
|
|
|
// carApprovedWeight: '',
|
|
|
// carLong: '',
|
|
@@ -942,44 +950,6 @@
|
|
|
});
|
|
|
},
|
|
|
validate() {
|
|
|
- // true 为校验不通过
|
|
|
- if (uni.$u.test.isEmpty(this.dataDetails.carNumber)) {
|
|
|
- this.$refs.uToast.show({
|
|
|
- type: 'error',
|
|
|
- message: "车牌号不能为空!",
|
|
|
- })
|
|
|
- return true
|
|
|
- }
|
|
|
- if (uni.$u.test.isEmpty(this.dataDetails.carTotalWeight) && this.sign == '非挂车') {
|
|
|
- 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',
|
|
|
- message: "整备质量不能为空!",
|
|
|
- })
|
|
|
- return true
|
|
|
- }
|
|
|
- if (uni.$u.test.isEmpty(this.dataDetails.owner)) {
|
|
|
- this.$refs.uToast.show({
|
|
|
- type: 'error',
|
|
|
- message: "车辆所属车主不能为空!",
|
|
|
- })
|
|
|
- return true
|
|
|
- }
|
|
|
- if (uni.$u.test.isEmpty(this.dataDetails.carLong) && uni.$u.test.isEmpty(this.dataDetails.caWidth) && uni
|
|
|
- .$u.test.isEmpty(this.dataDetails.carHeight)) {
|
|
|
- this.$refs.uToast.show({
|
|
|
- type: 'error',
|
|
|
- message: "外廓尺寸不能为空!",
|
|
|
- })
|
|
|
- return true
|
|
|
- }
|
|
|
if (uni.$u.test.isEmpty(this.dataDetails.operationCertificate)) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
@@ -1080,7 +1050,6 @@
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
-
|
|
|
if (this.sign == '挂车') {
|
|
|
if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseHomePage)) {
|
|
|
this.$refs.uToast.show({
|
|
@@ -1103,78 +1072,149 @@
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
- if (uni.$u.test.isEmpty(this.dataDetails.guaCarNumber)) {
|
|
|
+ if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseRegistrationDate)) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
|
- message: "挂车车牌号不能为空!",
|
|
|
+ message: "挂车行驶证注册日期不能为空!",
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
- if (uni.$u.test.isEmpty(this.dataDetails.guaOwner)) {
|
|
|
+ if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseIssueDate)) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
|
- message: "车辆所属车主不能为空!",
|
|
|
+ message: "挂车行驶证发证日期不能为空!!",
|
|
|
})
|
|
|
return true
|
|
|
- }
|
|
|
- if (uni.$u.test.isEmpty(this.dataDetails.guaServicingWeight)) {
|
|
|
+ }
|
|
|
+ if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseValidityDate)) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
|
- message: "挂车整备质量不能为空!",
|
|
|
+ message: "挂车行驶证有效期不能为空!",
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
- if (uni.$u.test.isEmpty(this.dataDetails.guaCarApprovedWeight)) {
|
|
|
+ if (uni.$u.test.isEmpty(this.dataDetails.guaLssuingAuthority)) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
|
- message: "挂车核定载质量不能为空!",
|
|
|
+ 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)) {
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // true 为校验不通过
|
|
|
+ if (uni.$u.test.isEmpty(this.dataDetails.carNumber)) {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: "车牌号不能为空!",
|
|
|
+ })
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ if (uni.$u.test.isEmpty(this.dataDetails.owner)) {
|
|
|
+ console.log(this.dataDetails.owner)
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: "车辆所属车主不能为空!",
|
|
|
+ })
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ if (uni.$u.test.isEmpty(this.dataDetails.carTotalWeight) && this.sign == '非挂车') {
|
|
|
+ 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',
|
|
|
+ message: "整备质量不能为空!",
|
|
|
+ })
|
|
|
+ return true
|
|
|
+ }
|
|
|
+
|
|
|
+ if (uni.$u.test.isEmpty(this.dataDetails.carLong) || uni.$u.test.isEmpty(this.dataDetails.carWidth) || uni
|
|
|
+ .$u.test.isEmpty(this.dataDetails.carHeight)) {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: "外廓尺寸不能为空!",
|
|
|
+ })
|
|
|
+ return true
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ if (this.sign == '挂车') {
|
|
|
+ if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseHomePage)) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
|
- message: "挂车外廓尺寸不能为空!",
|
|
|
+ message: "挂车行驶证主页不能为空!",
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
- // if (this.dataDetails.fileList2.length == 0) {
|
|
|
- // this.$refs.uToast.show({
|
|
|
- // type: 'error',
|
|
|
- // message: "人和挂车合影不能为空!",
|
|
|
- // })
|
|
|
- // return true
|
|
|
- // }
|
|
|
-
|
|
|
- if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseRegistrationDate)) {
|
|
|
+ if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseBackPage)) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
|
- message: "挂车行驶证注册日期不能为空!",
|
|
|
+ message: "挂车行驶证副页不能为空!",
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
- if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseIssueDate)) {
|
|
|
+ if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseNumber)) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
|
- message: "挂车行驶证发证日期不能为空!!",
|
|
|
+ message: "挂车行驶证档案编号不能为空!",
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
- if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseValidityDate)) {
|
|
|
+ if (uni.$u.test.isEmpty(this.dataDetails.guaCarNumber)) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
|
- message: "挂车行驶证有效期不能为空!",
|
|
|
+ message: "挂车车牌号不能为空!",
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
- if (uni.$u.test.isEmpty(this.dataDetails.guaLssuingAuthority)) {
|
|
|
+ if (uni.$u.test.isEmpty(this.dataDetails.guaOwner)) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
|
- message: "挂车行驶证发证机关不能为空!",
|
|
|
+ message: "车辆所属车主不能为空!",
|
|
|
+ })
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ if (uni.$u.test.isEmpty(this.dataDetails.guaServicingWeight)) {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: "挂车整备质量不能为空!",
|
|
|
+ })
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ if (uni.$u.test.isEmpty(this.dataDetails.guaCarApprovedWeight)) {
|
|
|
+ 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',
|
|
|
+ message: "挂车外廓尺寸不能为空!",
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
+ // if (this.dataDetails.fileList2.length == 0) {
|
|
|
+ // this.$refs.uToast.show({
|
|
|
+ // type: 'error',
|
|
|
+ // message: "人和挂车合影不能为空!",
|
|
|
+ // })
|
|
|
+ // return true
|
|
|
+ // }
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
return false
|
|
|
},
|
|
|
submit() {
|