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') +} + +