diff --git a/wuye-manager-uniapp/.gitignore b/wuye-manager-uniapp/.gitignore index 1e5219d..9c97877 100644 --- a/wuye-manager-uniapp/.gitignore +++ b/wuye-manager-uniapp/.gitignore @@ -1,5 +1,68 @@ -node_modules/ -unpackage/ -.hbuilderx/ +# 系统缓存文件 .DS_Store +Thumbs.db +*.swp +*.swo + +# 编辑器配置 +.idea/ +.vscode/ +*.iml +*.suo +*.sln .history/ + +# HBuilderX 本地配置 +.hbuilderx/ +.uni-*/ + +# 项目依赖 +node_modules/ +package-lock.json +yarn.lock +pnpm-lock.yaml + +# 证书/密钥(上架用的jks证书千万不能传) +*.jks +*.keystore +*.p12 +*.key +*.pem + +# 编译打包产物 +unpackage/ +dist/ +build/ +output/ + +# 安卓相关 +androidPrivacy.json +*.jks +*.keystore +*.p12 +local.properties + +# iOS相关 +*.mobileprovision +*.pem +*.cer +ios/Pods/ +ios/build/ +ios/DerivedData/ + +# 日志临时文件 +*.log +temp/ +tmp/ +*.tmp + +# 环境配置 +.env.local +.env.development.local +.env.test.local +.env.production.local + +# 其他冗余文件 +npm-debug.log* +yarn-debug.log* +yarn-error.log* diff --git a/wuye-manager-uniapp/api/ticket.js b/wuye-manager-uniapp/api/ticket.js index a099204..413d8ba 100644 --- a/wuye-manager-uniapp/api/ticket.js +++ b/wuye-manager-uniapp/api/ticket.js @@ -3,7 +3,7 @@ * @Author: Zy * @Date: 2026-05-19 16:29:20 * @LastEditor: Zy - * @LastEditTime: 2026-05-20 08:36:23 + * @LastEditTime: 2026-05-20 10:45:01 */ import request, { get, @@ -104,3 +104,30 @@ export function getTicketMainById(id) { export function ticketComputed(data) { return put('/manage/repair/order', filterParams(data)) } + + + + +/** + * @description: 获取工单大厅 工单列表 + * @param {RequestParams<{ + * problemStatus:1|2 + * }>} data + * @return { Promise>} + */ +export function getTicketHallList(data) { + return get('/manage/repair/order/orderlist', filterParams(data)) +} + + + + + +/** + * @description: 分配 维修人员 - 维修工单 + * @param {*} data + * @return + */ +export function shareRepairUser(data) { + return post('/manage/repair/order/allocate', filterParams(data)) +} diff --git a/wuye-manager-uniapp/components/tabs/tabs.vue b/wuye-manager-uniapp/components/tabs/tabs.vue index 8212097..ba31f93 100644 --- a/wuye-manager-uniapp/components/tabs/tabs.vue +++ b/wuye-manager-uniapp/components/tabs/tabs.vue @@ -1,16 +1,24 @@ @@ -27,6 +35,7 @@ interface TabItem { // Props 类型定义 interface Props { tabslist?: any[] + height?: number showBottomLine?: boolean // 配置:传入字段名 options?: { @@ -39,6 +48,7 @@ interface Props { // 定义 Props const props = withDefaults(defineProps(), { tabslist: () => [], + height: 60, showBottomLine: true, options: () => ({ label: 'name', value: 'value' }), activeValue: null @@ -75,9 +85,12 @@ const handleTabs = (item: TabItem) => { diff --git a/wuye-manager-uniapp/pageSubPack/ticket/hall.vue b/wuye-manager-uniapp/pageSubPack/ticket/hall.vue index 6a3e134..d6c9f58 100644 --- a/wuye-manager-uniapp/pageSubPack/ticket/hall.vue +++ b/wuye-manager-uniapp/pageSubPack/ticket/hall.vue @@ -7,6 +7,7 @@ @@ -40,49 +41,50 @@ > - {{ record.title }} + {{ record.item }} - {{ getStatusText(record.repairStatus) }} + {{ getStatusText(record.problemStatus) }} - - {{ record.reportType }} - {{ record.category }} + + {{ record.projectTypeStr }} + {{ + record.maintenanceItemName + }} - {{ record.content }} + {{ record.problem }} - + {{ record.createTime }} - 维修师傅:{{ record.repairman }}维修师傅:{{ record.repairName }} - @@ -94,41 +96,44 @@ diff --git a/wuye-manager-uniapp/pages.json b/wuye-manager-uniapp/pages.json index f41dc0f..43a3244 100644 --- a/wuye-manager-uniapp/pages.json +++ b/wuye-manager-uniapp/pages.json @@ -271,12 +271,6 @@ "^uni-(.*)": "@/components/uni-$1.vue" } }, - "condition": { - "list": [{ - "name": "维修完成", - "path": "pageSubPack/ticket/repairCompleted" - }] - }, "tabBar": { "color": "#333333", "backgroundColor": "#F5F6F6", diff --git a/wuye-manager-uniapp/pages/index/index.vue b/wuye-manager-uniapp/pages/index/index.vue index e4e8c94..2ef4422 100644 --- a/wuye-manager-uniapp/pages/index/index.vue +++ b/wuye-manager-uniapp/pages/index/index.vue @@ -15,12 +15,18 @@ - + {{ currentCommunity }} - + @@ -50,8 +56,11 @@ - - + + - {{allCount}} + {{ allCount }} 全部巡检 - {{pendingCount}} + {{ pendingCount }} 待巡检 - {{InspectedCount}} + {{ InspectedCount }} 已巡检 @@ -91,26 +100,46 @@ - + 故障上报 - + 一键开门 - + 工单大厅 - + 我的工单 - + 投诉处理 @@ -122,8 +151,12 @@