Commit aa8cecef by yuzhenWang

整个流程修改1

parent 7479d644
...@@ -609,14 +609,6 @@ const handleSubmit = type => { ...@@ -609,14 +609,6 @@ const handleSubmit = type => {
submitAppointmentObj.value.apiBeneficiaryInfoDtoList = submitAppointmentObj.value.apiBeneficiaryInfoDtoList =
beneficiaryInfoRef.value[0].handleFormValues() beneficiaryInfoRef.value[0].handleFormValues()
} }
if (policyTransferRef.value) {
submitAppointmentObj.value.apiAppointmentInfoDto.policyTransfer =
policyTransferRef.value[0].form.policyTransfer
}
if (questionnairesInfoRef.value) {
submitAppointmentObj.value.answerSessionsDtoList =
questionnairesInfoRef.value[0].handleFormValues().answerSessionsDtoList
}
// 代表新增预约 // 代表新增预约
if (formStatus.value == 'appointmentAdd' && !idsObj.value.appointmentBizId) { if (formStatus.value == 'appointmentAdd' && !idsObj.value.appointmentBizId) {
submitAppointmentObj.value.apiAppointmentInfoDto.customerBizId = submitAppointmentObj.value.apiAppointmentInfoDto.customerBizId =
...@@ -628,6 +620,12 @@ const handleSubmit = type => { ...@@ -628,6 +620,12 @@ const handleSubmit = type => {
addAppointment(submitAppointmentObj.value).then(res => { addAppointment(submitAppointmentObj.value).then(res => {
if (res.code == 200) { if (res.code == 200) {
proxy.$message.success('预约成功') proxy.$message.success('预约成功')
appointmentInfoRef.value[0].handleEditStatus(true)
productPlanRef.value[0].handleEditStatus(true)
policyHolderInfoRef.value[0].handleEditStatus(true)
insuredInfoRef.value[0].handleEditStatus(true)
secondHolderInfoRef.value[0].handleEditStatus(true)
beneficiaryInfoRef.value[0].handleEditStatus(true)
emit('handleSuccess', { emit('handleSuccess', {
tab: 'appointment', tab: 'appointment',
type: 'add' type: 'add'
...@@ -638,6 +636,14 @@ const handleSubmit = type => { ...@@ -638,6 +636,14 @@ const handleSubmit = type => {
} }
// 代表修改预约单 // 代表修改预约单
if (idsObj.value.appointmentBizId) { if (idsObj.value.appointmentBizId) {
if (policyTransferRef.value) {
submitAppointmentObj.value.apiAppointmentInfoDto.policyTransfer =
policyTransferRef.value[0].form.policyTransfer
}
if (questionnairesInfoRef.value) {
submitAppointmentObj.value.answerSessionsDtoList =
questionnairesInfoRef.value[0].handleFormValues().answerSessionsDtoList
}
// 与预约聚合详情做对比,如果拿到得个表单数据有为空得就使用聚合详情得数据 // 与预约聚合详情做对比,如果拿到得个表单数据有为空得就使用聚合详情得数据
for (const key1 in appointmentSummeryInfo.value) { for (const key1 in appointmentSummeryInfo.value) {
for (const key2 in submitAppointmentObj.value) { for (const key2 in submitAppointmentObj.value) {
......
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
</div> </div>
</el-row> </el-row>
</div> </div>
<el-row> <el-row v-if="props.idsObj.appointmentBizId">
<el-col> <el-col>
<div class="tabButton"> <div class="tabButton">
<!-- <el-button <!-- <el-button
......
...@@ -103,8 +103,7 @@ ...@@ -103,8 +103,7 @@
</div> </div>
</el-row> </el-row>
</div> </div>
<!-- v-if="props.idObj.appointmentBizId" --> <el-row v-if="props.idsObj.appointmentBizId">
<el-row>
<el-col> <el-col>
<div class="tabButton"> <div class="tabButton">
<!-- <el-button <!-- <el-button
......
...@@ -103,8 +103,7 @@ ...@@ -103,8 +103,7 @@
</div> </div>
</el-row> </el-row>
</div> </div>
<!-- v-if="props.idObj.appointmentBizId" --> <el-row v-if="props.idsObj.appointmentBizId">
<el-row>
<el-col> <el-col>
<div class="tabButton"> <div class="tabButton">
<!-- <el-button <!-- <el-button
......
...@@ -199,7 +199,7 @@ ...@@ -199,7 +199,7 @@
</div> </div>
</el-row> </el-row>
<el-row> <el-row v-if="props.idsObj.appointmentBizId">
<el-col> <el-col>
<div class="tabButton"> <div class="tabButton">
<!-- <el-button <!-- <el-button
......
...@@ -88,8 +88,7 @@ ...@@ -88,8 +88,7 @@
</div> </div>
</el-row> </el-row>
</div> </div>
<!-- v-if="props.idObj.appointmentBizId" --> <el-row v-if="props.idsObj.appointmentBizId">
<el-row>
<el-col> <el-col>
<div class="tabButton"> <div class="tabButton">
<!-- <el-button <!-- <el-button
......
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