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(() => {