From abc8086ad0312619a964ed4df4deb939663cdcea Mon Sep 17 00:00:00 2001 From: Zy <1448159279@qq.com> Date: Tue, 19 May 2026 17:31:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A1=E6=A3=80=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wuye-manager-uniapp/App.vue | 6 + wuye-manager-uniapp/api/common.js | 2 +- wuye-manager-uniapp/api/complain.js | 2 +- wuye-manager-uniapp/api/insepction.js | 44 ++++- wuye-manager-uniapp/api/ticket.js | 64 +++++++ .../pageSubPack/complaint/handleUser.vue | 1 - .../inspection/inspection_main.vue | 35 +++- .../inspection/inspection_record.vue | 12 +- .../inspection/inspection_upload.vue | 38 ++++- .../inspection/toDays_inscpection.vue | 161 ++++++++++-------- .../pageSubPack/instrument/addreplacement.vue | 1 - .../pageSubPack/ticket/myticket.vue | 153 +++++++---------- .../pageSubPack/ticket/repairCompleted.vue | 1 - .../pageSubPack/ticket/repairMain.vue | 17 +- wuye-manager-uniapp/pages/index/index.vue | 149 +++++++++------- 15 files changed, 433 insertions(+), 253 deletions(-) create mode 100644 wuye-manager-uniapp/api/ticket.js diff --git a/wuye-manager-uniapp/App.vue b/wuye-manager-uniapp/App.vue index 7dc69c1..b8969b1 100644 --- a/wuye-manager-uniapp/App.vue +++ b/wuye-manager-uniapp/App.vue @@ -74,6 +74,12 @@ export default { .overflow-auto { overflow: auto; } +.nodata { + color: #ccc; + text-align: center; + margin-top: 200rpx; + letter-spacing: 1rpx; +} /* 自定义导航栏专用 */ .custom-header { height: calc(var(--status-bar-height) + 88rpx); diff --git a/wuye-manager-uniapp/api/common.js b/wuye-manager-uniapp/api/common.js index d7e6449..64261bb 100644 --- a/wuye-manager-uniapp/api/common.js +++ b/wuye-manager-uniapp/api/common.js @@ -3,7 +3,7 @@ * @Author: Zy * @Date: 2026-05-15 11:37:01 * @LastEditor: Zy - * @LastEditTime: 2026-05-18 15:34:07 + * @LastEditTime: 2026-05-19 16:32:46 */ import request, { get, diff --git a/wuye-manager-uniapp/api/complain.js b/wuye-manager-uniapp/api/complain.js index f0c6ffb..5b6690a 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-05-16 15:42:36 + * @LastEditTime: 2026-05-19 16:34:23 */ import request, { filterParams, diff --git a/wuye-manager-uniapp/api/insepction.js b/wuye-manager-uniapp/api/insepction.js index 1bce4af..a24b52b 100644 --- a/wuye-manager-uniapp/api/insepction.js +++ b/wuye-manager-uniapp/api/insepction.js @@ -3,7 +3,7 @@ * @Author: Zy * @Date: 2026-05-16 15:43:07 * @LastEditor: Zy - * @LastEditTime: 2026-05-18 16:35:05 + * @LastEditTime: 2026-05-19 16:25:14 */ import request, { @@ -25,11 +25,16 @@ import request, { /** * @typedef InspectionListType 巡检任务表 * @property {string} id = [巡检任务ID] + * + * @property {0|1} inspectSetting = [0必须拍照, 1允许跳检] + * @property {string} inspectorName = [巡检人员] + * @property {string} phoneNumber = [巡检人员 联系方式] + * @property {string} inspectTime = [巡检时间] + * * @property {string} taskName = [巡检任务名称] * @property {string} taskTime = [巡检任务执行时间] * @property {string} taskStatus = [巡检状态] * @property {string} planName = [巡检计划] - * @property {string} inspectorName = [巡检人员] * @property {string} executeDate = [巡检日期] * @property {PointsType[]} points = [巡检点] * @property {string[]} [itemslist] = [巡检项目] @@ -44,11 +49,42 @@ export const getInspectionList = (data) => { } - +/** + * @typedef PointType 巡检点 信息 + * @property {string} imgUrl = [0必须拍照, 1允许跳检] + * @property {string} itemNames = [巡检人员] + * @property {string} itemStandards = [巡检人员 联系方式] + * @property {string} pointId = [巡检时间] + * @property {string} pointName = [巡检点名称] + * @property {string} remark = [巡检描述] + * @property { 0 | 1 } status = [巡检点状态 ] + * */ +/** + * @typedef RoutesType 巡检路线 信息 + * @property {string} inspectSetting = [0必须拍照, 1允许跳检] + * @property {string} description = [巡检人员] + * @property {string} routeId = [巡检人员 联系方式] + * @property {string} routeName = [巡检时间] + * @property {PointType[]} points = [巡检计划] + * */ +/** + * @typedef InspectionMainType 巡检任务详情 + * @property {0|1} inspectSetting = [0必须拍照, 1允许跳检] + * @property {string} inspectorName = [巡检人员] + * @property {string} villageName = [巡检小区] + * @property {string} phoneNumber = [巡检人员 联系方式] + * @property {string} inspectTime = [巡检时间] + * @property {string} planName = [巡检计划] + * @property {string} remindTime = [提醒时间] + * @property {string} taskId = [巡检任务ID] + * @property {string} taskName = [巡检任务名称] + * @property {string} taskTime = [巡检任务执行时间] + * @property {RoutesType[]} routes = [巡检路线信息] + * */ /** * @description: 获取 巡检任务详情 * @param {string} id - * @return + * @return {Promise>} */ export const getInspectionMain = (id) => { return get('/api/inspection/today/detail', { diff --git a/wuye-manager-uniapp/api/ticket.js b/wuye-manager-uniapp/api/ticket.js new file mode 100644 index 0000000..98173f2 --- /dev/null +++ b/wuye-manager-uniapp/api/ticket.js @@ -0,0 +1,64 @@ +/** + * @Description: 工单API + * @Author: Zy + * @Date: 2026-05-19 16:29:20 + * @LastEditor: Zy + * @LastEditTime: 2026-05-19 17:15:09 + */ +import request, { + get, + filterParams, + post +} from './request.js' + + + +/** + * @typedef myOrderListType 个人维修工单列表 + * @property {String} id = [工单ID] + * @property {String} houseId = [维修房屋ID] + * @property {String} maintenanceItemId = [维修项目ID] + * @property {String} maintenanceItemName = [维修项目名称] + * @property {String} problem = [报修描述] + * @property {String} residentId = [报修用户ID] + * @property {String} residentName = [报修用户名称] + * @property {String} phone = [报修用户 联系方式] + * @property {String} orderDate = [工单日期] + * @property {String} problemImageUrl = [报修图片] + * @property {String} problemStatus = [报修状态] + * @property {String} repairDes = [维修描述] + * @property {String} repairImageUrl = [维修描述] + * @property {String} repairId = [维修ID] + * @property {String} repairName = [维修人员名称] + * @property {String} houseName = [维修房屋地址] + * @property {String} item = [] + * @property {String} projectType = [报修项目类型] + * @property {String} projectTypeStr = [报修 项目 名称] + * @property {String} repairIsCheck = [维修人员 已读] + * @property {String} manageIsCheck = [管理人员 已读] + * @property {String} isCheckStr = [状态已读] + */ +/** + * @description: 获取我的维修工单 + * @param {RequestParams<{ + itemType?: 0 | 1 + problemStatus:1|2 + }>} data + * @return { Promise>} + */ +export function getUserTicketlist(data) { + return get(`/manage/repair/order/myorderlist`, filterParams(data)) +} + + + + + +/** + * @description: 获取工单详细信息 by id + * @param {string} id + * @return + */ +export function getTicketMainById(id) { + return get('/manage/repair/order/orderdetail', data) +} diff --git a/wuye-manager-uniapp/pageSubPack/complaint/handleUser.vue b/wuye-manager-uniapp/pageSubPack/complaint/handleUser.vue index 161ebfb..8f91799 100644 --- a/wuye-manager-uniapp/pageSubPack/complaint/handleUser.vue +++ b/wuye-manager-uniapp/pageSubPack/complaint/handleUser.vue @@ -118,7 +118,6 @@ function getlist() { }) getSystemUsers_employee('complainUser', queryParmas.value.value) .then(res => { - console.log(res) searchlist.value = res.data }) .finally(() => { diff --git a/wuye-manager-uniapp/pageSubPack/inspection/inspection_main.vue b/wuye-manager-uniapp/pageSubPack/inspection/inspection_main.vue index 1d0a62d..6699d0a 100644 --- a/wuye-manager-uniapp/pageSubPack/inspection/inspection_main.vue +++ b/wuye-manager-uniapp/pageSubPack/inspection/inspection_main.vue @@ -16,7 +16,7 @@ 巡检时间: - 07:00:00 - 09:00:00 + {{ info.taskTime }} 巡检小区: @@ -34,7 +34,7 @@ - + 巡检结果 @@ -50,15 +50,15 @@ 巡检人: - {{ ite.resientName }} + {{ info.inspectorName }} 手机号码: - {{ ite.phone }} + {{ info.phoneNumber }} 巡检时间: - {{ ite.time }} + {{ ite.createTime }} 巡检状态: @@ -66,7 +66,11 @@ 巡检结果: - {{ ite.descrtion }} + + + +