车辆审批需求,责任险可查看,保存时添加车辆状态字段

This commit is contained in:
2025-12-23 10:23:52 +08:00
parent a7e217100e
commit 703062825c

View File

@@ -199,7 +199,7 @@
<div class="isJoin">
<van-radio-group v-model="vehicleStatus" :class="{ 'disabled-tree': vehicleInfoDisabled }" :disabled="vehicleInfoDisabled" @change="isVehicleChange" class="joinWrap">
<van-radio :name="1" style="margin-right: 14px">
启用
1
<img
slot="icon"
slot-scope="props"
@@ -207,7 +207,7 @@
>
</van-radio>
<van-radio :name="2" style="margin-right: 14px">
停用
1
<img
slot="icon"
slot-scope="props"
@@ -269,6 +269,7 @@
:deletable="!disabledShow"
max-count="1"
:preview-size="54"
@click-preview="clickPreview"
/>
</div>
<div class="lineBot"></div>
@@ -740,6 +741,12 @@ export default {
this.vehicleFrontPhoto = res.data;
await this.ocrCarFrontHandler()
},
clickPreview(){
// console.log(' this.insurancePicturePhoto', this.insurancePicturePhoto)
if(this.insurancePicturePhoto && this.insurancePicturePhoto.indexOf('.pdf') !== -1){
window.open(this.insurancePicturePhoto)
}
},
async insurancePictureFilesHandler(file) {
const formData = new FormData();
formData.append("file" , file.file);
@@ -1189,6 +1196,8 @@ export default {
timeObj = this.formatDateTimeRange(this.dateVal)
}
this.serviceIds = this.$refs.tree.getCheckedKeys(true)
console.log('1122',this.vehicleStatus)
// return
await saveVehicle({
vehicleId:this.id ? this.id : '',
plateNumber:this.carNum ? this.carNum :'',
@@ -1208,7 +1217,8 @@ export default {
liabilityInsuranceStartTime: this.hasLiabilityInsurance == 1 ? (timeObj?.startTime || '' ) : '',
liabilityInsuranceEndTime: this.hasLiabilityInsurance == 1 ? (timeObj?.endTime || '') : '',
virtualVehicle: this.virtualVehicle,
canSubmitApproval:true
canSubmitApproval:true,
vehicleStatus:this.vehicleStatus
})
if(this.id){
this.$toast('修改成功')