zhengyiming
7 天以前 cb17e94ad8c0756803888014852b3a126aa8210a
fix: 江佑保系统健壮性修复
4个文件已修改
64 ■■■■ 已修改文件
src/views/Home/Home.vue 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/Home/components/InsureOrderInfoView.vue 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/Home/components/UploadInsurePersonDialog.vue 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/Home/components/UploadStampFileDialog.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/Home/Home.vue
@@ -63,7 +63,7 @@
          <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
@@ -111,7 +111,7 @@
    </AppContainer>
    <UploadInsurePersonDialog v-bind="dialogProps" />
    <UploadStampFileDialog v-bind="dialogStampFileProps" />
    <InsureInstructionsDialog v-bind="dialogInstructionsProps" />
    <InsureInstructionsDialog v-bind="dialogInstructionsProps" @onConfirm="handleUpload" />
  </LoadingLayout>
</template>
@@ -137,7 +137,14 @@
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,
@@ -268,7 +275,7 @@
onMounted(async () => {
  await getList();
  state.loading = false;
  handleOpenInstructions();
  // handleOpenInstructions();
  // setTimeout(() => {
  //   // recorder.value.init();
@@ -350,6 +357,7 @@
    url: [] as UploadUserFile[],
    productIdNumber: '',
    productSchemeIdNumber: '',
    effectStartTime: dayjs().add(1, 'day').format('YYYY-MM-DD'),
  },
  closeAfterConfirm: false,
});
@@ -381,6 +389,7 @@
      url: editForm.url?.[0]?.path,
      productIdNumber: editForm.productIdNumber,
      productSchemeIdNumber: editForm.productSchemeIdNumber,
      effectStartTime: editForm.effectStartTime,
    };
    let res = await insuranceOrderServices.importInsStaffToList(params);
    if (res.length > 0) {
@@ -499,7 +508,7 @@
  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) {
src/views/Home/components/InsureOrderInfoView.vue
@@ -106,6 +106,7 @@
                  <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>
@@ -247,6 +248,24 @@
    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: '理赔',
src/views/Home/components/UploadInsurePersonDialog.vue
@@ -50,6 +50,19 @@
        ></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' }]"
@@ -86,7 +99,9 @@
  ProFormText,
  ProFormUpload,
  ProFormSelect,
  ProFormDatePicker,
} from '@bole-core/components';
import dayjs from 'dayjs';
import { FormInstance } from 'element-plus';
import _ from 'lodash';
@@ -101,6 +116,7 @@
    url: UploadUserFile[];
    productIdNumber: string;
    productSchemeIdNumber: string;
    effectStartTime: string;
  };
};
@@ -125,6 +141,10 @@
  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;
src/views/Home/components/UploadStampFileDialog.vue
@@ -14,12 +14,12 @@
        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>