Commit 6bbe241c by yuzhenWang

先提交测试

parent 20e7b750
...@@ -159,3 +159,41 @@ export function importExcel(data) { ...@@ -159,3 +159,41 @@ export function importExcel(data) {
data: data data: data
}) })
} }
// 上传获取材料列表
export function uploadMaterialList(data) {
return request({
url: '/oss/api/material/list',
data: data,
method: 'post'
})
}
// 删除上传文件
export function delUploadFile(fileBizId) {
return request({
url: `/oss/api/ossFile/del?fileBizId=${fileBizId}`,
method: 'delete'
})
}
// 上传获取材料列表2
export function uploadRelObjectMaterialList(data) {
return request({
url: '/oss/api/relObjectMaterial/page',
data: data,
method: 'post'
})
}
// 删除材料
export function delMaterial(relObjectMaterialBizId) {
return request({
url: `/oss/api/relObjectMaterial/del?relObjectMaterialBizId=${relObjectMaterialBizId}`,
method: 'delete'
})
}
// 获取文件详情
export function uploadOssFileList(data) {
return request({
url: '/oss/api/ossFile/list',
data: data,
method: 'post'
})
}
...@@ -379,7 +379,9 @@ const getDictsData = async () => { ...@@ -379,7 +379,9 @@ const getDictsData = async () => {
'wj_question_second_category', 'wj_question_second_category',
'csf_ap_policy_transfer', 'csf_ap_policy_transfer',
'md_bank', 'md_bank',
'csf_property_type' 'csf_property_type',
'oss_data_type',
'oss_data_person'
]) ])
} }
......
...@@ -262,6 +262,7 @@ ...@@ -262,6 +262,7 @@
@handleSuccessEdit="getAppointmentInfo(idsObj.appointmentBizId)" @handleSuccessEdit="getAppointmentInfo(idsObj.appointmentBizId)"
:pageSource="pageSource" :pageSource="pageSource"
:showSubmitBtn="showSubmitBtn" :showSubmitBtn="showSubmitBtn"
ref="appointmentAccessoriesRef"
/> />
</div> </div>
<div v-if="tab.name === 'policyInfo'"> <div v-if="tab.name === 'policyInfo'">
...@@ -418,6 +419,7 @@ const insuredInfoRef = ref(null) ...@@ -418,6 +419,7 @@ const insuredInfoRef = ref(null)
const secondHolderInfoRef = ref(null) const secondHolderInfoRef = ref(null)
const beneficiaryInfoRef = ref(null) const beneficiaryInfoRef = ref(null)
const policyTransferRef = ref(null) const policyTransferRef = ref(null)
const appointmentAccessoriesRef = ref(null)
const questionnairesInfoRef = ref(null) const questionnairesInfoRef = ref(null)
const customerInfo = ref({}) const customerInfo = ref({})
const idsObj = ref({}) //各个模块的bizId const idsObj = ref({}) //各个模块的bizId
...@@ -815,7 +817,9 @@ const getDictsData = async () => { ...@@ -815,7 +817,9 @@ const getDictsData = async () => {
'wj_question_first_category', 'wj_question_first_category',
'wj_question_second_category', 'wj_question_second_category',
'csf_ap_status', 'csf_ap_status',
'md_bank' 'md_bank',
'oss_data_type',
'oss_data_person'
]) ])
} }
// Tab切换前的验证 // Tab切换前的验证
...@@ -868,15 +872,20 @@ const handleSubmit = async type => { ...@@ -868,15 +872,20 @@ const handleSubmit = async type => {
// await secondHolderInfoRef.value[0].handleFormValues() // await secondHolderInfoRef.value[0].handleFormValues()
// if (!submitAppointmentObj.value.apiSecondHolderInfoDto) return // if (!submitAppointmentObj.value.apiSecondHolderInfoDto) return
// } // }
if (beneficiaryInfoRef.value) { // if (beneficiaryInfoRef.value) {
submitAppointmentObj.value.apiBeneficiaryInfoFzDto = // submitAppointmentObj.value.apiBeneficiaryInfoFzDto =
await beneficiaryInfoRef.value[0].handleFormValues() // await beneficiaryInfoRef.value[0].handleFormValues()
if (!submitAppointmentObj.value.apiBeneficiaryInfoFzDto) return // if (!submitAppointmentObj.value.apiBeneficiaryInfoFzDto) return
} // }
if (questionnairesInfoRef.value && questionnairesInfoRef.value[0].questionLength > 0) { // if (questionnairesInfoRef.value && questionnairesInfoRef.value[0].questionLength > 0) {
submitAppointmentObj.value.questionnairesDetailResponse = // submitAppointmentObj.value.questionnairesDetailResponse =
await questionnairesInfoRef.value[0].handleFormValues() // await questionnairesInfoRef.value[0].handleFormValues()
if (!submitAppointmentObj.value.questionnairesDetailResponse) return // if (!submitAppointmentObj.value.questionnairesDetailResponse) return
// }
if (appointmentAccessoriesRef.value) {
submitAppointmentObj.value.materialDtoList =
appointmentAccessoriesRef.value[0].handleFormValues()
if (!submitAppointmentObj.value.materialDtoList) return
} }
console.log('大提交', submitAppointmentObj.value) console.log('大提交', submitAppointmentObj.value)
return return
......
...@@ -454,30 +454,7 @@ const handleFormValues = () => { ...@@ -454,30 +454,7 @@ const handleFormValues = () => {
}) })
}) })
} }
// 表单提交
const submitForm = () => {
proxy.$refs['heathFormRef'].validate((valid, fields) => {
if (valid) {
let submitObj = handleFormValues()
saveQuestionnaires(submitObj).then(res => {
if (res.code == 200) {
handleEditStatus(true)
proxy.$message.success('健康信息修改成功')
// emit('handleSuccessEdit')
getQuestionnairesInfo()
}
})
errorFields.value = [] // 清空错误信息
} else {
// 获取校验失败的字段信息
errorFields.value = getInvalidFields(fields)
if (errorFields.value.length > 0) {
proxy.$message.error(errorFields.value[0].message)
}
}
})
}
const getQuestionnairesInfo = () => { const getQuestionnairesInfo = () => {
loading.value = true loading.value = 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