wupengfei
2025-04-01 eb9a06ed1a51ae12b32c498896d1f75f6d3477ed
src/views/Home/BatchChange.vue
@@ -21,6 +21,7 @@
                  type="date"
                  value-format="YYYY-MM-DD"
                  placeholder="请选择日期"
                  :disabled-date="disabledDate"
                ></ProFormDatePicker>
              </ProFormItemV2>
            </ProFormColItem>
@@ -119,6 +120,7 @@
import { FormInstance } from 'element-plus';
import { useQuery, useQueryClient } from '@tanstack/vue-query';
import { paginateList } from '@/utils';
import dayjs from 'dayjs';
defineOptions({
  name: 'BatchChange',
@@ -172,6 +174,7 @@
const id = route.params.id as string;
const insurerName = route.query.insurerName as string;
const insureBillNo = route.query.insureBillNo as string;
const effectEndTime = route.query.effectEndTime as string;
const BaseState = {
  loading: true,
  form: {
@@ -184,6 +187,12 @@
const state = reactive({ ...BaseState });
const disabledDate = computed(() => {
  return (time: Date) => {
    return dayjs(time).isBefore(dayjs(), 'day') || dayjs(time).isAfter(dayjs(effectEndTime), 'day');
  };
});
const urlDisabled = computed(() => {
  return state.form.addOrReduceUrl.length > 0 || state.form.replaceUrl.length > 0;
});