Commit e972f6e1 authored by Administrator's avatar Administrator

bug

parent 02a07d47
......@@ -14,8 +14,8 @@ const debug = ref(import.meta.env.MODE === 'production' ? false : true);
const loading = ref(false);
const form = reactive({
task_id: "",
birth: "1993-04",
sex_value: "",
birth: "1993-08",
sex_value: "女50岁退休",
sex_option: [
{
value: '男',
......@@ -66,6 +66,14 @@ const calculateRetirement = (birthStr: string, gender: string) => {
return;
}
if (birthYear >= 1977 && gender == '男') {
delayMonths = 36;
} else if (birthYear >= 1985 && gender == '女50岁退休') {
delayMonths = 60;
} else if (birthYear >= 1982 && gender == '女55岁退休') {
delayMonths = 36;
}
retirementAge += Math.floor(delayMonths / 12);
console.log(retirementAge, delayMonths)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment