|
@@ -904,7 +904,7 @@
|
|
|
<el-table
|
|
<el-table
|
|
|
:data="scope.row.projectList[productIndex].drivings"
|
|
:data="scope.row.projectList[productIndex].drivings"
|
|
|
>
|
|
>
|
|
|
- <el-table-column width="50" align="center">
|
|
|
|
|
|
|
+ <el-table-column width="50" align="center" v-if="scope.row.projectList[productIndex].schemeType !='1'">
|
|
|
<template #header>
|
|
<template #header>
|
|
|
<el-icon @click="handleDriving(scope)"><CirclePlus /></el-icon>
|
|
<el-icon @click="handleDriving(scope)"><CirclePlus /></el-icon>
|
|
|
</template>
|
|
</template>
|
|
@@ -919,7 +919,7 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="数量" align="center">
|
|
<el-table-column label="数量" align="center">
|
|
|
<template #default="props">
|
|
<template #default="props">
|
|
|
- <el-input v-model="props.row.quantity" style="width: 140px">
|
|
|
|
|
|
|
+ <el-input :disabled="scope.row.projectList[productIndex].schemeType === '1'" v-model="props.row.quantity" style="width: 140px">
|
|
|
<template #append>
|
|
<template #append>
|
|
|
<span>份</span>
|
|
<span>份</span>
|
|
|
</template>
|
|
</template>
|
|
@@ -1041,7 +1041,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <div class="result" v-if="currentRow.some(a => a.id === scope.row.id)&&!loading">
|
|
|
|
|
|
|
+ <div class="result" v-if="currentRow.some(a => a.id === scope.row.id)">
|
|
|
<span class="resultItem">
|
|
<span class="resultItem">
|
|
|
<span v-if="scope.row.quoteResult?.costs?.sumPremium">总保费:{{ scope.row.quoteResult?.costs?.sumPremium }}</span>
|
|
<span v-if="scope.row.quoteResult?.costs?.sumPremium">总保费:{{ scope.row.quoteResult?.costs?.sumPremium }}</span>
|
|
|
<!-- <span class="resultTips">
|
|
<!-- <span class="resultTips">
|
|
@@ -1283,6 +1283,12 @@ const handleFocus = () => {
|
|
|
const handleSalesmanSelect = (data) => {
|
|
const handleSalesmanSelect = (data) => {
|
|
|
salesmanShow.value = false
|
|
salesmanShow.value = false
|
|
|
if(data) {
|
|
if(data) {
|
|
|
|
|
+ if(insurancePolicyForm.value.salesman&&insurancePolicyForm.value.mobile&&insurancePolicyForm.value.deptId&&insurancePolicyForm.value.productId) {
|
|
|
|
|
+ quoteData.value = []
|
|
|
|
|
+ ruleFilterCompany({
|
|
|
|
|
+ value: insurancePolicyForm.value.productId
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
insurancePolicyForm.value.salesman = data.name
|
|
insurancePolicyForm.value.salesman = data.name
|
|
|
insurancePolicyForm.value.mobile = data.mobile
|
|
insurancePolicyForm.value.mobile = data.mobile
|
|
|
insurancePolicyForm.value.deptId = data.deptId
|
|
insurancePolicyForm.value.deptId = data.deptId
|
|
@@ -1993,7 +1999,6 @@ const SYChange = (item) => {
|
|
|
let currentRow = ref([])
|
|
let currentRow = ref([])
|
|
|
let quoteData = ref([])
|
|
let quoteData = ref([])
|
|
|
const handleSelect = (a, b) => {
|
|
const handleSelect = (a, b) => {
|
|
|
- // console.log(123, a, b)
|
|
|
|
|
// currentRow.value = a
|
|
// currentRow.value = a
|
|
|
// insurancePolicyForm.value.order.insuranceCompanyCode = a[0].id
|
|
// insurancePolicyForm.value.order.insuranceCompanyCode = a[0].id
|
|
|
}
|
|
}
|
|
@@ -2124,7 +2129,6 @@ const handleCount = (scope) => {
|
|
|
// 提交核保
|
|
// 提交核保
|
|
|
let underwritingShow = ref(false)
|
|
let underwritingShow = ref(false)
|
|
|
const handleUnderwriting = (scope) => {
|
|
const handleUnderwriting = (scope) => {
|
|
|
- console.log(scope.row)
|
|
|
|
|
underwritingShow.value = true
|
|
underwritingShow.value = true
|
|
|
let data = {
|
|
let data = {
|
|
|
|
|
|
|
@@ -2267,6 +2271,55 @@ const handleSubmit = async (InsurancePolicyRefs: FormInstance | undefined, scope
|
|
|
// })
|
|
// })
|
|
|
// })
|
|
// })
|
|
|
}
|
|
}
|
|
|
|
|
+ let obj1 = btns.value.owner1.find(a => a.checked)
|
|
|
|
|
+ btns.value.owner1Text = obj1.text
|
|
|
|
|
+ if(obj1.text === '同车主') {
|
|
|
|
|
+ insurancePolicyForm.value.name2 = insurancePolicyForm.value.name1
|
|
|
|
|
+ insurancePolicyForm.value.mobile2 = insurancePolicyForm.value.mobile1
|
|
|
|
|
+ insurancePolicyForm.value.identifyType2 = insurancePolicyForm.value.identifyType1
|
|
|
|
|
+ insurancePolicyForm.value.identifyNumber2 = insurancePolicyForm.value.identifyNumber1
|
|
|
|
|
+ insurancePolicyForm.value.identifyValidDate2 = insurancePolicyForm.value.identifyValidDate1
|
|
|
|
|
+ insurancePolicyForm.value.identifyValidEndDate2 = insurancePolicyForm.value.identifyValidEndDate1
|
|
|
|
|
+ insurancePolicyForm.value.addr2 = insurancePolicyForm.value.addr1
|
|
|
|
|
+ insurancePolicyForm.value.telephone2 = insurancePolicyForm.value.telephone1
|
|
|
|
|
+ insurancePolicyForm.value.person2 = insurancePolicyForm.value.person1
|
|
|
|
|
+ insurancePolicyForm.value.age2 = insurancePolicyForm.value.age1
|
|
|
|
|
+ insurancePolicyForm.value.address2 = insurancePolicyForm.value.address1
|
|
|
|
|
+ insurancePolicyForm.value.registeredCapital2 = insurancePolicyForm.value.registeredCapital1
|
|
|
|
|
+ insurancePolicyForm.value.email2 = insurancePolicyForm.value.email1
|
|
|
|
|
+ }
|
|
|
|
|
+ let obj2 = btns.value.owner2.find(a => a.checked)
|
|
|
|
|
+ btns.value.owner2Text = obj2.text
|
|
|
|
|
+ if(obj2.text === '同车主') {
|
|
|
|
|
+ insurancePolicyForm.value.name3 = insurancePolicyForm.value.name1
|
|
|
|
|
+ insurancePolicyForm.value.mobile3 = insurancePolicyForm.value.mobile1
|
|
|
|
|
+ insurancePolicyForm.value.identifyType3 = insurancePolicyForm.value.identifyType1
|
|
|
|
|
+ insurancePolicyForm.value.identifyNumber3 = insurancePolicyForm.value.identifyNumber1
|
|
|
|
|
+ insurancePolicyForm.value.identifyValidDate3 = insurancePolicyForm.value.identifyValidDate1
|
|
|
|
|
+ insurancePolicyForm.value.identifyValidEndDate3 = insurancePolicyForm.value.identifyValidEndDate1
|
|
|
|
|
+ insurancePolicyForm.value.addr3 = insurancePolicyForm.value.addr1
|
|
|
|
|
+ insurancePolicyForm.value.telephone3 = insurancePolicyForm.value.telephone1
|
|
|
|
|
+ insurancePolicyForm.value.person3 = insurancePolicyForm.value.person1
|
|
|
|
|
+ insurancePolicyForm.value.age3 = insurancePolicyForm.value.age1
|
|
|
|
|
+ insurancePolicyForm.value.address3 = insurancePolicyForm.value.address1
|
|
|
|
|
+ insurancePolicyForm.value.registeredCapital3 = insurancePolicyForm.value.registeredCapital1
|
|
|
|
|
+ insurancePolicyForm.value.email3 = insurancePolicyForm.value.email1
|
|
|
|
|
+ }
|
|
|
|
|
+ if(obj2.text === '同投保人') {
|
|
|
|
|
+ insurancePolicyForm.value.name3 = insurancePolicyForm.value.name2
|
|
|
|
|
+ insurancePolicyForm.value.mobile3 = insurancePolicyForm.value.mobile2
|
|
|
|
|
+ insurancePolicyForm.value.identifyType3 = insurancePolicyForm.value.identifyType2
|
|
|
|
|
+ insurancePolicyForm.value.identifyNumber3 = insurancePolicyForm.value.identifyNumber2
|
|
|
|
|
+ insurancePolicyForm.value.identifyValidDate3 = insurancePolicyForm.value.identifyValidDate2
|
|
|
|
|
+ insurancePolicyForm.value.identifyValidEndDate3 = insurancePolicyForm.value.identifyValidEndDate2
|
|
|
|
|
+ insurancePolicyForm.value.addr3 = insurancePolicyForm.value.addr2
|
|
|
|
|
+ insurancePolicyForm.value.telephone3 = insurancePolicyForm.value.telephone2
|
|
|
|
|
+ insurancePolicyForm.value.person3 = insurancePolicyForm.value.person2
|
|
|
|
|
+ insurancePolicyForm.value.age3 = insurancePolicyForm.value.age2
|
|
|
|
|
+ insurancePolicyForm.value.address3 = insurancePolicyForm.value.address2
|
|
|
|
|
+ insurancePolicyForm.value.registeredCapital3 = insurancePolicyForm.value.registeredCapital2
|
|
|
|
|
+ insurancePolicyForm.value.email3 = insurancePolicyForm.value.email2
|
|
|
|
|
+ }
|
|
|
let data = {
|
|
let data = {
|
|
|
systemType: '2',
|
|
systemType: '2',
|
|
|
order: {
|
|
order: {
|
|
@@ -2372,55 +2425,6 @@ const handleSubmit = async (InsurancePolicyRefs: FormInstance | undefined, scope
|
|
|
kindInfoVo: [...arr],
|
|
kindInfoVo: [...arr],
|
|
|
accidentalDrivings: [...brr]
|
|
accidentalDrivings: [...brr]
|
|
|
}
|
|
}
|
|
|
- let obj1 = btns.value.owner1.find(a => a.checked)
|
|
|
|
|
- btns.value.owner1Text = obj1.text
|
|
|
|
|
- if(obj1.text === '同车主') {
|
|
|
|
|
- insurancePolicyForm.value.name2 = insurancePolicyForm.value.name1
|
|
|
|
|
- insurancePolicyForm.value.mobile2 = insurancePolicyForm.value.mobile1
|
|
|
|
|
- insurancePolicyForm.value.identifyType2 = insurancePolicyForm.value.identifyType1
|
|
|
|
|
- insurancePolicyForm.value.identifyNumber2 = insurancePolicyForm.value.identifyNumber1
|
|
|
|
|
- insurancePolicyForm.value.identifyValidDate2 = insurancePolicyForm.value.identifyValidDate1
|
|
|
|
|
- insurancePolicyForm.value.identifyValidEndDate2 = insurancePolicyForm.value.identifyValidEndDate1
|
|
|
|
|
- insurancePolicyForm.value.addr2 = insurancePolicyForm.value.addr1
|
|
|
|
|
- insurancePolicyForm.value.telephone2 = insurancePolicyForm.value.telephone1
|
|
|
|
|
- insurancePolicyForm.value.person2 = insurancePolicyForm.value.person1
|
|
|
|
|
- insurancePolicyForm.value.age2 = insurancePolicyForm.value.age1
|
|
|
|
|
- insurancePolicyForm.value.address2 = insurancePolicyForm.value.address1
|
|
|
|
|
- insurancePolicyForm.value.registeredCapital2 = insurancePolicyForm.value.registeredCapital1
|
|
|
|
|
- insurancePolicyForm.value.email2 = insurancePolicyForm.value.email1
|
|
|
|
|
- }
|
|
|
|
|
- let obj2 = btns.value.owner2.find(a => a.checked)
|
|
|
|
|
- btns.value.owner2Text = obj2.text
|
|
|
|
|
- if(obj2.text === '同车主') {
|
|
|
|
|
- insurancePolicyForm.value.name3 = insurancePolicyForm.value.name1
|
|
|
|
|
- insurancePolicyForm.value.mobile3 = insurancePolicyForm.value.mobile1
|
|
|
|
|
- insurancePolicyForm.value.identifyType3 = insurancePolicyForm.value.identifyType1
|
|
|
|
|
- insurancePolicyForm.value.identifyNumber3 = insurancePolicyForm.value.identifyNumber1
|
|
|
|
|
- insurancePolicyForm.value.identifyValidDate3 = insurancePolicyForm.value.identifyValidDate1
|
|
|
|
|
- insurancePolicyForm.value.identifyValidEndDate3 = insurancePolicyForm.value.identifyValidEndDate1
|
|
|
|
|
- insurancePolicyForm.value.addr3 = insurancePolicyForm.value.addr1
|
|
|
|
|
- insurancePolicyForm.value.telephone3 = insurancePolicyForm.value.telephone1
|
|
|
|
|
- insurancePolicyForm.value.person3 = insurancePolicyForm.value.person1
|
|
|
|
|
- insurancePolicyForm.value.age3 = insurancePolicyForm.value.age1
|
|
|
|
|
- insurancePolicyForm.value.address3 = insurancePolicyForm.value.address1
|
|
|
|
|
- insurancePolicyForm.value.registeredCapital3 = insurancePolicyForm.value.registeredCapital1
|
|
|
|
|
- insurancePolicyForm.value.email3 = insurancePolicyForm.value.email1
|
|
|
|
|
- }
|
|
|
|
|
- if(obj2.text === '同投保人') {
|
|
|
|
|
- insurancePolicyForm.value.name3 = insurancePolicyForm.value.name2
|
|
|
|
|
- insurancePolicyForm.value.mobile3 = insurancePolicyForm.value.mobile2
|
|
|
|
|
- insurancePolicyForm.value.identifyType3 = insurancePolicyForm.value.identifyType2
|
|
|
|
|
- insurancePolicyForm.value.identifyNumber3 = insurancePolicyForm.value.identifyNumber2
|
|
|
|
|
- insurancePolicyForm.value.identifyValidDate3 = insurancePolicyForm.value.identifyValidDate2
|
|
|
|
|
- insurancePolicyForm.value.identifyValidEndDate3 = insurancePolicyForm.value.identifyValidEndDate2
|
|
|
|
|
- insurancePolicyForm.value.addr3 = insurancePolicyForm.value.addr2
|
|
|
|
|
- insurancePolicyForm.value.telephone3 = insurancePolicyForm.value.telephone2
|
|
|
|
|
- insurancePolicyForm.value.person3 = insurancePolicyForm.value.person2
|
|
|
|
|
- insurancePolicyForm.value.age3 = insurancePolicyForm.value.age2
|
|
|
|
|
- insurancePolicyForm.value.address3 = insurancePolicyForm.value.address2
|
|
|
|
|
- insurancePolicyForm.value.registeredCapital3 = insurancePolicyForm.value.registeredCapital2
|
|
|
|
|
- insurancePolicyForm.value.email3 = insurancePolicyForm.value.email2
|
|
|
|
|
- }
|
|
|
|
|
api.insurancePolicyApi.imageSave({
|
|
api.insurancePolicyApi.imageSave({
|
|
|
order: {
|
|
order: {
|
|
|
quoteNo: insurancePolicyForm.value.order.quoteNo
|
|
quoteNo: insurancePolicyForm.value.order.quoteNo
|