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