Commit b8b51ef1013aada5277664fc7c47e2fe3f09a4ce

Authored by chenhang4442024
1 parent a73835a2

fix: 提成日期从2023放宽到2020

src/views/project/config/costCreate.vue
@@ -75,7 +75,7 @@ @@ -75,7 +75,7 @@
75 // Generate year options from 2023 to current year 75 // Generate year options from 2023 to current year
76 const currentYear = new Date().getFullYear(); 76 const currentYear = new Date().getFullYear();
77 const yearOptions = ref<string[]>([]); 77 const yearOptions = ref<string[]>([]);
78 - for (let y = 2023; y <= currentYear; y++) { 78 + for (let y = 2020; y <= currentYear; y++) {
79 yearOptions.value.push(y.toString()); 79 yearOptions.value.push(y.toString());
80 } 80 }
81 // const relationValue = ref(); 81 // const relationValue = ref();
src/views/project/config/data.tsx
@@ -279,7 +279,7 @@ export const searchFormSchema = [ @@ -279,7 +279,7 @@ export const searchFormSchema = [
279 options: (() => { 279 options: (() => {
280 const options = []; 280 const options = [];
281 const currentYear = new Date().getFullYear(); 281 const currentYear = new Date().getFullYear();
282 - for (let y = 2023; y <= currentYear; y++) { 282 + for (let y = 2020; y <= currentYear; y++) {
283 options.push({ label: y.toString(), value: y.toString() }); 283 options.push({ label: y.toString(), value: y.toString() });
284 } 284 }
285 return options; 285 return options;