minor features
This commit is contained in:
		
							
								
								
									
										38
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										38
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -41,39 +41,5 @@ package-lock.json
 | 
				
			|||||||
# The following patterns were generated by expo-cli
 | 
					# The following patterns were generated by expo-cli
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
 | 
					# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
 | 
				
			||||||
 | 
					*.apk
 | 
				
			||||||
# dependencies
 | 
					*.log
 | 
				
			||||||
node_modules/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Expo
 | 
					 | 
				
			||||||
.expo/
 | 
					 | 
				
			||||||
dist/
 | 
					 | 
				
			||||||
web-build/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Native
 | 
					 | 
				
			||||||
*.orig.*
 | 
					 | 
				
			||||||
*.jks
 | 
					 | 
				
			||||||
*.p8
 | 
					 | 
				
			||||||
*.p12
 | 
					 | 
				
			||||||
*.key
 | 
					 | 
				
			||||||
*.mobileprovision
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Metro
 | 
					 | 
				
			||||||
.metro-health-check*
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# debug
 | 
					 | 
				
			||||||
npm-debug.*
 | 
					 | 
				
			||||||
yarn-debug.*
 | 
					 | 
				
			||||||
yarn-error.*
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# macOS
 | 
					 | 
				
			||||||
.DS_Store
 | 
					 | 
				
			||||||
*.pem
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# local env files
 | 
					 | 
				
			||||||
.env*.local
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# typescript
 | 
					 | 
				
			||||||
*.tsbuildinfo
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# @end expo-cli
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -42,10 +42,11 @@ const OrderCard: FC<Props> = ({onPress, onSelect, order}) => {
 | 
				
			|||||||
                    <DText>Товаров в заказе: {order.products.length}</DText>
 | 
					                    <DText>Товаров в заказе: {order.products.length}</DText>
 | 
				
			||||||
                    <DText>Создан: {order.createdOn}</DText>
 | 
					                    <DText>Создан: {order.createdOn}</DText>
 | 
				
			||||||
                    <DText>Отгрузка: {order.shipmentDate}</DText>
 | 
					                    <DText>Отгрузка: {order.shipmentDate}</DText>
 | 
				
			||||||
 | 
					                    <DText>Склад отгрузки: {order.shippingWarehouse}</DText>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                </View>
 | 
					                </View>
 | 
				
			||||||
                <View style={styles.descriptionStatus}>
 | 
					                <View style={styles.descriptionStatus}>
 | 
				
			||||||
                    <DText>
 | 
					                    <DText style={order.status >= OrderStatus.CANCELLED  && {color: "red"}}>
 | 
				
			||||||
                        {OrderStatusDictionary[order.status as OrderStatus]}
 | 
					                        {OrderStatusDictionary[order.status as OrderStatus]}
 | 
				
			||||||
                    </DText>
 | 
					                    </DText>
 | 
				
			||||||
                </View>
 | 
					                </View>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -62,6 +62,9 @@ function BarcodeScreen() {
 | 
				
			|||||||
                        showsVerticalScrollIndicator={true}
 | 
					                        showsVerticalScrollIndicator={true}
 | 
				
			||||||
                        onEndReachedThreshold={0.1}
 | 
					                        onEndReachedThreshold={0.1}
 | 
				
			||||||
                        estimatedItemSize={720}
 | 
					                        estimatedItemSize={720}
 | 
				
			||||||
 | 
					                        contentContainerStyle={{
 | 
				
			||||||
 | 
					                            paddingBottom: responsiveHeight(10)
 | 
				
			||||||
 | 
					                        }}
 | 
				
			||||||
                        ItemSeparatorComponent={flashListSeparator}
 | 
					                        ItemSeparatorComponent={flashListSeparator}
 | 
				
			||||||
                    /> :
 | 
					                    /> :
 | 
				
			||||||
                    <View style={{justifyContent: "center", flex: 1}}>
 | 
					                    <View style={{justifyContent: "center", flex: 1}}>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -124,7 +124,7 @@ const styles = StyleSheet.create({
 | 
				
			|||||||
        elevation: 10,
 | 
					        elevation: 10,
 | 
				
			||||||
        height: responsiveHeight(8),
 | 
					        height: responsiveHeight(8),
 | 
				
			||||||
        paddingHorizontal: responsiveWidth(5),
 | 
					        paddingHorizontal: responsiveWidth(5),
 | 
				
			||||||
        backgroundColor: "white"
 | 
					        backgroundColor: "white",
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -34,6 +34,7 @@ import Toast from "react-native-toast-message";
 | 
				
			|||||||
import mainScreen, {TabNavigatorParamList} from "../MainScreen/MainScreen";
 | 
					import mainScreen, {TabNavigatorParamList} from "../MainScreen/MainScreen";
 | 
				
			||||||
import toast from "../../components/Toast/Toast";
 | 
					import toast from "../../components/Toast/Toast";
 | 
				
			||||||
import {openImageZoomModal, setImages} from "../../features/imageZoomModal/loadingModalSlice";
 | 
					import {openImageZoomModal, setImages} from "../../features/imageZoomModal/loadingModalSlice";
 | 
				
			||||||
 | 
					import {OrderStatus, OrderStatusDictionary} from "../../features/ordersFilter/ordersFilterSlice";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
type AssemblyPeriod = {
 | 
					type AssemblyPeriod = {
 | 
				
			||||||
@@ -241,6 +242,8 @@ const OrderScreen: FC<OrderScreenProps> = ({order}) => {
 | 
				
			|||||||
                        <DText>Селлер: {order.sellerName}</DText>
 | 
					                        <DText>Селлер: {order.sellerName}</DText>
 | 
				
			||||||
                        <DText>Создан: {order.createdOn}</DText>
 | 
					                        <DText>Создан: {order.createdOn}</DText>
 | 
				
			||||||
                        <DText>Отгрузка: {order.shipmentDate}</DText>
 | 
					                        <DText>Отгрузка: {order.shipmentDate}</DText>
 | 
				
			||||||
 | 
					                        <DText>Статус: {OrderStatusDictionary[order.status as OrderStatus]}</DText>
 | 
				
			||||||
 | 
					                        <DText>Склад отгрузки: {order.shippingWarehouse}</DText>
 | 
				
			||||||
                        <DText>{}</DText>
 | 
					                        <DText>{}</DText>
 | 
				
			||||||
                        <DTitle style={styles.contentTitle}>Товар</DTitle>
 | 
					                        <DTitle style={styles.contentTitle}>Товар</DTitle>
 | 
				
			||||||
                        <DText>Арт. DENCO: {selectedProduct?.dencoArticle}</DText>
 | 
					                        <DText>Арт. DENCO: {selectedProduct?.dencoArticle}</DText>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -26,5 +26,6 @@ export type Order = {
 | 
				
			|||||||
    status: number;
 | 
					    status: number;
 | 
				
			||||||
    shipmentDate: string;
 | 
					    shipmentDate: string;
 | 
				
			||||||
    createdOn: string;
 | 
					    createdOn: string;
 | 
				
			||||||
 | 
					    shippingWarehouse: string;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user