CRM_26-01-22#story#7966,关于在打通系统中责任险信息关联的需求
This commit is contained in:
@@ -311,9 +311,65 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-input>
|
</el-input>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="lineBot"></div>
|
||||||
|
<div class="itemContent">
|
||||||
|
<div class="titleType">
|
||||||
|
<img class="startImg" src="@/assets/start.png" />
|
||||||
|
<span>保费</span>
|
||||||
|
</div>
|
||||||
|
<van-field
|
||||||
|
type="number"
|
||||||
|
class="vanIpt"
|
||||||
|
v-model="liabilityInsuranceAmount"
|
||||||
|
input-align="right"
|
||||||
|
>
|
||||||
|
<template slot="right-icon" >
|
||||||
|
<span style="white-space: nowrap;">元</span>
|
||||||
|
</template>
|
||||||
|
</van-field>
|
||||||
|
</div>
|
||||||
|
<div class="lineBot"></div>
|
||||||
|
<div class="itemContent">
|
||||||
|
<div class="titleType">
|
||||||
|
<img class="startImg" src="@/assets/start.png" />
|
||||||
|
<span>保额</span>
|
||||||
|
</div>
|
||||||
|
<van-field
|
||||||
|
type="number"
|
||||||
|
class="vanIpt"
|
||||||
|
v-model="liabilityInsuranceQuota"
|
||||||
|
input-align="right"
|
||||||
|
>
|
||||||
|
<template slot="right-icon" >
|
||||||
|
<span style="white-space: nowrap;">万元 </span>
|
||||||
|
</template>
|
||||||
|
</van-field>
|
||||||
|
</div>
|
||||||
|
<div class="lineBot"></div>
|
||||||
|
<div class="itemContent">
|
||||||
|
<div class="titleType">
|
||||||
|
<img class="startImg" src="@/assets/start.png" />
|
||||||
|
<span>保单号(救援)</span>
|
||||||
|
</div>
|
||||||
|
<van-field
|
||||||
|
class="vanIpt"
|
||||||
|
style="width: 72%"
|
||||||
|
v-model="insuranceCode"
|
||||||
|
input-align="right"
|
||||||
|
> </van-field>
|
||||||
|
</div>
|
||||||
|
<div class="lineBot"></div>
|
||||||
|
<div class="itemContent">
|
||||||
|
<div class="titleType"> <span>保单号(中道物流)</span> </div>
|
||||||
|
<van-field
|
||||||
|
class="vanIpt"
|
||||||
|
style="width: 65%"
|
||||||
|
v-model="insuranceCodeZd"
|
||||||
|
input-align="right"
|
||||||
|
> </van-field>
|
||||||
|
</div>
|
||||||
|
<div class="lineBot"></div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
||||||
<div class="itemContent">
|
<div class="itemContent">
|
||||||
<div class="titleType">
|
<div class="titleType">
|
||||||
<img class="startImg" src="@/assets/start.png" />
|
<img class="startImg" src="@/assets/start.png" />
|
||||||
@@ -557,7 +613,10 @@ export default {
|
|||||||
vehicleInfoChange:false,
|
vehicleInfoChange:false,
|
||||||
insuranceChange:false,
|
insuranceChange:false,
|
||||||
loading: false,
|
loading: false,
|
||||||
|
liabilityInsuranceAmount:'',
|
||||||
|
liabilityInsuranceQuota:'',
|
||||||
|
insuranceCode:'',
|
||||||
|
insuranceCodeZd:'',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -952,7 +1011,7 @@ export default {
|
|||||||
isVehicleChange(e) {
|
isVehicleChange(e) {
|
||||||
this.vehicleStatus=e
|
this.vehicleStatus=e
|
||||||
},
|
},
|
||||||
async submitAuditHandle(){//提交审核
|
/* async submitAuditHandle(){//提交审核
|
||||||
let urls=[]
|
let urls=[]
|
||||||
this.insurancePictureFiles?.forEach(item => urls.push(item.url))
|
this.insurancePictureFiles?.forEach(item => urls.push(item.url))
|
||||||
let time =this.dateVal ? this.formatDateTimeRange(this.dateVal) : ''
|
let time =this.dateVal ? this.formatDateTimeRange(this.dateVal) : ''
|
||||||
@@ -1030,7 +1089,7 @@ export default {
|
|||||||
this.approvalDialogShow=false
|
this.approvalDialogShow=false
|
||||||
await this.submitBtn();
|
await this.submitBtn();
|
||||||
}
|
}
|
||||||
},
|
},*/
|
||||||
async submitApprovalHandle(){//提交审批-走接口
|
async submitApprovalHandle(){//提交审批-走接口
|
||||||
if(this.vehicleInfoChange){
|
if(this.vehicleInfoChange){
|
||||||
if(!(this.selectedOption.length > 0)){
|
if(!(this.selectedOption.length > 0)){
|
||||||
@@ -1194,12 +1253,26 @@ export default {
|
|||||||
this.$toast('保单有效期不能为空')
|
this.$toast('保单有效期不能为空')
|
||||||
return
|
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;
|
let timeObj;
|
||||||
if(this.dateVal) {
|
if(this.dateVal) {
|
||||||
timeObj = this.formatDateTimeRange(this.dateVal)
|
timeObj = this.formatDateTimeRange(this.dateVal)
|
||||||
}
|
}
|
||||||
this.serviceIds = this.$refs.tree.getCheckedKeys(true)
|
this.serviceIds = this.$refs.tree.getCheckedKeys(true)
|
||||||
console.log('1122',this.vehicleStatus)
|
// console.log('1122',this.vehicleStatus)
|
||||||
// return
|
// return
|
||||||
await saveVehicle({
|
await saveVehicle({
|
||||||
vehicleId:this.id ? this.id : '',
|
vehicleId:this.id ? this.id : '',
|
||||||
@@ -1221,7 +1294,11 @@ export default {
|
|||||||
liabilityInsuranceEndTime: this.hasLiabilityInsurance == 1 ? (timeObj?.endTime || '') : '',
|
liabilityInsuranceEndTime: this.hasLiabilityInsurance == 1 ? (timeObj?.endTime || '') : '',
|
||||||
virtualVehicle: this.virtualVehicle,
|
virtualVehicle: this.virtualVehicle,
|
||||||
canSubmitApproval:true,
|
canSubmitApproval:true,
|
||||||
vehicleStatus:this.vehicleStatus
|
vehicleStatus:this.vehicleStatus,
|
||||||
|
liabilityInsuranceAmount:this.liabilityInsuranceAmount,
|
||||||
|
liabilityInsuranceQuota:this.liabilityInsuranceQuota,
|
||||||
|
insuranceCode:this.insuranceCode,
|
||||||
|
insuranceCodeZd:this.insuranceCodeZd,
|
||||||
})
|
})
|
||||||
if(this.id){
|
if(this.id){
|
||||||
this.$toast('修改成功')
|
this.$toast('修改成功')
|
||||||
@@ -1427,4 +1504,12 @@ export default {
|
|||||||
transform: translate(-50%, -50%) rotate(360deg);
|
transform: translate(-50%, -50%) rotate(360deg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.vanIpt{
|
||||||
|
width: 80%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.vanIpt1{
|
||||||
|
width: 72%;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user