|
|
@@ -5,10 +5,13 @@ import {useScanOrder} from '@hooks';
|
|
|
import {Button} from '@nutui/nutui-react-taro';
|
|
|
import {useUpload} from './hooks';
|
|
|
import Upload from './upload';
|
|
|
+import Exception from './exception';
|
|
|
+import {useBoolean} from 'ahooks';
|
|
|
|
|
|
export default function Receive() {
|
|
|
const [{goodsList, customerNo, truckNo}, onScan] = useScanOrder();
|
|
|
const [files, {onRemove, onAdd}] = useUpload();
|
|
|
+ const [checked, {set: onChange}] = useBoolean();
|
|
|
|
|
|
return (
|
|
|
<View className='h-screen overflow-auto bg-gray-100 flex flex-col'>
|
|
|
@@ -45,10 +48,14 @@ export default function Receive() {
|
|
|
</View>
|
|
|
) : null}
|
|
|
|
|
|
- <View className='mt-3 bg-white px-4 py-2 mb-10'>
|
|
|
+ <View className='mt-3 bg-white px-4 py-2'>
|
|
|
<Upload files={files} onDelete={onRemove} onAdd={onAdd} />
|
|
|
</View>
|
|
|
|
|
|
+ <View className='mt-3 bg-white px-4 py-2 mb-10'>
|
|
|
+ <Exception checked={checked} onChange={onChange} />
|
|
|
+ </View>
|
|
|
+
|
|
|
<View className='flex mt-auto justify-around pb-12'>
|
|
|
<Button className='w-36' onClick={onScan}>
|
|
|
扫码
|