wupengfei
5 天以前 dd81ab30e190b508edb7712888f51a0b9eaef168
fix: bug
1个文件已修改
11 ■■■■■ 已修改文件
src/views/EmploymentManage/components/AddOrEditEmploymentView.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/EmploymentManage/components/AddOrEditEmploymentView.vue
@@ -38,6 +38,7 @@
                  :value-enum="EnumBillingMethodText"
                  :showExtra="true"
                  :button-style="false"
                  :disabled="feeCannotEdit"
                >
                  <template #extra>
                    <ProFormInputNumber
@@ -47,6 +48,7 @@
                      :min="0"
                      :max="999999999999"
                      :unit="EnumBillingMethodUnitText[form.billingMethod]"
                      :disabled="feeCannotEdit"
                    ></ProFormInputNumber>
                  </template>
                </RadioWithExtra>
@@ -73,6 +75,7 @@
                    :min="0"
                    :max="999999999999"
                    unit="小时/天"
                    :disabled="feeCannotEdit"
                  ></ProFormInputNumber>
                </ProFormItemV2>
              </ProFormColItem>
@@ -91,6 +94,7 @@
                    :min="0"
                    :max="999999999999"
                    unit="元/小时"
                    :disabled="feeCannotEdit"
                  ></ProFormInputNumber>
                </ProFormItemV2>
              </ProFormColItem>
@@ -109,6 +113,7 @@
                  :value-enum="EnumSettlementCycleText"
                  :button-style="false"
                  @change="handleSettlementCycleChange"
                  :disabled="feeCannotEdit"
                ></ProFormRadio>
              </ProFormItemV2>
            </ProFormColItem>
@@ -387,9 +392,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();