From 915dc67e1ce31eab1f2415cc8df95cebb75a137d Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Fri, 13 Dec 2024 14:18:03 +0700 Subject: update pengajuan tempo request --- .../register/stores/usePengajuanTempoStore.ts | 32 +- src-migrate/validations/tempo.ts | 37 +- src/lib/auth/components/CompanyProfile.jsx | 30 + src/lib/pengajuan-tempo/component/Dokumen.jsx | 664 +++++++++++----- .../component/KonfirmasiDokumen.jsx | 855 +++++++++++++++------ .../pengajuan-tempo/component/KontakPerusahaan.jsx | 2 +- .../pengajuan-tempo/component/PengajuanTempo.jsx | 23 +- src/lib/pengajuan-tempo/component/Pengiriman.jsx | 733 ++++++++++++++---- src/lib/pengajuan-tempo/component/Referensi.jsx | 64 +- .../component/informasiPerusahaan.jsx | 382 ++++++--- src/lib/tempo/components/Tempo.jsx | 50 +- 11 files changed, 2171 insertions(+), 701 deletions(-) diff --git a/src-migrate/modules/register/stores/usePengajuanTempoStore.ts b/src-migrate/modules/register/stores/usePengajuanTempoStore.ts index 48d789cd..1e086c06 100644 --- a/src-migrate/modules/register/stores/usePengajuanTempoStore.ts +++ b/src-migrate/modules/register/stores/usePengajuanTempoStore.ts @@ -42,6 +42,8 @@ export const usePengajuanTempoStore = create((set, get) => ({ street: '', state: '', city: '', + district: '', + subDistrict: '', zip: '', mobile: '', bankName: '', @@ -50,6 +52,7 @@ export const usePengajuanTempoStore = create((set, get) => ({ estimasi: '', tempoDuration: '', bersedia: '', + portal: '', website: '', categoryProduk: '', tempoLimit: '', @@ -91,6 +94,8 @@ export const usePengajuanTempoStore = create((set, get) => ({ street: '', state: '', city: '', + district: '', + subDistrict: '', zip: '', mobile: '', bankName: '', @@ -100,6 +105,7 @@ export const usePengajuanTempoStore = create((set, get) => ({ estimasi: '', tempoDuration: '', bersedia: '', + portal: '', categoryProduk: '', }, }), @@ -177,6 +183,8 @@ export const usePengajuanTempoStorePengiriman = create< streetPengiriman: '', statePengiriman: '', cityPengiriman: '', + districtPengiriman: '', + subDistrictPengiriman: '', zipPengiriman: '', invoicePicTittle: '', invoicePic: '', @@ -185,10 +193,14 @@ export const usePengajuanTempoStorePengiriman = create< streetInvoice: '', stateInvoice: '', cityInvoice: '', + districtInvoice: '', + subDistrictInvoice: '', + zipInvoice: '', tukarInvoiceInput: '', tukarInvoiceInputPembayaran: '', dokumenPengiriman: '', dokumenPengirimanInput: '', + dokumenKirimInput: '', dokumenPengirimanInvoice: '', }, updateFormPengiriman: (name, value) => @@ -229,7 +241,6 @@ type ActionDokumen = { ) => void; validateDokumen: () => void; - resetFormDokumen: () => void; getJumlahDokumenDiisi: () => void; }; export const usePengajuanTempoStoreDokumen = create< @@ -239,6 +250,10 @@ export const usePengajuanTempoStoreDokumen = create< dokumenNib: { name: '', format: '', base64: '' }, dokumenNpwp: { name: '', format: '', base64: '' }, dokumenSppkp: { name: '', format: '', base64: '' }, + dokumenSiup: { name: '', format: '', base64: '' }, + dokumenTdp: { name: '', format: '', base64: '' }, + dokumenSkdp: { name: '', format: '', base64: '' }, + dokumenSkt: { name: '', format: '', base64: '' }, dokumenAktaPerubahan: { name: '', format: '', base64: '' }, dokumenKtpDirut: { name: '', format: '', base64: '' }, dokumenAktaPendirian: { name: '', format: '', base64: '' }, @@ -285,21 +300,6 @@ export const usePengajuanTempoStoreDokumen = create< ).length; return jumlahTerisi; }, - - resetFormDokumen: () => - set({ - formDokumen: { - dokumenNib: { name: '', format: '', base64: '' }, - dokumenNpwp: { name: '', format: '', base64: '' }, - dokumenSppkp: { name: '', format: '', base64: '' }, - dokumenAktaPerubahan: { name: '', format: '', base64: '' }, - dokumenKtpDirut: { name: '', format: '', base64: '' }, - dokumenAktaPendirian: { name: '', format: '', base64: '' }, - dokumenLaporanKeuangan: { name: '', format: '', base64: '' }, - dokumenFotoKantor: { name: '', format: '', base64: '' }, - dokumenTempatBekerja: { name: '', format: '', base64: '' }, - }, - }), })); type StateSupplier = { diff --git a/src-migrate/validations/tempo.ts b/src-migrate/validations/tempo.ts index 646e9b4d..bc3a1d28 100644 --- a/src-migrate/validations/tempo.ts +++ b/src-migrate/validations/tempo.ts @@ -7,6 +7,8 @@ export const TempoSchema = z.object({ zip: z.string().min(1, { message: 'Kode pos harus diisi' }), state: z.string().min(1, { message: 'Provinsi harus dipilih' }), city: z.string().min(1, { message: 'Kota harus dipilih' }), + district: z.string().min(1, { message: 'Kecamatan harus dipilih' }), + subDistrict: z.string().min(1, { message: 'Kelurahan harus dipilih' }), mobile: z .string() .min(1, { message: 'Nomor telepon harus diisi' }) @@ -25,6 +27,7 @@ export const TempoSchema = z.object({ website: z.string().optional(), tempoDuration: z.string().min(1, { message: 'Durasi tempo harus dipilih' }), bersedia: z.string().min(1, { message: 'Harus dipilih' }), + portal: z.string().min(1, { message: 'Harus dipilih' }), categoryProduk: z .string() .min(1, { message: 'Category produk harus dipilih' }), @@ -69,6 +72,10 @@ export const TempoSchemaPengiriman = z.object({ streetPengiriman: z.string().min(1, { message: 'Alamat harus diisi' }), statePengiriman: z.string().min(1, { message: 'Provinsi harus dipilih' }), cityPengiriman: z.string().min(1, { message: 'Kota harus dipilih' }), + districtPengiriman: z.string().min(1, { message: 'Kecamatan harus dipilih' }), + subDistrictPengiriman: z + .string() + .min(1, { message: 'Kelurahan harus dipilih' }), zipPengiriman: z.string().min(1, { message: 'Kode pos harus diisi' }), invoicePicTittle: z.string().min(1, { message: 'Tittle harus dipilih' }), invoicePic: z.string().min(1, { message: 'Nama pic invoice harus diisi' }), @@ -76,13 +83,21 @@ export const TempoSchemaPengiriman = z.object({ stateInvoice: z .string() .min(1, { message: 'Provinsi invoice harus dipilih' }), + cityInvoice: z.string().min(1, { message: 'Kota invoice harus dipilih' }), + districtInvoice: z + .string() + .min(1, { message: 'Kecamatan invoice harus dipilih' }), + subDistrictInvoice: z + .string() + .min(1, { message: 'Kelurahan invoice harus dipilih' }), + zipInvoice: z.string().min(1, { message: 'Kode pos harus diisi' }), isSameAddrees: z.string(), isSameAddreesStreet: z.string(), - cityInvoice: z.string().min(1, { message: 'Kota invoice harus dipilih' }), tukarInvoiceInput: z.string().optional(), tukarInvoiceInputPembayaran: z.string().optional(), dokumenPengiriman: z.string().optional(), dokumenPengirimanInput: z.string().optional(), + dokumenKirimInput: z.string().optional(), dokumenPengirimanInvoiceInput: z.string().optional(), }); export const TempoSchemaSupplier = z.object({ @@ -113,6 +128,26 @@ export const TempoSchemaDokumen = z.object({ format: z.string().optional(), base64: z.string().optional(), }), + dokumenSiup: z.object({ + name: z.string().optional(), + format: z.string().optional(), + base64: z.string().optional(), + }), + dokumenTdp: z.object({ + name: z.string().optional(), + format: z.string().optional(), + base64: z.string().optional(), + }), + dokumenSkdp: z.object({ + name: z.string().optional(), + format: z.string().optional(), + base64: z.string().optional(), + }), + dokumenSkt: z.object({ + name: z.string().optional(), + format: z.string().optional(), + base64: z.string().optional(), + }), dokumenAktaPerubahan: z.object({ name: z.string().optional(), format: z.string().optional(), diff --git a/src/lib/auth/components/CompanyProfile.jsx b/src/lib/auth/components/CompanyProfile.jsx index 7bda992f..220d5be1 100644 --- a/src/lib/auth/components/CompanyProfile.jsx +++ b/src/lib/auth/components/CompanyProfile.jsx @@ -61,6 +61,8 @@ const CompanyProfile = () => { setValue('npwp', dataProfile.npwp); setValue('alamat_wajib_pajak', dataProfile.alamatWajibPajak); setValue('alamat_bisnis', dataProfile.alamatBisnis); + setValue('email_bisnis', dataProfile.email); + setValue('mobile_bisnis', dataProfile.mobile); }; if (auth) loadProfile(); }, [auth, setValue]); @@ -75,6 +77,8 @@ const CompanyProfile = () => { tax_name: values.taxName, alamat_lengkap_text: values.alamat_wajib_pajak, street: values.alamat_bisnis, + email: values.email_bisnis, + mobile: values.mobile_bisnis, }; const isUpdated = await odooApi( 'PUT', @@ -198,6 +202,28 @@ const CompanyProfile = () => { {errors.taxName?.message} +
+ + +
+ {errors.email_bisnis?.message} +
+
+
+ + +
+ {errors.mobile_bisnis?.message} +
+
{
+
+
+ + + Format: pdf, jpeg, jpg, png. max file size 2MB + +
+
+
+ + + + {formDokumen?.dokumenNpwp?.name} + +
+ {chekValid && ( +
+ {errorsDokumen.dokumenNpwp} +
+ )} +
+
+ +
+
+ + + Format: pdf, jpeg, jpg, png. max file size 2MB + +
+
+
+ + + + {formDokumen?.dokumenSppkp?.name} + +
+ + {chekValid && ( +
+ {errorsDokumen.dokumenSppkp} +
+ )} +
+
+
@@ -201,7 +289,7 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { onChange={handleInputChange} accept='.pdf,.png,.jpg,.jpeg' /> - + {formDokumen?.dokumenNib?.name}
@@ -212,56 +300,53 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { )}
-
+ +
Format: pdf, jpeg, jpg, png. max file size 2MB
-
+
- - {formDokumen?.dokumenNpwp?.name} + + {formDokumen?.dokumenSiup?.name}
{chekValid && (
- {errorsDokumen.dokumenNpwp} + {errorsDokumen.dokumenSiup}
)}
-
+ +
- + Format: pdf, jpeg, jpg, png. max file size 2MB @@ -269,43 +354,39 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => {
- - {formDokumen?.dokumenSppkp?.name} + + {formDokumen?.dokumenTdp?.name}
- {chekValid && (
- {errorsDokumen.dokumenSppkp} + {errorsDokumen.dokumenTdp}
)}
-
+ +
Format: pdf, jpeg, jpg, png. max file size 2MB @@ -314,43 +395,39 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => {
- - {formDokumen?.dokumenAktaPerubahan?.name} + + {formDokumen?.dokumenSkdp?.name}
{chekValid && (
- {errorsDokumen.dokumenAktaPerubahan} + {errorsDokumen.dokumenSkdp}
)}
-
+ +
Format: pdf, jpeg, jpg, png. max file size 2MB @@ -359,31 +436,30 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => {
- - {formDokumen?.dokumenKtpDirut?.name} + + {formDokumen?.dokumenSkt?.name}
- {chekValid && (
- {errorsDokumen.dokumenKtpDirut} + {errorsDokumen.dokumenSkt}
)}
@@ -425,7 +501,7 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { onChange={handleInputChange} accept='.pdf,.png,.jpg,.jpeg' /> - + {formDokumen?.dokumenAktaPendirian?.name}
@@ -437,14 +513,15 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { )}
+
Format: pdf, jpeg, jpg, png. max file size 2MB @@ -453,35 +530,80 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => {
- - {formDokumen?.dokumenLaporanKeuangan?.name} + + {formDokumen?.dokumenAktaPerubahan?.name} + +
+ {chekValid && ( +
+ {errorsDokumen.dokumenAktaPerubahan} +
+ )} +
+
+ +
+
+ + + Format: pdf, jpeg, jpg, png. max file size 2MB + +
+
+
+ + + + {formDokumen?.dokumenTempatBekerja?.name}
{chekValid && (
- {errorsDokumen.dokumenLaporanKeuangan} + {errorsDokumen.dokumenTempatBekerja}
)}
+
{ onChange={handleInputChange} accept='.pdf,.png,.jpg,.jpeg' /> - + {formDokumen?.dokumenFotoKantor?.name}
@@ -526,13 +648,16 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { )}
+
Format: pdf, jpeg, jpg, png. max file size 2MB @@ -541,35 +666,81 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => {
+ + {formDokumen?.dokumenKtpDirut?.name} + +
+ + {chekValid && ( +
+ {errorsDokumen.dokumenKtpDirut} +
+ )} +
+
+
+
+ + + Format: pdf, jpeg, jpg, png. max file size 2MB + +
+
+
+ + - - {formDokumen?.dokumenTempatBekerja?.name} + + {formDokumen?.dokumenLaporanKeuangan?.name}
{chekValid && (
- {errorsDokumen.dokumenTempatBekerja} + {errorsDokumen.dokumenLaporanKeuangan}
)}
+
@@ -583,11 +754,11 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => {

Upload Progress

- {parseInt((getJumlahDokumenDiisi() / 9) * 100)} % + {parseInt((getJumlahDokumenDiisi() / 13) * 100)} % - {getJumlahDokumenDiisi() >= 4 - ? getJumlahDokumenDiisi() == 9 + {getJumlahDokumenDiisi() >= 5 + ? getJumlahDokumenDiisi() == 13 ? 'Selesai' : 'Sedikit Lagi' : ''} @@ -603,7 +774,7 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { baseBgColor='#E5E7EB' labelColor='#e80909' labelSize='0' - maxCompleted={9} + maxCompleted={13} height='14px' /> @@ -624,9 +795,82 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => {

+
+ +
+ + + + {formDokumen?.dokumenNpwp?.name} + +
+ + Format: pdf, jpeg, jpg, png. max file size 2MB + + {chekValid && ( +
+ {errorsDokumen.dokumenNpwp} +
+ )} +
+ +
+ +
+ + + + {formDokumen?.dokumenSppkp?.name} + +
+ + Format: pdf, jpeg, jpg, png. max file size 2MB + + {chekValid && ( +
+ {errorsDokumen.dokumenSppkp} +
+ )} +
@@ -649,7 +893,7 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { onChange={handleInputChange} accept='.pdf,.png,.jpg,.jpeg' /> - + {formDokumen?.dokumenNib?.name}
@@ -663,32 +907,32 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { )}
-
+
- - {formDokumen?.dokumenNpwp?.name} + + {formDokumen?.dokumenSiup?.name}
@@ -696,35 +940,37 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { {chekValid && (
- {errorsDokumen.dokumenNpwp} + {errorsDokumen.dokumenSiup}
)}
-
- +
+
- - {formDokumen?.dokumenSppkp?.name} + + {formDokumen?.dokumenTdp?.name}
@@ -732,40 +978,36 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { {chekValid && (
- {errorsDokumen.dokumenSppkp} + {errorsDokumen.dokumenTdp}
)}
- -
+
- - {formDokumen?.dokumenAktaPerubahan?.name} + + {formDokumen?.dokumenSkdp?.name}
@@ -773,42 +1015,36 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { {chekValid && (
- {errorsDokumen.dokumenAktaPerubahan} + {errorsDokumen.dokumenSkdp}
)}
- -
+
- - {formDokumen?.dokumenKtpDirut?.name} + + {formDokumen?.dokumenSkt?.name}
@@ -816,11 +1052,10 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { {chekValid && (
- {errorsDokumen.dokumenKtpDirut} + {errorsDokumen.dokumenSkdp}
)}
-
{ onChange={handleInputChange} accept='.pdf,.png,.jpg,.jpeg' /> - + {formDokumen?.dokumenAktaPendirian?.name}
@@ -862,37 +1097,35 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => {
)}
-
- - {formDokumen?.dokumenLaporanKeuangan?.name} + + {formDokumen?.dokumenAktaPerubahan?.name}
@@ -900,11 +1133,51 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { {chekValid && (
- {errorsDokumen.dokumenLaporanKeuangan} + {errorsDokumen.dokumenAktaPerubahan}
)}
+
+ +
+ + + + {formDokumen?.dokumenTempatBekerja?.name} + +
+ + Format: pdf, jpeg, jpg, png. max file size 2MB + + {chekValid && ( +
+ {errorsDokumen.dokumenTempatBekerja} +
+ )} +
{ onChange={handleInputChange} accept='.pdf,.png,.jpg,.jpeg' /> - + {formDokumen?.dokumenFotoKantor?.name}
@@ -945,36 +1218,79 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => {
)}
+
+ +
+ + + + {formDokumen?.dokumenKtpDirut?.name} + +
+ + Format: pdf, jpeg, jpg, png. max file size 2MB + + {chekValid && ( +
+ {errorsDokumen.dokumenKtpDirut} +
+ )} +
- {formDokumen?.dokumenTempatBekerja?.name} + {formDokumen?.dokumenLaporanKeuangan?.name}
@@ -982,7 +1298,7 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { {chekValid && (
- {errorsDokumen.dokumenTempatBekerja} + {errorsDokumen.dokumenLaporanKeuangan}
)}
@@ -997,11 +1313,11 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => {

Upload Progress

- {parseInt((getJumlahDokumenDiisi() / 9) * 100)} % + {parseInt((getJumlahDokumenDiisi() / 13) * 100)} % - {getJumlahDokumenDiisi() >= 4 - ? getJumlahDokumenDiisi() == 9 + {getJumlahDokumenDiisi() >= 5 + ? getJumlahDokumenDiisi() == 13 ? 'Selesai' : 'Sedikit Lagi' : ''} @@ -1017,7 +1333,7 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { baseBgColor='#E5E7EB' labelColor='#e80909' labelSize='0' - maxCompleted={9} + maxCompleted={13} height='10px' /> diff --git a/src/lib/pengajuan-tempo/component/KonfirmasiDokumen.jsx b/src/lib/pengajuan-tempo/component/KonfirmasiDokumen.jsx index 19b7fed2..ca571167 100644 --- a/src/lib/pengajuan-tempo/component/KonfirmasiDokumen.jsx +++ b/src/lib/pengajuan-tempo/component/KonfirmasiDokumen.jsx @@ -178,16 +178,116 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => {

Dokumen

- -
-
+ +
+
- + + {formDokumen?.dokumenNpwp?.name} + +
+ + + +
+
+ {chekValid && ( +
+ {errorsDokumen.dokumenNpwp} +
+ )} +
+
+
+
+ +
+
+
+ + {formDokumen?.dokumenSppkp?.name} + +
+ + + +
+
+ {chekValid && ( +
+ {errorsDokumen.dokumenSppkp} +
+ )} +
+
+
+
+ +
+
+
+ {formDokumen?.dokumenNib?.name}
@@ -230,33 +330,33 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { )}
+
- - {formDokumen?.dokumenNpwp?.name} + + {formDokumen?.dokumenSiup?.name}
@@ -265,8 +365,8 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { type='button' onClick={() => handleConfirmSubmit( - formDokumen.dokumenNpwp.format, - formDokumen.dokumenNpwp.base64 + formDokumen.dokumenSiup.format, + formDokumen.dokumenSiup.base64 ) } > @@ -276,38 +376,303 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => {
{chekValid && (
- {errorsDokumen.dokumenNpwp} + {errorsDokumen.dokumenSiup}
)}
+
- +
- - {formDokumen?.dokumenSppkp?.name} + + {formDokumen?.dokumenTdp?.name}
+ + +
+
+ {chekValid && ( +
+ {errorsDokumen.dokumenTdp} +
+ )} +
+
+ +
+
+ +
+
+
+ + {formDokumen?.dokumenSkdp?.name} + +
+ + + +
+
+ {chekValid && ( +
+ {errorsDokumen.dokumenSkdp} +
+ )} +
+
+ +
+
+ +
+
+
+ + {formDokumen?.dokumenSkt?.name} + +
+ + + +
+
+ {chekValid && ( +
+ {errorsDokumen.dokumenSkt} +
+ )} +
+
+ +
+
+ +
+
+
+ + {formDokumen?.dokumenAktaPendirian?.name} + +
+ + +
+
+ {chekValid && ( +
+ {errorsDokumen.dokumenAktaPendirian} +
+ )} +
+
+ +
+
+ +
+
+
+ + {formDokumen?.dokumenAktaPerubahan?.name} + +
+ + + +
+
+ {chekValid && ( +
+ {errorsDokumen.dokumenAktaPerubahan} +
+ )} +
+
+ +
+
+ +
+
+
+ + {formDokumen?.dokumenTempatBekerja?.name} + +
+ + @@ -316,8 +681,8 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { type='button' onClick={() => handleConfirmSubmit( - formDokumen.dokumenSppkp.format, - formDokumen.dokumenSppkp.base64 + formDokumen.dokumenTempatBekerja.format, + formDokumen.dokumenTempatBekerja.base64 ) } > @@ -327,7 +692,7 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => {
{chekValid && (
- {errorsDokumen.dokumenSppkp} + {errorsDokumen.dokumenTempatBekerja}
)}
@@ -336,33 +701,30 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => {
- - {formDokumen?.dokumenAktaPerubahan?.name} + + {formDokumen?.dokumenFotoKantor?.name}
@@ -371,8 +733,8 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { type='button' onClick={() => handleConfirmSubmit( - formDokumen.dokumenAktaPerubahan.format, - formDokumen.dokumenAktaPerubahan.base64 + formDokumen.dokumenFotoKantor.format, + formDokumen.dokumenFotoKantor.base64 ) } > @@ -382,7 +744,7 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => {
{chekValid && (
- {errorsDokumen.dokumenAktaPerubahan} + {errorsDokumen.dokumenFotoKantor}
)}
@@ -397,7 +759,7 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => {
- + {formDokumen?.dokumenKtpDirut?.name}
@@ -444,32 +806,33 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => {
- - {formDokumen?.dokumenAktaPendirian?.name} + + {formDokumen?.dokumenLaporanKeuangan?.name}
@@ -478,8 +841,8 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { type='button' onClick={() => handleConfirmSubmit( - formDokumen.dokumenAktaPendirian.format, - formDokumen.dokumenAktaPendirian.base64 + formDokumen.dokumenLaporanKeuangan.format, + formDokumen.dokumenLaporanKeuangan.base64 ) } > @@ -489,42 +852,45 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => {
{chekValid && (
- {errorsDokumen.dokumenAktaPendirian} + {errorsDokumen.dokumenLaporanKeuangan}
)}
- + +
+ )} + {isMobile && ( +
+

+ Dokumen +

+
- +
- - {formDokumen?.dokumenLaporanKeuangan?.name} + + {formDokumen?.dokumenNpwp?.name} -
+
@@ -533,8 +899,8 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { type='button' onClick={() => handleConfirmSubmit( - formDokumen.dokumenLaporanKeuangan.format, - formDokumen.dokumenLaporanKeuangan.base64 + formDokumen.dokumenNpwp.format, + formDokumen.dokumenNpwp.base64 ) } > @@ -544,39 +910,36 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => {
{chekValid && (
- {errorsDokumen.dokumenLaporanKeuangan} + {errorsDokumen.dokumenNpwp}
)}
-
- +
- - {formDokumen?.dokumenFotoKantor?.name} + + {formDokumen?.dokumenSppkp?.name} -
+
@@ -585,8 +948,8 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { type='button' onClick={() => handleConfirmSubmit( - formDokumen.dokumenFotoKantor.format, - formDokumen.dokumenFotoKantor.base64 + formDokumen.dokumenSppkp.format, + formDokumen.dokumenSppkp.base64 ) } > @@ -596,7 +959,7 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => {
{chekValid && (
- {errorsDokumen.dokumenFotoKantor} + {errorsDokumen.dokumenSppkp}
)}
@@ -604,33 +967,81 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => {
-
+
+
+ + {formDokumen?.dokumenNib?.name} + +
+ + + +
+
+ {chekValid && ( +
+ {errorsDokumen.dokumenNib} +
+ )} +
+
+ +
+
+
- - {formDokumen?.dokumenTempatBekerja?.name} + + {formDokumen?.dokumenSiup?.name} -
+
@@ -639,66 +1050,50 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { type='button' onClick={() => handleConfirmSubmit( - formDokumen.dokumenTempatBekerja.format, - formDokumen.dokumenTempatBekerja.base64 + formDokumen.dokumenSiup.format, + formDokumen.dokumenSiup.base64 ) } >
- {/* Contoh SPPKP */}
{chekValid && (
- {errorsDokumen.dokumenTempatBekerja} + {errorsDokumen.dokumenSiup}
)}
- -
- )} - {isMobile && ( -
-

- Dokumen -

-
+
-
- - {formDokumen?.dokumenNib?.name} +
+ + {formDokumen?.dokumenTdp?.name} -
+
@@ -707,8 +1102,8 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { type='button' onClick={() => handleConfirmSubmit( - formDokumen.dokumenNib.format, - formDokumen.dokumenNib.base64 + formDokumen.dokumenTdp.format, + formDokumen.dokumenTdp.base64 ) } > @@ -718,36 +1113,38 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => {
{chekValid && (
- {errorsDokumen.dokumenNib} + {errorsDokumen.dokumenTdp}
)}
- +
- - {formDokumen?.dokumenNpwp?.name} + + {formDokumen?.dokumenSkdp?.name} -
+
@@ -756,8 +1153,8 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { type='button' onClick={() => handleConfirmSubmit( - formDokumen.dokumenNpwp.format, - formDokumen.dokumenNpwp.base64 + formDokumen.dokumenSkdp.format, + formDokumen.dokumenSkdp.base64 ) } > @@ -767,36 +1164,38 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => {
{chekValid && (
- {errorsDokumen.dokumenNpwp} + {errorsDokumen.dokumenSkdp}
)}
- +
- - {formDokumen?.dokumenSppkp?.name} + + {formDokumen?.dokumenSkt?.name} -
+
@@ -805,8 +1204,8 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { type='button' onClick={() => handleConfirmSubmit( - formDokumen.dokumenSppkp.format, - formDokumen.dokumenSppkp.base64 + formDokumen.dokumenSkt.format, + formDokumen.dokumenSkt.base64 ) } > @@ -816,7 +1215,7 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => {
{chekValid && (
- {errorsDokumen.dokumenSppkp} + {errorsDokumen.dokumenSkt}
)}
@@ -831,10 +1230,10 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => {
- + {formDokumen?.dokumenAktaPerubahan?.name} -
+
- + {formDokumen?.dokumenKtpDirut?.name} -
+
- + {formDokumen?.dokumenAktaPendirian?.name} -
+
- + {formDokumen?.dokumenLaporanKeuangan?.name} -
+
- + {formDokumen?.dokumenFotoKantor?.name} -
+
- + {formDokumen?.dokumenTempatBekerja?.name} -
+