feat: 海外反馈表. External Reviews

release
Lei OT 2 years ago
parent dd201d8b4e
commit ee640a1891

@ -18,6 +18,7 @@ class Feedback {
feedbackRate = []; //反馈评分 feedbackRate = []; //反馈评分
feedbackReview = []; //站外好评 feedbackReview = []; //站外好评
feedbackInfo = []; //地接社反馈的信息 feedbackInfo = []; //地接社反馈的信息
feedbackServiceRate = {}; // 反馈评分, 含细项的版本
onDateRangeChange = dates => { onDateRangeChange = dates => {
console.log(dates); console.log(dates);
@ -98,8 +99,7 @@ class Feedback {
const cityName = json.group[0]?.cityName || ''; const cityName = json.group[0]?.cityName || '';
runInAction(() => { runInAction(() => {
this.feedbackRate = {...serviceItem, OtherThoughts, PhotoPermission, signatureData, cityName }; this.feedbackServiceRate = {...serviceItem, OtherThoughts, PhotoPermission, signatureData, cityName };
// this.feedbackReview = json.Result1;
}); });
}) })
.catch(error => { .catch(error => {

@ -12,13 +12,14 @@ function Detail() {
const navigate = useNavigate(); const navigate = useNavigate();
const { GRI_SN, RefNo, CII_SN } = useParams(); const { GRI_SN, RefNo, CII_SN } = useParams();
const { feedbackStore, authStore } = useStore(); const { feedbackStore, authStore } = useStore();
const { feedbackRate, feedbackReview, feedbackImages, feedbackInfo } = feedbackStore; const { feedbackReview, feedbackImages, feedbackInfo, feedbackServiceRate: feedbackRate } = feedbackStore;
const desc = ["none", "Unacceptable", "Poor", "Fair", "Very Good", "Excellent"]; const desc = ["none", "Unacceptable", "Poor", "Fair", "Very Good", "Excellent"];
const { notification } = App.useApp(); const { notification } = App.useApp();
const [form] = Form.useForm(); const [form] = Form.useForm();
useEffect(() => { useEffect(() => {
console.info("Detail.useEffect: " + GRI_SN); console.info("Detail.useEffect: " + GRI_SN);
feedbackStore.getFeedbackDetail(authStore.login.travelAgencyId, GRI_SN);
feedbackStore.getCustomerFeedbackDetail(authStore.login.travelAgencyId, GRI_SN, CII_SN); feedbackStore.getCustomerFeedbackDetail(authStore.login.travelAgencyId, GRI_SN, CII_SN);
feedbackStore.getFeedbackImages(authStore.login.travelAgencyId, GRI_SN); feedbackStore.getFeedbackImages(authStore.login.travelAgencyId, GRI_SN);
feedbackStore.getFeedbackInfo(authStore.login.travelAgencyId, GRI_SN).then(v => { feedbackStore.getFeedbackInfo(authStore.login.travelAgencyId, GRI_SN).then(v => {
@ -82,7 +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} for {cityName}</Title>}> <Card type="inner" title={<Title level={4}>Post Survey {RefNo} in {cityName}</Title>}>
<Form labelCol={{ span: 5 }}> <Form labelCol={{ span: 5 }}>
<Divider orientation="left">How satisfied were you with your tour guide?</Divider> <Divider orientation="left">How satisfied were you with your tour guide?</Divider>
{HWO_Guide.map(ele => ( {HWO_Guide.map(ele => (

Loading…
Cancel
Save