| @@ -617,7 +617,7 @@ export default function PurchaseChartPage() { | |||||
| <Stack direction="row" spacing={1} sx={{ mb: 2, flexWrap: "wrap", alignItems: "center" }}> | <Stack direction="row" spacing={1} sx={{ mb: 2, flexWrap: "wrap", alignItems: "center" }}> | ||||
| <Typography variant="body2" color="text.secondary"> | <Typography variant="body2" color="text.secondary"> | ||||
| 上方「預計送貨」與「實際已送貨」依訂單日期與篩選條件;點擊圓環可篩選下方圖表(與其他條件交集)。 | |||||
| 上方「預計送貨」與「實際已送貨」依查詢日期與篩選條件;點擊圓環可篩選下方圖表(與其他條件交集)。 | |||||
| </Typography> | </Typography> | ||||
| <Button | <Button | ||||
| size="small" | size="small" | ||||
| @@ -639,7 +639,7 @@ export default function PurchaseChartPage() { | |||||
| <Stack direction="row" spacing={1} sx={{ mb: 2, flexWrap: "wrap", alignItems: "center" }} useFlexGap> | <Stack direction="row" spacing={1} sx={{ mb: 2, flexWrap: "wrap", alignItems: "center" }} useFlexGap> | ||||
| <TextField | <TextField | ||||
| size="small" | size="small" | ||||
| label="訂單日期" | |||||
| label="查詢日期" | |||||
| type="date" | type="date" | ||||
| value={poTargetDate} | value={poTargetDate} | ||||
| onChange={(e) => setPoTargetDate(e.target.value)} | onChange={(e) => setPoTargetDate(e.target.value)} | ||||
| @@ -749,7 +749,7 @@ export default function PurchaseChartPage() { | |||||
| </Grid> | </Grid> | ||||
| <Grid item xs={12} md={6}> | <Grid item xs={12} md={6}> | ||||
| <ChartCard | <ChartCard | ||||
| title="實際已送貨(依訂單日期)" | |||||
| title="實際已送貨(依預計到貨日或實收日)" | |||||
| exportFilename="採購_實際已送貨" | exportFilename="採購_實際已送貨" | ||||
| exportData={chartData.map((p) => ({ 狀態: poStatusLabelZh(p.status), 數量: p.count }))} | exportData={chartData.map((p) => ({ 狀態: poStatusLabelZh(p.status), 數量: p.count }))} | ||||
| > | > | ||||
| @@ -792,7 +792,7 @@ export default function PurchaseChartPage() { | |||||
| 「{bucketLabelZh(selectedEstimatedBucket)}」關聯對象 | 「{bucketLabelZh(selectedEstimatedBucket)}」關聯對象 | ||||
| </Typography> | </Typography> | ||||
| <Typography variant="body2" color="text.secondary" sx={{ mb: 2 }}> | <Typography variant="body2" color="text.secondary" sx={{ mb: 2 }}> | ||||
| 條件與左側「預計送貨」圓環一致:預計到貨日 = 訂單日期({poTargetDate}),並含上方供應商/貨品/採購單號多選。 | |||||
| 條件與左側「預計送貨」圓環一致:預計到貨日 = 查詢日期({poTargetDate}),並含上方供應商/貨品/採購單號多選。 | |||||
| </Typography> | </Typography> | ||||
| {eaBreakdownLoading ? ( | {eaBreakdownLoading ? ( | ||||
| <Box sx={{ display: "flex", justifyContent: "center", py: 3 }}> | <Box sx={{ display: "flex", justifyContent: "center", py: 3 }}> | ||||
| @@ -919,7 +919,7 @@ export default function PurchaseChartPage() { | |||||
| {selectedEstimatedBucket && ( | {selectedEstimatedBucket && ( | ||||
| <Alert severity="info" variant="outlined"> | <Alert severity="info" variant="outlined"> | ||||
| 下方圖表已依「預計送貨」篩選:{bucketLabelZh(selectedEstimatedBucket)} | 下方圖表已依「預計送貨」篩選:{bucketLabelZh(selectedEstimatedBucket)} | ||||
| (預計到貨日 = 訂單日期,並含多選;此時不再套用右側「實際已送貨」狀態;再點同一扇形可取消)。 | |||||
| (預計到貨日 = 查詢日期,並含多選;此時不再套用右側「實際已送貨」狀態;再點同一扇形可取消)。 | |||||
| </Alert> | </Alert> | ||||
| )} | )} | ||||
| {selectedStatus != null && ( | {selectedStatus != null && ( | ||||