|  | @@ -25,6 +25,7 @@ import ReactToPrint, { PrintContextConsumer } from 'react-to-print';
 | 
	
		
			
				|  |  |  import { updatePddikti } from "../../../actions/sanksi";
 | 
	
		
			
				|  |  |  import { ENV } from "../../../env";
 | 
	
		
			
				|  |  |  import Swal from "sweetalert2";
 | 
	
		
			
				|  |  | +import Redudansi from "../../../components/Sanksi/Redudansi";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -256,7 +257,13 @@ class ProsesSanksi extends Component {
 | 
	
		
			
				|  |  |  	};
 | 
	
		
			
				|  |  |  	setDataSuratBA = (data) => {
 | 
	
		
			
				|  |  |  		this.setState({ dataSuratBA: data });
 | 
	
		
			
				|  |  | -		console.log(this.state.dataSuratBA)
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	};
 | 
	
		
			
				|  |  | +	setDataStatusLaporan = async (data) => {
 | 
	
		
			
				|  |  | +		await this.setState({ dataStatusLaporan: data });
 | 
	
		
			
				|  |  | +		const thisclose = data.selectedOption.value
 | 
	
		
			
				|  |  | +		this.setState({ thisclose })
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	};
 | 
	
		
			
				|  |  |  	validation = (activeStep) => {
 | 
	
	
		
			
				|  | @@ -281,7 +288,7 @@ class ProsesSanksi extends Component {
 | 
	
		
			
				|  |  |  				});
 | 
	
		
			
				|  |  |  			} else {
 | 
	
		
			
				|  |  |  				this.setState({
 | 
	
		
			
				|  |  | -					activeStep: "6"
 | 
	
		
			
				|  |  | +					activeStep: "7"
 | 
	
		
			
				|  |  |  				});
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  |  		} else {
 | 
	
	
		
			
				|  | @@ -304,7 +311,7 @@ class ProsesSanksi extends Component {
 | 
	
		
			
				|  |  |  				});
 | 
	
		
			
				|  |  |  			} else {
 | 
	
		
			
				|  |  |  				this.setState({
 | 
	
		
			
				|  |  | -					activeStep: "6"
 | 
	
		
			
				|  |  | +					activeStep: "7"
 | 
	
		
			
				|  |  |  				});
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  |  		}
 | 
	
	
		
			
				|  | @@ -321,7 +328,7 @@ class ProsesSanksi extends Component {
 | 
	
		
			
				|  |  |  	};
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	render() {
 | 
	
		
			
				|  |  | -		const { dataUpload, dataPelanggaran, pelaporan, dataSuratBA } = this.state
 | 
	
		
			
				|  |  | +		const { dataUpload, dataPelanggaran, pelaporan, dataSuratBA, thisclose } = this.state
 | 
	
		
			
				|  |  |  		return (
 | 
	
		
			
				|  |  |  			<ContentWrapper unwrap>
 | 
	
		
			
				|  |  |  				{/* <Header /> */}
 | 
	
	
		
			
				|  | @@ -360,7 +367,7 @@ class ProsesSanksi extends Component {
 | 
	
		
			
				|  |  |  												})}
 | 
	
		
			
				|  |  |  												onClick={this.toggleStep("2")}
 | 
	
		
			
				|  |  |  											>
 | 
	
		
			
				|  |  | -												<h4 className="text-left my-3">2. Hasil Evaluasi</h4>
 | 
	
		
			
				|  |  | +												<h4 className="text-left my-3">2. Status Laporan</h4>
 | 
	
		
			
				|  |  |  											</NavLink>
 | 
	
		
			
				|  |  |  										</NavItem>
 | 
	
		
			
				|  |  |  										<NavItem style={stepNavitemStyle}>
 | 
	
	
		
			
				|  | @@ -370,8 +377,9 @@ class ProsesSanksi extends Component {
 | 
	
		
			
				|  |  |  													active: this.state.activeStep === "3",
 | 
	
		
			
				|  |  |  												})}
 | 
	
		
			
				|  |  |  												onClick={this.toggleStep("3")}
 | 
	
		
			
				|  |  | +												disabled={thisclose === "Ditutup"}
 | 
	
		
			
				|  |  |  											>
 | 
	
		
			
				|  |  | -												<h4 className="text-left my-3">3. Penetapan Jenis Pelanggaran</h4>
 | 
	
		
			
				|  |  | +												<h4 className="text-left my-3">3. Hasil Evaluasi</h4>
 | 
	
		
			
				|  |  |  											</NavLink>
 | 
	
		
			
				|  |  |  										</NavItem>
 | 
	
		
			
				|  |  |  										<NavItem style={stepNavitemStyle}>
 | 
	
	
		
			
				|  | @@ -381,8 +389,9 @@ class ProsesSanksi extends Component {
 | 
	
		
			
				|  |  |  													active: this.state.activeStep === "4",
 | 
	
		
			
				|  |  |  												})}
 | 
	
		
			
				|  |  |  												onClick={this.toggleStep("4")}
 | 
	
		
			
				|  |  | +												disabled={thisclose === "Ditutup"}
 | 
	
		
			
				|  |  |  											>
 | 
	
		
			
				|  |  | -												<h4 className="text-left my-3">4. Berita Acara Pleno</h4>
 | 
	
		
			
				|  |  | +												<h4 className="text-left my-3">4. Penetapan Jenis Pelanggaran</h4>
 | 
	
		
			
				|  |  |  											</NavLink>
 | 
	
		
			
				|  |  |  										</NavItem>
 | 
	
		
			
				|  |  |  										<NavItem style={stepNavitemStyle}>
 | 
	
	
		
			
				|  | @@ -392,8 +401,9 @@ class ProsesSanksi extends Component {
 | 
	
		
			
				|  |  |  													active: this.state.activeStep === "5",
 | 
	
		
			
				|  |  |  												})}
 | 
	
		
			
				|  |  |  												onClick={this.toggleStep("5")}
 | 
	
		
			
				|  |  | +												disabled={thisclose === "Ditutup"}
 | 
	
		
			
				|  |  |  											>
 | 
	
		
			
				|  |  | -												<h4 className="text-left my-3">5. Penetapan Sanksi</h4>
 | 
	
		
			
				|  |  | +												<h4 className="text-left my-3">5. Berita Acara Pleno</h4>
 | 
	
		
			
				|  |  |  											</NavLink>
 | 
	
		
			
				|  |  |  										</NavItem>
 | 
	
		
			
				|  |  |  										<NavItem style={stepNavitemStyle}>
 | 
	
	
		
			
				|  | @@ -402,10 +412,23 @@ class ProsesSanksi extends Component {
 | 
	
		
			
				|  |  |  												className={classnames({
 | 
	
		
			
				|  |  |  													active: this.state.activeStep === "6",
 | 
	
		
			
				|  |  |  												})}
 | 
	
		
			
				|  |  | +												onClick={this.toggleStep("6")}
 | 
	
		
			
				|  |  | +												disabled={thisclose === "Ditutup"}
 | 
	
		
			
				|  |  | +											>
 | 
	
		
			
				|  |  | +												<h4 className="text-left my-3">6. Penetapan Sanksi</h4>
 | 
	
		
			
				|  |  | +											</NavLink>
 | 
	
		
			
				|  |  | +										</NavItem>
 | 
	
		
			
				|  |  | +										<NavItem style={stepNavitemStyle}>
 | 
	
		
			
				|  |  | +											<NavLink
 | 
	
		
			
				|  |  | +												tag="div"
 | 
	
		
			
				|  |  | +												className={classnames({
 | 
	
		
			
				|  |  | +													active: this.state.activeStep === "7",
 | 
	
		
			
				|  |  | +												})}
 | 
	
		
			
				|  |  |  												onClick={this.validation}
 | 
	
		
			
				|  |  | +												disabled={thisclose === "Ditutup"}
 | 
	
		
			
				|  |  |  											// onClick={this.toggleStep("6")}
 | 
	
		
			
				|  |  |  											>
 | 
	
		
			
				|  |  | -												<h4 className="text-left my-3">6. Ringkasan</h4>
 | 
	
		
			
				|  |  | +												<h4 className="text-left my-3">7. Ringkasan</h4>
 | 
	
		
			
				|  |  |  											</NavLink>
 | 
	
		
			
				|  |  |  										</NavItem>
 | 
	
		
			
				|  |  |  									</Nav>
 | 
	
	
		
			
				|  | @@ -425,6 +448,26 @@ class ProsesSanksi extends Component {
 | 
	
		
			
				|  |  |  											</div>
 | 
	
		
			
				|  |  |  										</TabPane>
 | 
	
		
			
				|  |  |  										<TabPane tabId="2">
 | 
	
		
			
				|  |  | +											<div className="pt-3 mb-3">
 | 
	
		
			
				|  |  | +												<h2>Status Laporan</h2>
 | 
	
		
			
				|  |  | +												<Card className="card-default">
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +													<CardBody>
 | 
	
		
			
				|  |  | +														<Redudansi setDataStatusLaporan={this.setDataStatusLaporan} id={pelaporan.data?._id}  role={this.props?.user?.role.id}/>
 | 
	
		
			
				|  |  | +													</CardBody>
 | 
	
		
			
				|  |  | +												</Card>
 | 
	
		
			
				|  |  | +											</div>
 | 
	
		
			
				|  |  | +											<hr />
 | 
	
		
			
				|  |  | +											<div className="d-flex">
 | 
	
		
			
				|  |  | +												<Button color className="btn-login color-3e3a8e" onClick={this.toggleStep("1")}>
 | 
	
		
			
				|  |  | +													<span className="font-color-white">Previous</span>
 | 
	
		
			
				|  |  | +												</Button>
 | 
	
		
			
				|  |  | +												<Button className="ml-auto btn-login color-3e3a8e" color onClick={this.toggleStep("3")} disabled={thisclose === "Ditutup"}>
 | 
	
		
			
				|  |  | +													<span className="font-color-white">Next</span>
 | 
	
		
			
				|  |  | +												</Button>
 | 
	
		
			
				|  |  | +											</div>
 | 
	
		
			
				|  |  | +										</TabPane>
 | 
	
		
			
				|  |  | +										<TabPane tabId="3">
 | 
	
		
			
				|  |  |  											<div className="pt-3 mb-3">
 | 
	
		
			
				|  |  |  												<h2>Hasil Evaluasi</h2>
 | 
	
		
			
				|  |  |  												<Card className="card-default">
 | 
	
	
		
			
				|  | @@ -439,43 +482,43 @@ class ProsesSanksi extends Component {
 | 
	
		
			
				|  |  |  											</div>
 | 
	
		
			
				|  |  |  											<hr />
 | 
	
		
			
				|  |  |  											<div className="d-flex">
 | 
	
		
			
				|  |  | -												<Button color className="btn-login color-3e3a8e" onClick={this.toggleStep("1")}>
 | 
	
		
			
				|  |  | +												<Button color className="btn-login color-3e3a8e" onClick={this.toggleStep("2")}>
 | 
	
		
			
				|  |  |  													<span className="font-color-white">Previous</span>
 | 
	
		
			
				|  |  |  												</Button>
 | 
	
		
			
				|  |  | -												<Button className="ml-auto btn-login color-3e3a8e" color onClick={this.toggleStep("3")}>
 | 
	
		
			
				|  |  | +												<Button className="ml-auto btn-login color-3e3a8e" color onClick={this.toggleStep("4")}>
 | 
	
		
			
				|  |  |  													<span className="font-color-white">Next</span>
 | 
	
		
			
				|  |  |  												</Button>
 | 
	
		
			
				|  |  |  											</div>
 | 
	
		
			
				|  |  |  										</TabPane>
 | 
	
		
			
				|  |  | -										<TabPane tabId="3">
 | 
	
		
			
				|  |  | +										<TabPane tabId="4">
 | 
	
		
			
				|  |  |  											<div className="pt-3 mb-3">
 | 
	
		
			
				|  |  |  												<h2>Penetapan Jenis Pelanggaran</h2>
 | 
	
		
			
				|  |  |  												<TablePenetapanSanksi query={this.props.query} handleDelegasi={this.handleDelegasi} handleAutoSave={this.handleAutoSave} setCheckedData={this.setCheckedData} dataPelanggaran={dataPelanggaran} />
 | 
	
		
			
				|  |  |  											</div>
 | 
	
		
			
				|  |  |  											<hr />
 | 
	
		
			
				|  |  |  											<div className="d-flex">
 | 
	
		
			
				|  |  | -												<Button color className="btn-login color-3e3a8e" onClick={this.toggleStep("2")}>
 | 
	
		
			
				|  |  | +												<Button color className="btn-login color-3e3a8e" onClick={this.toggleStep("3")}>
 | 
	
		
			
				|  |  |  													<span className="font-color-white">Previous</span>
 | 
	
		
			
				|  |  |  												</Button>
 | 
	
		
			
				|  |  | -												<Button className="ml-auto btn-login color-3e3a8e" color onClick={this.toggleStep("4")}>
 | 
	
		
			
				|  |  | +												<Button className="ml-auto btn-login color-3e3a8e" color onClick={this.toggleStep("5")}>
 | 
	
		
			
				|  |  |  													<span className="font-color-white">Next</span>
 | 
	
		
			
				|  |  |  												</Button>
 | 
	
		
			
				|  |  |  											</div>
 | 
	
		
			
				|  |  |  										</TabPane>
 | 
	
		
			
				|  |  | -										<TabPane tabId="4">
 | 
	
		
			
				|  |  | +										<TabPane tabId="5">
 | 
	
		
			
				|  |  |  											<Card>
 | 
	
		
			
				|  |  |  												<BeritaAcara query={this.props.query} handleAutoSave={this.handleAutoSave} dataPelanggaran={this.state.dataPelanggaran} setDataSuratBA={this.setDataSuratBA} dataLaporan={pelaporan} dataSuratBA={dataSuratBA} role={this.props?.user?.role.id} />
 | 
	
		
			
				|  |  |  											</Card>
 | 
	
		
			
				|  |  |  											<div className="d-flex">
 | 
	
		
			
				|  |  | -												<Button color className="btn-login color-3e3a8e" onClick={this.toggleStep("3")}>
 | 
	
		
			
				|  |  | +												<Button color className="btn-login color-3e3a8e" onClick={this.toggleStep("4")}>
 | 
	
		
			
				|  |  |  													<span className="font-color-white">Previous</span>
 | 
	
		
			
				|  |  |  												</Button>
 | 
	
		
			
				|  |  | -												<Button className="ml-auto btn-login color-3e3a8e" color onClick={this.toggleStep("5")}>
 | 
	
		
			
				|  |  | +												<Button className="ml-auto btn-login color-3e3a8e" color onClick={this.toggleStep("6")}>
 | 
	
		
			
				|  |  |  													<span className="font-color-white">Next</span>
 | 
	
		
			
				|  |  |  												</Button>
 | 
	
		
			
				|  |  |  											</div>
 | 
	
		
			
				|  |  |  										</TabPane>
 | 
	
		
			
				|  |  | -										<TabPane tabId="5">
 | 
	
		
			
				|  |  | +										<TabPane tabId="6">
 | 
	
		
			
				|  |  |  											<div className="pt-3 mb-3">
 | 
	
		
			
				|  |  |  												<h2>Penetapan Sanksi</h2>
 | 
	
		
			
				|  |  |  												{this.state.listSanksi && <UploadSurat setUploadSuratSanksi={this.setUploadSuratSanksi} listSanksi={this.state.listSanksi} query={this.props.query} handleAutoSave={this.handleAutoSave} dataPelanggaran={this.state.dataPelanggaran} dataSuratBA={dataSuratBA} />}
 | 
	
	
		
			
				|  | @@ -512,7 +555,7 @@ class ProsesSanksi extends Component {
 | 
	
		
			
				|  |  |  											</FormGroup>
 | 
	
		
			
				|  |  |  											<hr />
 | 
	
		
			
				|  |  |  											<div className="d-flex">
 | 
	
		
			
				|  |  | -												<Button color className="btn-login color-3e3a8e" onClick={this.toggleStep("4")}>
 | 
	
		
			
				|  |  | +												<Button color className="btn-login color-3e3a8e" onClick={this.toggleStep("5")}>
 | 
	
		
			
				|  |  |  													<span className="font-color-white">Previous</span>
 | 
	
		
			
				|  |  |  												</Button>
 | 
	
		
			
				|  |  |  												<Button className="ml-auto btn-login color-3e3a8e" color onClick={() => { this.validation() }}>
 | 
	
	
		
			
				|  | @@ -520,7 +563,7 @@ class ProsesSanksi extends Component {
 | 
	
		
			
				|  |  |  												</Button>
 | 
	
		
			
				|  |  |  											</div>
 | 
	
		
			
				|  |  |  										</TabPane>
 | 
	
		
			
				|  |  | -										<TabPane tabId="6">
 | 
	
		
			
				|  |  | +										<TabPane tabId="7">
 | 
	
		
			
				|  |  |  											<div className="pt-3 mb-3">
 | 
	
		
			
				|  |  |  												<h2>Ringkasan</h2>
 | 
	
		
			
				|  |  |  												{pelaporan.data ? <Ringkasan dataSuratBA={dataSuratBA} query={this.props.query} dataLaporan={pelaporan.data} dataPelanggaran={dataPelanggaran?.data} dataPelanggaranBA={this.state.dataPelanggaran} dataUpload={dataUpload} /> : <Loader />}
 | 
	
	
		
			
				|  | @@ -551,7 +594,7 @@ class ProsesSanksi extends Component {
 | 
	
		
			
				|  |  |  											</div>
 | 
	
		
			
				|  |  |  											<hr />
 | 
	
		
			
				|  |  |  											<div className="d-flex">
 | 
	
		
			
				|  |  | -												<Button color className="btn-login color-3e3a8e" onClick={this.toggleStep("5")}>
 | 
	
		
			
				|  |  | +												<Button color className="btn-login color-3e3a8e" onClick={this.toggleStep("6")}>
 | 
	
		
			
				|  |  |  													<span className="font-color-white">Previous</span>
 | 
	
		
			
				|  |  |  												</Button>
 | 
	
		
			
				|  |  |  												<Button className="ml-auto btn-login color-3e3a8e" color onClick={this.done}
 |