From 1834a1a838db424d787a7bc7021f33f9ce68a897 Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Thu, 15 Jan 2026 16:07:45 +0800 Subject: [PATCH] =?UTF-8?q?CRM=5F26-01-22#story#7966,=E5=85=B3=E4=BA=8E?= =?UTF-8?q?=E5=9C=A8=E6=89=93=E9=80=9A=E7=B3=BB=E7=BB=9F=E4=B8=AD=E8=B4=A3?= =?UTF-8?q?=E4=BB=BB=E9=99=A9=E4=BF=A1=E6=81=AF=E5=85=B3=E8=81=94=E7=9A=84?= =?UTF-8?q?=E9=9C=80=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index/vehicleAdd.vue | 99 +++++++++++++++++++++++++++++++--- 1 file changed, 92 insertions(+), 7 deletions(-) diff --git a/src/views/index/vehicleAdd.vue b/src/views/index/vehicleAdd.vue index 50b07b16..a429d4a4 100644 --- a/src/views/index/vehicleAdd.vue +++ b/src/views/index/vehicleAdd.vue @@ -311,9 +311,65 @@ +
+
+
+ + 保费 +
+ + + +
+
+
+
+ + 保额 +
+ + + +
+
+
+
+ + 保单号(救援) +
+ +
+
+
+
保单号(中道物流)
+ +
+
- -
@@ -557,7 +613,10 @@ export default { vehicleInfoChange:false, insuranceChange:false, loading: false, - + liabilityInsuranceAmount:'', + liabilityInsuranceQuota:'', + insuranceCode:'', + insuranceCodeZd:'', } }, computed: { @@ -952,7 +1011,7 @@ export default { isVehicleChange(e) { this.vehicleStatus=e }, - async submitAuditHandle(){//提交审核 +/* async submitAuditHandle(){//提交审核 let urls=[] this.insurancePictureFiles?.forEach(item => urls.push(item.url)) let time =this.dateVal ? this.formatDateTimeRange(this.dateVal) : '' @@ -1030,7 +1089,7 @@ export default { this.approvalDialogShow=false await this.submitBtn(); } - }, + },*/ async submitApprovalHandle(){//提交审批-走接口 if(this.vehicleInfoChange){ if(!(this.selectedOption.length > 0)){ @@ -1194,12 +1253,26 @@ export default { this.$toast('保单有效期不能为空') return } + if( this.hasLiabilityInsurance == 1){ + if(!(this.liabilityInsuranceAmount || this.liabilityInsuranceAmount==0)){ + this.$toast('保费不能为空') + return + } + if(!(this.liabilityInsuranceQuota || this.liabilityInsuranceQuota==0)){ + this.$toast('保额不能为空') + return + } + if(!this.insuranceCode){ + this.$toast('保单号(救援)不能为空') + return + } + } let timeObj; if(this.dateVal) { timeObj = this.formatDateTimeRange(this.dateVal) } this.serviceIds = this.$refs.tree.getCheckedKeys(true) - console.log('1122',this.vehicleStatus) + // console.log('1122',this.vehicleStatus) // return await saveVehicle({ vehicleId:this.id ? this.id : '', @@ -1221,7 +1294,11 @@ export default { liabilityInsuranceEndTime: this.hasLiabilityInsurance == 1 ? (timeObj?.endTime || '') : '', virtualVehicle: this.virtualVehicle, canSubmitApproval:true, - vehicleStatus:this.vehicleStatus + vehicleStatus:this.vehicleStatus, + liabilityInsuranceAmount:this.liabilityInsuranceAmount, + liabilityInsuranceQuota:this.liabilityInsuranceQuota, + insuranceCode:this.insuranceCode, + insuranceCodeZd:this.insuranceCodeZd, }) if(this.id){ this.$toast('修改成功') @@ -1427,4 +1504,12 @@ export default { transform: translate(-50%, -50%) rotate(360deg); } } +.vanIpt{ + width: 80%; + display: flex; + align-items: center; +} +.vanIpt1{ + width: 72%; +}