设置班组限制请求

This commit is contained in:
Teo
2025-08-29 14:57:52 +08:00
parent 384eb35d84
commit 5465136879
6 changed files with 24 additions and 6 deletions

View File

@ -80,6 +80,13 @@ import { useUserStoreHook } from '@/store/modules/user';
const userStore = useUserStoreHook();
// 从 store 中获取项目列表和当前选中的项目
const currentProject = computed(() => userStore.selectedProject);
const month = computed(() => {
const now = new Date();
const year = now.getFullYear();
const month = String(now.getMonth() + 1).padStart(2, '0'); // getMonth() 从0开始
const currentMonth = `${year}-${month}`;
return currentMonth;
});
const monthPlanAuditList = ref<MonthPlanAuditVO[]>([]);
const buttonLoading = ref(false);
const loading = ref(true);
@ -116,7 +123,7 @@ const data = reactive<PageData<MonthPlanAuditForm, MonthPlanAuditQuery>>({
purchaseValue: undefined,
constructionValue: undefined,
totalValue: undefined,
planMonth: undefined,
planMonth: month.value,
params: {}
},
rules: {