handle form print
This commit is contained in:
@@ -22,8 +22,8 @@ const OrderItem: FC<Props> = ({ item, estimatedDays }) => {
|
|||||||
<div>#{item.id}</div>
|
<div>#{item.id}</div>
|
||||||
<Link to={Paths.print.form + item.id + `/${id}`}>
|
<Link to={Paths.print.form + item.id + `/${id}`}>
|
||||||
<Button
|
<Button
|
||||||
label='فرم پرینت'
|
label={item.printAttributes?.length ? 'ویرایش فرم پرینت' : 'فرم پرینت'}
|
||||||
className='w-fit px-6'
|
className='w-fit px-6 bg-blue-400 text-white'
|
||||||
/>
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -144,6 +144,10 @@ export type OrderItemType = {
|
|||||||
value: string;
|
value: string;
|
||||||
}[];
|
}[];
|
||||||
discount: number;
|
discount: number;
|
||||||
|
printAttributes?: {
|
||||||
|
value: string;
|
||||||
|
fieldId: number;
|
||||||
|
}[];
|
||||||
};
|
};
|
||||||
export type TicketsResponseType = BaseResponse<TicketType[]>;
|
export type TicketsResponseType = BaseResponse<TicketType[]>;
|
||||||
export type OrderDetailResponseType = BaseResponse<MyOrderType>;
|
export type OrderDetailResponseType = BaseResponse<MyOrderType>;
|
||||||
|
|||||||
Reference in New Issue
Block a user