From f27e7f51371878a486455bca26581979980ac546 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9A=E5=95=A6C=E6=A2=A6?= <15709267061@163.com> Date: Fri, 13 Jun 2025 21:01:19 +0800 Subject: [PATCH] update --- CHANGELOG.md | 5 ++ src/api/admin.js | 14 +++ src/components/Chat/Information.vue | 62 ++++++++++++- src/components/Chat/index.vue | 3 +- src/components/upload/UploadSlot.vue | 5 +- .../message-center/platform-intervention.vue | 89 +++++++++++++++---- 6 files changed, 158 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cc4678..93c76c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +### 2025-06-12 + + 进度: + 任务领取 -> 任务回填 -> 任务回填中的所有状态 -> 沟通中的所有状态 -> 平台介入 + ### 2025-06-12 测试文档过到第145条 diff --git a/src/api/admin.js b/src/api/admin.js index 610a294..d0cb803 100644 --- a/src/api/admin.js +++ b/src/api/admin.js @@ -637,6 +637,20 @@ const admin = { data: data, }); }, + getExchangeLogIntervention: async (data) => { + return request({ + url: '/admin/Intervention/getExchangeLog', + method: Method.POST, + data: data, + }); + }, + addIntervention: async (data) => { + return request({ + url: '/admin/Intervention/addIntervention', + method: Method.POST, + data: data, + }); + }, } export default admin; diff --git a/src/components/Chat/Information.vue b/src/components/Chat/Information.vue index 7943096..782e807 100644 --- a/src/components/Chat/Information.vue +++ b/src/components/Chat/Information.vue @@ -7,7 +7,11 @@ import {Message} from "@arco-design/web-vue"; import useTableQuery from "../../hooks/useTableQuery.js"; import dayjs from "dayjs"; import {throttle} from "lodash"; +import {useSystemStore} from "../../pinia/SystemStore/index.js"; +import UploadSlot from "../upload/UploadSlot.vue"; +const SystemStore = useSystemStore(); +const emits = defineEmits(['success']); const ChatBoxRef = useTemplateRef('ChatBox'); const {task} = defineProps({ task: { @@ -19,6 +23,7 @@ const po = reactive({ id: task.id, }); const vo = reactive({ + info: null, rows: [], total: 0, }); @@ -29,10 +34,11 @@ const form = reactive({ const {loading, pagination, initFetchData, fetchData} = useTableQuery({ parameter: po, - api: Api.merchant.getExchangeLog, + api: SystemStore.isRoot ? Api.admin.getExchangeLogIntervention : Api.merchant.getExchangeLog, callback: (data) => { if (data.rows.length === 0) { } else { + vo.info = data.info; vo.total = data.total; vo.rows.push(...data.rows); } @@ -58,12 +64,19 @@ const handleScroll = ({target}) => { }, 500)(); } } + +const addIntervention = async () => { + const {msg} = await Api.admin.addIntervention({...form, id: task.id,}); + Message.success(msg); + await fetchData(); + emits('success') +} + :class="['size-full flex flex-col gap-[30px] overflow-auto', !SystemStore.isRoot ? 'max-h-[600px]' : 'max-h-[800px]']"> @@ -88,9 +101,46 @@ const handleScroll = ({target}) => { + + + + 达人申诉理由: + + + {{ vo.info.remark }} + + + + + + 平台处理结果: + + + + + + form.images.push(e)"> + + + + + + 平台介入 + + + { + +