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pH,EAAQ,WAAE4B,EAAU,UAAEF,EAAS,WAAEH,EAAU,OAAES,GAAOwH,EAEhH,MAAM,CAAC/F,KAAIjC,cAAaC,YAAWE,YADjByF,EAASD,KAAI5G,GAAOA,EAAI8G,kBAAiBC,KAAK,MAChBtH,WAAU4B,aAAYF,YAAWH,aAAYS,SAAO,IAExGuH,EAAO,IAAI7D,KAAiBpG,GAE5BqG,EAAgB4D,GAChB1D,EAAoB0D,EACxB,GAkF+N9L,SAAE,6BAG7MF,EAAAA,EAAAA,KAAA,gBAKhBA,EAAAA,EAAAA,KAACkM,EAAAA,EAAY,CAACpL,QAASsB,EAAW+J,aAAcnD,EAAYlG,MAAOoG,QAASF,EAAYE,QAAShI,YAAY,iBAAiBI,QAASA,IAAMe,GAAa,MAC1JrC,EAAAA,EAAAA,KAACkM,EAAAA,EAAY,CAACpL,QAAU+G,EAAevG,QAAUA,IAAMwG,EAAgB,GAAKoB,QAAQ,uCACpFlJ,EAAAA,EAAAA,KAACoM,EAAAA,EAAY,CAACtL,QAAS+H,EAAS3H,YAAY,qBAGxD,C","sources":["views/riwayat/component/pesananditerimaAlert.js","views/riwayat/component/tabel.js","views/riwayat/index.js"],"sourcesContent":["import { Component } from 'react'\r\n\r\n\r\nexport default class extends Component {\r\n render() {\r\n return (\r\n <>\r\n
\r\n
\r\n
\r\n
\r\n

Anda yakin pesanan telah diterima ?

\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n )\r\n }\r\n}","import { useState } from \"react\"\r\nimport { useNavigate } from \"react-router-dom\";\r\nimport PesananditerimaAlert from \"./pesananditerimaAlert\";\r\nimport { updateStatusId } from \"../../../services/API/mod_riwayatOrder\";\r\nimport sedangDikirimIcon from './../../../images/icon_diproses_new.png'\r\nimport processIcon from './../../../images/waiting.png'\r\nimport warnIcon from './../../../images/warn-icon.png'\r\nimport menungguKonfirmasiIcon from './../../../images/menungguKonfirmasi.png'\r\n\r\nfunction RiwayatTabel({tabActive, skip, cardBg, data, init, defaultLoading}) {\r\n const navigate = useNavigate()\r\n const [showPopup, setShowPopup] = useState(false)\r\n // console.log(data.requesttype);\r\n\r\n const handleRatting = () => {\r\n window.history.replaceState({currentTabActive: tabActive, currentSkip: skip}, document.title)\r\n navigate('/tulis_review', {\r\n state: {\r\n id: data.id,\r\n serviceRequest: data.requestNo,\r\n eq: data.equipment,\r\n requestName: data.namarequest,\r\n currentTabActive: tabActive,\r\n currentSkip: skip,\r\n back: defaultLoading ? '/riwayat' : '/dashboard'\r\n }\r\n })\r\n }\r\n\r\n const pesananDiterima = async (e) => {\r\n const res = await updateStatusId(e.currentTarget.getAttribute('data-id'),{\r\n statusid: '3',\r\n useragent: localStorage.getItem('id'),\r\n responnote: 'Pesanan telah diterima oleh user',\r\n rejectnote: '',\r\n internalprosesnote: ''\r\n })\r\n if(res.status === 200) {\r\n init(tabActive.toString(), skip.toString(), (skip+10).toString())\r\n }\r\n }\r\n\r\n const handlePopup = () => {\r\n setShowPopup(true)\r\n }\r\n\r\n const handleRedirect = (e) => {\r\n e.preventDefault()\r\n \r\n window.history.replaceState({ currentTabActive: tabActive, currentSkip: skip }, document.title)\r\n navigate( `/detail_permintaan`,{\r\n state: {\r\n currentTabActive: tabActive,\r\n currentSkip: skip,\r\n id: data.id,\r\n back: defaultLoading ? '/riwayat' : '/dashboard'\r\n }\r\n })\r\n }\r\n // console.log(defaultLoading)\r\n\r\n const formatDate = (val) => {\r\n var date = new Date(val)\r\n \r\n var day = date.getDate().toLocaleString('en-US', { minimumIntegerDigits: 2, useGrouping: false })\r\n var month = (date.getMonth() + 1).toLocaleString('en-US', { minimumIntegerDigits: 2, useGrouping: false })\r\n var year = date.getFullYear().toLocaleString('en-US', { minimumIntegerDigits: 2, useGrouping: false })\r\n var hours = date.getHours().toLocaleString('en-US', { minimumIntegerDigits: 2, useGrouping: false })\r\n var minutes = date.getMinutes().toLocaleString('en-US', { minimumIntegerDigits: 2, useGrouping: false })\r\n var ampm = (date.getHours() >= 12) ? 'PM' : 'AM'\r\n \r\n hours = (hours % 12 === 0) ? 12 : hours % 12\r\n return `${ day }/${ month }/${ year } ${ hours }:${ minutes } ${ ampm }`\r\n }\r\n\r\n return (\r\n <>\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n

