diff --git a/src/components/ProductionProcess/ProductionProcessPage.tsx b/src/components/ProductionProcess/ProductionProcessPage.tsx index f2d43df..e790a24 100644 --- a/src/components/ProductionProcess/ProductionProcessPage.tsx +++ b/src/components/ProductionProcess/ProductionProcessPage.tsx @@ -33,9 +33,10 @@ const ProductionProcessPage: React.FC = ({ printerCo } | null>(null); const [tabIndex, setTabIndex] = useState(0); /** 列表搜尋/分頁:保留在切換工單詳情時,返回後仍為同一條件 */ - const [productionListState, setProductionListState] = useState( - createDefaultProductionProcessListPersistedState, - ); + const [productionListState, setProductionListState] = useState(() => ({ + ...createDefaultProductionProcessListPersistedState(), + date: "", + })); const [waitingPutawayListState, setWaitingPutawayListState] = useState( createDefaultProductionProcessListPersistedState, ); @@ -213,7 +214,7 @@ const ProductionProcessPage: React.FC = ({ printerCo {