|
|
@@ -1247,8 +1247,9 @@
|
|
|
@click="handleSubmit(InsurancePolicyRefs, scope.row)">计算保费</el-button>
|
|
|
<el-button v-if="scope.row.quoteCode == 200" link type="primary"
|
|
|
@click="handleShare(scope.row.quoteResult.ordersNo)">分享</el-button>
|
|
|
- <el-button v-if="scope.row.quoteCode == 200" link type="primary" :loading="scope.row.loading"
|
|
|
- @click="handleUnderwriting(scope)">核保</el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="scope.row.quoteCode == 200 && !(scope.row.quoteResult?.quoteStatus == 4 || scope.row.quoteResult?.order?.orderStatus == 4)"
|
|
|
+ link type="primary" :loading="scope.row.loading" @click="handleUnderwriting(scope)">核保</el-button>
|
|
|
<el-button
|
|
|
v-if="scope.row.quoteResult?.quoteStatus == 4 || scope.row.quoteResult?.order?.orderStatus == 4"
|
|
|
link type="primary" @click="handlePayment(scope.row.quoteResult.ordersNo)">支付码</el-button>
|
|
|
@@ -1433,7 +1434,7 @@
|
|
|
<el-dialog :close-on-click-modal="false" title="提交核保" width="1100" v-model="underwritingShow">
|
|
|
<underwriting v-if="underwritingShow" ref="UnderwritingRefs" :insOrderRightsInfoDto="insOrderRightsInfoDto"
|
|
|
:availableAmount="availableAmount" :recipientInfo="[owerFormInfo, policyHolderInfo, insuredPersonInfo]"
|
|
|
- @close="handleUnderwritingClose"></underwriting>
|
|
|
+ @close="handleUnderwritingClose" @initDetail="initDetail"></underwriting>
|
|
|
</el-dialog>
|
|
|
<el-dialog :close-on-click-modal="false" title="证件识别" width="800" v-model="imageShow">
|
|
|
<recognition ref="RecognitionRefs" :option="optionObj.car_type_code" @close="handleImageClose"></recognition>
|
|
|
@@ -1602,6 +1603,8 @@ const inParkingDataFocus = (e: string, data: any) => {
|
|
|
* 从路由参数获取订单号,请求订单详情并填充表单
|
|
|
*/
|
|
|
const initDetail = () => {
|
|
|
+ if (!myRoute.query.orderNo) return
|
|
|
+
|
|
|
// 请求订单详情
|
|
|
api.insurancePolicyApi.getOrderDetail(myRoute.query.orderNo).then((res: any) => {
|
|
|
if (res.code == 200) {
|
|
|
@@ -2258,7 +2261,6 @@ const licenseNoDataCancel = () => {
|
|
|
const licenseNoDataSubmit = () => {
|
|
|
if (selectRowData.value && 'ratedPassengerCapacity' in selectRowData.value) {
|
|
|
const carData = selectRowData.value as CarInfo;
|
|
|
- console.log("🚀 ~ licenseNoDataSubmit ~ carData:", carData)
|
|
|
insurancePolicyForm.value.seatCount = carData.ratedPassengerCapacity
|
|
|
insurancePolicyForm.value.brandName = carData.modelName
|
|
|
insurancePolicyForm.value.carModelNo = carData.modelCode
|
|
|
@@ -3046,7 +3048,6 @@ const handlePayment = (scope: any) => {
|
|
|
// 优惠测算
|
|
|
let calculatingShow = ref(false)
|
|
|
const handleCount = (scope: any) => {
|
|
|
- console.log("🚀 ~ handleCount ~ scope:", scope)
|
|
|
calculatingShow.value = true
|
|
|
discounts.value = scope.row.discounts
|
|
|
}
|
|
|
@@ -3924,9 +3925,8 @@ onMounted(() => {
|
|
|
getAreaList() // 获取地区列表
|
|
|
initDept() // 初始化部门数据
|
|
|
initOption() // 初始化下拉选项
|
|
|
- if (myRoute.query.orderNo) {
|
|
|
- initDetail() // 如果有订单号,初始化详情
|
|
|
- }
|
|
|
+ initDetail() // 如果有订单号,初始化详情
|
|
|
+
|
|
|
})
|
|
|
|
|
|
</script>
|