|
|
@ -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,40 +154,41 @@ function Detail() {
|
|
|
|
<Row gutter={16}>
|
|
|
|
<Row gutter={16}>
|
|
|
|
<Col span={4}></Col>
|
|
|
|
<Col span={4}></Col>
|
|
|
|
<Col span={18}>
|
|
|
|
<Col span={18}>
|
|
|
|
<Form name="feedback_detail_from" onFinish={onFinish} labelCol={{ span: 5 }} form={form}>
|
|
|
|
<Card type="inner" title={<Title level={4}>Feedback from local agent</Title>}>
|
|
|
|
<Divider orientation="left">Upload photos</Divider>
|
|
|
|
<Form name="feedback_detail_from" onFinish={onFinish} labelCol={{ span: 5 }} form={form}>
|
|
|
|
<Form.Item>
|
|
|
|
<Form.Item>
|
|
|
|
<Upload
|
|
|
|
<Upload
|
|
|
|
name="ghhfile"
|
|
|
|
name="ghhfile"
|
|
|
|
// accept="image/*"
|
|
|
|
// accept="image/*"
|
|
|
|
multiple={true}
|
|
|
|
multiple={true}
|
|
|
|
action={config.HT_HOST + `/service-fileServer/FileUpload?GRI_SN=${GRI_SN}&VEI_SN=${authStore.login.travelAgencyId}&token=${authStore.login.token}`}
|
|
|
|
action={config.HT_HOST + `/service-fileServer/FileUpload?GRI_SN=${GRI_SN}&VEI_SN=${authStore.login.travelAgencyId}&token=${authStore.login.token}`}
|
|
|
|
fileList={fileList}
|
|
|
|
fileList={fileList}
|
|
|
|
listType="picture-card"
|
|
|
|
listType="picture-card"
|
|
|
|
onChange={handleChange}
|
|
|
|
onChange={handleChange}
|
|
|
|
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>
|
|
|
|
<Form.Item
|
|
|
|
<Form.Item
|
|
|
|
name="info_content"
|
|
|
|
name="info_content"
|
|
|
|
rules={[
|
|
|
|
rules={[
|
|
|
|
{
|
|
|
|
{
|
|
|
|
required: true,
|
|
|
|
required: true,
|
|
|
|
message: "Please input your messages!",
|
|
|
|
message: "Please input your messages!",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]}>
|
|
|
|
]}>
|
|
|
|
<Input.TextArea rows={6} placeholder="Any feedback for this group you would like to send to Asia Highlights"></Input.TextArea>
|
|
|
|
<Input.TextArea rows={6} placeholder="Any feedback for this group you would like to send to Asia Highlights"></Input.TextArea>
|
|
|
|
</Form.Item>
|
|
|
|
</Form.Item>
|
|
|
|
<Form.Item>
|
|
|
|
<Form.Item>
|
|
|
|
<Button type="primary" htmlType="submit">
|
|
|
|
<Button type="primary" htmlType="submit">
|
|
|
|
Submit
|
|
|
|
Submit
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
</Form.Item>
|
|
|
|
</Form.Item>
|
|
|
|
</Form>
|
|
|
|
</Form>
|
|
|
|
|
|
|
|
</Card>
|
|
|
|
</Col>
|
|
|
|
</Col>
|
|
|
|
<Col span={4}></Col>
|
|
|
|
<Col span={4}></Col>
|
|
|
|
</Row>
|
|
|
|
</Row>
|
|
|
|