From d48ee08f092775411bbec6812fe9a63ce8ecfb61 Mon Sep 17 00:00:00 2001
From: buaixuexideshitongxue <2936013465@qq.com>
Date: Wed, 7 Jan 2026 16:39:28 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B6=89=E8=AE=BF=E6=B6=89=E8=AF=89--=E8=8E=B7?=
=?UTF-8?q?=E5=8F=96=E5=8A=9E=E7=90=86=E6=95=B0=E6=8D=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/data/complaintCollection.ts | 12 +++++++++-
src/views/data/ComplaintCollection.vue | 31 ++++++++++++++++++--------
2 files changed, 33 insertions(+), 10 deletions(-)
diff --git a/src/api/data/complaintCollection.ts b/src/api/data/complaintCollection.ts
index c4e0349..9bbb34f 100644
--- a/src/api/data/complaintCollection.ts
+++ b/src/api/data/complaintCollection.ts
@@ -53,4 +53,14 @@ export function maileRepeatt(body) {
url: `/data/complaintCollection/maileRepeatt`,
body
});
-}
\ No newline at end of file
+}
+
+/**
+ * 办理的详情
+ */
+export function handlerData(body) {
+ return request.post({
+ url: `/data/complaintCollection/handlerData`,
+ body
+ });
+}
diff --git a/src/views/data/ComplaintCollection.vue b/src/views/data/ComplaintCollection.vue
index 2840443..8a4fcb9 100644
--- a/src/views/data/ComplaintCollection.vue
+++ b/src/views/data/ComplaintCollection.vue
@@ -369,7 +369,7 @@
top="5vh"
destroy-on-close
>
-
+
@@ -399,7 +399,7 @@ import useCatchStore from "@/stores/modules/catch";
import {
addComplaintCollection, addComplaintCollectionBlame,
delComplaintCollection,
- getComplaintCollectionPage,
+ getComplaintCollectionPage, handlerData,
updateComplaintCollection
} from "@/api/data/complaintCollection.ts";
import Complaint_detail from "@/components/data/complaint_detail.vue";
@@ -435,7 +435,7 @@ watch(
query.value.sourceTableList = Array.from(tableSet)
query.value.sourceTableSubOneList = Array.from(subSet)
},
- { deep: true }
+ {deep: true}
)
@@ -500,7 +500,7 @@ const createEmptyAddForm = () => ({
leadApproval: '',
tags: [],
handleMethod: '',
- thingFiles:[],
+ thingFiles: [],
});
const addShow = ref(false);
const addForm = ref(createEmptyAddForm());
@@ -580,7 +580,7 @@ const updateForm = ref({
handleMethod: "",
involveProblemIdList: [],
tags: [],
- thingFiles:[],
+ thingFiles: [],
})
function normalizeThingFiles(val) {
@@ -589,7 +589,10 @@ function normalizeThingFiles(val) {
// 后端可能返回 JSON 字符串
if (typeof val === 'string' && val.trim().startsWith('[')) {
- try { return JSON.parse(val) } catch { /* ignore */ }
+ try {
+ return JSON.parse(val)
+ } catch { /* ignore */
+ }
}
// 后端可能返回 "path1,path2"
@@ -727,7 +730,6 @@ const sourceTableAndLevel = computed(() => {
})
-
// ② 页面私有字典
const localDict = {
sourceTable: [
@@ -796,9 +798,20 @@ const submitLoading = ref(false)
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
// 点击办理
const handleAction = async (row) => {
- negativeSfss.value.currentRow = JSON.parse(JSON.stringify(row))
- negativeVerifySfssDailog.value = true
+ submitLoading.value = true
+ try {
+ // 先设置基础信息
+ negativeSfss.value.currentRow = JSON.parse(JSON.stringify(row))
+ const res = await handlerData({ id: row.id })
+ Object.assign(negativeSfss.value, res?.data ?? res)
+ negativeVerifySfssDailog.value = true
+ } catch (e) {
+ console.error("加载办理数据失败", e)
+ } finally {
+ submitLoading.value = false
+ }
}
+
const negativeVerifySfssRef = ref();
// 办理提交
const handleSubmit = async () => {