|
@@ -101,6 +101,12 @@
|
|
v-model="dataDetails.vehicleType">
|
|
v-model="dataDetails.vehicleType">
|
|
</u--input>
|
|
</u--input>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="flex row flex-space-between">
|
|
|
|
+ <view class="left-text">行驶证车辆识别代号</view>
|
|
|
|
+ <u--input maxlength='25' placeholder="输入行驶证车辆识别代号" inputAlign='right' border="none"
|
|
|
|
+ v-model="dataDetails.carCode">
|
|
|
|
+ </u--input>
|
|
|
|
+ </view>
|
|
<view class="flex row flex-space-between">
|
|
<view class="flex row flex-space-between">
|
|
<view class="left-text">行驶证档案编号</view>
|
|
<view class="left-text">行驶证档案编号</view>
|
|
<u--input maxlength='12' placeholder="输入行驶证档案编号" inputAlign='right' border="none"
|
|
<u--input maxlength='12' placeholder="输入行驶证档案编号" inputAlign='right' border="none"
|
|
@@ -189,6 +195,19 @@
|
|
<image class="" :src="dataDetails.trailerLicenseBackPage" mode="aspectFit"></image>
|
|
<image class="" :src="dataDetails.trailerLicenseBackPage" mode="aspectFit"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+
|
|
|
|
+ <view class="flex row flex-space-between" v-if="sign == '挂车'">
|
|
|
|
+ <view class="left-text">挂车行驶证车辆类型</view>
|
|
|
|
+ <u--input maxlength='12' placeholder="输入挂车行驶证车辆类型" inputAlign='right' border="none"
|
|
|
|
+ v-model="dataDetails.trailerVehicleType">
|
|
|
|
+ </u--input>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="flex row flex-space-between" v-if="sign == '挂车'">
|
|
|
|
+ <view class="left-text">挂车行驶证车辆识别代号</view>
|
|
|
|
+ <u--input maxlength='25' placeholder="输入挂车车辆识别代码" inputAlign='right' border="none"
|
|
|
|
+ v-model="dataDetails.trailerCarCode">
|
|
|
|
+ </u--input>
|
|
|
|
+ </view>
|
|
<view class="flex row flex-space-between" v-if="sign == '挂车'">
|
|
<view class="flex row flex-space-between" v-if="sign == '挂车'">
|
|
<view class="left-text">挂车行驶证档案编号</view>
|
|
<view class="left-text">挂车行驶证档案编号</view>
|
|
<u--input maxlength='12' placeholder="输入挂车行驶证档案编号" inputAlign='right' border="none"
|
|
<u--input maxlength='12' placeholder="输入挂车行驶证档案编号" inputAlign='right' border="none"
|
|
@@ -648,6 +667,19 @@
|
|
_this.dataDetails.carCode =res.data.carCode
|
|
_this.dataDetails.carCode =res.data.carCode
|
|
_this.dataDetails.owner = res.data
|
|
_this.dataDetails.owner = res.data
|
|
.owner //车辆所有人
|
|
.owner //车辆所有人
|
|
|
|
+ if (res.data.lssuingAuthority) { //行驶证发证机关
|
|
|
|
+ _this.dataDetails.lssuingAuthority = res
|
|
|
|
+ .data.lssuingAuthority
|
|
|
|
+ }
|
|
|
|
+ if (res.data.licenseRegistrationDate) { //行驶证注册日期
|
|
|
|
+ _this.dataDetails
|
|
|
|
+ .drivingLicenseRegistrationDate = res
|
|
|
|
+ .data.licenseRegistrationDate
|
|
|
|
+ }
|
|
|
|
+ if (res.data.licenseIssueDate) { //行驶证发证日期
|
|
|
|
+ _this.dataDetails.drivingLicenseIssueDate =
|
|
|
|
+ res.data.licenseIssueDate
|
|
|
|
+ }
|
|
_this.$forceUpdate()
|
|
_this.$forceUpdate()
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -695,8 +727,10 @@
|
|
if(res.data.approvedLoadMass.indexOf("kg") != -1){
|
|
if(res.data.approvedLoadMass.indexOf("kg") != -1){
|
|
res.data.approvedLoadMass = res.data.approvedLoadMass.slice(0, res.data.approvedLoadMass.length - 2)
|
|
res.data.approvedLoadMass = res.data.approvedLoadMass.slice(0, res.data.approvedLoadMass.length - 2)
|
|
}
|
|
}
|
|
- _this.dataDetails.carApprovedWeight = res.data
|
|
|
|
- .approvedLoadMass //核定载质量
|
|
|
|
|
|
+ if(res.data.approvedLoadMass && !isNaN(res.data.approvedLoadMass)){
|
|
|
|
+ _this.dataDetails.carApprovedWeight = res.data.approvedLoadMass //核定载质量
|
|
|
|
+ }
|
|
|
|
+
|
|
if (res.data.size && res.data.size.indexOf(
|
|
if (res.data.size && res.data.size.indexOf(
|
|
"mm") != -1) {
|
|
"mm") != -1) {
|
|
res.data.size = res.data.size.slice(0, res
|
|
res.data.size = res.data.size.slice(0, res
|
|
@@ -724,9 +758,9 @@
|
|
flag: 1
|
|
flag: 1
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if (res.data) {
|
|
if (res.data) {
|
|
- if (res.data.issuingAuthority) { //行驶证发证机关
|
|
|
|
|
|
+ if (res.data.lssuingAuthority) { //行驶证发证机关
|
|
_this.dataDetails.guaLssuingAuthority = res
|
|
_this.dataDetails.guaLssuingAuthority = res
|
|
- .data.issuingAuthority
|
|
|
|
|
|
+ .data.lssuingAuthority
|
|
}
|
|
}
|
|
if (res.data.licenseRegistrationDate) { //行驶证注册日期
|
|
if (res.data.licenseRegistrationDate) { //行驶证注册日期
|
|
_this.dataDetails
|
|
_this.dataDetails
|
|
@@ -743,8 +777,9 @@
|
|
.carNum.substring(0,6)
|
|
.carNum.substring(0,6)
|
|
}
|
|
}
|
|
//车牌号
|
|
//车牌号
|
|
- _this.dataDetails.guaOwner = res.data
|
|
|
|
- .owner //车辆所有人
|
|
|
|
|
|
+ _this.dataDetails.guaOwner = res.data.owner //车辆所有人
|
|
|
|
+ _this.dataDetails.trailerVehicleType = res.data.vehicleType
|
|
|
|
+ _this.dataDetails.trailerCarCode =res.data.carCode
|
|
_this.$forceUpdate()
|
|
_this.$forceUpdate()
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -1121,6 +1156,13 @@
|
|
})
|
|
})
|
|
return true
|
|
return true
|
|
}
|
|
}
|
|
|
|
+ if(!this.dataDetails.carCode){
|
|
|
|
+ this.$refs.uToast.show({
|
|
|
|
+ type: 'error',
|
|
|
|
+ message: "行驶证车辆识别代号不能为空!",
|
|
|
|
+ })
|
|
|
|
+ return true
|
|
|
|
+ }
|
|
if (this.dataDetails.vehicleType.length<2||this.dataDetails.vehicleType.length>10) {
|
|
if (this.dataDetails.vehicleType.length<2||this.dataDetails.vehicleType.length>10) {
|
|
this.$refs.uToast.show({
|
|
this.$refs.uToast.show({
|
|
type: 'error',
|
|
type: 'error',
|
|
@@ -1218,6 +1260,20 @@
|
|
})
|
|
})
|
|
return true
|
|
return true
|
|
}
|
|
}
|
|
|
|
+ if (uni.$u.test.isEmpty(this.dataDetails.trailerVehicleType)) {
|
|
|
|
+ this.$refs.uToast.show({
|
|
|
|
+ type: 'error',
|
|
|
|
+ message: "挂车行驶证车辆类型不能为空!",
|
|
|
|
+ })
|
|
|
|
+ return true
|
|
|
|
+ }
|
|
|
|
+ if (uni.$u.test.isEmpty(this.dataDetails.trailerCarCode)) {
|
|
|
|
+ this.$refs.uToast.show({
|
|
|
|
+ type: 'error',
|
|
|
|
+ message: "挂车行驶证识别代号不能为空!",
|
|
|
|
+ })
|
|
|
|
+ return true
|
|
|
|
+ }
|
|
if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseNumber)) {
|
|
if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseNumber)) {
|
|
this.$refs.uToast.show({
|
|
this.$refs.uToast.show({
|
|
type: 'error',
|
|
type: 'error',
|