|  | @@ -4,7 +4,7 @@ import { toast } from "react-toastify";
 | 
	
		
			
				|  |  |  import { Formik, Form, Field, ErrorMessage } from "formik";
 | 
	
		
			
				|  |  |  import * as Yup from "yup";
 | 
	
		
			
				|  |  |  import { connect } from "react-redux";
 | 
	
		
			
				|  |  | -import { getOneSanksi, editTmt } from "@/actions/sanksi";
 | 
	
		
			
				|  |  | +import { getOneSanksi, update } from "@/actions/sanksi";
 | 
	
		
			
				|  |  |  import DatePicker from "react-datepicker";
 | 
	
		
			
				|  |  |  import "react-datepicker/dist/react-datepicker.css";
 | 
	
		
			
				|  |  |  import { addDays, addMonths } from 'date-fns';
 | 
	
	
		
			
				|  | @@ -13,6 +13,7 @@ import moment from "moment";
 | 
	
		
			
				|  |  |  import 'moment/min/locales';
 | 
	
		
			
				|  |  |  moment.locale('id');
 | 
	
		
			
				|  |  |  import Router from "next/router";
 | 
	
		
			
				|  |  | +import { getPelanggaranSanksi } from "@/actions/pelanggaran";
 | 
	
		
			
				|  |  |  import Select from "react-select";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -42,8 +43,11 @@ const checkIfFilesAreCorrectType = (files) => {
 | 
	
		
			
				|  |  |  };
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  const rekomendasiSchema = Yup.object().shape({
 | 
	
		
			
				|  |  | +    no_surat: Yup.string().required("Wajib isi no sanksi"),
 | 
	
		
			
				|  |  | +    keterangan: Yup.string().min(3, "Minimal 3 Huruf").max(200).required("Wajib isi keterangan"),
 | 
	
		
			
				|  |  |      from_date: Yup.date().required("Wajib diisi"),
 | 
	
		
			
				|  |  |      to_date: Yup.date().required("Wajib diisi"),
 | 
	
		
			
				|  |  | +    pelanggaran_id: Yup.array().required("Wajib isi pelanggaran"),
 | 
	
		
			
				|  |  |      dokumen: Yup.array().required("Wajib diisi").test("filesize", "Maksimal ukuran dokumen 15mb", checkIfFilesAreTooBig),
 | 
	
		
			
				|  |  |  });
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -76,9 +80,8 @@ class InputTanggal extends Component {
 | 
	
		
			
				|  |  |              to_date: "",
 | 
	
		
			
				|  |  |              startDay: tmt_awal,
 | 
	
		
			
				|  |  |              sanksi: {},
 | 
	
		
			
				|  |  | -            nomorSanksi: "",
 | 
	
		
			
				|  |  | -            keterangan: "",
 | 
	
		
			
				|  |  | -            listSanksi: "",
 | 
	
		
			
				|  |  | +            keteranganLaporan: "",
 | 
	
		
			
				|  |  | +            tmtCheck: false,
 | 
	
		
			
				|  |  |          };
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -86,8 +89,8 @@ class InputTanggal extends Component {
 | 
	
		
			
				|  |  |          const { token, query } = this.props;
 | 
	
		
			
				|  |  |          const { id } = query;
 | 
	
		
			
				|  |  |          const sanksi = await getOneSanksi(token, id);
 | 
	
		
			
				|  |  | -        this.setState({ sanksi })
 | 
	
		
			
				|  |  | -        console.log(this.state.sanksi)
 | 
	
		
			
				|  |  | +        const { data: listSanksi } = await getPelanggaranSanksi(token)
 | 
	
		
			
				|  |  | +        this.setState({ sanksi, listSanksi })
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -136,42 +139,39 @@ class InputTanggal extends Component {
 | 
	
		
			
				|  |  |      static getInitialProps = async ({ query }) => {
 | 
	
		
			
				|  |  |          return { query };
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  | -    setKeterangan = (e) => {
 | 
	
		
			
				|  |  | -        this.setState({ keterangan: e.target.value });
 | 
	
		
			
				|  |  | -    };
 | 
	
		
			
				|  |  | -    handleChangeListSanksi = (listSanksi) => {
 | 
	
		
			
				|  |  | -        this.setState({ listSanksi });
 | 
	
		
			
				|  |  | -    };
 | 
	
		
			
				|  |  | -    setListSanksi = (ls) => {
 | 
	
		
			
				|  |  | -        this.setState({ listSanksi: ls.target.value });
 | 
	
		
			
				|  |  | -    };
 | 
	
		
			
				|  |  | -    setNomorSanksi = (e) => {
 | 
	
		
			
				|  |  | -        this.setState({ nomorSanksi: e.target.value }, this.toRingkasan);
 | 
	
		
			
				|  |  | +    setKeteranganPelaporan = (e) => {
 | 
	
		
			
				|  |  | +        this.setState({ keteranganLaporan: e.target.value });
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  | +    handleTmtCheck = () => {
 | 
	
		
			
				|  |  | +        this.setState({ tmtCheck: !this.state.tmtCheck });
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      handelSimpan = async (data) => {
 | 
	
		
			
				|  |  |          const { token, query } = this.props;
 | 
	
		
			
				|  |  |          const { id } = query;
 | 
	
		
			
				|  |  |          const formdata = new FormData();
 | 
	
		
			
				|  |  | -        formdata.append("from_date", this.state.from_date);
 | 
	
		
			
				|  |  | -        formdata.append("to_date", this.state.to_date);
 | 
	
		
			
				|  |  | +        formdata.append("no_surat", data.no_surat);
 | 
	
		
			
				|  |  | +        formdata.append("keterangan", data.keterangan);
 | 
	
		
			
				|  |  | +        formdata.append("from_date", data.from_date);
 | 
	
		
			
				|  |  | +        formdata.append("to_date", data.to_date);
 | 
	
		
			
				|  |  | +        formdata.append("pelanggaran_id", data.pelanggaran_id);
 | 
	
		
			
				|  |  |          this.state.files.forEach((e) => {
 | 
	
		
			
				|  |  |              formdata.append("dokumen", e);
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |          const toastid = toast.loading("Please wait...");
 | 
	
		
			
				|  |  | -        const added = await editTmt(token, id, formdata);
 | 
	
		
			
				|  |  | +        const added = await update(token, id, formdata);
 | 
	
		
			
				|  |  |          if (!added) {
 | 
	
		
			
				|  |  |              toast.update(toastid, { render: "All is not good", type: "error", isLoading: false, autoClose: true, closeButton: true });
 | 
	
		
			
				|  |  |          } else {
 | 
	
		
			
				|  |  |              toast.update(toastid, { render: "All is good", type: "success", isLoading: false, autoClose: true, closeButton: true });
 | 
	
		
			
				|  |  | -            Router.push("/app/perpanjangan-sanksi");
 | 
	
		
			
				|  |  | +            Router.push("/app/naik-sanksi");
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  |      render() {
 | 
	
		
			
				|  |  | -        const { files, sanksi } = this.state;
 | 
	
		
			
				|  |  | +        const { files } = this.state;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          const thumbs = files.map((file, index) => (
 | 
	
		
			
				|  |  |              <div md={3} key={index}>
 | 
	
	
		
			
				|  | @@ -181,99 +181,154 @@ class InputTanggal extends Component {
 | 
	
		
			
				|  |  |          return (
 | 
	
		
			
				|  |  |              <Card className="card-default">
 | 
	
		
			
				|  |  |                  <CardBody>
 | 
	
		
			
				|  |  | -                    <p className="lead bb">Dokumen Surat Perubahan Sanksi</p>
 | 
	
		
			
				|  |  | +                    <p className="lead bb">Dokumen Surat Naik Sanksi</p>
 | 
	
		
			
				|  |  |                      <Formik
 | 
	
		
			
				|  |  |                          initialValues={{
 | 
	
		
			
				|  |  | -                            dokumen: [],
 | 
	
		
			
				|  |  | +                            no_surat: "",
 | 
	
		
			
				|  |  | +                            keterangan: "",
 | 
	
		
			
				|  |  |                              from_date: "",
 | 
	
		
			
				|  |  |                              to_date: "",
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +                            pelanggaran_id: [],
 | 
	
		
			
				|  |  | +                            dokumen: [],
 | 
	
		
			
				|  |  |                          }}
 | 
	
		
			
				|  |  |                          validationSchema={rekomendasiSchema}
 | 
	
		
			
				|  |  | -                        onSubmit={async (data) => {
 | 
	
		
			
				|  |  | -                            this.setState({ data });
 | 
	
		
			
				|  |  | -                            await this.handelSimpan();
 | 
	
		
			
				|  |  | -                        }}
 | 
	
		
			
				|  |  | +                        onSubmit={this.handelSimpan}
 | 
	
		
			
				|  |  |                      >
 | 
	
		
			
				|  |  |                          {() => (
 | 
	
		
			
				|  |  |                              <Form className="form-horizontal">
 | 
	
		
			
				|  |  |                                  <FormGroup row>
 | 
	
		
			
				|  |  | -                                    <label className="col-md-2 col-form-label">Nomor Surat:</label>
 | 
	
		
			
				|  |  | +                                    <label className="col-md-2 col-form-label">Nomor Sanksi</label>
 | 
	
		
			
				|  |  |                                      <div className="col-md-10">
 | 
	
		
			
				|  |  | -                                        <Input type="text" value={this.state.nomorSanksi} onChange={this.setNomorSanksi} />
 | 
	
		
			
				|  |  | +                                        <Field name="no_surat">{({ field }) => <Input type="textarea" placeholder="Nomor Sanksi" {...field} />}</Field>
 | 
	
		
			
				|  |  | +                                        <ErrorMessage name="no_surat" component="div" className="form-text text-danger" />
 | 
	
		
			
				|  |  |                                      </div>
 | 
	
		
			
				|  |  |                                  </FormGroup>
 | 
	
		
			
				|  |  | -                                <FormGroup row className="mt-3">
 | 
	
		
			
				|  |  | +                                <FormGroup row>
 | 
	
		
			
				|  |  |                                      <label className="col-md-2 col-form-label">Keterangan</label>
 | 
	
		
			
				|  |  |                                      <div className="col-md-10">
 | 
	
		
			
				|  |  | -                                        <Input type="textarea" value={this.state.keterangan} onChange={this.setKeterangan} required />
 | 
	
		
			
				|  |  | +                                        <Field name="keterangan">{({ field }) => <Input type="textarea" placeholder="Keterangan" {...field} />}</Field>
 | 
	
		
			
				|  |  | +                                        <ErrorMessage name="keterangan" component="div" className="form-text text-danger" />
 | 
	
		
			
				|  |  |                                      </div>
 | 
	
		
			
				|  |  |                                  </FormGroup>
 | 
	
		
			
				|  |  | -                                <FormGroup row className="mt-3">
 | 
	
		
			
				|  |  | -                                    <label className="col-md-2 col-form-label">Tanggal Perpanjangan Sanksi :</label>
 | 
	
		
			
				|  |  | -                                    <div className="col-md-6">
 | 
	
		
			
				|  |  | -                                        <Row >
 | 
	
		
			
				|  |  | -                                            <Col>
 | 
	
		
			
				|  |  | -                                                <FormGroup>
 | 
	
		
			
				|  |  | -                                                    <Field name="from_date">
 | 
	
		
			
				|  |  | -                                                        {({ field, form }) => (
 | 
	
		
			
				|  |  | -                                                            <DatePicker
 | 
	
		
			
				|  |  | -                                                                selected={this.state.from_date}
 | 
	
		
			
				|  |  | -                                                                onChange={(from_date) => {
 | 
	
		
			
				|  |  | -                                                                    this.setState({ from_date })
 | 
	
		
			
				|  |  | -                                                                    form.setFieldValue(field.name, from_date);
 | 
	
		
			
				|  |  | -                                                                }}
 | 
	
		
			
				|  |  | -                                                                dateFormat="dd/MM/yyyy"
 | 
	
		
			
				|  |  | -                                                                maxDate={this.state.startDay}
 | 
	
		
			
				|  |  | -                                                                placeholderText="Dari Tanggal"
 | 
	
		
			
				|  |  | -                                                                locale={id}
 | 
	
		
			
				|  |  | -                                                                className="form-control bg-white"
 | 
	
		
			
				|  |  | -                                                            />
 | 
	
		
			
				|  |  | -                                                        )}
 | 
	
		
			
				|  |  | -                                                    </Field>
 | 
	
		
			
				|  |  | -                                                    <ErrorMessage name="from_date" component="div" className="form-text text-danger" />
 | 
	
		
			
				|  |  | -                                                </FormGroup>
 | 
	
		
			
				|  |  | -                                            </Col>
 | 
	
		
			
				|  |  | -                                            <Col>
 | 
	
		
			
				|  |  | -                                                <FormGroup>
 | 
	
		
			
				|  |  | -                                                    <Field name="to_date">
 | 
	
		
			
				|  |  | -                                                        {({ field, form }) => (
 | 
	
		
			
				|  |  | -                                                            <DatePicker
 | 
	
		
			
				|  |  | -                                                                selected={this.state.to_date}
 | 
	
		
			
				|  |  | -                                                                onChange={(to_date) => {
 | 
	
		
			
				|  |  | -                                                                    this.setState({ to_date })
 | 
	
		
			
				|  |  | -                                                                    form.setFieldValue(field.name, to_date);
 | 
	
		
			
				|  |  | -                                                                }}
 | 
	
		
			
				|  |  | -                                                                dateFormat="dd/MM/yyyy"
 | 
	
		
			
				|  |  | -                                                                minDate={this.state.from_date}
 | 
	
		
			
				|  |  | -                                                                maxDate={addMonths(new Date(this.state.from_date), 6)}
 | 
	
		
			
				|  |  | -                                                                placeholderText="Sampai tanggal"
 | 
	
		
			
				|  |  | -                                                                locale={id}
 | 
	
		
			
				|  |  | -                                                                className="form-control bg-white"
 | 
	
		
			
				|  |  | -                                                            />
 | 
	
		
			
				|  |  | -                                                        )}
 | 
	
		
			
				|  |  | -                                                    </Field>
 | 
	
		
			
				|  |  | -                                                    <ErrorMessage name="to_date" component="div" className="form-text text-danger" />
 | 
	
		
			
				|  |  | -                                                </FormGroup>
 | 
	
		
			
				|  |  | -                                            </Col>
 | 
	
		
			
				|  |  | -                                        </Row>
 | 
	
		
			
				|  |  | +                                <FormGroup row>
 | 
	
		
			
				|  |  | +                                    <label className="col-md-2 col-form-label">Tidak Perlu TMT</label>
 | 
	
		
			
				|  |  | +                                    <div className="col-md-10 mt-2">
 | 
	
		
			
				|  |  | +                                        <div className="checkbox c-checkbox">
 | 
	
		
			
				|  |  | +                                            <label>
 | 
	
		
			
				|  |  | +                                                <Input type="checkbox" onChange={this.handleTmtCheck} defaultChecked={this.state.tmtCheck} />
 | 
	
		
			
				|  |  | +                                                <span className="fa fa-check"></span></label>
 | 
	
		
			
				|  |  | +                                        </div>
 | 
	
		
			
				|  |  |                                      </div>
 | 
	
		
			
				|  |  |                                  </FormGroup>
 | 
	
		
			
				|  |  | +                                {this.state.tmtCheck && (
 | 
	
		
			
				|  |  | +                                    <FormGroup row className="mt-3">
 | 
	
		
			
				|  |  | +                                        <label className="col-md-2 col-form-label">Tanggal Penetapan Sanksi</label>
 | 
	
		
			
				|  |  | +                                        <span className="col-sm-3 float-left">
 | 
	
		
			
				|  |  | +                                            <Field name="from_date">
 | 
	
		
			
				|  |  | +                                                {({ field, form }) => (
 | 
	
		
			
				|  |  | +                                                    <DatePicker
 | 
	
		
			
				|  |  | +                                                        selected={this.state.from_date}
 | 
	
		
			
				|  |  | +                                                        onChange={(from_date) => {
 | 
	
		
			
				|  |  | +                                                            this.setState({ from_date })
 | 
	
		
			
				|  |  | +                                                            form.setFieldValue(field.name, from_date);
 | 
	
		
			
				|  |  | +                                                        }}
 | 
	
		
			
				|  |  | +                                                        dateFormat="dd/MM/yyyy"
 | 
	
		
			
				|  |  | +                                                        maxDate={this.state.startDay}
 | 
	
		
			
				|  |  | +                                                        placeholderText="Dari Tanggal"
 | 
	
		
			
				|  |  | +                                                        locale={id}
 | 
	
		
			
				|  |  | +                                                        className="form-control bg-white"
 | 
	
		
			
				|  |  | +                                                    />
 | 
	
		
			
				|  |  | +                                                )}
 | 
	
		
			
				|  |  | +                                            </Field>
 | 
	
		
			
				|  |  | +                                            <ErrorMessage name="from_date" component="div" className="form-text text-danger" />
 | 
	
		
			
				|  |  | +                                        </span>
 | 
	
		
			
				|  |  | +                                    </FormGroup>
 | 
	
		
			
				|  |  | +                                )}
 | 
	
		
			
				|  |  | +                                {!this.state.tmtCheck && (
 | 
	
		
			
				|  |  | +                                    <FormGroup row className="mt-3">
 | 
	
		
			
				|  |  | +                                        <label className="col-md-2 col-form-label">Isi TMT :</label>
 | 
	
		
			
				|  |  | +                                        <div className="col-md-6">
 | 
	
		
			
				|  |  | +                                            <Row >
 | 
	
		
			
				|  |  | +                                                <Col>
 | 
	
		
			
				|  |  | +                                                    <FormGroup>
 | 
	
		
			
				|  |  | +                                                        <Field name="from_date">
 | 
	
		
			
				|  |  | +                                                            {({ field, form }) => (
 | 
	
		
			
				|  |  | +                                                                <DatePicker
 | 
	
		
			
				|  |  | +                                                                    selected={this.state.from_date}
 | 
	
		
			
				|  |  | +                                                                    onChange={(from_date) => {
 | 
	
		
			
				|  |  | +                                                                        this.setState({ from_date })
 | 
	
		
			
				|  |  | +                                                                        form.setFieldValue(field.name, from_date);
 | 
	
		
			
				|  |  | +                                                                    }}
 | 
	
		
			
				|  |  | +                                                                    dateFormat="dd/MM/yyyy"
 | 
	
		
			
				|  |  | +                                                                    maxDate={this.state.startDay}
 | 
	
		
			
				|  |  | +                                                                    placeholderText="Dari Tanggal"
 | 
	
		
			
				|  |  | +                                                                    locale={id}
 | 
	
		
			
				|  |  | +                                                                    className="form-control bg-white"
 | 
	
		
			
				|  |  | +                                                                />
 | 
	
		
			
				|  |  | +                                                            )}
 | 
	
		
			
				|  |  | +                                                        </Field>
 | 
	
		
			
				|  |  | +                                                        <ErrorMessage name="from_date" component="div" className="form-text text-danger" />
 | 
	
		
			
				|  |  | +                                                    </FormGroup>
 | 
	
		
			
				|  |  | +                                                </Col>
 | 
	
		
			
				|  |  | +                                                <Col>
 | 
	
		
			
				|  |  | +                                                    <FormGroup>
 | 
	
		
			
				|  |  | +                                                        <Field name="to_date">
 | 
	
		
			
				|  |  | +                                                            {({ field, form }) => (
 | 
	
		
			
				|  |  | +                                                                <DatePicker
 | 
	
		
			
				|  |  | +                                                                    selected={this.state.to_date}
 | 
	
		
			
				|  |  | +                                                                    onChange={(to_date) => {
 | 
	
		
			
				|  |  | +                                                                        this.setState({ to_date })
 | 
	
		
			
				|  |  | +                                                                        form.setFieldValue(field.name, to_date);
 | 
	
		
			
				|  |  | +                                                                    }}
 | 
	
		
			
				|  |  | +                                                                    dateFormat="dd/MM/yyyy"
 | 
	
		
			
				|  |  | +                                                                    minDate={this.state.from_date}
 | 
	
		
			
				|  |  | +                                                                    maxDate={addMonths(new Date(this.state.from_date), 6)}
 | 
	
		
			
				|  |  | +                                                                    placeholderText="Sampai tanggal"
 | 
	
		
			
				|  |  | +                                                                    locale={id}
 | 
	
		
			
				|  |  | +                                                                    className="form-control bg-white"
 | 
	
		
			
				|  |  | +                                                                />
 | 
	
		
			
				|  |  | +                                                            )}
 | 
	
		
			
				|  |  | +                                                        </Field>
 | 
	
		
			
				|  |  | +                                                        <ErrorMessage name="to_date" component="div" className="form-text text-danger" />
 | 
	
		
			
				|  |  | +                                                    </FormGroup>
 | 
	
		
			
				|  |  | +                                                </Col>
 | 
	
		
			
				|  |  | +                                            </Row>
 | 
	
		
			
				|  |  | +                                        </div>
 | 
	
		
			
				|  |  | +                                    </FormGroup>
 | 
	
		
			
				|  |  | +                                )}
 | 
	
		
			
				|  |  | +                                {!this.state.tmtCheck && (
 | 
	
		
			
				|  |  | +                                    <FormGroup row className="mt-1">
 | 
	
		
			
				|  |  | +                                        <label className="col-md-2 col-form-label">TMT berlaku</label>
 | 
	
		
			
				|  |  | +                                        <div className="col-md-10 mt-2">
 | 
	
		
			
				|  |  | +                                            <b>{this.state.from_date ? moment(this.state.from_date).format("DD-MM-YYYY") : "-"}</b> hingga <b>{this.state.to_date ? moment(this.state.to_date).format("DD-MM-YYYY") : "-"}</b>
 | 
	
		
			
				|  |  | +                                        </div>
 | 
	
		
			
				|  |  | +                                    </FormGroup>
 | 
	
		
			
				|  |  | +                                )}
 | 
	
		
			
				|  |  | +                                {!this.state.tmtCheck && (
 | 
	
		
			
				|  |  | +                                    <FormGroup row className="mt-1">
 | 
	
		
			
				|  |  | +                                        <label className="col-md-2 col-form-label">TMT</label>
 | 
	
		
			
				|  |  | +                                        <div className="col-md-10 mt-2">
 | 
	
		
			
				|  |  | +                                            <b>{this.state.to_date ? moment(this.state.to_date).diff(this.state.from_date, 'month') : "-"} bulan</b>
 | 
	
		
			
				|  |  | +                                        </div>
 | 
	
		
			
				|  |  | +                                    </FormGroup>
 | 
	
		
			
				|  |  | +                                )}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |                                  <FormGroup row className="mt-3">
 | 
	
		
			
				|  |  |                                      <label className="col-md-2 col-form-label">List sanksi </label>
 | 
	
		
			
				|  |  |                                      <div className="col-md-10">
 | 
	
		
			
				|  |  | -                                        <Select
 | 
	
		
			
				|  |  | +                                        <Field name="pelanggaran_id">{({ field, form }) => <Select
 | 
	
		
			
				|  |  |                                              options={this.props.listSanksi.map(e => ({ value: e, label: e }))}
 | 
	
		
			
				|  |  |                                              // formatOptionLabel={formatOptionLabel}
 | 
	
		
			
				|  |  |                                              isMulti
 | 
	
		
			
				|  |  |                                              onChange={(e) => {
 | 
	
		
			
				|  |  | -                                                this.handleChangeListSanksi(e);
 | 
	
		
			
				|  |  | +                                                form.setFieldValue(field.name, e);
 | 
	
		
			
				|  |  |                                              }}
 | 
	
		
			
				|  |  | -                                        />
 | 
	
		
			
				|  |  | +                                        />}</Field>
 | 
	
		
			
				|  |  | +                                        <ErrorMessage name="pelanggaran_id" component="div" className="form-text text-danger" />
 | 
	
		
			
				|  |  |                                      </div>
 | 
	
		
			
				|  |  |                                  </FormGroup>
 | 
	
		
			
				|  |  |                                  <FormGroup row className="mt-3">
 | 
	
		
			
				|  |  | -                                    <label className="col-md-2 col-form-label">Dokumen Surat Perubahan Sanksi : <span className="text-danger">*</span></label>
 | 
	
		
			
				|  |  | +                                    <label className="col-md-2 col-form-label">Dokumen Perpanjangan Sanksi : <span className="text-danger">*</span></label>
 | 
	
		
			
				|  |  |                                      <div className="col-md-10">
 | 
	
		
			
				|  |  |                                          <Field name="dokumen">
 | 
	
		
			
				|  |  |                                              {({ field, form }) => (
 |