|
|
@@ -1052,6 +1052,19 @@
|
|
|
<el-table-column label="交强折扣" prop="" width="70">--</el-table-column>
|
|
|
</el-table>
|
|
|
</el-col>
|
|
|
+ <el-col :span="12" style="border-left: 1px dashed #eeeeee">
|
|
|
+ <p style="text-align: center">优惠信息</p>
|
|
|
+ <el-table
|
|
|
+ class="factorTable"
|
|
|
+ :data="discounts"
|
|
|
+ >
|
|
|
+ <el-table-column label="评分" prop="">--</el-table-column>
|
|
|
+ <el-table-column label="交强险折扣系数" prop="">--</el-table-column>
|
|
|
+ <el-table-column label="鼎然车辆风险评分" prop="">--</el-table-column>
|
|
|
+ <el-table-column label="交强评分" prop="">--</el-table-column>
|
|
|
+ <el-table-column label="商业评分" prop="">--</el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -2027,20 +2040,22 @@ const handleChange = (item, type) => {
|
|
|
item.checked = true
|
|
|
insurancePolicyForm.value.productId = item.value
|
|
|
if(insurancePolicyForm.value.productId === '0330' || insurancePolicyForm.value.productId === '0330034001' || insurancePolicyForm.value.productId === '0330034002') {
|
|
|
- let date = new Date()
|
|
|
- let year = date.getFullYear()
|
|
|
- let month = date.getMonth() + 1<10?`0${date.getMonth() + 1}`:date.getMonth() + 1
|
|
|
- let day = date.getDate() + 1< 10?`0${date.getDate() + 1}`:date.getDate() + 1
|
|
|
- insurancePolicyForm.value.JQStartDate = `${year}-${month}-${day} 00:00:00`
|
|
|
- insurancePolicyForm.value.JQEndDate = `${year + 1}-${month}-${day - 1} 23:59:59`
|
|
|
+ // let date = new Date()
|
|
|
+ // let year = date.getFullYear()
|
|
|
+ // let month = date.getMonth() + 1<10?`0${date.getMonth() + 1}`:date.getMonth() + 1
|
|
|
+ // let day = date.getDate() + 1< 10?`0${date.getDate() + 1}`:date.getDate() + 1
|
|
|
+ insurancePolicyForm.value.JQStartDate = transformTime1()
|
|
|
+ insurancePolicyForm.value.JQEndDate = oneYearPast1(insurancePolicyForm.value.JQStartDate)
|
|
|
}
|
|
|
if(insurancePolicyForm.value.productId === '034001' || insurancePolicyForm.value.productId === '034002' || insurancePolicyForm.value.productId === '0330034001' || insurancePolicyForm.value.productId === '0330034002') {
|
|
|
- let date = new Date()
|
|
|
- let year = date.getFullYear()
|
|
|
- let month = date.getMonth() + 1<10?`0${date.getMonth() + 1}`:date.getMonth() + 1
|
|
|
- let day = date.getDate() + 1< 10?`0${date.getDate() + 1}`:date.getDate() + 1
|
|
|
- insurancePolicyForm.value.SYStartDate = `${year}-${month}-${day} 00:00:00`
|
|
|
- insurancePolicyForm.value.SYEndDate = `${year + 1}-${month}-${day - 1} 23:59:59`
|
|
|
+ // let date = new Date()
|
|
|
+ // let year = date.getFullYear()
|
|
|
+ // let month = date.getMonth() + 1<10?`0${date.getMonth() + 1}`:date.getMonth() + 1
|
|
|
+ // let day = date.getDate() + 1< 10?`0${date.getDate() + 1}`:date.getDate() + 1
|
|
|
+ // insurancePolicyForm.value.SYStartDate = `${year}-${month}-${day} 00:00:00`
|
|
|
+ // insurancePolicyForm.value.SYEndDate = `${year + 1}-${month}-${day - 1} 23:59:59`
|
|
|
+ insurancePolicyForm.value.SYStartDate = transformTime1()
|
|
|
+ insurancePolicyForm.value.SYEndDate = oneYearPast1(insurancePolicyForm.value.SYStartDate)
|
|
|
}
|
|
|
break;
|
|
|
}
|
|
|
@@ -2382,6 +2397,9 @@ const handleSpecialTableDataSubmit = () => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+// 优惠信息
|
|
|
+let discounts = ref([])
|
|
|
+
|
|
|
let productIndex = ref(0)
|
|
|
const handleProduct = (e, index) => {
|
|
|
productIndex.value = index
|
|
|
@@ -2755,6 +2773,11 @@ const handleSubmit = async (InsurancePolicyRefs: FormInstance | undefined, scope
|
|
|
let d = res.data.niPremium?res.data.niPremium:0
|
|
|
res.data.quoteTotal = Number(a) + Number(b) + Number(c) + Number(d)
|
|
|
}
|
|
|
+ quoteData.value[scope.$index].discounts = [
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+ ]
|
|
|
quoteData.value[scope.$index].quoteResult = res.data
|
|
|
loading.value = false
|
|
|
quoteData.value[scope.$index].loading = false
|