|
|
|
@@ -227,14 +227,17 @@ export default function DeliveryChartPage() { |
|
|
|
<TextField {...params} label="物料" placeholder="不選則全部" /> |
|
|
|
)} |
|
|
|
renderTags={(value, getTagProps) => |
|
|
|
value.map((option, index) => ( |
|
|
|
<Chip |
|
|
|
key={option.itemCode} |
|
|
|
label={[option.itemCode, option.itemName].filter(Boolean).join(" - ")} |
|
|
|
size="small" |
|
|
|
{...getTagProps({ index })} |
|
|
|
/> |
|
|
|
)) |
|
|
|
value.map((option, index) => { |
|
|
|
const { key: _key, ...tagProps } = getTagProps({ index }); |
|
|
|
return ( |
|
|
|
<Chip |
|
|
|
key={option.itemCode} |
|
|
|
label={[option.itemCode, option.itemName].filter(Boolean).join(" - ")} |
|
|
|
size="small" |
|
|
|
{...tagProps} |
|
|
|
/> |
|
|
|
); |
|
|
|
}) |
|
|
|
} |
|
|
|
sx={{ minWidth: 280 }} |
|
|
|
/> |
|
|
|
|