{formatDate(data.createdate)}

\r\n

{data.namarequest}

\r\n

{data.requestNo}

\r\n
\r\n
\r\n

EQ : {data.equipment}

\r\n

{data.requesttype}

\r\n

{data.keterangan}

\r\n
\r\n
\r\n
\r\n { parseInt(data.statusid) !== 1 && (\r\n
\r\n )}\r\n
\r\n
\r\n { parseInt(data.statusid) === 1 && (\r\n \r\n )}\r\n { parseInt(data.statusid) !== 1 && (\r\n \r\n )}\r\n
\r\n Menunggu\r\n
\r\n {\r\n (parseInt(data.statusid) === 1 || parseInt(data.statusid) === 3 || parseInt(data.statusid) === 6) && (\r\n
\r\n
\r\n \r\n
\r\n Diproses\r\n
\r\n\r\n )\r\n }\r\n {\r\n parseInt(data.statusid) === 2 && (\r\n
\r\n
\r\n \r\n
\r\n Diproses\r\n
\r\n )\r\n }\r\n {\r\n parseInt(data.statusid) === 5 && (\r\n
\r\n
\r\n \r\n
\r\n Diproses\r\n
\r\n )\r\n }\r\n {\r\n parseInt(data.statusid) === 6 && (\r\n
\r\n
\r\n \r\n
\r\n Sedang Dikirim\r\n
\r\n )\r\n }\r\n {\r\n parseInt(data.statusid) === 3 && data.namarequest === 'Consumable Request' && (\r\n
\r\n
\r\n \r\n
\r\n Dikirim\r\n
\r\n\r\n )\r\n }\r\n {\r\n parseInt(data.statusid) === 4 && (\r\n
\r\n
\r\n ×\r\n
\r\n Ditolak\r\n
\r\n )\r\n }\r\n {/* {\r\n parseInt(data.statusid) !== 6 && ( */}\r\n
\r\n
\r\n \r\n
\r\n Selesai\r\n
\r\n {/* )\r\n } */}\r\n {\r\n parseInt(data.statusid) !== 4 && (\r\n
\r\n
\r\n \r\n
\r\n Nilai\r\n
\r\n )\r\n }\r\n
\r\n
\r\n
\r\n {\r\n (data.statusid.toString() === '2' || data.statusid.toString() === '6') && (\r\n \r\n )\r\n }\r\n {\r\n data && (\r\n \r\n )}\r\n {\r\n (data.statusid.toString() === '3' && !data.review )&& (\r\n \r\n )\r\n }\r\n
\r\n setShowPopup(false)} update={pesananDiterima} dataId={data.id} />\r\n
\r\n
\r\n \r\n )\r\n}\r\n\r\nexport default RiwayatTabel","/* eslint-disable react-hooks/exhaustive-deps */\r\n/* eslint-disable no-use-before-define */\r\nimport RiwayatTabel from './component/tabel.js'\r\nimport AlertConfirm from './../../component/alert/confirmAlert.js'\r\nimport LoadingAlert from './../../component/alert/loadingAlert.js'\r\nimport { useEffect, useState } from 'react'\r\nimport { Link, useLocation } from 'react-router-dom'\r\nimport { getRiwayatOrderByStatus } from '../../services/API/mod_riwayatOrder.js'\r\nimport sedangDikirimIcon from './../../images/icon_diproses_new.png'\r\nimport processIcon from './../../images/waiting.png'\r\nimport warnIcon from './../../images/warn-icon.png'\r\nimport menungguKonfirmasiIcon from './../../images/menungguKonfirmasi.png'\r\nimport yesIcon from './../../images/yes.png'\r\nimport declineIcon from './../../images/decline.png'\r\nimport allIcon from './../../images/all-icon.png'\r\n\r\nfunction Riwayat(props) {\r\n const location = useLocation()\r\n \r\n const [tabActivated, setTabActivated] = useState(location.state?.currentTabActive ?? 'all')\r\n const [alertVisible, setAlertVisible] = useState(false)\r\n const [searchActive, setSearchActive] = useState(false)\r\n const [clickSearch, setClickSeacrh] = useState(false)\r\n const [originalData, setOriginalData] = useState([])\r\n const [dataRiwayatOrder, setDataRiwayatOrder] = useState([])\r\n const [skipData, setSkipData] = useState(0)\r\n const [rowCount, setRowCount] = useState((location.state?.currentSkip ?? 0) + 10)\r\n const [searchValue, setSearchValue] = useState('')\r\n const [loading, setLoading] = useState(false)\r\n const [defaultLoading, setDefaultLoading] = useState(props?.loading ?? true)\r\n const [showPopup, setShowPopup] = useState(false)\r\n const [alertOption, setAlertOption] = useState({title:'', message: ''})\r\n \r\n const cardBg = {\r\n 1: {\r\n title: 'Menunggu Konfirmasi',\r\n background: '#ff8000'\r\n },\r\n 2: {\r\n title: 'Permintaan Diproses',\r\n background: '#1eb716'\r\n },\r\n 3: {\r\n title: 'Selesai',\r\n background: '#009FC7'\r\n },\r\n 5: {\r\n title: 'Internal Proses',\r\n background: '#ffbf00'\r\n },\r\n 6: {\r\n title: 'Sedang dikirim',\r\n background: '#10a89b'\r\n },\r\n 4: {\r\n title: 'Reject',\r\n background: '#ff2020'\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n // alert(1)\r\n window.history.replaceState({}, document.title)\r\n init(tabActivated === 'all' ? \"0\" : tabActivated.toString(), skipData.toString(), rowCount.toString())\r\n // console.log(location.state?.currentSkip ? location.state?.currentSkip + 10 : 10);\r\n // console.log(rowCount)\r\n console.log(defaultLoading);\r\n }, [])\r\n\r\n const init = async (status, skip, row) => {\r\n setDataRiwayatOrder([])\r\n setLoading(defaultLoading)\r\n setDefaultLoading(true)\r\n var data = {status: status, skip: skip, rowcount: row}\r\n console.log('param init : ', data)\r\n var res = await getRiwayatOrderByStatus(data)\r\n setLoading(false)\r\n // console.log(res);\r\n\r\n if(res.status === 'ECONNABORTED') {\r\n setShowPopup(defaultLoading)\r\n setAlertOption({title: 'Error', message: 'Gagal mengambil data'})\r\n return\r\n }\r\n\r\n if(res.status === 200 && !res.data.includes('Not Found')) {\r\n var data = []\r\n if(res?.data && res.data.length > 0) {\r\n data = res.data.map(({id, namarequest, requestNo, requestd, statusid, keterangan, equipment, createdate, review}) => {\r\n var requesttype = requestd.map(val => val.namarequesttype).join(', ')\r\n return{id, namarequest, requestNo, requesttype, statusid, keterangan, equipment, createdate, review}\r\n })\r\n\r\n }\r\n // console.log(data);\r\n setOriginalData(data)\r\n setDataRiwayatOrder(data)\r\n } else {\r\n if(res.status !== 200 && res.data === 'Not Found') {\r\n setShowPopup(defaultLoading)\r\n setAlertOption({title: 'Error', message: 'Oops! Terjadi kesalahan'})\r\n } else {\r\n setShowPopup(defaultLoading)\r\n setAlertOption({title: '', message: 'Belum pernah melakukan permintaan'})\r\n }\r\n }\r\n\r\n }\r\n\r\n const tabItems = [\r\n {status: 'all', name: 'Semua', icon: allIcon},\r\n {status: '1', name: 'Menunggu Konfirmasi', icon: menungguKonfirmasiIcon},\r\n {status: '2', name: 'Permintaan Diproses', icon: processIcon},\r\n {status: '6', name: 'Sedang Dikirim', icon: sedangDikirimIcon},\r\n {status: '3', name: 'Permintaan Selesai', icon: yesIcon},\r\n {status: '4', name: 'Permintaan Ditolak', icon: declineIcon},\r\n ]\r\n\r\n const changeTabActive = (status) => {\r\n setTabActivated(status)\r\n setSkipData(0)\r\n setRowCount(10)\r\n if(status === 'all') {\r\n // console.log(1);\r\n init(\"0\", \"0\", rowCount.toString()) //skipData.toString()\r\n } else {\r\n // console.log(2);\r\n init(status.toString(), \"0\", rowCount.toString()) //skipData.toString()\r\n }\r\n }\r\n\r\n const handleSearch = (e) => {\r\n var searchValue = e.target.value.toLowerCase()\r\n var tempData = originalData\r\n if(tabActivated !== 'all') {\r\n tempData = originalData.filter(val => val.statusid === tabActivated)\r\n }\r\n\r\n const filteredData = tempData.filter(val => (val.namarequest.toLowerCase().includes(searchValue) || val.requesttype.toLowerCase().includes(searchValue) || val.equipment.toLowerCase().includes(searchValue) || val.requestNo.toLowerCase().includes(searchValue) || val.createdate.toLowerCase().includes(searchValue)))\r\n setDataRiwayatOrder(filteredData)\r\n \r\n setSearchValue(e.currentTarget.value)\r\n }\r\n\r\n const handleClear = () => {\r\n var filteredData = originalData.filter(val => val.statusid === tabActivated)\r\n if(tabActivated !== 'all') {\r\n setDataRiwayatOrder(filteredData)\r\n } else {\r\n setDataRiwayatOrder(originalData)\r\n setSearchValue('')\r\n }\r\n }\r\n\r\n const handleShowMore = async () => {\r\n setSkipData(skipData + 10)\r\n // setRowCount(rowCount + 10)\r\n setLoading(true)\r\n var data = {status: tabActivated === 'all' ? '0' : tabActivated.toString(), skip: (skipData+10).toString(), rowcount: rowCount.toString()}\r\n console.log('param change : ', data)\r\n const res = await getRiwayatOrderByStatus(data)\r\n setLoading(false)\r\n if(res.status === 200) {\r\n var temp = originalData\r\n var data = res.data.map(({id, namarequest, requestNo, requestd, statusid, keterangan, equipment, createdate, review}) => {\r\n var requesttype = requestd.map(val => val.namarequesttype).join(', ')\r\n return{id, namarequest, requestNo, requesttype, statusid, keterangan, equipment, createdate, review}\r\n })\r\n temp = [...originalData, ...data]\r\n // console.log(temp);\r\n setOriginalData(temp)\r\n setDataRiwayatOrder(temp)\r\n }\r\n }\r\n \r\n return (\r\n <>\r\n
\r\n
\r\n
\r\n {searchActive ? (\r\n
\r\n {setSearchActive(false); setClickSeacrh(false)} }>\r\n \r\n \r\n
e.preventDefault()}>\r\n setClickSeacrh(true)} onKeyUp={handleSearch} className=\"form-control search-riwayat d-md-none d-inline\" placeholder=\"Telusuri...\" style={{position:'absolute', right: 65}} />\r\n \r\n
\r\n
\r\n ) : (\r\n <>\r\n Riwayat Permintaan\r\n setSearchActive(true) }>\r\n \r\n \r\n \r\n )}\r\n \r\n {searchActive ? (\r\n \r\n ) : (\r\n \r\n )}\r\n \r\n
\r\n
\r\n
e.preventDefault()}> \r\n
\r\n \r\n \r\n \r\n \r\n {if(typeof e.key != 'undefined' && e.keyCode === 13) {\r\n e.currentTarget.blur()\r\n return\r\n }}} />\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n {\r\n tabItems.map((val, key) => (\r\n
\r\n \r\n
\r\n ))\r\n }\r\n
\r\n\r\n {\r\n dataRiwayatOrder.map((val, key) => (\r\n \r\n ))\r\n }\r\n {\r\n dataRiwayatOrder.length >= 10 ? (\r\n
\r\n \r\n
\r\n ) : (\r\n
\r\n )\r\n }\r\n
\r\n
\r\n setShowPopup(false)} />\r\n setAlertVisible(0) } message=\"Belum pernah melakukan permintaan\"/>\r\n \r\n \r\n )\r\n}\r\n\r\nexport default Riwayat"],"names":["Component","render","_jsx","_Fragment","children","style","position","top","left","right","bottom","backgroundColor","zIndex","display","this","props","visible","alignItems","justifyContent","className","customClass","_jsxs","border","width","onClick","update","dataId","_ref","_cardBg$data$statusid","_cardBg$data$statusid2","tabActive","skip","cardBg","data","init","defaultLoading","navigate","useNavigate","showPopup","setShowPopup","useState","boxShadow","overflow","statusid","background","fontWeight","color","fontSize","title","borderRight","val","date","Date","day","getDate","toLocaleString","minimumIntegerDigits","useGrouping","month","getMonth","year","getFullYear","hours","getHours","getMinutes","formatDate","createdate","namarequest","requestNo","equipment","requesttype","keterangan","marginLeft","marginRight","parseInt","review","opacity","textAlign","padding","borderRadius","src","menungguKonfirmasiIcon","transform","processIcon","warnIcon","sedangDikirimIcon","toString","type","handlePopup","whiteSpace","height","e","preventDefault","window","history","replaceState","currentTabActive","currentSkip","document","state","id","back","handleRatting","serviceRequest","eq","requestName","PesananditerimaAlert","async","updateStatusId","currentTarget","getAttribute","useragent","localStorage","getItem","responnote","rejectnote","internalprosesnote","status","_location$state$curre","_location$state","_location$state$curre2","_location$state2","_props$loading","location","useLocation","tabActivated","setTabActivated","alertVisible","setAlertVisible","searchActive","setSearchActive","clickSearch","setClickSeacrh","originalData","setOriginalData","dataRiwayatOrder","setDataRiwayatOrder","skipData","setSkipData","rowCount","setRowCount","searchValue","setSearchValue","loading","setLoading","setDefaultLoading","alertOption","setAlertOption","message","useEffect","console","log","row","rowcount","res","getRiwayatOrderByStatus","includes","length","map","requestd","namarequesttype","join","tabItems","name","icon","allIcon","yesIcon","declineIcon","handleSearch","target","value","toLowerCase","tempData","filter","filteredData","handleClear","onSubmit","onKeyUp","placeholder","cursor","borderBottom","Link","to","defaultValue","onKeyDown","key","keyCode","blur","margin","flex","gap","objectFit","_props$loading2","RiwayatTabel","temp","_ref2","AlertConfirm","titleMessage","LoadingAlert"],"sourceRoot":""}