wupengfei
3 天以前 bde8961c3e61d0bc8c3220aa3a2a3b6aeac60742
src/views/EmploymentManage/components/AddOrEditEmploymentView.vue
@@ -110,14 +110,14 @@
              >
                <ProFormInputNumber
                  :controls="false"
                  :min="1"
                  :min="0"
                  v-model="form.ageMinLimit"
                  placeholder="请输入"
                ></ProFormInputNumber>
                <div class="form-input-separator">至</div>
                <ProFormInputNumber
                  :controls="false"
                  :min="1"
                  :min="0"
                  v-model="form.ageMaxLimit"
                  placeholder="请输入"
                ></ProFormInputNumber>
@@ -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,12 +279,12 @@
const form = reactive({
  name: '',
  billingMethod: '' as any as EnumBillingMethod,
  serviceFee: 0,
  settlementCycle: '' as any as EnumSettlementCycle,
  billingMethod: EnumBillingMethod.Month,
  serviceFee: null,
  settlementCycle: EnumSettlementCycle.Month,
  benefits: [] as string[],
  ageMinLimit: 0,
  ageMaxLimit: 0,
  ageMinLimit: null,
  ageMaxLimit: null,
  genderLimit: 0 as any as EnumUserGender,
  credentialLimits: [] as string[],
  time: [] as unknown as ModelValueType,