完善营销信息录入功能

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' // checkType'9'
// if (row.checkFlag !== '9') { if (row.checkFlag !== '9') {
// return null; return null;
// } }
return ( return (
<div class="flex-center gap-8px"> <div class="flex-center gap-8px">
{editBtn()} {editBtn()}

View File

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