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 @@
@@ -26,12 +52,14 @@ const emits = defineEmits(['success']);
-
+
进度管理
-
+
进度管理
diff --git a/src/pages/merchant/components/AddMaterial.vue b/src/pages/merchant/components/AddMaterial.vue
index 4c8d279..233dec3 100644
--- a/src/pages/merchant/components/AddMaterial.vue
+++ b/src/pages/merchant/components/AddMaterial.vue
@@ -34,7 +34,7 @@ watch(
if (val) {
MaterialSourceRef.value.getMaterialList();
targetList.length = 0;
- material.material.forEach(v => uploadSuccess(v));
+ material.material?.forEach(v => uploadSuccess(v));
}
}
)
diff --git a/src/pages/merchant/components/FastSetting.vue b/src/pages/merchant/components/FastSetting.vue
new file mode 100644
index 0000000..fa6d7b4
--- /dev/null
+++ b/src/pages/merchant/components/FastSetting.vue
@@ -0,0 +1,80 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/merchant/components/ViewMaterial.vue b/src/pages/merchant/components/ViewMaterial.vue
index 566256f..bf731df 100644
--- a/src/pages/merchant/components/ViewMaterial.vue
+++ b/src/pages/merchant/components/ViewMaterial.vue
@@ -34,7 +34,7 @@ const edit = () => {
title-align="start"
title="素材">
-
素材{{ index }}
diff --git a/src/pages/merchant/pages/communication-center/components/look-backfill-modal.vue b/src/pages/merchant/pages/communication-center/components/look-backfill-modal.vue
index fa41c6b..bd89e12 100644
--- a/src/pages/merchant/pages/communication-center/components/look-backfill-modal.vue
+++ b/src/pages/merchant/pages/communication-center/components/look-backfill-modal.vue
@@ -1,7 +1,9 @@
- 查看回填
+ {
+ visible=true;
+ getData();
+ }">查看回填
+
-
- https://baidu.com
-
-
-
-
-
通过
-
-
+
+
-
+
+
+
+
+
- 已通过
- 在此之前完成审核
- 等待回填
- /
+
+ \
+
+
+ {{ record.back_status_text }}
+
+
+ {{ record.back_status_text }}
+
+
+ {{ record.back_status_text }}
+
+
+ {{ record.back_status_text }}
+
diff --git a/src/pages/merchant/pages/communication-center/index.vue b/src/pages/merchant/pages/communication-center/index.vue
index b8122d6..fcef3bd 100644
--- a/src/pages/merchant/pages/communication-center/index.vue
+++ b/src/pages/merchant/pages/communication-center/index.vue
@@ -5,6 +5,7 @@ import useTableQuery from "../../../../hooks/useTableQuery.js";
import Api from "../../../../api/index.js";
import LookBackfillModal from "./components/look-backfill-modal.vue";
import Chat from "../../../../components/Chat/index.vue";
+import Settlement from "../task-center/components/Settlement.vue";
const columns = [
{
@@ -165,8 +166,8 @@ const {loading, pagination, initFetchData} = useTableQuery({
已完成
-
-
+
+
@@ -178,9 +179,8 @@ const {loading, pagination, initFetchData} = useTableQuery({
-
- 确认结算
- 已结算
+
+
diff --git a/src/pages/merchant/pages/task-center/components/Backfill.vue b/src/pages/merchant/pages/task-center/components/Backfill.vue
index 22a6a55..0aa144b 100644
--- a/src/pages/merchant/pages/task-center/components/Backfill.vue
+++ b/src/pages/merchant/pages/task-center/components/Backfill.vue
@@ -3,6 +3,7 @@ import Api from "../../../../../api/index.js";
import XSelect from "../../../../../components/XSelect/index.vue";
import XTimePicker from "../../../../../components/XTimePicker/XTimePicker.vue";
import {dayjs} from "@arco-design/web-vue/es/_utils/date.js";
+import FastSetting from "../../../components/FastSetting.vue";
const {form, index} = defineProps({
form: {
@@ -44,7 +45,12 @@ const getDisabledTime = (date) => {
v-model:end="po.end_time">
之间
-
一键快速设置
+
{
+ po.start_time = val.startTime;
+ po.end_time = val.endTime;
+ }">
+ 一键快速设置
+
diff --git a/src/pages/merchant/pages/task-center/components/refuse-modal-form1.vue b/src/pages/merchant/pages/task-center/components/refuse-modal-form1.vue
index fcbba35..51ae456 100644
--- a/src/pages/merchant/pages/task-center/components/refuse-modal-form1.vue
+++ b/src/pages/merchant/pages/task-center/components/refuse-modal-form1.vue
@@ -88,7 +88,7 @@ defineExpose({
-
+
{
:columns="columns"
class="w-full mt-[20px]">
- 待上传素材
- 素材审核中
- 重新上传素材
- 待领取
- 已领取
- 已结算
- 已终止
+ 待上传素材
+
+ 素材审核中
+
+
+ 重新上传素材
+
+ 待领取
+
+ 已领取
+
+ 已结算
+
+ 已终止
+
@@ -160,12 +169,12 @@ const passTask = async (id, task_backfill_id) => {
通过
+ :disabled="!(item.back_status===2)">通过
+ :disabled="!(item.back_status===2)">
@@ -177,7 +186,8 @@ const passTask = async (id, task_backfill_id) => {
\
-
+
{{ item.back_status_text }}
diff --git a/src/pages/merchant/pages/task-center/manage-materials.vue b/src/pages/merchant/pages/task-center/manage-materials.vue
index 949d475..74cc64c 100644
--- a/src/pages/merchant/pages/task-center/manage-materials.vue
+++ b/src/pages/merchant/pages/task-center/manage-materials.vue
@@ -92,6 +92,7 @@ const success = async () => {
data: vo.rows.filter(v => v.status !== 1).map(v => v.childrenMaterial.map(k => ({
id: k.id,
title: k.title,
+ material: k.material,
content: k.content,
tags: k.tags,
}))).flat()
@@ -147,7 +148,7 @@ const success = async () => {
v.material = val"
:id="po.id"
:material="v">
@@ -161,8 +162,8 @@ const success = async () => {
:id="po.id">
+ v-if="v.material.length>0"
+ :list="v.material">