wupengfei
4 天以前 acea2270a55e045d15bef41585876abe0e536836
src/views/EmploymentManage/components/AddOrEditEmploymentView.vue
@@ -38,15 +38,18 @@
                  :value-enum="EnumBillingMethodText"
                  :showExtra="true"
                  :button-style="false"
                  :disabled="feeCannotEdit"
                >
                  <template #extra>
                    <ProFormInputNumber
                      v-if="form.billingMethod !== EnumBillingMethod.Face"
                      :controls="false"
                      v-model="form.serviceFee"
                      placeholder="请输入"
                      :min="0"
                      :max="999999999999"
                      :unit="EnumBillingMethodUnitText[form.billingMethod]"
                      :disabled="feeCannotEdit"
                    ></ProFormInputNumber>
                  </template>
                </RadioWithExtra>
@@ -73,6 +76,7 @@
                    :min="0"
                    :max="999999999999"
                    unit="小时/天"
                    :disabled="feeCannotEdit"
                  ></ProFormInputNumber>
                </ProFormItemV2>
              </ProFormColItem>
@@ -91,6 +95,7 @@
                    :min="0"
                    :max="999999999999"
                    unit="元/小时"
                    :disabled="feeCannotEdit"
                  ></ProFormInputNumber>
                </ProFormItemV2>
              </ProFormColItem>
@@ -109,6 +114,7 @@
                  :value-enum="EnumSettlementCycleText"
                  :button-style="false"
                  @change="handleSettlementCycleChange"
                  :disabled="feeCannotEdit"
                ></ProFormRadio>
              </ProFormItemV2>
            </ProFormColItem>
@@ -387,9 +393,13 @@
}
function disabledapplyDate(time: Date) {
  return dayjs(time).isBefore(form.time[0], 'day');
  return dayjs(time).isBefore(form.time[0], 'day') || dayjs(time).isAfter(form.time[1], 'day');
}
const feeCannotEdit = computed(() => {
  return dayjs(form.time[0]).isBefore(dayjs(), 'day');
});
const eventContext = useGlobalEventContext();
const { closeViewPush } = useRouteView();