Commit 622794c3 by yuzhenWang

预计来佣添加保单号

parent 7623c5ef
...@@ -209,6 +209,7 @@ ...@@ -209,6 +209,7 @@
:activeName="activeName" :activeName="activeName"
:policyBizId="route.query.policyBizId" :policyBizId="route.query.policyBizId"
:policyFollowUpdateDto="policyDetailInfo.policyFollowUpdateDto" :policyFollowUpdateDto="policyDetailInfo.policyFollowUpdateDto"
@policyEditSuccess="getPolicyDetail"
/> />
</div> </div>
<div v-if="tab.name === 'policyAccessories'"> <div v-if="tab.name === 'policyAccessories'">
...@@ -240,7 +241,7 @@ ...@@ -240,7 +241,7 @@
<ExpectedCommission <ExpectedCommission
:activeName="activeName" :activeName="activeName"
:policyBizId="route.query.policyBizId" :policyBizId="route.query.policyBizId"
:brokerList="policyDetailInfo.brokerList" :policyNo="policyNo"
/> />
</div> </div>
</div> </div>
...@@ -353,6 +354,7 @@ const processInfo = ref({ ...@@ -353,6 +354,7 @@ const processInfo = ref({
}) })
const execlDialog = ref(false) const execlDialog = ref(false)
const isEmbed = ref(false) //是否作为组件插入 const isEmbed = ref(false) //是否作为组件插入
const policyNo = ref('') //新单跟进保单号
const tabsList = ref([ const tabsList = ref([
{ {
...@@ -976,7 +978,7 @@ watch( ...@@ -976,7 +978,7 @@ watch(
} }
) )
// 获取新单跟进详情数据 // 获取新单跟进详情数据
const getPolicyDetail = () => { const getPolicyDetail = tabName => {
// 使用 Promise.all 并行发送请求 // 使用 Promise.all 并行发送请求
Promise.all([getPolicyfollow(route.query.policyBizId), getPolicyInfo(route.query.policyBizId)]) Promise.all([getPolicyfollow(route.query.policyBizId), getPolicyInfo(route.query.policyBizId)])
.then(([followRes, infoRes]) => { .then(([followRes, infoRes]) => {
...@@ -993,6 +995,9 @@ const getPolicyDetail = () => { ...@@ -993,6 +995,9 @@ const getPolicyDetail = () => {
appointmentSummeryInfo.value.apiProductPlanInfoDto.apiProductPlanMainInfoDto appointmentSummeryInfo.value.apiProductPlanInfoDto.apiProductPlanMainInfoDto
) )
) )
if (tabName && tabName == 'policyInfo') {
policyNo.value = appointmentSummeryInfo.value.policyFollowUpdateDto.policyNo
}
} }
} }
}) })
...@@ -1005,9 +1010,13 @@ if (route.query.source == 'policyList') { ...@@ -1005,9 +1010,13 @@ if (route.query.source == 'policyList') {
idsObj.value.policyBizId = route.query.policyBizId idsObj.value.policyBizId = route.query.policyBizId
getCustomerInfo(props.policyDetailInfo.customerBizId) getCustomerInfo(props.policyDetailInfo.customerBizId)
appointmentSummeryInfo.value = JSON.parse(JSON.stringify(props.policyDetailInfo)) appointmentSummeryInfo.value = JSON.parse(JSON.stringify(props.policyDetailInfo))
appointmentSummeryInfo.value.apiAppointmentInfoDto = JSON.parse( if (appointmentSummeryInfo.value.apiProductPlanInfoDto) {
JSON.stringify(appointmentSummeryInfo.value.apiProductPlanInfoDto.apiProductPlanMainInfoDto) appointmentSummeryInfo.value.apiAppointmentInfoDto = JSON.parse(
) JSON.stringify(appointmentSummeryInfo.value.apiProductPlanInfoDto.apiProductPlanMainInfoDto)
)
}
policyNo.value = route.query.policyNo
idsObj.value.appointmentBizId = route.query.appointmentBizId idsObj.value.appointmentBizId = route.query.appointmentBizId
isEmbed.value = route.query.embed isEmbed.value = route.query.embed
tabsList.value = [ tabsList.value = [
......
<template> <template>
<div> <div>
<div v-if="tableList.length > 0"> <div>
<!-- <el-row>
<el-col :span="12">
<el-form :model="queryParams" ref="queryRef" :inline="true">
<el-form-item label="保单号" prop="policyNo" label-width="60px">
<el-input
v-model="queryParams.policyNo"
placeholder="请输入保单号"
clearable
@keyup.enter="getTableList"
/>
</el-form-item>
</el-form>
</el-col>
</el-row> -->
<el-row> <el-row>
<el-col :span="24" style="display: flex; justify-content: flex-start; margin-bottom: 10px"> <el-col :span="24" style="display: flex; justify-content: flex-start; margin-bottom: 10px">
<el-button <el-button
...@@ -14,6 +28,8 @@ ...@@ -14,6 +28,8 @@
</el-col> </el-col>
<el-table :data="tableList" border @sort-change="sortChange"> <el-table :data="tableList" border @sort-change="sortChange">
<el-table-column type="index" width="60" label="序号" /> <el-table-column type="index" width="60" label="序号" />
<el-table-column label="保单号" prop="policyNo" align="center" width="120">
</el-table-column>
<el-table-column label="来佣名称" prop="commissionName" align="center" width="180"> <el-table-column label="来佣名称" prop="commissionName" align="center" width="180">
</el-table-column> </el-table-column>
<el-table-column label="来佣金额" sortable prop="amount" align="center" width="120"> <el-table-column label="来佣金额" sortable prop="amount" align="center" width="120">
...@@ -173,7 +189,6 @@ ...@@ -173,7 +189,6 @@
</template> </template>
</el-dialog> </el-dialog>
</div> </div>
<div v-else class="domEmpty" v-loading="loading"></div>
</div> </div>
</template> </template>
<script setup name="policyInfo"> <script setup name="policyInfo">
...@@ -193,6 +208,7 @@ const dictStore = useDictStore() //获取字典数据 ...@@ -193,6 +208,7 @@ const dictStore = useDictStore() //获取字典数据
const props = defineProps({ const props = defineProps({
activeName: { type: String, default: '' }, //tab名称 activeName: { type: String, default: '' }, //tab名称
policyBizId: { type: String, default: '' }, //提交状态,新增、修改 policyBizId: { type: String, default: '' }, //提交状态,新增、修改
policyNo: { type: String, default: '' }, //提交状态,新增、修改
dictTypeLists: { type: Array, default: () => [] } //多个字典值数据 dictTypeLists: { type: Array, default: () => [] } //多个字典值数据
}) })
...@@ -215,7 +231,8 @@ const data = reactive({ ...@@ -215,7 +231,8 @@ const data = reactive({
pageNo: 1, pageNo: 1,
pageSize: 5, pageSize: 5,
sortField: 'commissionPeriod', sortField: 'commissionPeriod',
sortOrder: 'ascend' sortOrder: 'ascend',
policyNo: props.policyNo || ''
} }
}) })
const { queryParams, form } = toRefs(data) const { queryParams, form } = toRefs(data)
...@@ -296,28 +313,6 @@ const addChildren = () => { ...@@ -296,28 +313,6 @@ const addChildren = () => {
form.value = {} form.value = {}
editCommission.value = true editCommission.value = true
commissionTitle.value = '添加来佣' commissionTitle.value = '添加来佣'
// let obj = {
// id: Date.now() + Math.floor(Math.random() * 1000), //唯一标识
// reconciliationCompany: '',
// currency: '',
// commissionPeriod: '',
// totalPeriod: '',
// commissionName: '',
// amount: '',
// commissionDate: '',
// remark: ''
// }
// if (tableList.value.length == 0) {
// tableList.value.unshift(obj)
// } else {
// obj.reconciliationCompany = tableList.value[0].reconciliationCompany
// obj.currency = tableList.value[0].currency
// obj.commissionPeriod = tableList.value[0].commissionPeriod
// obj.totalPeriod = tableList.value[0].totalPeriod
// obj.remark = tableList.value[0].remark
// tableList.value.unshift(obj)
// }
// total.value = total.value + 1
} }
// 处理单个提交 // 处理单个提交
...@@ -345,6 +340,7 @@ const handleUpdate = () => { ...@@ -345,6 +340,7 @@ const handleUpdate = () => {
} }
}) })
} else { } else {
obj.policyNo = props.policyNo
editMultipleCommission({ commissionExpectedAddDtoList: [obj] }).then(res => { editMultipleCommission({ commissionExpectedAddDtoList: [obj] }).then(res => {
if (res.code == 200) { if (res.code == 200) {
proxy.$message.success('添加成功') proxy.$message.success('添加成功')
......
...@@ -158,7 +158,7 @@ const props = defineProps({ ...@@ -158,7 +158,7 @@ const props = defineProps({
policyFollowUpdateDto: { type: Object, default: () => {} } //详情数据 policyFollowUpdateDto: { type: Object, default: () => {} } //详情数据
}) })
const emit = defineEmits(['handleSuccess']) const emit = defineEmits(['handleSuccess', 'policyEditSuccess'])
const { proxy } = getCurrentInstance() const { proxy } = getCurrentInstance()
const loading = ref(false) const loading = ref(false)
...@@ -531,7 +531,8 @@ const submitForm = saveType => { ...@@ -531,7 +531,8 @@ const submitForm = saveType => {
handleEditStatus() handleEditStatus()
proxy.$message.success('提交成功') proxy.$message.success('提交成功')
// 提交成功后,在获取详情信息,防止数据丢失 // 提交成功后,在获取详情信息,防止数据丢失
getPolicyDetail() // getPolicyDetail()
emit('policyEditSuccess', 'policyInfo')
} }
}) })
} else { } else {
......
...@@ -652,6 +652,7 @@ const handleStatus = row => { ...@@ -652,6 +652,7 @@ const handleStatus = row => {
path: '/sign/underwritingMain/followUpDetail', path: '/sign/underwritingMain/followUpDetail',
query: { query: {
policyBizId: row.policyBizId, policyBizId: row.policyBizId,
policyNo: row.policyNo,
type: 'edit', type: 'edit',
source: 'policyList', source: 'policyList',
embed: true, embed: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment