|
|
@@ -1183,7 +1183,7 @@
|
|
|
<el-table-column label="报价协议" prop="" align="center" width="300">
|
|
|
<template #default="scope">
|
|
|
<el-select v-model="scope.row.agreement" :disabled="scope.row.isDispatch"
|
|
|
- v-if="scope.row.checked || isViewSuccess" :placeholder="scope.row.isDispatch===1 ? '默认' : '请选择'">
|
|
|
+ v-if="scope.row.checked || isViewSuccess" :placeholder="scope.row.isDispatch === 1 ? '默认' : '请选择'">
|
|
|
<el-option v-for="item in scope.row.agreements" :value="item.id"
|
|
|
:label="item.agreementName"></el-option>
|
|
|
</el-select>
|
|
|
@@ -3804,6 +3804,13 @@ const quoteInsurance = async (companyId: any, companyIndex: any, val: any) => {
|
|
|
// 设置折扣信息
|
|
|
const feeOrders = res.data?.feeOrders || {};
|
|
|
setDiscounts(companyIndex, feeOrders)
|
|
|
+ if (quoteData.value[companyIndex]) {
|
|
|
+ // 保存报价结果
|
|
|
+ quoteData.value[companyIndex].quoteResult = res.data
|
|
|
+ quoteData.value[companyIndex].quoteCode = 200
|
|
|
+ loading.value = false
|
|
|
+ quoteData.value[companyIndex].loading = false
|
|
|
+ }
|
|
|
} else {
|
|
|
if (quoteData.value[companyIndex]) {
|
|
|
quoteData.value[companyIndex].quoteResult = res.data
|
|
|
@@ -3861,11 +3868,6 @@ const setDiscounts = (companyIndex, feeOrders) => {
|
|
|
commissionRatio: '--',
|
|
|
},
|
|
|
]
|
|
|
- // 保存报价结果
|
|
|
- quoteData.value[companyIndex].quoteResult = res.data
|
|
|
- quoteData.value[companyIndex].quoteCode = 200
|
|
|
- loading.value = false
|
|
|
- quoteData.value[companyIndex].loading = false
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
@@ -4001,7 +4003,7 @@ const ruleFilterCompany = (item: any, obj: any) => {
|
|
|
item.failMsg = obj.errorMessage
|
|
|
}
|
|
|
insurancePolicyForm.value.order.insuranceCompanyCode = a.id
|
|
|
- setDiscounts(i, obj.insFeeOrders)
|
|
|
+ setDiscounts(i, obj.insFeeOrders ?? {})
|
|
|
getSchemeResult(true)
|
|
|
}
|
|
|
return a
|