minor features

This commit is contained in:
2023-11-23 04:58:25 +03:00
parent e5ea497851
commit aed1425f84
6 changed files with 12 additions and 38 deletions

38
.gitignore vendored
View File

@@ -41,39 +41,5 @@ package-lock.json
# The following patterns were generated by expo-cli
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
# dependencies
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
*.apk
*.log

View File

@@ -42,10 +42,11 @@ const OrderCard: FC<Props> = ({onPress, onSelect, order}) => {
<DText>Товаров в заказе: {order.products.length}</DText>
<DText>Создан: {order.createdOn}</DText>
<DText>Отгрузка: {order.shipmentDate}</DText>
<DText>Склад отгрузки: {order.shippingWarehouse}</DText>
</View>
<View style={styles.descriptionStatus}>
<DText>
<DText style={order.status >= OrderStatus.CANCELLED && {color: "red"}}>
{OrderStatusDictionary[order.status as OrderStatus]}
</DText>
</View>

View File

@@ -62,6 +62,9 @@ function BarcodeScreen() {
showsVerticalScrollIndicator={true}
onEndReachedThreshold={0.1}
estimatedItemSize={720}
contentContainerStyle={{
paddingBottom: responsiveHeight(10)
}}
ItemSeparatorComponent={flashListSeparator}
/> :
<View style={{justifyContent: "center", flex: 1}}>

View File

@@ -124,7 +124,7 @@ const styles = StyleSheet.create({
elevation: 10,
height: responsiveHeight(8),
paddingHorizontal: responsiveWidth(5),
backgroundColor: "white"
backgroundColor: "white",
}
})

View File

@@ -34,6 +34,7 @@ import Toast from "react-native-toast-message";
import mainScreen, {TabNavigatorParamList} from "../MainScreen/MainScreen";
import toast from "../../components/Toast/Toast";
import {openImageZoomModal, setImages} from "../../features/imageZoomModal/loadingModalSlice";
import {OrderStatus, OrderStatusDictionary} from "../../features/ordersFilter/ordersFilterSlice";
type AssemblyPeriod = {
@@ -241,6 +242,8 @@ const OrderScreen: FC<OrderScreenProps> = ({order}) => {
<DText>Селлер: {order.sellerName}</DText>
<DText>Создан: {order.createdOn}</DText>
<DText>Отгрузка: {order.shipmentDate}</DText>
<DText>Статус: {OrderStatusDictionary[order.status as OrderStatus]}</DText>
<DText>Склад отгрузки: {order.shippingWarehouse}</DText>
<DText>{}</DText>
<DTitle style={styles.contentTitle}>Товар</DTitle>
<DText>Арт. DENCO: {selectedProduct?.dencoArticle}</DText>

View File

@@ -26,5 +26,6 @@ export type Order = {
status: number;
shipmentDate: string;
createdOn: string;
shippingWarehouse: string;
};