完善营销信息录入功能

This commit is contained in:
SGK\17962 2025-08-22 17:41:41 +08:00
parent d407560620
commit c02a4fb2fa
2 changed files with 7 additions and 7 deletions

View File

@ -401,9 +401,9 @@ const {
};
// checkType'9'
// if (row.checkFlag !== '9') {
// return null;
// }
if (row.checkFlag !== '9') {
return null;
}
return (
<div class="flex-center gap-8px">
{editBtn()}

View File

@ -530,18 +530,18 @@ function getDateRange() {
if (props.operateType === 'add') {
//
const startOfMonth = new Date(now.getFullYear(), now.getMonth(), 1);
const endOfMonth = new Date(now.getFullYear(), now.getMonth() + 1, 0);
// const endOfMonth = new Date(now.getFullYear(), now.getMonth() + 1, 0);
return {
startDate: startOfMonth.getTime(),
endDate: endOfMonth.getTime()
endDate: now
};
} else {
// +
const startOfLastMonth = new Date(now.getFullYear(), now.getMonth() - 1, 1);
const endOfLastMonth = new Date(now.getFullYear(), now.getMonth()+1, 0);
// const endOfLastMonth = new Date(now.getFullYear(), now.getMonth()+1, 0);
return {
startDate: startOfLastMonth.getTime(),
endDate: endOfLastMonth.getTime()
endDate: now
};
}
}