Commit aa8cecef by yuzhenWang

整个流程修改1

parent 7479d644
......@@ -609,14 +609,6 @@ const handleSubmit = type => {
submitAppointmentObj.value.apiBeneficiaryInfoDtoList =
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) {
submitAppointmentObj.value.apiAppointmentInfoDto.customerBizId =
......@@ -628,6 +620,12 @@ const handleSubmit = type => {
addAppointment(submitAppointmentObj.value).then(res => {
if (res.code == 200) {
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', {
tab: 'appointment',
type: 'add'
......@@ -638,6 +636,14 @@ const handleSubmit = type => {
}
// 代表修改预约单
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 key2 in submitAppointmentObj.value) {
......
......@@ -108,7 +108,7 @@
</div>
</el-row>
</div>
<el-row>
<el-row v-if="props.idsObj.appointmentBizId">
<el-col>
<div class="tabButton">
<!-- <el-button
......
......@@ -103,8 +103,7 @@
</div>
</el-row>
</div>
<!-- v-if="props.idObj.appointmentBizId" -->
<el-row>
<el-row v-if="props.idsObj.appointmentBizId">
<el-col>
<div class="tabButton">
<!-- <el-button
......
......@@ -103,8 +103,7 @@
</div>
</el-row>
</div>
<!-- v-if="props.idObj.appointmentBizId" -->
<el-row>
<el-row v-if="props.idsObj.appointmentBizId">
<el-col>
<div class="tabButton">
<!-- <el-button
......
......@@ -199,7 +199,7 @@
</div>
</el-row>
<el-row>
<el-row v-if="props.idsObj.appointmentBizId">
<el-col>
<div class="tabButton">
<!-- <el-button
......
......@@ -88,8 +88,7 @@
</div>
</el-row>
</div>
<!-- v-if="props.idObj.appointmentBizId" -->
<el-row>
<el-row v-if="props.idsObj.appointmentBizId">
<el-col>
<div class="tabButton">
<!-- <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