Merge branch 'feature/amiriis_prints' into 'develop'
add print form b See merge request witel-front-end/loan-facilities/expert!128
This commit is contained in:
@@ -221,7 +221,7 @@
|
||||
"upload_file_second_required": "وارد کردن فرم ب الزامیست",
|
||||
"upload_file_unit": "فایل بارگذاری شده باید حداکثر 2Mb باشد",
|
||||
"upload_file_format": "فرمت قابل قبول : png,jpg,pdf",
|
||||
"print_final_credit_amount": "چاپ صورت جلسه تعیین مبلغ نهایی",
|
||||
"print_form_b": "چاپ فرم ب",
|
||||
"max_amount": "حداکثر مبلغ تصویب شده {value} میلیون ریال می باشد",
|
||||
"excel_report": "گزارش اکسل",
|
||||
"first_form": "فرم الف را بارگذاری کنید",
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import {Stack} from "@mui/material";
|
||||
import PrintReport from "@/components/dashboard/machinary-office/Buttons/printReport";
|
||||
import PrintExcel from "@/components/dashboard/machinary-office/Buttons/printExcel";
|
||||
|
||||
const TableToolbar = ({table}) => {
|
||||
return (
|
||||
<Stack direction={"row"} spacing={2}>
|
||||
<PrintReport/>
|
||||
{/*<PrintReport/>*/}
|
||||
<PrintExcel table={table}/>
|
||||
</Stack>
|
||||
)
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
import {useTranslations} from "next-intl";
|
||||
import {useRouter} from "next/router";
|
||||
import {useState} from "react";
|
||||
import useRequest from "@/lib/app/hooks/useRequest";
|
||||
import usePrint from "@/lib/app/hooks/usePrint";
|
||||
import {GET_PASSENGER_BOSS} from "@/core/data/apiRoutes";
|
||||
import {Button, CircularProgress} from "@mui/material";
|
||||
import PrintIcon from "@mui/icons-material/Print";
|
||||
|
||||
const PrintFormB = () => {
|
||||
const t = useTranslations();
|
||||
const router = useRouter()
|
||||
const [loading, setLoading] = useState(false)
|
||||
const requestServer = useRequest({auth: true, pending: false, success: {notification: {show: false}}})
|
||||
const {setPrintPage, setPrintTitle} = usePrint()
|
||||
const clickHandler = () => {
|
||||
setLoading(true)
|
||||
const params = new URLSearchParams();
|
||||
params.set("start", '0');
|
||||
params.set("filters", '[]');
|
||||
params.set("sorting", '[]');
|
||||
requestServer(`${GET_PASSENGER_BOSS}?${params}`, 'get').then((response) => {
|
||||
const _data = response.data.data
|
||||
setPrintPage(_data.length)
|
||||
setPrintTitle(t('PassengerBoss.print_form_b'))
|
||||
sessionStorage.setItem('form-b-print', JSON.stringify(_data))
|
||||
router.push('/dashboard/passenger-boss/prints/form-b')
|
||||
}).catch(() => {
|
||||
setLoading(false)
|
||||
})
|
||||
}
|
||||
return (
|
||||
<Button
|
||||
color="primary"
|
||||
variant="contained"
|
||||
size="small"
|
||||
disabled={loading}
|
||||
sx={{textTransform: "unset", alignSelf: "center"}}
|
||||
startIcon={loading ? <CircularProgress size={18} color="inherit"/> : <PrintIcon/>}
|
||||
onClick={clickHandler}
|
||||
>
|
||||
{t("PassengerBoss.print_form_b")}
|
||||
</Button>
|
||||
)
|
||||
}
|
||||
|
||||
export default PrintFormB
|
||||
@@ -0,0 +1,464 @@
|
||||
import PrintablePage from "@/core/components/PrintablePage";
|
||||
import {Box, Stack, Typography} from "@mui/material";
|
||||
|
||||
const Content = ({data}) => {
|
||||
console.log(data)
|
||||
const varables = {
|
||||
name: data.name,
|
||||
national_code: data.national_id,
|
||||
co: '................',
|
||||
shenase_eqh: '................',
|
||||
modiramel: '................',
|
||||
province: data.province_name,
|
||||
city: data.city_name,
|
||||
mahalejra: '................',
|
||||
daftar: '................',
|
||||
post_code: data.postal_code,
|
||||
telephone: data.phone_number,
|
||||
mobile: '................',
|
||||
tarh_name: '................',
|
||||
mojavez_type: '................',
|
||||
mojavez_number: '................',
|
||||
darkhasti_amount: data.proposed_amount,
|
||||
dore_tanafos: '................',
|
||||
avarde_moteghazi: 0,
|
||||
avarde_dastgah: 0,
|
||||
avarde_bank: 0,
|
||||
sarmaye_all: '................',
|
||||
bahrebardari: '................',
|
||||
sarane: '................',
|
||||
kol: '................',
|
||||
tahod_shode: '................',
|
||||
nafar: '................',
|
||||
|
||||
}
|
||||
return (<>
|
||||
<PrintablePage key={data.id} header={false} footer={false} paperSx={{px: 0.5}}>
|
||||
<Box
|
||||
sx={{border: 1, bgcolor: '#f0f0f0'}}>
|
||||
<Typography fontSize={14} fontWeight={'bold'} sx={{fontFamily: 'Bnazanin'}} textAlign={'center'}>
|
||||
{`فرم خلاصه اطلاعات تایید شده طرح متقاضی استفاده از تسهیلات موضوع جزء 1 تا 9 بند (الف) تبصره (18) قانون بودجه سال 1402 کل کشور (فرم ب)`}
|
||||
</Typography>
|
||||
</Box>
|
||||
<Box sx={{mt: .5, border: 1, p: 0.5}}>
|
||||
<Stack direction={'row'} spacing={2}>
|
||||
<Typography sx={{fontFamily: 'Bnazanin'}}>1-</Typography>
|
||||
<Stack sx={{flexGrow: 1, pr: 20}}>
|
||||
<Stack direction={'row'} justifyContent={'space-between'}>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`نام متقاضی: ${varables.name}`}</Typography>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`کد ملی: ${varables.national_code}`}</Typography>
|
||||
</Stack>
|
||||
<Stack direction={'row'} justifyContent={'space-between'}>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`نام شرکت: ${varables.co}`}</Typography>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`شناسه اقتصادی: ${varables.shenase_eqh}`}</Typography>
|
||||
</Stack>
|
||||
<Stack direction={'row'} justifyContent={'space-between'}>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`نام مدیرعامل: ${varables.modiramel}`}</Typography>
|
||||
</Stack>
|
||||
</Stack>
|
||||
</Stack>
|
||||
</Box>
|
||||
<Box sx={{mt: .5, border: 1, p: 0.5}}>
|
||||
<Stack direction={'row'} spacing={2}>
|
||||
<Typography sx={{fontFamily: 'Bnazanin'}}>2-</Typography>
|
||||
<Stack sx={{flexGrow: 1, pr: 20}}>
|
||||
<Typography
|
||||
fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`آدرس: استان: ${varables.province} شهرستان: ${varables.city} محل اجرای طرح: ${varables.mahalejra}`}</Typography>
|
||||
<Stack direction={'row'} justifyContent={'space-between'}>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`محل دفتر: ${varables.daftar}`}</Typography>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`کد پستی: ${varables.post_code}`}</Typography>
|
||||
</Stack>
|
||||
<Typography
|
||||
fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`شماره تماس: ${varables.telephone} شماره همراه: ${varables.mobile}`}</Typography>
|
||||
</Stack>
|
||||
</Stack>
|
||||
</Box>
|
||||
<Box sx={{mt: .5, border: 1}}>
|
||||
<Box sx={{p: 0.5, borderBottom: 1}}>
|
||||
<Stack direction={'row'} spacing={2}>
|
||||
<Typography sx={{fontFamily: 'Bnazanin'}}>3-</Typography>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`عنوان طرح: ${varables.tarh_name}`}</Typography>
|
||||
</Stack>
|
||||
</Box>
|
||||
<Box sx={{p: 0.5, borderBottom: 1}}>
|
||||
<Stack direction={'row'} spacing={2}>
|
||||
<Typography sx={{fontFamily: 'Bnazanin'}}>4-</Typography>
|
||||
<Stack sx={{flexGrow: 1, pr: 20}}>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`توضیح مطابقت طرح با برنامه ملی (شیوه نامه) ابلاغ شده دستگاه و سند آمایش استان: `}</Typography>
|
||||
<Typography fontSize={16}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`مطابق با بند ................................ برنامه دستگاه اجرایی ذیربط می باشد.`}</Typography>
|
||||
<Stack sx={{mt: 1}} direction={'row'} alignItems={'center'} spacing={.5}>
|
||||
<Typography fontSize={18}
|
||||
sx={{
|
||||
fontFamily: 'Bnazanin'
|
||||
}}>{`مطابق با سند آمایش سرزمین و اولویتهای مربوط استان می باشد.`}</Typography>
|
||||
<Box
|
||||
sx={{border: 2, width: 15, height: 15}}></Box>
|
||||
</Stack>
|
||||
</Stack>
|
||||
</Stack>
|
||||
</Box>
|
||||
<Box sx={{p: 0.5, borderBottom: 1}}>
|
||||
<Stack direction={'row'} spacing={2}>
|
||||
<Typography sx={{fontFamily: 'Bnazanin'}}>5-</Typography>
|
||||
<Typography
|
||||
fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`اولویت مورد نظر (بر اساس موارد 5 و 6 دستورالعمل):`}</Typography>
|
||||
</Stack>
|
||||
</Box>
|
||||
<Box sx={{p: 0.5, borderBottom: 1}}>
|
||||
<Stack direction={'row'} spacing={2}>
|
||||
<Typography sx={{fontFamily: 'Bnazanin'}}>6-</Typography>
|
||||
<Typography
|
||||
fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`زمینه فعالیت در بخش اقتصادی: حمل و نقل زیر بخش اقتصادی: ناوگان مسافری دستگاه اجرایی ذیربط: سازمان راهداری و حمل و نقل جاده ای`}</Typography>
|
||||
</Stack>
|
||||
</Box>
|
||||
<Box sx={{p: 0.5, borderBottom: 1}}>
|
||||
<Stack direction={'row'} spacing={2}>
|
||||
<Typography sx={{fontFamily: 'Bnazanin'}}>7-</Typography>
|
||||
<Stack sx={{flexGrow: 1, pr: 20}}>
|
||||
<Stack direction={'row'} justifyContent={'space-between'}>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`نوع مجوز: ${varables.mojavez_type}`}</Typography>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`شماره و تاریخ مجوز: ${varables.mojavez_number}`}</Typography>
|
||||
</Stack>
|
||||
</Stack>
|
||||
</Stack>
|
||||
</Box>
|
||||
<Box sx={{p: 0.5, borderBottom: 1}}>
|
||||
<Stack direction={'row'} spacing={2}>
|
||||
<Typography sx={{fontFamily: 'Bnazanin'}}>8-</Typography>
|
||||
<Typography
|
||||
fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`نوع تسهیلات:`}</Typography>
|
||||
<Stack sx={{mt: 1}} direction={'row'} alignItems={'center'} spacing={.5}>
|
||||
<Typography
|
||||
fontSize={18}
|
||||
sx={{
|
||||
fontFamily: 'Bnazanin'
|
||||
}}>{`در گردش`}</Typography>
|
||||
<Box
|
||||
sx={{border: 2, width: 15, height: 15}}></Box>
|
||||
</Stack>
|
||||
<Stack sx={{mt: 1}} direction={'row'} alignItems={'center'} spacing={.5}>
|
||||
<Typography
|
||||
fontSize={18}
|
||||
sx={{
|
||||
fontFamily: 'Bnazanin'
|
||||
}}>{`ثابت`}</Typography>
|
||||
<Box
|
||||
sx={{border: 2, width: 15, height: 15}}></Box>
|
||||
</Stack>
|
||||
</Stack>
|
||||
</Box>
|
||||
<Box sx={{p: 0.5, borderBottom: 1}}>
|
||||
<Stack direction={'row'} spacing={2}>
|
||||
<Typography sx={{fontFamily: 'Bnazanin'}}>9-</Typography>
|
||||
<Stack sx={{flexGrow: 1, pr: 20}}>
|
||||
|
||||
<Typography
|
||||
fontSize={18}
|
||||
sx={{
|
||||
fontFamily: 'Bnazanin'
|
||||
}}>{`میزان تسهیلات درخواستی (میلیون ریال): ${varables.darkhasti_amount} در گردش`}</Typography>
|
||||
<Typography
|
||||
fontSize={18}
|
||||
sx={{
|
||||
fontFamily: 'Bnazanin'
|
||||
}}>{`ثابت`}</Typography>
|
||||
</Stack>
|
||||
</Stack>
|
||||
</Box>
|
||||
<Box sx={{p: 0.5, borderBottom: 1}}>
|
||||
<Stack direction={'row'} spacing={2}>
|
||||
<Typography sx={{fontFamily: 'Bnazanin'}}>10-</Typography>
|
||||
<Stack sx={{flexGrow: 1, pr: 5}}>
|
||||
<Stack direction={'row'} justifyContent={'space-between'}>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`نام بانک عامل: صندوق کارآفرینی امید`}</Typography>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`نرخ سود (درصد): 15/3%`}</Typography>
|
||||
<Stack direction={'row'} spacing={1}>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`یارانه سود:`}</Typography>
|
||||
<Stack direction={'row'} alignItems={'center'} spacing={.5}>
|
||||
<Typography
|
||||
fontSize={18}
|
||||
sx={{
|
||||
fontFamily: 'Bnazanin'
|
||||
}}>{`دارد`}</Typography>
|
||||
<Box
|
||||
sx={{border: 2, width: 15, height: 15}}></Box>
|
||||
</Stack>
|
||||
<Stack direction={'row'} alignItems={'center'} spacing={.5}>
|
||||
<Typography
|
||||
fontSize={18}
|
||||
sx={{
|
||||
fontFamily: 'Bnazanin'
|
||||
}}>{`ندارد`}</Typography>
|
||||
<Box
|
||||
sx={{border: 2, width: 15, height: 15}}></Box>
|
||||
</Stack>
|
||||
</Stack>
|
||||
</Stack>
|
||||
<Stack direction={'row'} justifyContent={'space-between'}>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`دوره تنفس (ماه): ${varables.dore_tanafos}`}</Typography>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`دوره مشارکت (ماه): ..........`}</Typography>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`دوره بازپرداخت (ماه): 60`}</Typography>
|
||||
</Stack>
|
||||
</Stack>
|
||||
</Stack>
|
||||
</Box>
|
||||
<Box sx={{p: 0.5, borderBottom: 1}}>
|
||||
<Stack direction={'row'} spacing={2}>
|
||||
<Typography sx={{fontFamily: 'Bnazanin'}}>11-</Typography>
|
||||
<Typography fontSize={18} sx={{fontFamily: 'Bnazanin'}}>آورده</Typography>
|
||||
<table style={{
|
||||
textAlign: 'center',
|
||||
flexGrow: '1', fontFamily: 'Bnazanin', borderCollapse: 'collapse', border: '1px solid'
|
||||
}}>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style={{border: '1px solid'}} rowSpan={2}>میزان آورده (میلیون ریال)</td>
|
||||
<td style={{border: '1px solid'}}>متقاضی</td>
|
||||
<td style={{border: '1px solid'}}>دستگاه</td>
|
||||
<td style={{border: '1px solid'}}>بانک عامل</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style={{border: '1px solid'}}>{varables.avarde_moteghazi}</td>
|
||||
<td style={{border: '1px solid'}}>{varables.avarde_dastgah}</td>
|
||||
<td style={{border: '1px solid'}}>{varables.avarde_bank}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</Stack>
|
||||
</Box>
|
||||
<Box sx={{p: 0.5, borderBottom: 1}}>
|
||||
<Stack direction={'row'} spacing={2}>
|
||||
<Typography sx={{fontFamily: 'Bnazanin'}}>12-</Typography>
|
||||
<Typography fontSize={18} sx={{fontFamily: 'Bnazanin'}}>وضعیت طرح</Typography>
|
||||
<Stack sx={{flexGrow: 1, pr: 8}} direction={'row'} justifyContent={'space-between'}>
|
||||
<Stack direction={'row'} alignItems={'center'} spacing={.5}>
|
||||
<Typography
|
||||
fontSize={18}
|
||||
sx={{
|
||||
fontFamily: 'Bnazanin'
|
||||
}}>{`جدید`}</Typography>
|
||||
<Box
|
||||
sx={{border: 2, width: 15, height: 15}}></Box>
|
||||
</Stack>
|
||||
<Stack direction={'row'} alignItems={'center'} spacing={.5}>
|
||||
<Typography
|
||||
fontSize={18}
|
||||
sx={{
|
||||
fontFamily: 'Bnazanin'
|
||||
}}>{`توسعه ای`}</Typography>
|
||||
<Box
|
||||
sx={{border: 2, width: 15, height: 15}}></Box>
|
||||
</Stack>
|
||||
<Stack direction={'row'} alignItems={'center'} spacing={.5}>
|
||||
<Typography
|
||||
fontSize={18}
|
||||
sx={{
|
||||
fontFamily: 'Bnazanin'
|
||||
}}>{`فعال`}</Typography>
|
||||
<Box
|
||||
sx={{border: 2, width: 15, height: 15}}></Box>
|
||||
</Stack>
|
||||
<Stack direction={'row'} alignItems={'center'} spacing={.5}>
|
||||
<Typography
|
||||
fontSize={18}
|
||||
sx={{
|
||||
fontFamily: 'Bnazanin'
|
||||
}}>{`نیمه تمام`}</Typography>
|
||||
<Box
|
||||
sx={{border: 2, bgcolor: '#000', width: 15, height: 15}}></Box>
|
||||
</Stack>
|
||||
<Stack direction={'row'} alignItems={'center'} spacing={.5}>
|
||||
<Typography
|
||||
fontSize={18}
|
||||
sx={{
|
||||
fontFamily: 'Bnazanin'
|
||||
}}>{`راکد`}</Typography>
|
||||
<Box
|
||||
sx={{border: 2, width: 15, height: 15}}></Box>
|
||||
</Stack>
|
||||
</Stack>
|
||||
</Stack>
|
||||
</Box>
|
||||
<Box sx={{p: 0.5, borderBottom: 1}}>
|
||||
<Stack direction={'row'} spacing={2}>
|
||||
<Typography sx={{fontFamily: 'Bnazanin'}}>13-</Typography>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`میزان پیشرفت فیزیکی طرح قبل از درخواست تسهیلات:`}</Typography>
|
||||
</Stack>
|
||||
</Box>
|
||||
<Box sx={{p: 0.5, borderBottom: 1}}>
|
||||
<Stack direction={'row'} spacing={2}>
|
||||
<Typography sx={{fontFamily: 'Bnazanin'}}>14-</Typography>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`پیش بینی تاریخ بهره برداری:`}</Typography>
|
||||
</Stack>
|
||||
</Box>
|
||||
<Box sx={{p: 0.5, borderBottom: 1}}>
|
||||
<Stack direction={'row'} spacing={2}>
|
||||
<Typography sx={{fontFamily: 'Bnazanin'}}>15-</Typography>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`میزان سرمایه گذاری (میلیون ریال): کل ${varables.sarmaye_all} برآورد منابع مالی مورد نیاز جهت بهره برداری پروژه: ${varables.bahrebardari}`}</Typography>
|
||||
</Stack>
|
||||
</Box>
|
||||
<Box sx={{p: 0.5, borderBottom: 1}}>
|
||||
<Stack direction={'row'} spacing={2}>
|
||||
<Typography sx={{fontFamily: 'Bnazanin'}}>16-</Typography>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`سابقه استفاده از تسهیلات تکلیفی بر اساس خود اظهاری متقاضی:`}</Typography>
|
||||
<Stack direction={'row'} alignItems={'center'} spacing={.5}>
|
||||
<Typography
|
||||
fontSize={18}
|
||||
sx={{
|
||||
fontFamily: 'Bnazanin'
|
||||
}}>{`دارد`}</Typography>
|
||||
<Box
|
||||
sx={{border: 2, width: 15, height: 15}}></Box>
|
||||
</Stack>
|
||||
<Stack direction={'row'} alignItems={'center'} spacing={.5}>
|
||||
<Typography
|
||||
fontSize={18}
|
||||
sx={{
|
||||
fontFamily: 'Bnazanin'
|
||||
}}>{`ندارد`}</Typography>
|
||||
<Box
|
||||
sx={{border: 2, width: 15, height: 15}}></Box>
|
||||
</Stack>
|
||||
</Stack>
|
||||
</Box>
|
||||
<Box sx={{p: 0.5, borderBottom: 1}}>
|
||||
<Stack direction={'row'} spacing={2}>
|
||||
<Stack>
|
||||
<Stack direction={'row'} spacing={1}>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`وضعیت بدهی ها بر اساس خود اظهاری متقاضی: مطالبات بانکی معقول:`}</Typography>
|
||||
<Stack direction={'row'} alignItems={'center'} spacing={.5}>
|
||||
<Typography
|
||||
fontSize={18}
|
||||
sx={{
|
||||
fontFamily: 'Bnazanin'
|
||||
}}>{`دارد`}</Typography>
|
||||
<Box
|
||||
sx={{border: 2, width: 15, height: 15}}></Box>
|
||||
</Stack>
|
||||
<Stack direction={'row'} alignItems={'center'} spacing={.5}>
|
||||
<Typography
|
||||
fontSize={18}
|
||||
sx={{
|
||||
fontFamily: 'Bnazanin'
|
||||
}}>{`ندارد`}</Typography>
|
||||
<Box
|
||||
sx={{border: 2, width: 15, height: 15}}></Box>
|
||||
</Stack>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`بدهی مالیاتی:`}</Typography>
|
||||
<Stack direction={'row'} alignItems={'center'} spacing={.5}>
|
||||
<Typography
|
||||
fontSize={18}
|
||||
sx={{
|
||||
fontFamily: 'Bnazanin'
|
||||
}}>{`دارد`}</Typography>
|
||||
<Box
|
||||
sx={{border: 2, width: 15, height: 15}}></Box>
|
||||
</Stack>
|
||||
<Stack direction={'row'} alignItems={'center'} spacing={.5}>
|
||||
<Typography
|
||||
fontSize={18}
|
||||
sx={{
|
||||
fontFamily: 'Bnazanin'
|
||||
}}>{`ندارد`}</Typography>
|
||||
<Box
|
||||
sx={{border: 2, width: 15, height: 15}}></Box>
|
||||
</Stack>
|
||||
</Stack>
|
||||
<Stack direction={'row'} spacing={1}>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`چک برگشتی`}</Typography>
|
||||
<Stack direction={'row'} alignItems={'center'} spacing={.5}>
|
||||
<Typography
|
||||
fontSize={18}
|
||||
sx={{
|
||||
fontFamily: 'Bnazanin'
|
||||
}}>{`دارد`}</Typography>
|
||||
<Box
|
||||
sx={{border: 2, width: 15, height: 15}}></Box>
|
||||
</Stack>
|
||||
<Stack direction={'row'} alignItems={'center'} spacing={.5}>
|
||||
<Typography
|
||||
fontSize={18}
|
||||
sx={{
|
||||
fontFamily: 'Bnazanin'
|
||||
}}>{`ندارد`}</Typography>
|
||||
<Box
|
||||
sx={{border: 2, width: 15, height: 15}}></Box>
|
||||
</Stack>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`وثیقه (به جز طرح):`}</Typography>
|
||||
<Stack direction={'row'} alignItems={'center'} spacing={.5}>
|
||||
<Typography
|
||||
fontSize={18}
|
||||
sx={{
|
||||
fontFamily: 'Bnazanin'
|
||||
}}>{`دارد`}</Typography>
|
||||
<Box
|
||||
sx={{border: 2, width: 15, height: 15}}></Box>
|
||||
</Stack>
|
||||
<Stack direction={'row'} alignItems={'center'} spacing={.5}>
|
||||
<Typography
|
||||
fontSize={18}
|
||||
sx={{
|
||||
fontFamily: 'Bnazanin'
|
||||
}}>{`ندارد`}</Typography>
|
||||
<Box
|
||||
sx={{border: 2, width: 15, height: 15}}></Box>
|
||||
</Stack>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>نوع وثیقه: ..............</Typography>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>بانک عامل دارای حساب:
|
||||
..................</Typography>
|
||||
</Stack>
|
||||
</Stack>
|
||||
</Stack>
|
||||
</Box>
|
||||
<Box sx={{p: 0.5, borderBottom: 1}}>
|
||||
<Stack direction={'row'} spacing={2}>
|
||||
<Typography sx={{fontFamily: 'Bnazanin'}}>17-</Typography>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>اشتغال (نفر):</Typography>
|
||||
<Typography fontSize={18}
|
||||
sx={{fontFamily: 'Bnazanin'}}>{`موجود: ${varables.nafar} تعهد شده: ${varables.tahod_shode} کل: ${varables.kol} هزینه سرانه ایجاد اشتغال: ${varables.sarane}`}</Typography>
|
||||
</Stack>
|
||||
<Typography fontSize={13}
|
||||
sx={{fontFamily: 'Bnazanin'}}>توجه: متغاضی استفاده از تسهیلات محقق اشتغال پیش بینی شده
|
||||
را متعهد شده و پس از دریافت تسهیلات اشتغال (با تایید بیمه تامین اجتماعی) صورت می
|
||||
پذیرد.</Typography>
|
||||
</Box>
|
||||
</Box>
|
||||
</PrintablePage>
|
||||
</>)
|
||||
}
|
||||
|
||||
export default Content
|
||||
@@ -0,0 +1,60 @@
|
||||
import {useTranslations} from "next-intl";
|
||||
import {useEffect, useState} from "react";
|
||||
import {Stack, Typography} from "@mui/material";
|
||||
import CenterLayout from "@/layouts/CenterLayout";
|
||||
import Content from "@/components/dashboard/passenger-boss/Prints/form-b/Content";
|
||||
|
||||
const FormBComponent = () => {
|
||||
const t = useTranslations()
|
||||
const [data, setData] = useState(null)
|
||||
const [loading, setLoading] = useState(true)
|
||||
const [isNotData, setIsNotData] = useState(true)
|
||||
|
||||
useEffect(() => {
|
||||
if (sessionStorage.getItem('form-b-print') === null) {
|
||||
setLoading(false)
|
||||
setIsNotData(true)
|
||||
sessionStorage.setItem('form-b-print', 'seen')
|
||||
} else if (sessionStorage.getItem('form-b-print') === 'seen') {
|
||||
setLoading(false)
|
||||
setData(null)
|
||||
setIsNotData(true)
|
||||
} else if (data) {
|
||||
setLoading(false)
|
||||
sessionStorage.setItem('form-b-print', 'seen')
|
||||
setIsNotData(false)
|
||||
} else {
|
||||
setLoading(true)
|
||||
setData(JSON.parse(sessionStorage.getItem('form-b-print')))
|
||||
setIsNotData(true)
|
||||
}
|
||||
}, [data]);
|
||||
|
||||
return (
|
||||
<Stack sx={{bgcolor: '#efefef', width: isNotData ? '100%' : 'auto', height: isNotData ? '100%' : 'auto'}}>
|
||||
{loading ? (
|
||||
<CenterLayout>
|
||||
<Stack>
|
||||
<Typography variant={'h5'}>
|
||||
{t('print_loading')}
|
||||
</Typography>
|
||||
</Stack>
|
||||
</CenterLayout>
|
||||
) : !data ? (
|
||||
<CenterLayout>
|
||||
<Typography variant={'h5'}>
|
||||
{t('data_not_found')}
|
||||
</Typography>
|
||||
</CenterLayout>
|
||||
) : !data.length ? (
|
||||
<CenterLayout>
|
||||
<Typography variant={'h5'}>
|
||||
{t('data_not_found')}
|
||||
</Typography>
|
||||
</CenterLayout>
|
||||
) : data.map(item => <Content key={item.id} data={item}/>)}
|
||||
</Stack>
|
||||
)
|
||||
}
|
||||
|
||||
export default FormBComponent
|
||||
@@ -1,11 +1,12 @@
|
||||
import {Stack} from "@mui/material";
|
||||
import PrintFinalCreditAmount from "@/components/dashboard/passenger-boss/Buttons/printFinalCreditAmount";
|
||||
import PrintExcel from "@/components/dashboard/passenger-boss/Buttons/printExcel";
|
||||
import PrintFormB from "@/components/dashboard/passenger-boss/Buttons/printFormB";
|
||||
|
||||
const TableToolbar = ({table}) => {
|
||||
return (
|
||||
<Stack direction={"row"} spacing={2}>
|
||||
<PrintFinalCreditAmount/>
|
||||
{/*<PrintFinalCreditAmount/>*/}
|
||||
<PrintFormB/>
|
||||
<PrintExcel table={table}/>
|
||||
</Stack>
|
||||
)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {Box, Container, Divider, Grid, Paper, Stack, Typography} from '@mui/material';
|
||||
|
||||
const PrintablePage = ({children, header, footer}) => (
|
||||
const PrintablePage = ({children, header, footer, paperSx = {}}) => (
|
||||
<>
|
||||
<Box sx={{width: "100%", height: 8, displayPrint: 'none'}}/>
|
||||
<Container
|
||||
@@ -38,7 +38,7 @@ const PrintablePage = ({children, header, footer}) => (
|
||||
</Stack>
|
||||
</Grid>
|
||||
</Grid>
|
||||
<Paper elevation={0} sx={{px: 8}}>
|
||||
<Paper elevation={0} sx={{px: 8, ...paperSx}}>
|
||||
{children}
|
||||
</Paper>
|
||||
<Box sx={{
|
||||
|
||||
21
src/pages/dashboard/passenger-boss/prints/form-b.jsx
Normal file
21
src/pages/dashboard/passenger-boss/prints/form-b.jsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import {parse} from "next-useragent";
|
||||
import FormBComponent from "@/components/dashboard/passenger-boss/Prints/form-b";
|
||||
|
||||
export default function FormB() {
|
||||
return (
|
||||
<FormBComponent/>
|
||||
)
|
||||
}
|
||||
|
||||
export async function getServerSideProps({req, locale}) {
|
||||
const {isBot} = parse(req.headers["user-agent"]);
|
||||
return {
|
||||
props: {
|
||||
messages: (await import(`&/locales/${locale}/app.json`)).default,
|
||||
title: "Dashboard.passenger_boss_page",
|
||||
isBot,
|
||||
locale,
|
||||
layout: {name: 'PrintLayout'}
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user