From 9b22da67a1a397ca43ff80abb8ef4bbefef9b448 Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Wed, 5 Mar 2025 10:35:33 +0700 Subject: CR renca telepon tempo --- src/lib/pengajuan-tempo/component/Pengiriman.jsx | 117 +++++++++++++++++++++++ 1 file changed, 117 insertions(+) (limited to 'src/lib/pengajuan-tempo/component/Pengiriman.jsx') diff --git a/src/lib/pengajuan-tempo/component/Pengiriman.jsx b/src/lib/pengajuan-tempo/component/Pengiriman.jsx index 755cf45d..c78ee69c 100644 --- a/src/lib/pengajuan-tempo/component/Pengiriman.jsx +++ b/src/lib/pengajuan-tempo/component/Pengiriman.jsx @@ -311,7 +311,9 @@ const Pengiriman = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { const districtPengirimanRef = useRef(null); const subDistrictPengirimanRef = useRef(null); const zipRef = useRef(null); + const PICBarangMobileRef = useRef(null); const invoicePicRef = useRef(null); + const invoicePicMobileRef = useRef(null); const streetInvoiceRef = useRef(null); const stateInvoiceRef = useRef(null); const cityInvoiceRef = useRef(null); @@ -366,10 +368,18 @@ const Pengiriman = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { zipRef.current.scrollIntoView(options); return; } + if (errorsPengiriman.PICBarangMobile && PICBarangMobileRef.current) { + PICBarangMobileRef.current.scrollIntoView(options); + return; + } if (errorsPengiriman.invoicePic && invoicePicRef.current) { invoicePicRef.current.scrollIntoView(options); return; } + if (errorsPengiriman.invoicePicMobile && invoicePicMobileRef.current) { + invoicePicMobileRef.current.scrollIntoView(options); + return; + } if (errorsPengiriman.streetInvoice && streetInvoiceRef.current) { streetInvoiceRef.current.scrollIntoView(options); return; @@ -800,6 +810,38 @@ const Pengiriman = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { +
+
+ + {!isKonfirmasi && ( + + isi nomor PIC penerimaan barang yang bertanggung jawab di + perusahaan anda + + )} +
+
+ + {chekValid && ( +
+ {errorsPengiriman.PICBarangMobile} +
+ )} +
+
+
+ +
+
+ +
+ +
+ {chekValid && ( +
+ {errorsPengiriman.invoicePicMobile} +
+ )} +
+
+
+ +
+ +
+ {chekValid && ( +
+ {errorsPengiriman.PICBarangMobile} +
+ )} +
+
+
+
+ +
+ +
+ {chekValid && ( +
+ {errorsPengiriman.PICBarangMobile} +
+ )} +
+