fixed bugs

This commit is contained in:
AmirHossein Mahmoodi
2024-01-13 10:27:01 +03:30
parent fb486a46a8
commit f61448fa59
7 changed files with 23 additions and 38 deletions

View File

@@ -60,7 +60,8 @@
"user-management": "مدیریت کاربر",
"role-management": "مدیریت نقش ها",
"edit-profile": "ویرایش پروفایل",
"loan-history": "کارتابل نظارت"
"loan-history": "کارتابل نظارت",
"loan-history-province": "کارتابل نظارت استانی"
},
"secondary": {
"passenger-office": "توزیع درخواست",

View File

@@ -20,7 +20,7 @@ const PrintFormA = () => {
params.set("filters", '[]');
params.set("sorting", '[]');
requestServer(`${GET_PASSENGER_BOSS}?${params}`, 'get').then((response) => {
const _chunkSize = 10
const _chunkSize = 6
const _data = response.data.data
const chunk = Array.from({length: Math.ceil(_data.length / _chunkSize)}, (v, i) =>
_data.slice(i * _chunkSize, i * _chunkSize + _chunkSize)

View File

@@ -42,69 +42,44 @@ const Content = ({data}) => {
<th colSpan={2} style={{border: '1px solid'}}>میزان تسهیلات مصوب<br/>(میلیارد ریال)</th>
<th colSpan={5} style={{border: '1px solid'}}>وضعیت طرح</th>
<th rowSpan={2} style={{
writingMode: 'vertical-rl',
textOrientation: 'sideways',
transform: 'rotate(180deg)',
border: '1px solid'
transform: "rotate(270deg)", border: '1px solid', width: 75
}}>درصد
پیشرفت<br/>فیزیکی
</th>
<th rowSpan={2} style={{
writingMode: 'vertical-rl',
textOrientation: 'sideways',
transform: 'rotate(180deg)',
border: '1px solid'
transform: "rotate(270deg)", border: '1px solid', width: 75
}}>شهرستان
محل<br/>اجرا
</th>
<th rowSpan={2}
style={{
writingMode: 'vertical-rl',
textOrientation: 'sideways',
transform: 'rotate(180deg)',
border: '1px solid'
transform: "rotate(270deg)", border: '1px solid', width: 75
}}>اشتغال<br/>تعهد شده
(نفر)
</th>
<th rowSpan={2} style={{
writingMode: 'vertical-rl',
textOrientation: 'sideways',
transform: 'rotate(180deg)',
border: '1px solid'
transform: "rotate(270deg)", border: '1px solid', width: 80
}}>پیش بینی
تاریخ<br/>بهره برداری پس<br/>از
اخذ تسهیلات
</th>
<th rowSpan={2} style={{
writingMode: 'vertical-rl',
textOrientation: 'sideways',
transform: 'rotate(180deg)',
border: '1px solid'
transform: "rotate(270deg)", border: '1px solid', width: 55
}}>بانک
عامل
</th>
<th rowSpan={2} style={{
writingMode: 'vertical-rl',
textOrientation: 'sideways',
transform: 'rotate(180deg)',
border: '1px solid'
transform: "rotate(270deg)", border: '1px solid', width: 50
}}>نرخ سود
(درصد)
</th>
<th rowSpan={2} style={{
writingMode: 'vertical-rl',
textOrientation: 'sideways',
transform: 'rotate(180deg)',
border: '1px solid'
transform: "rotate(270deg)", border: '1px solid', width: 55
}}>دوره تنفس
(ماه)
</th>
<th rowSpan={2} style={{
writingMode: 'vertical-rl',
textOrientation: 'sideways',
transform: 'rotate(180deg)',
border: '1px solid'
transform: "rotate(270deg)", border: '1px solid', width: 75
}}>طول
دوره<br/>بازپرداخت (ماه)
</th>

View File

@@ -6,7 +6,7 @@ const Items = ({data}) => {
useEffect(() => {
let arr = []
for (let i = 0; i < 10; i++) {
for (let i = 0; i < 6; i++) {
if (data[i]) {
let _item = {}
_item.name = data[i].name

View File

@@ -38,7 +38,7 @@ const Content = ({data}) => {
<Box
sx={{border: 1, bgcolor: '#f0f0f0'}}>
<Typography fontSize={14} fontWeight={'bold'} sx={{fontFamily: 'Bnazanin'}} textAlign={'center'}>
{`فرم خلاصه اطلاعات تایید شده طرح متقاضی استفاده از تسهیلات موضوع جزء 1 تا 9 بند (الف) تبصره (18) قانون بودجه سال 1402 کل کشور (فرم ب)`}
{`فرم خلاصه اطلاعات تایید شده طرح متقاضی استفاده از تسهیلات موضوع جزء 1 تا 9 بند (الف) تبصره (18) قانون بودجه سال 1401 کل کشور (فرم ب)`}
</Typography>
</Box>
<Box sx={{mt: .5, border: 1, p: 0.5}}>

View File

@@ -44,6 +44,15 @@ const sidebarMenu = [
selected: false,
permission: "view_navgan_loans",
},
{
key: "sidebar.loan-history-province",
name: "loan-history",
type: "page",
route: "/dashboard/loan-history",
icon: <SecurityIcon sx={{width: 'inherit', height: 'inherit'}}/>,
selected: false,
permission: "view_navgan_loans_province",
},
], [
{
key: "sidebar.passenger-office-chief",

View File

@@ -15,7 +15,7 @@ export async function getServerSideProps({req, locale}) {
title: "Dashboard.loan_history",
isBot,
locale,
layout: {name: 'DashboardLayout', props: {permissions: ["view_navgan_loans"]}}
layout: {name: 'DashboardLayout', props: {permissions: ["view_navgan_loans", "view_navgan_loans_province"]}}
},
};
}