+
+ 成交日期:
+ {
+ if (dateStrings[0] && dateStrings[1]) {
+ // 设置开始日期为当天的00:00:00
+ const startDate = new Date(dateStrings[0]);
+ startDate.setHours(0, 0, 0, 0);
+
+ // 设置结束日期为当天的23:59:59,确保包含当天的所有记录
+ const endDate = new Date(dateStrings[1]);
+ endDate.setHours(23, 59, 59, 999);
+
+ setTransactionDateRange([startDate, endDate]);
+ } else {
+ setTransactionDateRange([null, null]);
+ }
+ }}
+ />
+
+
+ 加粉日期:
+ {
+ if (dateStrings[0] && dateStrings[1]) {
+ // 设置开始日期为当天的00:00:00
+ const startDate = new Date(dateStrings[0]);
+ startDate.setHours(0, 0, 0, 0);
+
+ // 设置结束日期为当天的23:59:59,确保包含当天的所有记录
+ const endDate = new Date(dateStrings[1]);
+ endDate.setHours(23, 59, 59, 999);
+
+ setAddFansDateRange([startDate, endDate]);
+ } else {
+ setAddFansDateRange([null, null]);
+ }
+ }}
+ />
+
+
+ {renderFilterStatus()}
+
+ {/* 添加统计信息 */}
+
+
+ }>
+ 客户: {stats.customerCount}
+
+
+
+ }>
+ 记录/出单: {stats.recordCount}/{stats.orderCount}
+
+
+
+
+ 销售额: ¥{stats.totalSales.toFixed(2)}
+
+
+
+
+ 成本: ¥{stats.totalCost.toFixed(2)}
+
+
+
+
+ 毛利: ¥{(stats.totalSales - stats.totalCost).toFixed(2)}
+
+
+
+
+ 毛利率: {stats.profitRate}%
+
+
+
+ }>
+ 客单价: ¥{stats.customerPrice}
+
+
+
+ }>
+ 件单价: ¥{stats.unitPrice}
+
+
+
+
+ 售后金额: ¥{stats.afterSalesAmount.toFixed(2)}
+
+
+
+ {/* 添加导出按钮 */}
+ }
+ onClick={exportToExcel}
+ style={{ marginLeft: 8 }}
+ >
+ 导出筛选
+
+
+