|
|
|
@ -1,9 +1,8 @@
|
|
|
|
|
import { useParams, useNavigate } from "react-router-dom";
|
|
|
|
|
import { useEffect, useState } from "react";
|
|
|
|
|
import { useEffect } from "react";
|
|
|
|
|
import { observer } from "mobx-react";
|
|
|
|
|
import { toJS, runInAction } from "mobx";
|
|
|
|
|
import moment from "moment";
|
|
|
|
|
import { Row, Col, Space, Button, Divider, Form, Typography, Rate, Radio, Modal, Upload, Input, App } from "antd";
|
|
|
|
|
import { Row, Col, Space, Button, Divider, Form, Typography, Rate, Radio, Upload, Input, App } from "antd";
|
|
|
|
|
import { useStore } from "../../stores/StoreContext.js";
|
|
|
|
|
import { PlusOutlined } from "@ant-design/icons";
|
|
|
|
|
const { Title, Text, Paragraph } = Typography;
|
|
|
|
@ -14,7 +13,6 @@ function Detail() {
|
|
|
|
|
const { GRI_SN } = useParams();
|
|
|
|
|
const { feedbackStore, authStore } = useStore();
|
|
|
|
|
const { feedbackRate, feedbackReview, feedbackImages, feedbackInfo } = feedbackStore;
|
|
|
|
|
const [value, setValue] = useState(3);
|
|
|
|
|
const desc = ["none", "Unacceptable", "Poor", "Fair", "Very Good", "Excellent"];
|
|
|
|
|
const { notification } = App.useApp();
|
|
|
|
|
const [form] = Form.useForm();
|
|
|
|
@ -36,7 +34,6 @@ function Detail() {
|
|
|
|
|
const OtherThoughts = feedbackRate && feedbackRate.OtherThoughts ? feedbackRate.OtherThoughts : "";
|
|
|
|
|
const PhotoPermission = feedbackRate && feedbackRate.PhotoPermission && feedbackRate.PhotoPermission == "YES" ? true : false;
|
|
|
|
|
const ECI_Content = feedbackReview && feedbackReview.ECI_Content ? feedbackReview.ECI_Content : "None";
|
|
|
|
|
const feedbackInfo_content = feedbackInfo && feedbackInfo.EEF_Content ? feedbackInfo.EEF_Content : "";
|
|
|
|
|
const fileList = toJS(feedbackImages);
|
|
|
|
|
|
|
|
|
|
const handleChange = info => {
|
|
|
|
|