|
|
@ -2,258 +2,145 @@ import React from "react"; |
|
|
|
|
|
|
|
|
|
|
|
const RenderRowSubComponent = ({ columns, addTab, row }) => { |
|
|
|
const RenderRowSubComponent = ({ columns, addTab, row }) => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div |
|
|
|
<div className="w-full flex flex-row items-center border-r-4 border-blue-600 p-2 bg-[#FBFCFE]"> |
|
|
|
className="w-full flex flex-row items-center border-r-4 border-blue-600 p-2 " |
|
|
|
|
|
|
|
style={{ backgroundColor: "#FBFCFE" }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{/* right */} |
|
|
|
{/* right */} |
|
|
|
<div |
|
|
|
<div className="w-[90%] flex flex-row flex-wrap items-center "> |
|
|
|
className="flex flex-row flex-wrap items-center " |
|
|
|
|
|
|
|
style={{ width: "90%" }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{/* 1 */} |
|
|
|
{/* 1 */} |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div |
|
|
|
<div className="w-1 h-4 ml-1 rounded bg-[#EDF2FB]"></div> |
|
|
|
className="w-1 h-4 ml-1 rounded" |
|
|
|
<p className="text-xs text-blue-400 border-[#65A9FF]"> |
|
|
|
style={{ backgroundColor: "#EDF2FB" }} |
|
|
|
|
|
|
|
></div> |
|
|
|
|
|
|
|
<p |
|
|
|
|
|
|
|
className="text-xs text-blue-400" |
|
|
|
|
|
|
|
style={{ borderColor: "#65A9FF" }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
نام و نام خانوادگی: |
|
|
|
نام و نام خانوادگی: |
|
|
|
<span className="mr-1 text-black">{row.name}</span> |
|
|
|
<span className="mr-1 text-black">{row.name}</span> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/* 2 */} |
|
|
|
{/* 2 */} |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div |
|
|
|
<div className="w-1 h-4 ml-1 rounded bg-[#EDF2FB]"></div> |
|
|
|
className="w-1 h-4 ml-1 rounded" |
|
|
|
<p className="text-xs text-blue-400 border-[#65A9FF]"> |
|
|
|
style={{ backgroundColor: "#EDF2FB" }} |
|
|
|
|
|
|
|
></div> |
|
|
|
|
|
|
|
<p |
|
|
|
|
|
|
|
className="text-xs text-blue-400" |
|
|
|
|
|
|
|
style={{ borderColor: "#65A9FF" }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
تاریخ سفارش: |
|
|
|
تاریخ سفارش: |
|
|
|
<span className="mr-1 text-black">{row.order_date}</span> |
|
|
|
<span className="mr-1 text-black">{row.order_date}</span> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/* 3 */} |
|
|
|
{/* 3 */} |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div |
|
|
|
<div className="w-1 h-4 ml-1 rounded bg-[#EDF2FB]"></div> |
|
|
|
className="w-1 h-4 ml-1 rounded" |
|
|
|
<p className="text-xs text-blue-400 border-[#65A9FF]"> |
|
|
|
style={{ backgroundColor: "#EDF2FB" }} |
|
|
|
|
|
|
|
></div> |
|
|
|
|
|
|
|
<p |
|
|
|
|
|
|
|
className="text-xs text-blue-400" |
|
|
|
|
|
|
|
style={{ borderColor: "#65A9FF" }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
مبلغ سفارش: |
|
|
|
مبلغ سفارش: |
|
|
|
<span className="mr-1 text-black">{row.order_price}</span> |
|
|
|
<span className="mr-1 text-black">{row.order_price}</span> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/* 4 */} |
|
|
|
{/* 4 */} |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div |
|
|
|
<div className="w-1 h-4 ml-1 rounded bg-[#EDF2FB]"></div> |
|
|
|
className="w-1 h-4 ml-1 rounded" |
|
|
|
<p className="text-xs text-blue-400 border-[#65A9FF]"> |
|
|
|
style={{ backgroundColor: "#EDF2FB" }} |
|
|
|
|
|
|
|
></div> |
|
|
|
|
|
|
|
<p |
|
|
|
|
|
|
|
className="text-xs text-blue-400" |
|
|
|
|
|
|
|
style={{ borderColor: "#65A9FF" }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
شماره سفارش: |
|
|
|
شماره سفارش: |
|
|
|
<span className="mr-1 text-black">{row.order_number}</span> |
|
|
|
<span className="mr-1 text-black">{row.order_number}</span> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/* 5 */} |
|
|
|
{/* 5 */} |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div |
|
|
|
<div className="w-1 h-4 ml-1 rounded bg-[#EDF2FB]"></div> |
|
|
|
className="w-1 h-4 ml-1 rounded" |
|
|
|
<p className="text-xs text-blue-400 border-[#65A9FF]"> |
|
|
|
style={{ backgroundColor: "#EDF2FB" }} |
|
|
|
|
|
|
|
></div> |
|
|
|
|
|
|
|
<p |
|
|
|
|
|
|
|
className="text-xs text-blue-400" |
|
|
|
|
|
|
|
style={{ borderColor: "#65A9FF" }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
شغل کاربر: |
|
|
|
شغل کاربر: |
|
|
|
<span className="mr-1 text-black">{row.user_job}</span> |
|
|
|
<span className="mr-1 text-black">{row.user_job}</span> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/* 6 */} |
|
|
|
{/* 6 */} |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div |
|
|
|
<div className="w-1 h-4 ml-1 rounded bg-[#EDF2FB]"></div> |
|
|
|
className="w-1 h-4 ml-1 rounded" |
|
|
|
<p className="text-xs text-blue-400 border-[#65A9FF]">وضعیت سفارش:</p> |
|
|
|
style={{ backgroundColor: "#EDF2FB" }} |
|
|
|
|
|
|
|
></div> |
|
|
|
|
|
|
|
<p |
|
|
|
|
|
|
|
className="text-xs text-blue-400" |
|
|
|
|
|
|
|
style={{ borderColor: "#65A9FF" }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
وضعیت سفارش: |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
<span className="mr-1 text-black text-xs"> |
|
|
|
<span className="mr-1 text-black text-xs"> |
|
|
|
{columns[5].Cell({ value: row.order_status })} |
|
|
|
{columns[5].Cell({ value: row.order_status })} |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/* 7 */} |
|
|
|
{/* 7 */} |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div |
|
|
|
<div className="w-1 h-4 ml-1 rounded bg-[#EDF2FB]"></div> |
|
|
|
className="w-1 h-4 ml-1 rounded" |
|
|
|
<p className="text-xs text-blue-400 border-[#65A9FF]">سطح اهمیت:</p> |
|
|
|
style={{ backgroundColor: "#EDF2FB" }} |
|
|
|
|
|
|
|
></div> |
|
|
|
|
|
|
|
<p |
|
|
|
|
|
|
|
className="text-xs text-blue-400" |
|
|
|
|
|
|
|
style={{ borderColor: "#65A9FF" }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
سطح اهمیت: |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
<span className="mr-1 text-xs text-black"> |
|
|
|
<span className="mr-1 text-xs text-black"> |
|
|
|
{columns[6].Cell({ value: row.order_level })} |
|
|
|
{columns[6].Cell({ value: row.order_level })} |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/* 8 */} |
|
|
|
{/* 8 */} |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div |
|
|
|
<div className="w-1 h-4 ml-1 rounded bg-[#EDF2FB]"></div> |
|
|
|
className="w-1 h-4 ml-1 rounded" |
|
|
|
<p className="text-xs text-blue-400 border-[#65A9FF]"> |
|
|
|
style={{ backgroundColor: "#EDF2FB" }} |
|
|
|
|
|
|
|
></div> |
|
|
|
|
|
|
|
<p |
|
|
|
|
|
|
|
className="text-xs text-blue-400" |
|
|
|
|
|
|
|
style={{ borderColor: "#65A9FF" }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
محل تولد: |
|
|
|
محل تولد: |
|
|
|
<span className="mr-1 text-black">{row.birth_place}</span> |
|
|
|
<span className="mr-1 text-black">{row.birth_place}</span> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/* 9 */} |
|
|
|
{/* 9 */} |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div |
|
|
|
<div className="w-1 h-4 ml-1 rounded bg-[#EDF2FB]"></div> |
|
|
|
className="w-1 h-4 ml-1 rounded" |
|
|
|
<p className="text-xs text-blue-400 border-[#65A9FF]"> |
|
|
|
style={{ backgroundColor: "#EDF2FB" }} |
|
|
|
|
|
|
|
></div> |
|
|
|
|
|
|
|
<p |
|
|
|
|
|
|
|
className="text-xs text-blue-400" |
|
|
|
|
|
|
|
style={{ borderColor: "#65A9FF" }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
تلفن محل کار: |
|
|
|
تلفن محل کار: |
|
|
|
<span className="mr-1 text-black">{row.office_phone}</span> |
|
|
|
<span className="mr-1 text-black">{row.office_phone}</span> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/* 10 */} |
|
|
|
{/* 10 */} |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div |
|
|
|
<div className="w-1 h-4 ml-1 rounded bg-[#EDF2FB]"></div> |
|
|
|
className="w-1 h-4 ml-1 rounded" |
|
|
|
<p className="text-xs text-blue-400 border-[#65A9FF]"> |
|
|
|
style={{ backgroundColor: "#EDF2FB" }} |
|
|
|
|
|
|
|
></div> |
|
|
|
|
|
|
|
<p |
|
|
|
|
|
|
|
className="text-xs text-blue-400" |
|
|
|
|
|
|
|
style={{ borderColor: "#65A9FF" }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
تحصیلات: |
|
|
|
تحصیلات: |
|
|
|
<span className="mr-1 text-black">{row.education}</span> |
|
|
|
<span className="mr-1 text-black">{row.education}</span> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/* 11 */} |
|
|
|
{/* 11 */} |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div |
|
|
|
<div className="w-1 h-4 ml-1 rounded bg-[#EDF2FB]"></div> |
|
|
|
className="w-1 h-4 ml-1 rounded" |
|
|
|
<p className="text-xs text-blue-400 border-[#65A9FF]"> |
|
|
|
style={{ backgroundColor: "#EDF2FB" }} |
|
|
|
|
|
|
|
></div> |
|
|
|
|
|
|
|
<p |
|
|
|
|
|
|
|
className="text-xs text-blue-400" |
|
|
|
|
|
|
|
style={{ borderColor: "#65A9FF" }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
تاریخ تولد: |
|
|
|
تاریخ تولد: |
|
|
|
<span className="mr-1 text-black">{row.birth_day}</span> |
|
|
|
<span className="mr-1 text-black">{row.birth_day}</span> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/* 12 */} |
|
|
|
{/* 12 */} |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div |
|
|
|
<div className="w-1 h-4 ml-1 rounded bg-[#EDF2FB]"></div> |
|
|
|
className="w-1 h-4 ml-1 rounded" |
|
|
|
<p className="text-xs text-blue-400 border-[#65A9FF]"> |
|
|
|
style={{ backgroundColor: "#EDF2FB" }} |
|
|
|
|
|
|
|
></div> |
|
|
|
|
|
|
|
<p |
|
|
|
|
|
|
|
className="text-xs text-blue-400" |
|
|
|
|
|
|
|
style={{ borderColor: "#65A9FF" }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
شغل: |
|
|
|
شغل: |
|
|
|
<span className="mr-1 text-black">{row.job}</span> |
|
|
|
<span className="mr-1 text-black">{row.job}</span> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/* 13 */} |
|
|
|
{/* 13 */} |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div |
|
|
|
<div className="w-1 h-4 ml-1 rounded bg-[#EDF2FB]"></div> |
|
|
|
className="w-1 h-4 ml-1 rounded" |
|
|
|
<p className="text-xs text-blue-400 border-[#65A9FF]"> |
|
|
|
style={{ backgroundColor: "#EDF2FB" }} |
|
|
|
|
|
|
|
></div> |
|
|
|
|
|
|
|
<p |
|
|
|
|
|
|
|
className="text-xs text-blue-400" |
|
|
|
|
|
|
|
style={{ borderColor: "#65A9FF" }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
دانشگاه: |
|
|
|
دانشگاه: |
|
|
|
<span className="mr-1 text-black">{row.uni}</span> |
|
|
|
<span className="mr-1 text-black">{row.uni}</span> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/* 14 */} |
|
|
|
{/* 14 */} |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div |
|
|
|
<div className="w-1 h-4 ml-1 rounded bg-[#EDF2FB]"></div> |
|
|
|
className="w-1 h-4 ml-1 rounded" |
|
|
|
<p className="text-xs text-blue-400 border-[#65A9FF]"> |
|
|
|
style={{ backgroundColor: "#EDF2FB" }} |
|
|
|
|
|
|
|
></div> |
|
|
|
|
|
|
|
<p |
|
|
|
|
|
|
|
className="text-xs text-blue-400" |
|
|
|
|
|
|
|
style={{ borderColor: "#65A9FF" }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
رشته تحصیلی: |
|
|
|
رشته تحصیلی: |
|
|
|
<span className="mr-1 text-black">{row.field_study}</span> |
|
|
|
<span className="mr-1 text-black">{row.field_study}</span> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/* 15 */} |
|
|
|
{/* 15 */} |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div |
|
|
|
<div className="w-1 h-4 ml-1 rounded bg-[#EDF2FB]"></div> |
|
|
|
className="w-1 h-4 ml-1 rounded" |
|
|
|
<p className="text-xs text-blue-400 border-[#65A9FF]"> |
|
|
|
style={{ backgroundColor: "#EDF2FB" }} |
|
|
|
|
|
|
|
></div> |
|
|
|
|
|
|
|
<p |
|
|
|
|
|
|
|
className="text-xs text-blue-400" |
|
|
|
|
|
|
|
style={{ borderColor: "#65A9FF" }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
اخلاق: |
|
|
|
اخلاق: |
|
|
|
<span className="mr-1 text-black">{row.behaviour}</span> |
|
|
|
<span className="mr-1 text-black">{row.behaviour}</span> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/* 16 */} |
|
|
|
{/* 16 */} |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div className="flex flex-row items-center mr-2 my-2"> |
|
|
|
<div |
|
|
|
<div className="w-1 h-4 ml-1 rounded bg-[#EDF2FB]"></div> |
|
|
|
className="w-1 h-4 ml-1 rounded" |
|
|
|
<p className="text-xs text-blue-400 border-[#65A9FF]"> |
|
|
|
style={{ backgroundColor: "#EDF2FB" }} |
|
|
|
|
|
|
|
></div> |
|
|
|
|
|
|
|
<p |
|
|
|
|
|
|
|
className="text-xs text-blue-400" |
|
|
|
|
|
|
|
style={{ borderColor: "#65A9FF" }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
نشانی: |
|
|
|
نشانی: |
|
|
|
<span className="mr-1 text-black">{row.address}</span> |
|
|
|
<span className="mr-1 text-black">{row.address}</span> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/* left */} |
|
|
|
{/* left */} |
|
|
|
<div |
|
|
|
<div className="w-[10%] flex flex-col items-end justify-end"> |
|
|
|
className="flex flex-col items-end justify-end" |
|
|
|
<button className="border border-[#D53921] text-[#D53921] rounded w-8/12 text-xs py-2 mb-2 bg-white"> |
|
|
|
style={{ width: "10%" }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<button |
|
|
|
|
|
|
|
className="border rounded w-8/12 text-xs py-2 mb-2 bg-white" |
|
|
|
|
|
|
|
style={{ borderColor: "#D53921", color: "#D53921" }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
حذف |
|
|
|
حذف |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
<button |
|
|
|
<button |
|
|
|
className="border rounded w-8/12 text-xs py-2 bg-white" |
|
|
|
className="border border-[#65A9FF] text-[#65A9FF] rounded w-8/12 text-xs py-2 bg-white" |
|
|
|
style={{ borderColor: "#65A9FF", color: "#65A9FF" }} |
|
|
|
|
|
|
|
onClick={() => { |
|
|
|
onClick={() => { |
|
|
|
console.log(row.name); |
|
|
|
console.log(row.name); |
|
|
|
addTab({ name: row.name, id: row.id }); |
|
|
|
addTab({ name: row.name, id: row.id }); |
|
|
|