From f6fe7f54e92fd77e66421610159621ef352f3fe9 Mon Sep 17 00:00:00 2001
From: Zy <1448159279@qq.com>
Date: Mon, 27 Jul 2026 08:09:22 +0800
Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E5=B7=A5=E5=8D=95=E4=BB=BB?=
=?UTF-8?q?=E5=8A=A1=E6=95=B0=E9=87=8F=E8=A7=92=E6=A0=87=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
wuye-manager-uniapp/api/api.js | 10 +++-
wuye-manager-uniapp/api/complain.js | 5 +-
.../pageSubPack/complaint/Details.vue | 4 ++
.../pageSubPack/complaint/handle.vue | 3 +-
wuye-manager-uniapp/pages/index/index.vue | 48 ++++++++++++++++---
5 files changed, 59 insertions(+), 11 deletions(-)
diff --git a/wuye-manager-uniapp/api/api.js b/wuye-manager-uniapp/api/api.js
index 3bc62f3..da7b991 100644
--- a/wuye-manager-uniapp/api/api.js
+++ b/wuye-manager-uniapp/api/api.js
@@ -1,4 +1,8 @@
-import request, { get, post, upload } from './request.js'
+import request, {
+ get,
+ post,
+ upload
+} from './request.js'
// =======账号密码登录========
export const getLoginPassword = data => {
@@ -42,6 +46,10 @@ export const getNewNoticeData = () => {
export const getBannarList = () => {
return get('/api/manage/banner/list')
}
+// 我的工单待办数量
+export const myOrderCount = () => {
+ return get('/manage/notice/myOrderCount')
+}
// ============通知列表===========
export const getNoticeList = data => {
diff --git a/wuye-manager-uniapp/api/complain.js b/wuye-manager-uniapp/api/complain.js
index 843a55a..bc9ce69 100644
--- a/wuye-manager-uniapp/api/complain.js
+++ b/wuye-manager-uniapp/api/complain.js
@@ -3,7 +3,7 @@
* @Author: Zy
* @Date: 2026-05-15 08:50:47
* @LastEditor: Zy
- * @LastEditTime: 2026-06-18 09:47:21
+ * @LastEditTime: 2026-07-25 16:36:46
*/
import request, {
filterParams,
@@ -53,7 +53,8 @@ export const getComplaniMain = (id) => {
/**
* @description: 处理投诉API
* @param {Object} data
- * @param {string} data.id 处理人员id
+ * @param {string} data.id 投诉id
+ * @param {string} data.handleId 处理人员id
* @param {string} data.handleContent 处理描述
*/
export const putComplainProcess = (data) => {
diff --git a/wuye-manager-uniapp/pageSubPack/complaint/Details.vue b/wuye-manager-uniapp/pageSubPack/complaint/Details.vue
index 7d1157c..2102f16 100644
--- a/wuye-manager-uniapp/pageSubPack/complaint/Details.vue
+++ b/wuye-manager-uniapp/pageSubPack/complaint/Details.vue
@@ -34,6 +34,10 @@
{{ item.problemDes }}
+
+ 处理人:
+ {{ item.handleName ?? '---' }}
+
投诉人:
{{ item.complaintName }}
diff --git a/wuye-manager-uniapp/pageSubPack/complaint/handle.vue b/wuye-manager-uniapp/pageSubPack/complaint/handle.vue
index 21d1ce4..b106d64 100644
--- a/wuye-manager-uniapp/pageSubPack/complaint/handle.vue
+++ b/wuye-manager-uniapp/pageSubPack/complaint/handle.vue
@@ -68,7 +68,8 @@ function handleSelecthouse() {
if (checkoutinfo.value.userId) {
putComplainProcess({
id: form.value.complaintId,
- handleContent: form.value.handleContent
+ handleContent: form.value.handleContent,
+ handleId: checkoutinfo.value.userId
}).then(() => {
uni.navigateBack()
})
diff --git a/wuye-manager-uniapp/pages/index/index.vue b/wuye-manager-uniapp/pages/index/index.vue
index 8963a2a..b787bd9 100644
--- a/wuye-manager-uniapp/pages/index/index.vue
+++ b/wuye-manager-uniapp/pages/index/index.vue
@@ -105,12 +105,13 @@
@click="handleFunctionClick(item)"
v-if="permStore.hasPermi(item.permKey)"
>
-
+
{{ item.text }}
+ {{ MyOrderNum > 99 ? '99' : MyOrderNum }}
@@ -126,7 +127,8 @@ import {
getCurrentVillage,
getTodayInspection,
getNewNoticeData,
- getBannarList
+ getBannarList,
+ myOrderCount
} from '../../api/api.js'
import { usePermStore } from '@/stores/usePermStore'
@@ -273,7 +275,7 @@ const actionMap = {
goToRevenueStatistics
}
-const handleFunctionClick = (item) => {
+const handleFunctionClick = item => {
const handler = actionMap[item.action]
if (handler) handler()
}
@@ -346,6 +348,22 @@ function getbannarData() {
})
}
+const MyOrderNum = ref(0)
+// 查询我的工单-待办数量
+function getMyOrderNum() {
+ myOrderCount()
+ .then(res => {
+ if (res.code === 200 && res.data) {
+ MyOrderNum.value = res.data
+ } else {
+ MyOrderNum.value = 0
+ }
+ })
+ .catch(() => {
+ MyOrderNum.value = 0
+ })
+}
+
// 接收选择小区返回的参数
const slelctHomeData = data => {
currentCommunity.value = data.villageName
@@ -359,6 +377,7 @@ onShow(() => {
getbannarData()
getInspectionData()
currentVillageData()
+ getMyOrderNum()
permStore.initPerm()
})
@@ -376,6 +395,20 @@ onUnload(() => {