wupengfei
4 天以前 4ea929e566c7dcd1fe3f42b9195f3f97d5408941
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>
@@ -165,9 +162,7 @@
              <ProFormItemV2
                label="任务地点:"
                prop="weMapInfo"
                :check-rules="[
                  { message: '请选择任务地点', validator: FormValidator.validatorWeMap },
                ]"
                :check-rules="[{ message: '请选择任务地点', type: 'weMap' }]"
              >
                <WeMap v-if="!isDetail" v-model="form.weMapInfo" />
                <div v-else>
@@ -204,6 +199,7 @@
                  range-separator="至"
                  start-placeholder="开始日期"
                  end-placeholder="结束日期"
                  :disabled-date="disabledDate"
                ></ProFormDatePicker>
              </ProFormItemV2>
            </ProFormColItem>
@@ -257,6 +253,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 +277,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,