minor features
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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}}>
|
||||
|
||||
@@ -124,7 +124,7 @@ const styles = StyleSheet.create({
|
||||
elevation: 10,
|
||||
height: responsiveHeight(8),
|
||||
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 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>
|
||||
|
||||
@@ -26,5 +26,6 @@ export type Order = {
|
||||
status: number;
|
||||
shipmentDate: string;
|
||||
createdOn: string;
|
||||
shippingWarehouse: string;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user