| | |
| | | <UploadInsurePersonDialog v-bind="dialogProps" /> |
| | | <UploadStampFileDialog v-bind="dialogStampFileProps" /> |
| | | <InsureInstructionsDialog v-bind="dialogInstructionsProps" /> |
| | | <InsureLineModeSelectDialog v-bind="dialogLineModeSelectProps" /> |
| | | </LoadingLayout> |
| | | </template> |
| | | |
| | |
| | | } from '@bole-core/components'; |
| | | import * as insuranceOrderServices from '@/services/api/InsuranceOrder'; |
| | | import { Message, OrderInputType, downloadFileByUrl } from '@bole-core/core'; |
| | | import { columns } from './constants'; |
| | | import { columns, InsureLineMode } from './constants'; |
| | | import UploadInsurePersonDialog from './components/UploadInsurePersonDialog.vue'; |
| | | import UploadStampFileDialog from './components/UploadStampFileDialog.vue'; |
| | | import { |
| | |
| | | import dayjs from 'dayjs'; |
| | | import _ from 'lodash'; |
| | | import InsureInstructionsDialog from './components/InsureInstructionsDialog.vue'; |
| | | import InsureLineModeSelectDialog from './components/InsureLineModeSelectDialog.vue'; |
| | | import { useInsureProductSchemeAllList, useUserInsureProductSetting } from '@/hooks'; |
| | | // import { Recorder } from '@/utils/record'; |
| | | |
| | |
| | | } catch (error) {} |
| | | } |
| | | |
| | | const { dialogProps: dialogLineModeSelectProps, dialogState: dialogLineModeSelectState } = |
| | | useDialog({ |
| | | onConfirm: handleLineModeSelect, |
| | | }); |
| | | |
| | | async function handleLineModeSelect(mode: InsureLineMode) { |
| | | if (mode === InsureLineMode.OnLine) { |
| | | dialogInstructionsState.dialogVisible = true; |
| | | } else { |
| | | handleUpload(); |
| | | } |
| | | } |
| | | |
| | | const { dialogProps: dialogInstructionsProps, dialogState: dialogInstructionsState } = useDialog({ |
| | | onConfirm: handleUpload, |
| | | }); |
| | | |
| | | function handleOpenInstructions() { |
| | | if (isSjbAccount.value) { |
| | | dialogInstructionsState.dialogVisible = true; |
| | | // dialogInstructionsState.dialogVisible = true; |
| | | dialogLineModeSelectState.dialogVisible = true; |
| | | } else { |
| | | handleUpload(); |
| | | } |