From 8f3586ffb3c8d93d7533f61616e5d327bbe05298 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Thu, 13 Nov 2025 14:12:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20External=20Review=20=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E3=80=81=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/locales/en/common.json | 15 ++- src/components/SearchForm.jsx | 16 +++ src/config.js | 1 + src/main.jsx | 12 +- src/stores/ExternalReview.js | 54 ++++++++ src/views/App.jsx | 3 +- src/views/external-reviews/review-list.jsx | 148 +++++++++++++++++++++ 7 files changed, 243 insertions(+), 6 deletions(-) create mode 100644 src/stores/ExternalReview.js create mode 100644 src/views/external-reviews/review-list.jsx diff --git a/public/locales/en/common.json b/public/locales/en/common.json index 1b5553a..e13ab18 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -93,6 +93,7 @@ "Feedback": "Feedback", "Notice": "Notice", "Report": "Report", + "external-reviews": "External Reviews", "Airticket": "AirTicket", "Trainticket": "TrainTicket", "Products": "Products" @@ -111,5 +112,17 @@ "Finance_Dept_arrproved": "Finance Dept arrproved", "Paid": "Paid" }, - "Compare": "Compare" + "Compare": "Compare", + "review": { + "ReviewLink": "Review Link", + "DatePosted": "Date Posted", + "ReferenceNumber": "Reference Number", + "AdminNotes": "Admin Notes", + "CustomerID": "Customer ID", + "Guide": "Guide", + "Bonus": "Bonus", + "ApprovalStatus": "Approval Status", + "ApprovalDate": "Approval Date", + "Action": "Action" + } } diff --git a/src/components/SearchForm.jsx b/src/components/SearchForm.jsx index f9e0f52..ad4bd89 100644 --- a/src/components/SearchForm.jsx +++ b/src/components/SearchForm.jsx @@ -92,6 +92,7 @@ const SearchForm = ({ initialValue, onSubmit, onReset, onMounted, confirmText, f plan_state: { key: "plan_state", transform: value => value?.value || value?.key || "", default: "" }, airticket_state: { key: "airticket_state", transform: value => value?.value || value?.key || "", default: "" }, unconfirmed: { key: "unconfirmed", transform: value => (value ? 1 : 0) }, + approvalStatus: { key: "approvalStatus", transform: value => value }, }; let dest = {}; const { dates, datesDiff, ...omittedValue } = values; @@ -374,6 +375,21 @@ function getFields(props) { , fieldProps?.unconfirmed?.col || 2 ), + item( + "approvalStatus", // 站外好评审核状态 + 99, + +