|
@@ -880,7 +880,7 @@
|
|
|
报价公司
|
|
报价公司
|
|
|
</span>
|
|
</span>
|
|
|
</template>
|
|
</template>
|
|
|
- <el-table :data="quoteData" style="width: calc(100% - 48px); margin: 0 24px" row-key="id"
|
|
|
|
|
|
|
+ <el-table :data="showQuoteData" style="width: calc(100% - 48px); margin: 0 24px" row-key="id"
|
|
|
:preserve-expanded-content="true" @selection-change="handleSelect" @select="handelSelectRow"
|
|
:preserve-expanded-content="true" @selection-change="handleSelect" @select="handelSelectRow"
|
|
|
@row-click="handleClickRow" @expand-change="handelExpend">
|
|
@row-click="handleClickRow" @expand-change="handelExpend">
|
|
|
<el-table-column type="expand">
|
|
<el-table-column type="expand">
|
|
@@ -1129,7 +1129,7 @@
|
|
|
<template #header>
|
|
<template #header>
|
|
|
<div style="">
|
|
<div style="">
|
|
|
<span style="margin-right: 10px">报价结果</span>
|
|
<span style="margin-right: 10px">报价结果</span>
|
|
|
- <el-checkbox @change="handleViewSuccess">仅查看报价成功</el-checkbox>
|
|
|
|
|
|
|
+ <el-checkbox v-model="isViewSuccess">仅查看报价成功</el-checkbox>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
@@ -1495,7 +1495,7 @@ const initDetail = () => {
|
|
|
// 设置车主信息
|
|
// 设置车主信息
|
|
|
insurancePolicyForm.value.name1 = obj?.ownersInfo?.name
|
|
insurancePolicyForm.value.name1 = obj?.ownersInfo?.name
|
|
|
insurancePolicyForm.value.mobile1 = obj?.ownersInfo?.mobile
|
|
insurancePolicyForm.value.mobile1 = obj?.ownersInfo?.mobile
|
|
|
- insurancePolicyForm.value.identifyType1 = obj?.ownersInfo?.identifyType
|
|
|
|
|
|
|
+ insurancePolicyForm.value.identifyType1 = obj?.ownersInfo?.identifyType?('0'+obj.ownersInfo.identifyType):''
|
|
|
insurancePolicyForm.value.identifyNumber1 = obj?.ownersInfo?.identifyNumber
|
|
insurancePolicyForm.value.identifyNumber1 = obj?.ownersInfo?.identifyNumber
|
|
|
insurancePolicyForm.value.identifyValidDate1 = obj?.ownersInfo?.identifyValidDate
|
|
insurancePolicyForm.value.identifyValidDate1 = obj?.ownersInfo?.identifyValidDate
|
|
|
insurancePolicyForm.value.addr1 = obj?.ownersInfo?.addr
|
|
insurancePolicyForm.value.addr1 = obj?.ownersInfo?.addr
|
|
@@ -1512,7 +1512,7 @@ const initDetail = () => {
|
|
|
// 设置投保人信息
|
|
// 设置投保人信息
|
|
|
insurancePolicyForm.value.name2 = obj?.policyHolderInfo?.name
|
|
insurancePolicyForm.value.name2 = obj?.policyHolderInfo?.name
|
|
|
insurancePolicyForm.value.mobile2 = obj?.policyHolderInfo?.mobile
|
|
insurancePolicyForm.value.mobile2 = obj?.policyHolderInfo?.mobile
|
|
|
- insurancePolicyForm.value.identifyType2 = obj?.policyHolderInfo?.identifyType
|
|
|
|
|
|
|
+ insurancePolicyForm.value.identifyType2 = obj?.policyHolderInfo?.identifyType?('0'+obj.policyHolderInfo.identifyType):''
|
|
|
insurancePolicyForm.value.identifyNumber2 = obj?.policyHolderInfo?.identifyNumber
|
|
insurancePolicyForm.value.identifyNumber2 = obj?.policyHolderInfo?.identifyNumber
|
|
|
insurancePolicyForm.value.identifyValidDate2 = obj?.policyHolderInfo?.identifyValidDate
|
|
insurancePolicyForm.value.identifyValidDate2 = obj?.policyHolderInfo?.identifyValidDate
|
|
|
insurancePolicyForm.value.addr2 = obj?.policyHolderInfo?.addr
|
|
insurancePolicyForm.value.addr2 = obj?.policyHolderInfo?.addr
|
|
@@ -1526,7 +1526,7 @@ const initDetail = () => {
|
|
|
// 设置被保人信息
|
|
// 设置被保人信息
|
|
|
insurancePolicyForm.value.name3 = obj?.insuredPersonInfo?.name
|
|
insurancePolicyForm.value.name3 = obj?.insuredPersonInfo?.name
|
|
|
insurancePolicyForm.value.mobile3 = obj?.insuredPersonInfo?.mobile
|
|
insurancePolicyForm.value.mobile3 = obj?.insuredPersonInfo?.mobile
|
|
|
- insurancePolicyForm.value.identifyType3 = obj?.insuredPersonInfo?.identifyType
|
|
|
|
|
|
|
+ insurancePolicyForm.value.identifyType3 = obj?.insuredPersonInfo?.identifyType?('0'+obj.insuredPersonInfo.identifyType):''
|
|
|
insurancePolicyForm.value.identifyNumber3 = obj?.insuredPersonInfo?.identifyNumber
|
|
insurancePolicyForm.value.identifyNumber3 = obj?.insuredPersonInfo?.identifyNumber
|
|
|
insurancePolicyForm.value.identifyValidDate3 = obj?.insuredPersonInfo?.identifyValidDate
|
|
insurancePolicyForm.value.identifyValidDate3 = obj?.insuredPersonInfo?.identifyValidDate
|
|
|
insurancePolicyForm.value.addr3 = obj?.insuredPersonInfo?.addr
|
|
insurancePolicyForm.value.addr3 = obj?.insuredPersonInfo?.addr
|
|
@@ -2602,9 +2602,18 @@ const handelExpend = (e: any) => {
|
|
|
const handleClickRow = (a: any, b: any) => {
|
|
const handleClickRow = (a: any, b: any) => {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
-const handleViewSuccess = (e: any) => {
|
|
|
|
|
- console.log(11111, quoteData.value)
|
|
|
|
|
-}
|
|
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * 根据视图成功状态过滤报价数据
|
|
|
|
|
+ * @returns {Array} 过滤后的报价数据列表。当 isViewSuccess 为 true 时,仅返回报价结果成功的记录(code === 200);否则返回全部报价数据
|
|
|
|
|
+ */
|
|
|
|
|
+const showQuoteData=computed(()=>{
|
|
|
|
|
+ if(isViewSuccess.value) return quoteData.value.filter(v=>v.quoteResult?.code===200)
|
|
|
|
|
+ return quoteData.value
|
|
|
|
|
+})
|
|
|
|
|
+// 是否仅查看报价成功
|
|
|
|
|
+const isViewSuccess=ref(false)
|
|
|
|
|
+
|
|
|
// 选择险种
|
|
// 选择险种
|
|
|
let insuranceShow = ref(false)
|
|
let insuranceShow = ref(false)
|
|
|
const handlePopover = (scope: any) => {
|
|
const handlePopover = (scope: any) => {
|