From e50aa7cbdf087f01eeff82c7cd77a60d01064f60 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, 20 Jun 2025 21:21:52 +0800 Subject: [PATCH] update --- src/api/merchant.js | 14 ++++ src/components/Chat/Information.vue | 31 ++++++- src/components/Chat/index.vue | 32 ++++++- src/pages/merchant/components/AddMaterial.vue | 2 +- src/pages/merchant/components/FastSetting.vue | 80 ++++++++++++++++++ .../merchant/components/ViewMaterial.vue | 2 +- .../components/look-backfill-modal.vue | 84 +++++++++++++++---- .../pages/communication-center/index.vue | 10 +-- .../pages/task-center/components/Backfill.vue | 8 +- .../components/refuse-modal-form1.vue | 2 +- .../pages/task-center/look-min-task.vue | 30 ++++--- .../pages/task-center/manage-materials.vue | 7 +- 12 files changed, 260 insertions(+), 42 deletions(-) create mode 100644 src/pages/merchant/components/FastSetting.vue diff --git a/src/api/merchant.js b/src/api/merchant.js index 181f9cf..895d5c0 100644 --- a/src/api/merchant.js +++ b/src/api/merchant.js @@ -561,6 +561,20 @@ const merchant = { data: data }); }, + finshReply: async (data) => { + return request({ + url: '/index/task/finshReply', + method: Method.POST, + data: data + }); + }, + getBackinfo: async (data) => { + return request({ + url: '/index/task/getBackinfo', + method: Method.POST, + data: data + }); + }, } export default merchant; diff --git a/src/components/Chat/Information.vue b/src/components/Chat/Information.vue index 782e807..59e3398 100644 --- a/src/components/Chat/Information.vue +++ b/src/components/Chat/Information.vue @@ -19,6 +19,7 @@ const {task} = defineProps({ default: {} } }); +let tempPage = 0; const po = reactive({ id: task.id, }); @@ -38,9 +39,16 @@ const {loading, pagination, initFetchData, fetchData} = useTableQuery({ callback: (data) => { if (data.rows.length === 0) { } else { + tempPage = pagination.current; vo.info = data.info; vo.total = data.total; vo.rows.push(...data.rows); + vo.rows = Array.from( + vo.rows.reduce((map, item) => { + map.set(item.id, item); + return map; + }, new Map()).values() + ) } } }); @@ -53,7 +61,7 @@ const send = async () => { Message.success(msg); form.content = null; form.images.length = 0; - await fetchData(); + pagination.current = tempPage; } const handleScroll = ({target}) => { @@ -96,6 +104,10 @@ const addIntervention = async () => { +
+ {{ v.status_text }} +
已读
@@ -220,4 +232,21 @@ const addIntervention = async () => { .chat-left { } + +.text_info { + font-size: 12px; + margin-top: 10px; +} + +.text_success { + color: rgba(0, 180, 42, 1); +} + +.text_warn { + color: rgba(255, 125, 0, 1); +} + +.text_error { + color: rgba(245, 63, 63, 1); +} diff --git a/src/components/Chat/index.vue b/src/components/Chat/index.vue index 58027d8..86ed20f 100644 --- a/src/components/Chat/index.vue +++ b/src/components/Chat/index.vue @@ -1,8 +1,12 @@