order detail add theme vakue
This commit is contained in:
@@ -44,6 +44,11 @@ const ProductSelection: React.FC<ProductSelectionProps> = ({
|
||||
<div className='flex-1 min-w-0'>
|
||||
<div className='font-medium truncate'>
|
||||
{item.product.title_fa}
|
||||
{item.variant.themeValue && (
|
||||
<span className='text-gray-600 font-normal'>
|
||||
{' '}({item.variant.themeValue.name})
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className='mt-2 text-sm text-gray-600 space-y-1'>
|
||||
|
||||
@@ -29,6 +29,11 @@ const OrderProductItem: React.FC<OrderProductItemProps> = ({ item, shipperName }
|
||||
<div className='flex-1 w-full'>
|
||||
<div className='truncate max-w-[90%] font-medium'>
|
||||
{item.product.title_fa}
|
||||
{item.variant.themeValue && (
|
||||
<span className='text-gray-600 font-normal'>
|
||||
{' '}({item.variant.themeValue.name})
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className='mt-4 text-[#999999] space-y-3'>
|
||||
|
||||
@@ -148,7 +148,14 @@ const OrderInvoicePage = () => {
|
||||
</td>
|
||||
<td className="border border-gray-300 p-3">
|
||||
<div>
|
||||
<p className="font-medium">{item.product.title_fa}</p>
|
||||
<p className="font-medium">
|
||||
{item.product.title_fa}
|
||||
{item.variant.themeValue && (
|
||||
<span className='text-gray-600 font-normal'>
|
||||
{' '}({item.variant.themeValue.name})
|
||||
</span>
|
||||
)}
|
||||
</p>
|
||||
<p className="text-xs text-gray-600 mt-1">
|
||||
فروشنده: {orderItem.shop.shopName}
|
||||
</p>
|
||||
|
||||
@@ -52,11 +52,11 @@ const ProductSelection: React.FC<ProductSelectionProps> = ({
|
||||
<div className='flex-1 min-w-0'>
|
||||
<div className='font-medium text-sm leading-relaxed mb-2'>
|
||||
{item.product.title_fa}
|
||||
</div>
|
||||
|
||||
<div className='flex items-center gap-2 mb-2'>
|
||||
<div className='w-3 h-3 bg-gray-800 rounded-full'></div>
|
||||
<span className='text-xs text-gray-600'>مشکی</span>
|
||||
{item.variant.themeValue && (
|
||||
<span className='text-gray-600 font-normal'>
|
||||
{' '}({item.variant.themeValue.name})
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className='text-xs text-gray-500 mb-1'>
|
||||
|
||||
@@ -135,10 +135,10 @@ export interface ShopDetails {
|
||||
shopCode: number;
|
||||
owner: string;
|
||||
shopDescription: string;
|
||||
telephoneNumber: string;
|
||||
telephoneNumber: string | null;
|
||||
isChatActive: boolean;
|
||||
shopPostalCode: string;
|
||||
logo: string;
|
||||
shopPostalCode: string | null;
|
||||
logo: string | null;
|
||||
}
|
||||
|
||||
export interface ShipmentItem {
|
||||
@@ -213,6 +213,17 @@ export interface Size {
|
||||
value: string;
|
||||
}
|
||||
|
||||
export interface ThemeValue {
|
||||
_id: string;
|
||||
theme: string;
|
||||
name: string;
|
||||
value: string;
|
||||
}
|
||||
|
||||
export interface SaleFormat {
|
||||
wholeSale: unknown[];
|
||||
}
|
||||
|
||||
export interface ProductVariantDetail {
|
||||
_id: string;
|
||||
market_status: string;
|
||||
@@ -222,7 +233,9 @@ export interface ProductVariantDetail {
|
||||
isFreeShip: boolean;
|
||||
isWholeSale: boolean;
|
||||
shop: ShopDetails;
|
||||
saleFormat: SaleFormat;
|
||||
warranty: Warranty;
|
||||
themeValue: ThemeValue;
|
||||
meterage?: Meterage;
|
||||
size?: Size;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user