| | |
| | | </QueryFilterItem> |
| | | </template> |
| | | <template #btn> |
| | | <template v-if="detail.status === InsurancePolicyStatusEnum.WaitEffect"> |
| | | <template v-if="!detail.productOnline"> |
| | | <template v-if="detail.productOnline"> |
| | | <el-button |
| | | v-if="detail.auditStatus === InsurancePolicyAuditStatusEnum.Pass" |
| | | @click="handleSupplySubmit()" |
| | | type="primary" |
| | | >补提</el-button |
| | | > |
| | | <template v-if="detail.status !== InsurancePolicyStatusEnum.WaitEffect"> |
| | | <el-button @click="handleExport(InsuranceDetailStatusEnum.Effecting)" type="primary" |
| | | >导出在保人员</el-button |
| | | > |
| | | <el-button @click="handleExport(InsuranceDetailStatusEnum.Fail)" type="primary" |
| | | >导出错误人员</el-button |
| | | > |
| | | <el-button @click="handleGoStampFiles(id)" type="primary">下载保单</el-button> |
| | | <el-button @click="handleGoDownloadInvoice(id)" type="primary">下载发票</el-button> |
| | | </template> |
| | | </template> |
| | | <template v-else> |
| | | <template v-if="detail.status === InsurancePolicyStatusEnum.WaitEffect"> |
| | | <el-button @click="handleTemplateDownload()" link type="primary" |
| | | >模板下载</el-button |
| | | > |
| | |
| | | </template> |
| | | </BlFileUpload> |
| | | <el-button @click="handleClear()" type="primary">清空数据</el-button> |
| | | </template> |
| | | </template> |
| | | <template v-else> |
| | | <template v-if="detail.productOnline"> |
| | | <el-button @click="handleExport(InsuranceDetailStatusEnum.Effecting)" type="primary" |
| | | >导出在保人员</el-button |
| | | > |
| | | <el-button @click="handleExport(InsuranceDetailStatusEnum.Fail)" type="primary" |
| | | >导出错误人员</el-button |
| | | > |
| | | <el-button @click="handleGoStampFiles(id)" type="primary">下载保单</el-button> |
| | | <el-button @click="handleGoDownloadInvoice(id)" type="primary">下载发票</el-button> |
| | | </template> |
| | | <template v-else> |
| | | <el-button @click="handleExport(null)" type="primary">下载人员清单</el-button> |
| | |
| | | </ChunkCell> |
| | | <ChangePersonInfoDialog v-bind="dialogProps"></ChangePersonInfoDialog> |
| | | <InsureClaimDetailDialog v-bind="dialogInsureClaimProps"></InsureClaimDetailDialog> |
| | | <UploadInsurePersonDialog v-bind="dialogSupplyProps" isSupply /> |
| | | </AppContainer> |
| | | </LoadingLayout> |
| | | </template> |
| | |
| | | import { downloadFile, downloadFileByUrl, Message, OrderInputType } from '@bole-core/core'; |
| | | import { setOSSLink } from '@/utils'; |
| | | import dayjs from 'dayjs'; |
| | | import { useInsureActions } from '@/hooks'; |
| | | import { |
| | | useInsureActions, |
| | | useInsureProductSchemeAllList, |
| | | useUserInsureProductSetting, |
| | | } from '@/hooks'; |
| | | import UploadInsurePersonDialog from './UploadInsurePersonDialog.vue'; |
| | | |
| | | defineOptions({ |
| | | name: 'InsureOrderInfoView', |
| | |
| | | let res = await insuranceOrderServices.getInsuranceStaffList(params, { |
| | | showLoading: !state.loading, |
| | | }); |
| | | console.log('res: ', res); |
| | | return res; |
| | | } catch (error) {} |
| | | }, |
| | |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | |
| | | const { getInsureProductIdByIdNumber } = useUserInsureProductSetting(); |
| | | const { getInsureProductSchemeByCode } = useInsureProductSchemeAllList({ |
| | | insureProductId: computed(() => getInsureProductIdByIdNumber(detail.value.productIdNumber)), |
| | | }); |
| | | |
| | | function handleSupplySubmit() { |
| | | handleSupplyAdd({ |
| | | serialNum: detail.value.serialNum, |
| | | productIdNumber: detail.value.productIdNumber, |
| | | productSchemeIdNumber: getInsureProductSchemeByCode(detail.value.productSchemeCode)?.idNumber, |
| | | effectStartTime: detail.value.effectStartTime, |
| | | }); |
| | | } |
| | | |
| | | const { |
| | | dialogProps: dialogSupplyProps, |
| | | handleAdd: handleSupplyAdd, |
| | | editForm: supplyForm, |
| | | } = useFormDialog({ |
| | | onConfirm: supplySubmit, |
| | | defaultFormParams: { |
| | | serialNum: '', |
| | | url: [] as UploadUserFile[], |
| | | productIdNumber: '', |
| | | productSchemeIdNumber: '', |
| | | effectStartTime: dayjs().add(1, 'day').format('YYYY-MM-DD'), |
| | | }, |
| | | }); |
| | | |
| | | // TODO 补提 |
| | | async function supplySubmit() {} |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |