| | |
| | | <el-button @click="handleDownload()" type="primary" style="margin-right: 10px" link |
| | | >模板下载</el-button |
| | | > |
| | | <el-button @click="handleUpload()" type="primary" style="margin-right: 10px" |
| | | <el-button @click="handleOpenInstructions()" type="primary" style="margin-right: 10px" |
| | | >导入投保人员</el-button |
| | | > |
| | | <!-- <el-button |
| | |
| | | </AppContainer> |
| | | <UploadInsurePersonDialog v-bind="dialogProps" /> |
| | | <UploadStampFileDialog v-bind="dialogStampFileProps" /> |
| | | <InsureInstructionsDialog v-bind="dialogInstructionsProps" /> |
| | | <InsureInstructionsDialog v-bind="dialogInstructionsProps" @onConfirm="handleUpload" /> |
| | | </LoadingLayout> |
| | | </template> |
| | | |
| | |
| | | import { columns } from './constants'; |
| | | import UploadInsurePersonDialog from './components/UploadInsurePersonDialog.vue'; |
| | | import UploadStampFileDialog from './components/UploadStampFileDialog.vue'; |
| | | import { format, downloadFile, setOSSLink, toThousand, convertApi2FormUrl } from '@/utils'; |
| | | import { |
| | | format, |
| | | downloadFile, |
| | | setOSSLink, |
| | | toThousand, |
| | | convertApi2FormUrl, |
| | | convertFormUrl2Api, |
| | | } from '@/utils'; |
| | | import { ModelValueType } from 'element-plus'; |
| | | import { |
| | | InsuranceOrderTempPath, |
| | |
| | | onMounted(async () => { |
| | | await getList(); |
| | | state.loading = false; |
| | | handleOpenInstructions(); |
| | | // handleOpenInstructions(); |
| | | |
| | | // setTimeout(() => { |
| | | // // recorder.value.init(); |
| | |
| | | url: [] as UploadUserFile[], |
| | | productIdNumber: '', |
| | | productSchemeIdNumber: '', |
| | | effectStartTime: dayjs().add(1, 'day').format('YYYY-MM-DD'), |
| | | }, |
| | | closeAfterConfirm: false, |
| | | }); |
| | |
| | | url: editForm.url?.[0]?.path, |
| | | productIdNumber: editForm.productIdNumber, |
| | | productSchemeIdNumber: editForm.productSchemeIdNumber, |
| | | effectStartTime: editForm.effectStartTime, |
| | | }; |
| | | let res = await insuranceOrderServices.importInsStaffToList(params); |
| | | if (res.length > 0) { |
| | |
| | | try { |
| | | let params: API.UploadInsuranceStampFilesInput = { |
| | | insurancePolicyId: stampFileForm.id, |
| | | listFiles: stampFileForm.url?.map((x) => x.path) ?? [], |
| | | listFiles: convertFormUrl2Api(stampFileForm.url), |
| | | }; |
| | | let res = await insuranceOrderServices.uploadInsuranceStampFiles(params); |
| | | if (res) { |
| | |
| | | <el-button icon="Plus" type="primary">导入</el-button> |
| | | </template> |
| | | </BlFileUpload> |
| | | <el-button @click="handleClear()" type="primary">导出投保错误人员清单</el-button> |
| | | <el-button @click="handleClear()" type="primary">清空数据</el-button> |
| | | </template> |
| | | <template v-else> |
| | |
| | | width: 140, |
| | | }, |
| | | { |
| | | id: '101', |
| | | enCode: 'serialNum', |
| | | name: '批次号', |
| | | width: 140, |
| | | }, |
| | | { |
| | | id: '102', |
| | | enCode: 'status', |
| | | name: '投保状态', |
| | | width: 140, |
| | | }, |
| | | { |
| | | id: '103', |
| | | enCode: 'remark', |
| | | name: '备注', |
| | | width: 140, |
| | | }, |
| | | { |
| | | id: '11', |
| | | enCode: 'claimCount', |
| | | name: '理赔', |
| | |
| | | ></ProFormText> |
| | | </ProFormItemV2> |
| | | <ProFormItemV2 |
| | | label="起保日期:" |
| | | prop="effectStartTime" |
| | | :check-rules="[{ message: '请选择起保日期' }]" |
| | | > |
| | | <ProFormDatePicker |
| | | v-model="form.effectStartTime" |
| | | type="date" |
| | | value-format="YYYY-MM-DD" |
| | | placeholder="请选择起保日期" |
| | | :disabled-date="disabledStartDate" |
| | | ></ProFormDatePicker> |
| | | </ProFormItemV2> |
| | | <ProFormItemV2 |
| | | label="上传文件:" |
| | | prop="url" |
| | | :check-rules="[{ message: '请上传文件', type: 'upload' }]" |
| | |
| | | ProFormText, |
| | | ProFormUpload, |
| | | ProFormSelect, |
| | | ProFormDatePicker, |
| | | } from '@bole-core/components'; |
| | | import dayjs from 'dayjs'; |
| | | import { FormInstance } from 'element-plus'; |
| | | import _ from 'lodash'; |
| | | |
| | |
| | | url: UploadUserFile[]; |
| | | productIdNumber: string; |
| | | productSchemeIdNumber: string; |
| | | effectStartTime: string; |
| | | }; |
| | | }; |
| | | |
| | |
| | | innerForm.value.productSchemeIdNumber = ''; |
| | | } |
| | | |
| | | const disabledStartDate = (time: Date) => { |
| | | return dayjs(time).isBefore(dayjs()) || dayjs(time).isAfter(dayjs().add(60, 'day')); |
| | | }; |
| | | |
| | | const innerVisible = computed({ |
| | | get() { |
| | | return props.modelValue; |
| | |
| | | prop="url" |
| | | :check-rules="[{ message: '请上传文件', type: 'upload' }]" |
| | | > |
| | | <ProFormUpload v-model:file-url="innerForm.url" accept="pdf,jpg/jpeg,png"> |
| | | <template #tip> |
| | | <ProFormUpload v-model:file-url="innerForm.url" multiple> |
| | | <!-- <template #tip> |
| | | <div> |
| | | <el-text type="danger">支持pdf、jpg、jepg、png图片</el-text> |
| | | </div> |
| | | </template> |
| | | </template> --> |
| | | </ProFormUpload> |
| | | </ProFormItemV2> |
| | | </ProForm> |