From 56c7fec9f35a3e9babf204ca6008371cb6fcdbe6 Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Tue, 15 Jul 2025 11:35:18 +0800 Subject: [PATCH] 巡检功能测试完成 --- src/api/inspection/inspectionPlanDetailApi.js | 211 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/inspection/InspectionPlanDetailStaff.vue | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/inspection/InspectionRoutePoint.vue | 4 ++++ src/components/inspection/InspectionTaskDetail.vue | 7 ++++--- src/components/inspection/RouteTask.vue | 10 +++++++--- src/components/inspection/editInspectionPlan.vue | 19 ++++++++++--------- src/components/inspection/inspectionPlanState.vue | 8 ++------ src/components/inspection/pointRoute.vue | 4 ++++ src/components/inspection/pointTaskDetail.vue | 6 ++++++ src/components/staff/selectStaffsDiv.vue | 7 ++++--- src/i18n/inspectionI18n.js | 3 +++ src/router/inspectionRouter.js | 5 +++++ src/views/contract/contractChangeDetailLang.js | 15 +-------------- src/views/inspection/InspectionTaskList.vue | 6 +++--- src/views/inspection/addInspectionPlanList.vue | 2 +- src/views/inspection/inspectionPlanDetailLang.js | 116 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/inspection/inspectionPlanDetailList.vue | 241 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/inspection/inspectionPlanLang.js | 9 +++++++-- src/views/inspection/pointPlanLang.js | 28 ++-------------------------- src/views/oa/addAttendanceClassesStaffLang.js | 16 ---------------- src/views/oa/addComplaintTypeLang.js | 12 ------------ src/views/oa/addExamineStaffLang.js | 14 -------------- src/views/oa/addWorkLang.js | 14 -------------- src/views/oa/editComplaintTypeLang.js | 14 -------------- src/views/oa/editWorkLang.js | 14 -------------- src/views/oa/newOaWorkflowDetailLang.js | 14 -------------- src/views/resource/addItemOutLang.js | 24 ------------------------ src/views/resource/addPurchaseApplyLang.js | 14 -------------- src/views/resource/allocationStorehouseApplyLang.js | 14 -------------- src/views/resource/purchaseApplyDetailLang.js | 14 -------------- src/views/staff/staffLang.js | 20 ++++++++++++++++++-- src/views/system/workflowSettingManageLang.js | 16 ---------------- src/views/work/addItemReleaseViewLang.js | 14 -------------- src/views/work/repairTypeUserLang.js | 14 -------------- 34 files changed, 739 insertions(+), 280 deletions(-) create mode 100644 src/api/inspection/inspectionPlanDetailApi.js create mode 100644 src/components/inspection/InspectionPlanDetailStaff.vue create mode 100644 src/views/inspection/inspectionPlanDetailLang.js create mode 100644 src/views/inspection/inspectionPlanDetailList.vue diff --git a/src/api/inspection/inspectionPlanDetailApi.js b/src/api/inspection/inspectionPlanDetailApi.js new file mode 100644 index 0000000..c43fa51 --- /dev/null +++ b/src/api/inspection/inspectionPlanDetailApi.js @@ -0,0 +1,211 @@ +import request from '@/utils/request' +import { getCommunityId } from '@/api/community/communityApi' + +// 获取巡检计划详情 +export function getInspectionPlanDetail(params) { + return new Promise((resolve, reject) => { + request({ + url: '/inspectionPlan.listInspectionPlans', + method: 'get', + params: { + ...params, + communityId: getCommunityId() + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 获取巡检计划人员列表 +export function listInspectionPlanStaffs(params) { + return new Promise((resolve, reject) => { + request({ + url: '/inspection.listInspectionPlanStaffs', + method: 'get', + params: { + ...params, + communityId: getCommunityId() + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 获取巡检路线列表 +export function listInspectionRoutes(params) { + return new Promise((resolve, reject) => { + request({ + url: '/inspectionRoute.listInspectionRoutes', + method: 'get', + params: { + ...params, + communityId: getCommunityId() + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 获取巡检路线点列表 +export function listInspectionRoutePoints(params) { + return new Promise((resolve, reject) => { + request({ + url: '/inspectionRoute.listInspectionRoutePoints', + method: 'get', + params: { + ...params, + communityId: getCommunityId() + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 获取巡检点列表 +export function listInspectionPoints(params) { + return new Promise((resolve, reject) => { + request({ + url: '/inspectionPoint.listInspectionPoints', + method: 'get', + params: { + ...params, + communityId: getCommunityId() + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 保存巡检路线点 +export function saveInspectionRoutePoint(data) { + return new Promise((resolve, reject) => { + request({ + url: '/inspectionRoute.saveInspectionRoutePoint', + method: 'post', + data: { + ...data, + communityId: getCommunityId() + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 删除巡检路线点 +export function deleteInspectionRoutePoint(data) { + return new Promise((resolve, reject) => { + request({ + url: '/inspectionRoute.deleteInspectionRoutePoint', + method: 'post', + data: { + ...data, + communityId: getCommunityId() + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 更新巡检路线点关系 +export function updateInspectionRoutePointRel(data) { + return new Promise((resolve, reject) => { + request({ + url: '/inspectionRoute.updateInspectionRoutePointRel', + method: 'post', + data: { + ...data, + communityId: getCommunityId() + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 查询路线巡检任务 +export function queryRouteInspectionTask(params) { + return new Promise((resolve, reject) => { + request({ + url: '/inspection.queryRouteInspectionTask', + method: 'get', + params: { + ...params, + communityId: getCommunityId() + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 查询巡检任务详情 +export function queryInspectionTaskDetail(params) { + return new Promise((resolve, reject) => { + request({ + url: '/inspection.queryInspectionTaskDetail', + method: 'get', + params: { + ...params, + communityId: getCommunityId() + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 获取巡检任务详情列表 +export function listInspectionTaskDetails(params) { + return new Promise((resolve, reject) => { + request({ + url: '/inspectionTaskDetail.listInspectionTaskDetails', + method: 'get', + params: { + ...params, + communityId: getCommunityId() + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} \ No newline at end of file diff --git a/src/components/inspection/InspectionPlanDetailStaff.vue b/src/components/inspection/InspectionPlanDetailStaff.vue new file mode 100644 index 0000000..4706b0f --- /dev/null +++ b/src/components/inspection/InspectionPlanDetailStaff.vue @@ -0,0 +1,90 @@ + + + + + \ No newline at end of file diff --git a/src/components/inspection/InspectionRoutePoint.vue b/src/components/inspection/InspectionRoutePoint.vue index 980c230..0cc8778 100644 --- a/src/components/inspection/InspectionRoutePoint.vue +++ b/src/components/inspection/InspectionRoutePoint.vue @@ -81,6 +81,10 @@ export default { beforeDestroy() { }, methods: { + open(params) { + this.inspectionRoutePointInfo.inspectionRouteId = params.inspectionRouteId + this._listInspectionRoutePoints() + }, loadData(params) { this.inspectionRoutePointInfo.inspectionRouteId = params.inspectionRouteId this._listInspectionRoutePoints() diff --git a/src/components/inspection/InspectionTaskDetail.vue b/src/components/inspection/InspectionTaskDetail.vue index 7e76691..d73c723 100644 --- a/src/components/inspection/InspectionTaskDetail.vue +++ b/src/components/inspection/InspectionTaskDetail.vue @@ -1,6 +1,7 @@