|
@@ -184,20 +184,20 @@ export class UploadSurat_Bypass extends Component {
|
|
|
return (
|
|
return (
|
|
|
<form className="form-horizontal" method="get" action="/" onSubmit={this.onSubmit}>
|
|
<form className="form-horizontal" method="get" action="/" onSubmit={this.onSubmit}>
|
|
|
<FormGroup row>
|
|
<FormGroup row>
|
|
|
- <label className="col-md-2 col-form-label">Nomor Surat<span className="text-danger">*</span></label>
|
|
|
|
|
- <div className="col-md-10">
|
|
|
|
|
|
|
+ <label className="col-md-4 col-form-label">Nomor Surat<span className="text-danger">*</span></label>
|
|
|
|
|
+ <div className="col-md-8">
|
|
|
<Input type="text" value={this.state.nomorSanksi} onChange={(e) => { this.setNomorSanksi(e) }} />
|
|
<Input type="text" value={this.state.nomorSanksi} onChange={(e) => { this.setNomorSanksi(e) }} />
|
|
|
</div>
|
|
</div>
|
|
|
</FormGroup>
|
|
</FormGroup>
|
|
|
<FormGroup row className="mt-3">
|
|
<FormGroup row className="mt-3">
|
|
|
- <label className="col-md-2 col-form-label">Keterangan<span className="text-danger">*</span></label>
|
|
|
|
|
- <div className="col-md-10">
|
|
|
|
|
|
|
+ <label className="col-md-4 col-form-label">Keterangan<span className="text-danger">*</span></label>
|
|
|
|
|
+ <div className="col-md-8">
|
|
|
<Input type="textarea" value={this.state.keterangan} onChange={(e) => { this.setKeterangan(e) }} required />
|
|
<Input type="textarea" value={this.state.keterangan} onChange={(e) => { this.setKeterangan(e) }} required />
|
|
|
</div>
|
|
</div>
|
|
|
</FormGroup>
|
|
</FormGroup>
|
|
|
<FormGroup row>
|
|
<FormGroup row>
|
|
|
- <label className="col-md-2 col-form-label">Tidak Perlu TMT</label>
|
|
|
|
|
- <div className="col-md-10 mt-2">
|
|
|
|
|
|
|
+ <label className="col-md-4 col-form-label">Tidak Perlu TMT</label>
|
|
|
|
|
+ <div className="col-md-8 mt-2">
|
|
|
<div className="checkbox c-checkbox">
|
|
<div className="checkbox c-checkbox">
|
|
|
<label>
|
|
<label>
|
|
|
<Input type="checkbox" onChange={() => this.handleTmtCheck()} defaultChecked={this.state.tidakPerluTMTCheck} />
|
|
<Input type="checkbox" onChange={() => this.handleTmtCheck()} defaultChecked={this.state.tidakPerluTMTCheck} />
|
|
@@ -207,7 +207,7 @@ export class UploadSurat_Bypass extends Component {
|
|
|
</FormGroup>
|
|
</FormGroup>
|
|
|
{/* {this.state.tidakPerluTMTCheck && (
|
|
{/* {this.state.tidakPerluTMTCheck && (
|
|
|
<FormGroup row className="mt-3">
|
|
<FormGroup row className="mt-3">
|
|
|
- <label className="col-md-2 col-form-label">Tanggal Penetapan Sanksi</label>
|
|
|
|
|
|
|
+ <label className="col-md-4 col-form-label">Tanggal Penetapan Sanksi</label>
|
|
|
<span className="col-sm-3 float-left">
|
|
<span className="col-sm-3 float-left">
|
|
|
<DatePicker
|
|
<DatePicker
|
|
|
selected={this.state.awalTMT ? new Date(this.state.awalTMT) : this.state.awalTMT}
|
|
selected={this.state.awalTMT ? new Date(this.state.awalTMT) : this.state.awalTMT}
|
|
@@ -225,7 +225,7 @@ export class UploadSurat_Bypass extends Component {
|
|
|
)} */}
|
|
)} */}
|
|
|
{!this.state.tidakPerluTMTCheck && (
|
|
{!this.state.tidakPerluTMTCheck && (
|
|
|
<FormGroup row className="mt-3">
|
|
<FormGroup row className="mt-3">
|
|
|
- <label className="col-md-2 col-form-label">Isi TMT</label>
|
|
|
|
|
|
|
+ <label className="col-md-4 col-form-label">Isi TMT</label>
|
|
|
<Row >
|
|
<Row >
|
|
|
<Col>
|
|
<Col>
|
|
|
<FormGroup>
|
|
<FormGroup>
|
|
@@ -269,23 +269,23 @@ export class UploadSurat_Bypass extends Component {
|
|
|
)}
|
|
)}
|
|
|
{!this.state.tidakPerluTMTCheck && (
|
|
{!this.state.tidakPerluTMTCheck && (
|
|
|
<FormGroup row className="mt-1">
|
|
<FormGroup row className="mt-1">
|
|
|
- <label className="col-md-2 col-form-label">TMT berlaku</label>
|
|
|
|
|
- <div className="col-md-10 mt-2">
|
|
|
|
|
|
|
+ <label className="col-md-4 col-form-label">TMT berlaku</label>
|
|
|
|
|
+ <div className="col-md-8 mt-2">
|
|
|
<b>{this.state.awalTMT ? moment(this.state.awalTMT).format("DD-MM-YYYY") : "-"}</b> hingga <b>{this.state.akhirTMT ? moment(this.state.akhirTMT).format("DD-MM-YYYY") : "-"}</b>
|
|
<b>{this.state.awalTMT ? moment(this.state.awalTMT).format("DD-MM-YYYY") : "-"}</b> hingga <b>{this.state.akhirTMT ? moment(this.state.akhirTMT).format("DD-MM-YYYY") : "-"}</b>
|
|
|
</div>
|
|
</div>
|
|
|
</FormGroup>
|
|
</FormGroup>
|
|
|
)}
|
|
)}
|
|
|
{!this.state.tidakPerluTMTCheck && (
|
|
{!this.state.tidakPerluTMTCheck && (
|
|
|
<FormGroup row className="mt-1">
|
|
<FormGroup row className="mt-1">
|
|
|
- <label className="col-md-2 col-form-label">TMT</label>
|
|
|
|
|
- <div className="col-md-10 mt-2">
|
|
|
|
|
|
|
+ <label className="col-md-4 col-form-label">TMT</label>
|
|
|
|
|
+ <div className="col-md-8 mt-2">
|
|
|
<b>{this.state.akhirTMT ? moment(this.state.akhirTMT).diff(this.state.awalTMT, 'month') : "-"} bulan</b>
|
|
<b>{this.state.akhirTMT ? moment(this.state.akhirTMT).diff(this.state.awalTMT, 'month') : "-"} bulan</b>
|
|
|
</div>
|
|
</div>
|
|
|
</FormGroup>
|
|
</FormGroup>
|
|
|
)}
|
|
)}
|
|
|
<FormGroup row className="mt-3">
|
|
<FormGroup row className="mt-3">
|
|
|
- <label className="col-md-2 col-form-label">List sanksi </label>
|
|
|
|
|
- <div className="col-md-10">
|
|
|
|
|
|
|
+ <label className="col-md-4 col-form-label">List sanksi </label>
|
|
|
|
|
+ <div className="col-md-8">
|
|
|
<Select
|
|
<Select
|
|
|
options={this.props.listSanksi.map(e => ({ value: `Sanksi Administratif ${e.split(";")[0]} - ${e.split(";")[1]}` }))}
|
|
options={this.props.listSanksi.map(e => ({ value: `Sanksi Administratif ${e.split(";")[0]} - ${e.split(";")[1]}` }))}
|
|
|
isMulti
|
|
isMulti
|
|
@@ -297,10 +297,10 @@ export class UploadSurat_Bypass extends Component {
|
|
|
</div>
|
|
</div>
|
|
|
</FormGroup>
|
|
</FormGroup>
|
|
|
<FormGroup row>
|
|
<FormGroup row>
|
|
|
- <label className="col-md-2 col-form-label">
|
|
|
|
|
|
|
+ <label className="col-md-4 col-form-label">
|
|
|
Dokumen Surat Sanksi<span className="text-danger">*</span>
|
|
Dokumen Surat Sanksi<span className="text-danger">*</span>
|
|
|
</label>
|
|
</label>
|
|
|
- <div className="col-md-10">
|
|
|
|
|
|
|
+ <div className="col-md-8">
|
|
|
<DropzoneWrapper className="" onDrop={this.onDrop}>
|
|
<DropzoneWrapper className="" onDrop={this.onDrop}>
|
|
|
{({ getRootProps, getInputProps, isDragActive }) => {
|
|
{({ getRootProps, getInputProps, isDragActive }) => {
|
|
|
return (
|
|
return (
|
|
@@ -337,10 +337,10 @@ export class UploadSurat_Bypass extends Component {
|
|
|
</div>
|
|
</div>
|
|
|
</FormGroup>
|
|
</FormGroup>
|
|
|
{/* <FormGroup row>
|
|
{/* <FormGroup row>
|
|
|
- <label className="col-md-2 col-form-label">
|
|
|
|
|
|
|
+ <label className="col-md-4 col-form-label">
|
|
|
Dokumen Laporan Evaluasi dan Pembahasan
|
|
Dokumen Laporan Evaluasi dan Pembahasan
|
|
|
</label>
|
|
</label>
|
|
|
- <div className="col-md-10">
|
|
|
|
|
|
|
+ <div className="col-md-8">
|
|
|
|
|
|
|
|
<div style={{ display: "none" }}>
|
|
<div style={{ display: "none" }}>
|
|
|
<ComponentToPrint ref={el => (this.componentRef = el)} query={this.props.query} dataPelanggaran={this.props.dataPelanggaran} dataSuratBA={this.props.dataSuratBA} />
|
|
<ComponentToPrint ref={el => (this.componentRef = el)} query={this.props.query} dataPelanggaran={this.props.dataPelanggaran} dataSuratBA={this.props.dataSuratBA} />
|
|
@@ -358,8 +358,8 @@ export class UploadSurat_Bypass extends Component {
|
|
|
</div>
|
|
</div>
|
|
|
</FormGroup> */}
|
|
</FormGroup> */}
|
|
|
<FormGroup row className="mt-3">
|
|
<FormGroup row className="mt-3">
|
|
|
- <label className="col-md-2 col-form-label">Tanggal Terima Surat Sanksi<span className="text-danger">*</span></label>
|
|
|
|
|
- <span className="col-sm-3 float-left">
|
|
|
|
|
|
|
+ <label className="col-md-4 col-form-label">Tanggal Terima Surat Sanksi<span className="text-danger">*</span></label>
|
|
|
|
|
+ <span className="col-sm-8 float-left">
|
|
|
<DatePicker
|
|
<DatePicker
|
|
|
selected={this.state.terimaSuratSanksi ? new Date(this.state.terimaSuratSanksi) : this.state.terimaSuratSanksi}
|
|
selected={this.state.terimaSuratSanksi ? new Date(this.state.terimaSuratSanksi) : this.state.terimaSuratSanksi}
|
|
|
onChange={(terimaSuratSanksi) => {
|
|
onChange={(terimaSuratSanksi) => {
|
|
@@ -367,17 +367,17 @@ export class UploadSurat_Bypass extends Component {
|
|
|
}}
|
|
}}
|
|
|
dateFormat="dd/MM/yyyy"
|
|
dateFormat="dd/MM/yyyy"
|
|
|
minDate={new Date(this.state.awalTMT)}
|
|
minDate={new Date(this.state.awalTMT)}
|
|
|
- placeholderText="Isi Tanggal"
|
|
|
|
|
|
|
+ placeholderText="DD/MM/YYYY"
|
|
|
locale={id}
|
|
locale={id}
|
|
|
className="form-control bg-white"
|
|
className="form-control bg-white"
|
|
|
/>
|
|
/>
|
|
|
</span>
|
|
</span>
|
|
|
</FormGroup>
|
|
</FormGroup>
|
|
|
<FormGroup row>
|
|
<FormGroup row>
|
|
|
- <label className="col-md-2 col-form-label">
|
|
|
|
|
|
|
+ <label className="col-md-4 col-form-label">
|
|
|
Dokumen Tanda Terima Surat Sanksi<span className="text-danger">*</span>
|
|
Dokumen Tanda Terima Surat Sanksi<span className="text-danger">*</span>
|
|
|
</label>
|
|
</label>
|
|
|
- <div className="col-md-10">
|
|
|
|
|
|
|
+ <div className="col-md-8">
|
|
|
<DropzoneWrapper className="" onDrop={this.onDropTandaTerimaSS}>
|
|
<DropzoneWrapper className="" onDrop={this.onDropTandaTerimaSS}>
|
|
|
{({ getRootProps, getInputProps, isDragActive }) => {
|
|
{({ getRootProps, getInputProps, isDragActive }) => {
|
|
|
return (
|
|
return (
|
|
@@ -415,12 +415,12 @@ export class UploadSurat_Bypass extends Component {
|
|
|
</FormGroup>
|
|
</FormGroup>
|
|
|
{!this.state.tidakPerluTMTCheck && (
|
|
{!this.state.tidakPerluTMTCheck && (
|
|
|
<FormGroup row className="mt-3">
|
|
<FormGroup row className="mt-3">
|
|
|
- <label className="col-md-2 col-form-label">Tanggal Akhir Pengajuan Keberatan<span className="text-danger">*</span>
|
|
|
|
|
|
|
+ <label className="col-md-4 col-form-label">Tanggal Akhir Pengajuan Keberatan<span className="text-danger">*</span>
|
|
|
<p>
|
|
<p>
|
|
|
Note : 21 hari kerja
|
|
Note : 21 hari kerja
|
|
|
</p>
|
|
</p>
|
|
|
</label>
|
|
</label>
|
|
|
- <span className="col-sm-3 float-left">
|
|
|
|
|
|
|
+ <span className="col-sm-8 float-left">
|
|
|
<DatePicker
|
|
<DatePicker
|
|
|
selected={this.state.tglAkhirKeberatan ? new Date(this.state.tglAkhirKeberatan) : this.state.tglAkhirKeberatan}
|
|
selected={this.state.tglAkhirKeberatan ? new Date(this.state.tglAkhirKeberatan) : this.state.tglAkhirKeberatan}
|
|
|
onChange={(tglAkhirKeberatan) => {
|
|
onChange={(tglAkhirKeberatan) => {
|
|
@@ -428,7 +428,7 @@ export class UploadSurat_Bypass extends Component {
|
|
|
}}
|
|
}}
|
|
|
dateFormat="dd/MM/yyyy"
|
|
dateFormat="dd/MM/yyyy"
|
|
|
minDate={new Date(terimaSuratSanksi)}
|
|
minDate={new Date(terimaSuratSanksi)}
|
|
|
- placeholderText="Isi Tanggal"
|
|
|
|
|
|
|
+ placeholderText="DD/MM/YYYY"
|
|
|
locale={id}
|
|
locale={id}
|
|
|
className="form-control bg-white"
|
|
className="form-control bg-white"
|
|
|
/>
|
|
/>
|