|
|
@ -2,7 +2,7 @@ import { useParams, useNavigate } from "react-router-dom";
|
|
|
|
import { useEffect } from "react";
|
|
|
|
import { useEffect } from "react";
|
|
|
|
import { observer } from "mobx-react";
|
|
|
|
import { observer } from "mobx-react";
|
|
|
|
import { toJS, runInAction } from "mobx";
|
|
|
|
import { toJS, runInAction } from "mobx";
|
|
|
|
import { Row, Col, Space, Button, Divider, Form, Typography, Rate, Radio, Upload, Input, App } from "antd";
|
|
|
|
import { Row, Col, Space, Button, Divider, Form, Typography, Rate, Radio, Upload, Input, App, Card } from "antd";
|
|
|
|
import { useStore } from "../../stores/StoreContext.js";
|
|
|
|
import { useStore } from "../../stores/StoreContext.js";
|
|
|
|
import { PlusOutlined } from "@ant-design/icons";
|
|
|
|
import { PlusOutlined } from "@ant-design/icons";
|
|
|
|
const { Title, Text, Paragraph } = Typography;
|
|
|
|
const { Title, Text, Paragraph } = Typography;
|
|
|
@ -10,7 +10,7 @@ import * as config from "@/config";
|
|
|
|
|
|
|
|
|
|
|
|
function Detail() {
|
|
|
|
function Detail() {
|
|
|
|
const navigate = useNavigate();
|
|
|
|
const navigate = useNavigate();
|
|
|
|
const { GRI_SN } = useParams();
|
|
|
|
const { GRI_SN,RefNo } = useParams();
|
|
|
|
const { feedbackStore, authStore } = useStore();
|
|
|
|
const { feedbackStore, authStore } = useStore();
|
|
|
|
const { feedbackRate, feedbackReview, feedbackImages, feedbackInfo } = feedbackStore;
|
|
|
|
const { feedbackRate, feedbackReview, feedbackImages, feedbackInfo } = feedbackStore;
|
|
|
|
const desc = ["none", "Unacceptable", "Poor", "Fair", "Very Good", "Excellent"];
|
|
|
|
const desc = ["none", "Unacceptable", "Poor", "Fair", "Very Good", "Excellent"];
|
|
|
@ -72,7 +72,7 @@ function Detail() {
|
|
|
|
<Space direction="vertical" style={{ width: "100%" }}>
|
|
|
|
<Space direction="vertical" style={{ width: "100%" }}>
|
|
|
|
<Row gutter={16}>
|
|
|
|
<Row gutter={16}>
|
|
|
|
<Col span={20}>
|
|
|
|
<Col span={20}>
|
|
|
|
<Title level={4}>Post Survey - Albee221228017</Title>
|
|
|
|
|
|
|
|
</Col>
|
|
|
|
</Col>
|
|
|
|
<Col span={4}>
|
|
|
|
<Col span={4}>
|
|
|
|
<Button type="link" onClick={() => navigate("/feedback")}>
|
|
|
|
<Button type="link" onClick={() => navigate("/feedback")}>
|
|
|
@ -83,6 +83,7 @@ function Detail() {
|
|
|
|
<Row gutter={16}>
|
|
|
|
<Row gutter={16}>
|
|
|
|
<Col span={4}></Col>
|
|
|
|
<Col span={4}></Col>
|
|
|
|
<Col span={18}>
|
|
|
|
<Col span={18}>
|
|
|
|
|
|
|
|
<Card type="inner" title={<Title level={4}>Post Survey {RefNo}</Title>}>
|
|
|
|
<Form labelCol={{ span: 5 }}>
|
|
|
|
<Form labelCol={{ span: 5 }}>
|
|
|
|
<Divider orientation="left">How satisfied were you with your general experience?</Divider>
|
|
|
|
<Divider orientation="left">How satisfied were you with your general experience?</Divider>
|
|
|
|
<Form.Item label="Tour Guide Service">
|
|
|
|
<Form.Item label="Tour Guide Service">
|
|
|
@ -134,28 +135,18 @@ function Detail() {
|
|
|
|
</Paragraph>
|
|
|
|
</Paragraph>
|
|
|
|
<Divider orientation="left">Other thoughts you want to share with us:</Divider>
|
|
|
|
<Divider orientation="left">Other thoughts you want to share with us:</Divider>
|
|
|
|
<Text>{OtherThoughts}</Text>
|
|
|
|
<Text>{OtherThoughts}</Text>
|
|
|
|
</Form>
|
|
|
|
</Form></Card>
|
|
|
|
</Col>
|
|
|
|
</Col>
|
|
|
|
<Col span={4}></Col>
|
|
|
|
<Col span={4}></Col>
|
|
|
|
</Row>
|
|
|
|
</Row>
|
|
|
|
|
|
|
|
|
|
|
|
<Row gutter={16}>
|
|
|
|
|
|
|
|
<Col span={20}>
|
|
|
|
|
|
|
|
<Title level={4}>External Reviews</Title>
|
|
|
|
|
|
|
|
</Col>
|
|
|
|
|
|
|
|
<Col span={4}></Col>
|
|
|
|
|
|
|
|
</Row>
|
|
|
|
|
|
|
|
<Row gutter={16}>
|
|
|
|
<Row gutter={16}>
|
|
|
|
<Col span={4}></Col>
|
|
|
|
<Col span={4}></Col>
|
|
|
|
<Col span={18}>
|
|
|
|
<Col span={18}>
|
|
|
|
|
|
|
|
<Card type="inner" title={<Title level={4}>External Reviews</Title>}>
|
|
|
|
<Text>{ECI_Content}</Text>
|
|
|
|
<Text>{ECI_Content}</Text>
|
|
|
|
</Col>
|
|
|
|
</Card>
|
|
|
|
<Col span={4}></Col>
|
|
|
|
|
|
|
|
</Row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Row gutter={16}>
|
|
|
|
|
|
|
|
<Col span={20}>
|
|
|
|
|
|
|
|
<Title level={4}>Send Feedback</Title>
|
|
|
|
|
|
|
|
</Col>
|
|
|
|
</Col>
|
|
|
|
<Col span={4}></Col>
|
|
|
|
<Col span={4}></Col>
|
|
|
|
</Row>
|
|
|
|
</Row>
|
|
|
@ -163,8 +154,8 @@ function Detail() {
|
|
|
|
<Row gutter={16}>
|
|
|
|
<Row gutter={16}>
|
|
|
|
<Col span={4}></Col>
|
|
|
|
<Col span={4}></Col>
|
|
|
|
<Col span={18}>
|
|
|
|
<Col span={18}>
|
|
|
|
|
|
|
|
<Card type="inner" title={<Title level={4}>Feedback from local agent</Title>}>
|
|
|
|
<Form name="feedback_detail_from" onFinish={onFinish} labelCol={{ span: 5 }} form={form}>
|
|
|
|
<Form name="feedback_detail_from" onFinish={onFinish} labelCol={{ span: 5 }} form={form}>
|
|
|
|
<Divider orientation="left">Upload photos</Divider>
|
|
|
|
|
|
|
|
<Form.Item>
|
|
|
|
<Form.Item>
|
|
|
|
<Upload
|
|
|
|
<Upload
|
|
|
|
name="ghhfile"
|
|
|
|
name="ghhfile"
|
|
|
@ -177,7 +168,7 @@ function Detail() {
|
|
|
|
onRemove={handRemove}>
|
|
|
|
onRemove={handRemove}>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<PlusOutlined />
|
|
|
|
<PlusOutlined />
|
|
|
|
<div style={{ marginTop: 8 }}>Click to Upload</div>
|
|
|
|
<div style={{ marginTop: 8 }}>Upload photos</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</Upload>
|
|
|
|
</Upload>
|
|
|
|
</Form.Item>
|
|
|
|
</Form.Item>
|
|
|
@ -197,6 +188,7 @@ function Detail() {
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
</Form.Item>
|
|
|
|
</Form.Item>
|
|
|
|
</Form>
|
|
|
|
</Form>
|
|
|
|
|
|
|
|
</Card>
|
|
|
|
</Col>
|
|
|
|
</Col>
|
|
|
|
<Col span={4}></Col>
|
|
|
|
<Col span={4}></Col>
|
|
|
|
</Row>
|
|
|
|
</Row>
|
|
|
|