|
|
@@ -5,7 +5,7 @@
|
|
|
<!-- 表单组件:包含所有保险单信息 -->
|
|
|
<el-form ref="InsurancePolicyRefs" :model="insurancePolicyForm" :rules="insurancePolicyRules">
|
|
|
<!-- 业务员信息区域 -->
|
|
|
- <el-row :gutter="20" class="formItem">
|
|
|
+ <el-row :gutter="20" class="formItem" v-if="!userInfo.typeAttr.includes('7')">
|
|
|
<el-col :span="6">
|
|
|
<!-- 业务员输入框:用于搜索和选择业务员 -->
|
|
|
<el-form-item label="业务员:" style="margin-top: 10px">
|
|
|
@@ -986,7 +986,7 @@
|
|
|
:value="item.value"></el-option>
|
|
|
</el-select>
|
|
|
<span v-if="props.row.kindName == '乘客责任险'">*{{ insurancePolicyForm.seatCount - 1
|
|
|
- }}/座</span>
|
|
|
+ }}/座</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -1058,7 +1058,7 @@
|
|
|
<el-table-column label="产品名称" prop="productName" align="center">
|
|
|
<template #default="props">
|
|
|
<el-button link type="primary" @click="getJYXDetail(props.row)">{{ props.row.productName
|
|
|
- }}</el-button>
|
|
|
+ }}</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="数量" align="center">
|
|
|
@@ -1111,12 +1111,12 @@
|
|
|
<div class="Factor-item flex a-c f-c ">
|
|
|
<span class="item-header flex a-c ">交强续保</span>
|
|
|
<span>{{ ['', '新保', '续保', '转保'][Number(scope.row.quoteResult?.scoreVo?.jqRenewal)] || '--'
|
|
|
- }}</span>
|
|
|
+ }}</span>
|
|
|
</div>
|
|
|
<div class="Factor-item flex a-c f-c ">
|
|
|
<span class="item-header flex a-c ">商业续保</span>
|
|
|
<span>{{ ['', '新保', '续保', '转保'][Number(scope.row.quoteResult?.scoreVo?.syRenewal)] || '--'
|
|
|
- }}</span>
|
|
|
+ }}</span>
|
|
|
</div>
|
|
|
<div class="Factor-item flex a-c f-c ">
|
|
|
<span class="item-header flex a-c ">总折扣率</span>
|
|
|
@@ -1564,6 +1564,9 @@ import dayjs from "dayjs"
|
|
|
import { gainFocus } from "@/utils/dataformat"
|
|
|
import Decimal from 'decimal.js'
|
|
|
|
|
|
+let userInfo = ref(JSON.parse(localStorage.getItem('userInfo')))
|
|
|
+console.log("🚀 ~ userInfo:", userInfo.value)
|
|
|
+
|
|
|
// 下拉选项接口定义
|
|
|
interface OptionItem {
|
|
|
label: string; // 显示标签
|
|
|
@@ -3636,7 +3639,7 @@ const validateForm = async (InsurancePolicyRefs: FormInstance | undefined): Prom
|
|
|
return false
|
|
|
}
|
|
|
// 业务员必选验证
|
|
|
- if (!insurancePolicyForm.value.salesman) {
|
|
|
+ if (!insurancePolicyForm.value.salesman && !userInfo.value.typeAttr.includes('7')) {
|
|
|
ElMessage({
|
|
|
message: '业务员必选',
|
|
|
type: 'warning'
|