diff --git a/src/pages/delivery/components/Filter/index.tsx b/src/pages/delivery/components/Filter/index.tsx index e9c1b77..77dd386 100644 --- a/src/pages/delivery/components/Filter/index.tsx +++ b/src/pages/delivery/components/Filter/index.tsx @@ -14,7 +14,6 @@ import Taro from '@tarojs/taro' interface SearchFilter { type?: number timeKey?: string - delivery_notice_order_no?: string } export interface SearchField extends Omit { @@ -77,7 +76,6 @@ const DeliveryFilter = memo((props) => { const [searchFilter, setSearchFilter] = useState({ type: undefined, timeKey: '0', - delivery_notice_order_no: '', }) const handleSelectedType = (type: string | number) => { console.log('type==>', type) @@ -89,11 +87,6 @@ const DeliveryFilter = memo((props) => { } - const handleSearchBarChange = useCallback((searchValue: string) => { - console.log('searchValue==>', searchValue) - setSearchFilter((prevProps) => ({ ...prevProps, delivery_notice_order_no: searchValue })) - }, []) - const typeList = useMemo<{ id: number; name: string }[]>(() => { return state.data.list }, [state]) @@ -130,13 +123,12 @@ const DeliveryFilter = memo((props) => { } const handleReset = () => { - setSearchFilter({ type: undefined, timeKey: '0', delivery_notice_order_no: '' }) + setSearchFilter({ type: undefined, timeKey: '0' }) onReset?.() } const handleConfirm = () => { const changedField = { type: searchFilter.type, - delivery_notice_order_no: searchFilter.delivery_notice_order_no, date_min: customTime.date_min, date_max: customTime.date_max, } @@ -144,40 +136,8 @@ const DeliveryFilter = memo((props) => { onConfirm?.(changedField, searchFilter.timeKey) } - const scanIcon = () => { - // 扫描 - const handleScan = () => { - Taro.scanCode({ - success(res) { - setSearchFilter((prevProps) => ({ ...prevProps, delivery_notice_order_no: res.result })) - }, - fail(res) { - console.log(res) - }, - }) - } - return ( - - - - ) - } - return ( <> - - 发货单号 - - - - 发货类型