wupengfei
3 天以前 85784caa4233ce3baaf6513128264b892241da7b
src/views/EmploymentManage/components/AddOrEditEmploymentView.vue
@@ -134,9 +134,6 @@
                <ProFormRadio
                  v-model="form.genderLimit"
                  :value-enum="EnumUserGenderTextForEdit"
                  show-all-btn
                  :all-btn-label="'不限'"
                  :allBtnValue="0"
                ></ProFormRadio>
              </ProFormItemV2>
            </ProFormColItem>
@@ -204,6 +201,7 @@
                  range-separator="至"
                  start-placeholder="开始日期"
                  end-placeholder="结束日期"
                  :disabled-date="disabledDate"
                ></ProFormDatePicker>
              </ProFormItemV2>
            </ProFormColItem>
@@ -257,6 +255,10 @@
const id = route.params.id as string;
const isEdit = !!id;
function disabledDate(time: Date) {
  return dayjs(time).isBefore(dayjs(), 'day');
}
const eventContext = useGlobalEventContext();
const { closeViewPush } = useRouteView();
@@ -277,9 +279,9 @@
const form = reactive({
  name: '',
  billingMethod: '' as any as EnumBillingMethod,
  billingMethod: EnumBillingMethod.Month,
  serviceFee: 0,
  settlementCycle: '' as any as EnumSettlementCycle,
  settlementCycle: EnumSettlementCycle.Month,
  benefits: [] as string[],
  ageMinLimit: 0,
  ageMaxLimit: 0,