diff --git a/src/api/inspection/addInspectionPlanApi.js b/src/api/inspection/addInspectionPlanApi.js new file mode 100644 index 0000000..134c153 --- /dev/null +++ b/src/api/inspection/addInspectionPlanApi.js @@ -0,0 +1,78 @@ +import request from '@/utils/request' + +// 获取组织树 +export function listOrgTree(params) { + return new Promise((resolve, reject) => { + request({ + url: '/org.listOrgTree', + method: 'get', + params + }).then(response => { + const res = response.data + if (res.code == 0) { + resolve(res.data) + } else { + reject(new Error(res.msg || '获取组织树失败')) + } + }).catch(error => { + reject(error) + }) + }) +} + +// 查询员工信息 +export function listStaffInfos(params) { + return new Promise((resolve, reject) => { + request({ + url: '/query.staff.infos', + method: 'get', + params + }).then(response => { + const res = response.data + if (res.code == 0) { + resolve(res) + } else { + reject(new Error(res.msg || '获取员工信息失败')) + } + }).catch(error => { + reject(error) + }) + }) +} + +// 获取巡检路线列表 +export function listInspectionRoutes(params) { + return new Promise((resolve, reject) => { + request({ + url: '/inspectionRoute.listInspectionRoutes', + method: 'get', + params + }).then(response => { + const res = response.data + resolve(res.inspectionRoutes) + + }).catch(error => { + reject(error) + }) + }) +} + +// 保存巡检计划 +export function saveInspectionPlan(data) { + return new Promise((resolve, reject) => { + request({ + url: '/inspectionPlan.saveInspectionPlan', + method: 'post', + data + }).then(response => { + const res = response.data + if (res.code == 0) { + resolve(res) + } else { + reject(new Error(res.msg || '保存巡检计划失败')) + } + }).catch(error => { + reject(error) + }) + }) +} \ No newline at end of file diff --git a/src/api/inspection/inspectionPlanApi.js b/src/api/inspection/inspectionPlanApi.js new file mode 100644 index 0000000..01b6349 --- /dev/null +++ b/src/api/inspection/inspectionPlanApi.js @@ -0,0 +1,104 @@ +import request from '@/utils/request' +import { getCommunityId } from '@/api/community/communityApi' + +// 获取字典数据 +export function getDict(dictType, state) { + return request({ + url: '/dict.listDict', + method: 'get', + params: { dictType, state } + }).then(res => res.data) +} + +// 查询巡检计划列表 +export function listInspectionPlans(params) { + return request({ + url: '/inspectionPlan.listInspectionPlans', + method: 'get', + params: { + communityId: getCommunityId(), + ...params + } + }).then(res => res.data) +} + +// 更新巡检计划状态 +export function updateInspectionPlanState(data) { + return request({ + url: '/inspectionPlan.updateInspectionPlanState', + method: 'post', + data: { + communityId: getCommunityId(), + ...data + } + }).then(res => res.data) +} + +// 删除巡检计划 +export function deleteInspectionPlan(data) { + return request({ + url: '/inspectionPlan.deleteInspectionPlan', + method: 'post', + data: { + communityId: getCommunityId(), + ...data + } + }).then(res => res.data) +} + +// 更新巡检计划 +export function updateInspectionPlan(data) { + return request({ + url: '/inspectionPlan.updateInspectionPlan', + method: 'post', + data: { + communityId: getCommunityId(), + ...data + } + }).then(res => res.data) +} + +// 查询巡检路线列表 +export function listInspectionRoutes(params) { + return request({ + url: '/inspectionRoute.listInspectionRoutes', + method: 'get', + params: { + communityId: getCommunityId(), + ...params + } + }).then(res => res.data) +} + +// 查询巡检计划员工 +export function listInspectionPlanStaffs(params) { + return request({ + url: '/inspection.listInspectionPlanStaffs', + method: 'get', + params: { + communityId: getCommunityId(), + ...params + } + }).then(res => res.data) +} + +// 查询组织树 +export function listOrgTree() { + return request({ + url: '/org.listOrgTree', + method: 'get', + params: { communityId: getCommunityId() } + }).then(res => res.data) +} + +// 根据组织ID查询员工 +export function listStaffsByOrgId(params) { + return request({ + url: '/query.staff.infos', + method: 'get', + params: { + communityId: getCommunityId(), + ...params + } + }).then(res => res.data) +} \ No newline at end of file diff --git a/src/api/inspection/inspectionTaskApi.js b/src/api/inspection/inspectionTaskApi.js new file mode 100644 index 0000000..036a647 --- /dev/null +++ b/src/api/inspection/inspectionTaskApi.js @@ -0,0 +1,137 @@ +import request from '@/utils/request' +import { getCommunityId } from '@/api/community/communityApi' + +// 获取巡检计划列表 +export function listInspectionPlans() { + return new Promise((resolve, reject) => { + const communityId = getCommunityId() + request({ + url: '/inspectionPlan.listInspectionPlans', + method: 'get', + params: { + page: 1, + row: 1000, + communityId + } + }).then(response => { + const res = response.data + + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 获取巡检任务列表 +export function listInspectionTasks(params) { + return new Promise((resolve, reject) => { + const communityId = getCommunityId() + request({ + url: '/inspectionTask.listInspectionTasks', + method: 'get', + params: { + ...params, + communityId + } + }).then(response => { + const res = response.data + + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 获取巡检任务详情 +export function listInspectionTaskDetails(params) { + return new Promise((resolve, reject) => { + const communityId = getCommunityId() + request({ + url: '/inspectionTaskDetail.listInspectionTaskDetails', + method: 'get', + params: { + ...params, + communityId + } + }).then(response => { + const res = response.data + + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 更新巡检任务(流转) +export function updateInspectionTask(data) { + return new Promise((resolve, reject) => { + const communityId = getCommunityId() + request({ + url: '/inspectionTask.updateInspectionTask', + method: 'post', + data: { + ...data, + communityId + } + }).then(response => { + const res = response.data + if (res.code === 0) { + resolve(res) + } else { + reject(new Error(res.msg || '更新巡检任务失败')) + } + }).catch(error => { + reject(error) + }) + }) +} + +// 删除巡检任务 +export function deleteInspectionTask(data) { + return new Promise((resolve, reject) => { + const communityId = getCommunityId() + request({ + url: '/inspectionTask.deleteInspectionTask', + method: 'post', + data: { + ...data, + communityId + } + }).then(response => { + const res = response.data + if (res.code === 0) { + resolve(res) + } else { + reject(new Error(res.msg || '删除巡检任务失败')) + } + }).catch(error => { + reject(error) + }) + }) +} + +// 获取字典数据 +export function getDict(dictType, dictCd) { + return new Promise((resolve, reject) => { + request({ + url: '/dict.getDict', + method: 'get', + params: { + dictType, + dictCd + } + }).then(response => { + const res = response.data + if (res.code === 0) { + resolve(res.data) + } else { + reject(new Error(res.msg || '获取字典数据失败')) + } + }).catch(error => { + reject(error) + }) + }) +} \ No newline at end of file diff --git a/src/api/inspection/inspectionTaskDetailsApi.js b/src/api/inspection/inspectionTaskDetailsApi.js new file mode 100644 index 0000000..ca48eed --- /dev/null +++ b/src/api/inspection/inspectionTaskDetailsApi.js @@ -0,0 +1,101 @@ +import request from '@/utils/request' + +// 获取巡检任务明细列表 +export function listInspectionTaskDetails(params) { + return new Promise((resolve, reject) => { + request({ + url: '/inspectionTaskDetail.listInspectionTaskDetails', + method: 'get', + params + }).then(response => { + const res = response.data + if (res.code === 0) { + resolve(res) + } else { + reject(new Error(res.msg || '获取巡检任务明细列表失败')) + } + }).catch(error => { + reject(error) + }) + }) +} + +// 导出巡检任务明细 +export function exportInspectionTaskDetails(params) { + return new Promise((resolve, reject) => { + request({ + url: '/export.exportData', + method: 'get', + params + }).then(response => { + const res = response.data + if (res.code === 0) { + resolve(res) + } else { + reject(new Error(res.msg || '导出失败')) + } + }).catch(error => { + reject(error) + }) + }) +} + +// 获取巡检计划列表 +export function listInspectionPlans(params) { + return new Promise((resolve, reject) => { + request({ + url: '/inspectionPlan.listInspectionPlans', + method: 'get', + params + }).then(response => { + const res = response.data + if (res.code === 0) { + resolve(res) + } else { + reject(new Error(res.msg || '获取巡检计划列表失败')) + } + }).catch(error => { + reject(error) + }) + }) +} + +// 获取巡检路线列表 +export function listInspectionRoutes(params) { + return new Promise((resolve, reject) => { + request({ + url: '/inspectionRoute.listInspectionRoutes', + method: 'get', + params + }).then(response => { + const res = response.data + if (res.code === 0) { + resolve(res) + } else { + reject(new Error(res.msg || '获取巡检路线列表失败')) + } + }).catch(error => { + reject(error) + }) + }) +} + +// 获取巡检点列表 +export function listInspectionPoints(params) { + return new Promise((resolve, reject) => { + request({ + url: '/inspectionPoint.listInspectionPoints', + method: 'get', + params + }).then(response => { + const res = response.data + if (res.code === 0) { + resolve(res) + } else { + reject(new Error(res.msg || '获取巡检点列表失败')) + } + }).catch(error => { + reject(error) + }) + }) +} \ No newline at end of file diff --git a/src/api/inspection/pointPlanApi.js b/src/api/inspection/pointPlanApi.js new file mode 100644 index 0000000..bfbe928 --- /dev/null +++ b/src/api/inspection/pointPlanApi.js @@ -0,0 +1,20 @@ +import request from '@/utils/request' + +export function queryPointInspectionPlan(params) { + return new Promise((resolve, reject) => { + request({ + url: '/inspection.queryPointInspectionPlan', + method: 'get', + params + }).then(response => { + const res = response.data + if (res.code === 0) { + resolve(res) + } else { + reject(new Error(res.msg || '获取巡检点计划失败')) + } + }).catch(error => { + reject(error) + }) + }) +} \ No newline at end of file diff --git a/src/api/staff/staffApi.js b/src/api/staff/staffApi.js index a4cda08..bf61b00 100644 --- a/src/api/staff/staffApi.js +++ b/src/api/staff/staffApi.js @@ -10,11 +10,7 @@ export function queryStaffInfos(params) { params }).then(response => { const res = response.data - if (res.code === 0) { resolve(res) - } else { - reject(new Error(res.msg || '获取员工列表失败')) - } }).catch(error => { reject(error) }) diff --git a/src/components/inspection/DeleteInspectionTask.vue b/src/components/inspection/DeleteInspectionTask.vue new file mode 100644 index 0000000..6996bae --- /dev/null +++ b/src/components/inspection/DeleteInspectionTask.vue @@ -0,0 +1,51 @@ + + + \ No newline at end of file diff --git a/src/components/inspection/InspectionTaskDetail.vue b/src/components/inspection/InspectionTaskDetail.vue new file mode 100644 index 0000000..7e76691 --- /dev/null +++ b/src/components/inspection/InspectionTaskDetail.vue @@ -0,0 +1,141 @@ + + + + + \ No newline at end of file diff --git a/src/components/inspection/InspectionTaskTransfer.vue b/src/components/inspection/InspectionTaskTransfer.vue new file mode 100644 index 0000000..df6ab17 --- /dev/null +++ b/src/components/inspection/InspectionTaskTransfer.vue @@ -0,0 +1,99 @@ + + + \ No newline at end of file diff --git a/src/components/inspection/deleteInspectionPlan.vue b/src/components/inspection/deleteInspectionPlan.vue new file mode 100644 index 0000000..928dffa --- /dev/null +++ b/src/components/inspection/deleteInspectionPlan.vue @@ -0,0 +1,52 @@ + + + + + \ No newline at end of file diff --git a/src/components/inspection/deleteInspectionPoint.vue b/src/components/inspection/deleteInspectionPoint.vue new file mode 100644 index 0000000..11ebde3 --- /dev/null +++ b/src/components/inspection/deleteInspectionPoint.vue @@ -0,0 +1,54 @@ + + + \ No newline at end of file diff --git a/src/components/inspection/editInspectionPlan.vue b/src/components/inspection/editInspectionPlan.vue new file mode 100644 index 0000000..944c0a0 --- /dev/null +++ b/src/components/inspection/editInspectionPlan.vue @@ -0,0 +1,269 @@ + + + + + \ No newline at end of file diff --git a/src/components/inspection/editInspectionPoint.vue b/src/components/inspection/editInspectionPoint.vue new file mode 100644 index 0000000..673ec48 --- /dev/null +++ b/src/components/inspection/editInspectionPoint.vue @@ -0,0 +1,296 @@ + + + \ No newline at end of file diff --git a/src/components/inspection/inspectionPlanState.vue b/src/components/inspection/inspectionPlanState.vue new file mode 100644 index 0000000..2d3a199 --- /dev/null +++ b/src/components/inspection/inspectionPlanState.vue @@ -0,0 +1,59 @@ + + + + + \ No newline at end of file diff --git a/src/components/inspection/inspectionPointQrCode.vue b/src/components/inspection/inspectionPointQrCode.vue new file mode 100644 index 0000000..3d8d8a5 --- /dev/null +++ b/src/components/inspection/inspectionPointQrCode.vue @@ -0,0 +1,98 @@ + + + + + \ No newline at end of file diff --git a/src/components/inspection/pointPlan.vue b/src/components/inspection/pointPlan.vue new file mode 100644 index 0000000..ceb17b9 --- /dev/null +++ b/src/components/inspection/pointPlan.vue @@ -0,0 +1,122 @@ + + + \ No newline at end of file diff --git a/src/components/inspection/pointPlanDemo.vue b/src/components/inspection/pointPlanDemo.vue new file mode 100644 index 0000000..ba455e2 --- /dev/null +++ b/src/components/inspection/pointPlanDemo.vue @@ -0,0 +1,28 @@ + + + \ No newline at end of file diff --git a/src/components/staff/AStaffDetailInspection.vue b/src/components/staff/AStaffDetailInspection.vue index 5a3dcf0..c2e3f1d 100644 --- a/src/components/staff/AStaffDetailInspection.vue +++ b/src/components/staff/AStaffDetailInspection.vue @@ -110,8 +110,8 @@ + + \ No newline at end of file diff --git a/src/components/staff/ViewMap.vue b/src/components/system/ViewMap.vue index 87e2d58..87e2d58 100644 --- a/src/components/staff/ViewMap.vue +++ b/src/components/system/ViewMap.vue diff --git a/src/components/system/viewImage.vue b/src/components/system/viewImage.vue new file mode 100644 index 0000000..f8f1e64 --- /dev/null +++ b/src/components/system/viewImage.vue @@ -0,0 +1,72 @@ + + + + + \ No newline at end of file diff --git a/src/i18n/index.js b/src/i18n/index.js index 4d24988..eff9ede 100644 --- a/src/i18n/index.js +++ b/src/i18n/index.js @@ -172,6 +172,11 @@ import { messages as repairReturnVisitMessages } from '../views/work/repairRetur import { messages as repairForceFinishManageMessages } from '../views/work/repairForceFinishManageLang' import { messages as inspectionItemManageMessages } from '../views/inspection/inspectionItemManageLang' import { messages as inspectionItemTitleManageMessages } from '../views/inspection/inspectionItemTitleManageLang' +import { messages as inspectionPlanMessages } from '../views/inspection/inspectionPlanLang' +import { messages as addInspectionPlanMessages } from '../views/inspection/addInspectionPlanLang' +import { messages as inspectionTaskMessages } from '../views/inspection/inspectionTaskLang' +import { messages as inspectionTaskDetailsMessages } from '../views/inspection/inspectionTaskDetailsLang' + Vue.use(VueI18n) // 合并所有语言配置 @@ -347,6 +352,10 @@ const messages = { ...repairForceFinishManageMessages.en, ...inspectionItemManageMessages.en, ...inspectionItemTitleManageMessages.en, + ...inspectionPlanMessages.en, + ...addInspectionPlanMessages.en, + ...inspectionTaskMessages.en, + ...inspectionTaskDetailsMessages.en, }, zh: { ...loginMessages.zh, @@ -519,6 +528,10 @@ const messages = { ...repairForceFinishManageMessages.zh, ...inspectionItemManageMessages.zh, ...inspectionItemTitleManageMessages.zh, + ...inspectionPlanMessages.zh, + ...addInspectionPlanMessages.zh, + ...inspectionTaskMessages.zh, + ...inspectionTaskDetailsMessages.zh, } } diff --git a/src/router/index.js b/src/router/index.js index 5a7d8bd..a5dee9a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -842,15 +842,35 @@ const routes = [ component: () => import('@/views/work/repairForceFinishManageList.vue') }, { - path:'/pages/property/inspectionItemManage', - name:'/pages/property/inspectionItemManage', + path: '/pages/property/inspectionItemManage', + name: '/pages/property/inspectionItemManage', component: () => import('@/views/inspection/inspectionItemManageList.vue') + }, + { + path: '/views/inspection/inspectionItemTitleManage', + name: '/views/inspection/inspectionItemTitleManage', + component: () => import('@/views/inspection/inspectionItemTitleManageList.vue') + }, + { + path: '/pages/inspection/inspectionPlan', + name: '/pages/inspection/inspectionPlan', + component: () => import('@/views/inspection/inspectionPlanList.vue') + }, + { + path:'/views/inspection/addInspectionPlan', + name:'/views/inspection/addInspectionPlan', + component: () => import('@/views/inspection/addInspectionPlanList.vue') }, { - path:'/views/inspection/inspectionItemTitleManage', - name:'/views/inspection/inspectionItemTitleManage', - component: () => import('@/views/inspection/inspectionItemTitleManageList.vue') + path:'/pages/inspection/inspectionTask', + name:'/pages/inspection/inspectionTask', + component: () => import('@/views/inspection/InspectionTaskList.vue') }, + { + path:'/pages/property/inspectionTaskDetails', + name:'/pages/property/inspectionTaskDetails', + component: () => import('@/views/inspection/inspectionTaskDetailsList.vue') + }, // 其他子路由可以在这里添加 ] }, diff --git a/src/views/inspection/InspectionTaskList.vue b/src/views/inspection/InspectionTaskList.vue new file mode 100644 index 0000000..f448892 --- /dev/null +++ b/src/views/inspection/InspectionTaskList.vue @@ -0,0 +1,280 @@ + + + + + \ No newline at end of file diff --git a/src/views/inspection/addInspectionPlanLang.js b/src/views/inspection/addInspectionPlanLang.js new file mode 100644 index 0000000..feb51fc --- /dev/null +++ b/src/views/inspection/addInspectionPlanLang.js @@ -0,0 +1,70 @@ +export const messages = { + en: { + addInspectionPlan: { + title: 'Add Plan', + planName: 'Plan Name', + inspectionRoute: 'Inspection Route', + inspectionPeriod: 'Inspection Period', + taskAdvance: 'Task Advance', + minutesGenerate: 'minutes generate', + month: 'Month', + day: 'Day', + week: 'Week', + startDate: 'Start Date', + endDate: 'End Date', + startTime: 'Start Time', + endTime: 'End Time', + signMethod: 'Sign Method', + allowRecheck: 'Allow Recheck', + selectStaff: 'Select Staff', + save: 'Save', + back: 'Back', + required: 'Required', + monthlyDaily: 'Month/Day', + weekly: 'Weekly', + notAllowed: 'Not Allowed', + allowed: 'Allowed', + monday: 'Monday', + tuesday: 'Tuesday', + wednesday: 'Wednesday', + thursday: 'Thursday', + friday: 'Friday', + saturday: 'Saturday', + sunday: 'Sunday' + } + }, + zh: { + addInspectionPlan: { + title: '添加计划', + planName: '计划名称', + inspectionRoute: '巡检路线', + inspectionPeriod: '巡检周期', + taskAdvance: '任务提前', + minutesGenerate: '分钟生成', + month: '月', + day: '日', + week: '周', + startDate: '开始日期', + endDate: '结束日期', + startTime: '开始时间', + endTime: '结束时间', + signMethod: '签到方式', + allowRecheck: '允许补检', + selectStaff: '选择员工', + save: '保存', + back: '返回', + required: '必填', + monthlyDaily: '月/天', + weekly: '按周', + notAllowed: '不允许补检', + allowed: '允许补检', + monday: '星期一', + tuesday: '星期二', + wednesday: '星期三', + thursday: '星期四', + friday: '星期五', + saturday: '星期六', + sunday: '星期日' + } + } +} \ No newline at end of file diff --git a/src/views/inspection/addInspectionPlanList.vue b/src/views/inspection/addInspectionPlanList.vue new file mode 100644 index 0000000..5721937 --- /dev/null +++ b/src/views/inspection/addInspectionPlanList.vue @@ -0,0 +1,329 @@ + + + + + \ No newline at end of file diff --git a/src/views/inspection/inspectionPlanLang.js b/src/views/inspection/inspectionPlanLang.js new file mode 100644 index 0000000..ea6dea1 --- /dev/null +++ b/src/views/inspection/inspectionPlanLang.js @@ -0,0 +1,138 @@ +export const messages = { + en: { + inspectionPlan: { + queryCondition: 'Query Conditions', + inspectionPlanIdPlaceholder: 'Please enter plan ID', + inspectionPlanNamePlaceholder: 'Please enter plan name', + staffNamePlaceholder: 'Please enter inspector name', + statePlaceholder: 'Please select status', + query: 'Search', + reset: 'Reset', + inspectionPlanTitle: 'Inspection Plan (Updated at 2:00 AM)', + add: 'Add', + planName: 'Plan Name', + planRoute: 'Plan Route', + planCycle: 'Plan Cycle', + signMethod: 'Sign-in Method', + dateRange: 'Date Range', + timeRange: 'Time Range', + taskAdvance: 'Task Advance (minutes)', + maker: 'Created By', + createTime: 'Created Time', + status: 'Status', + inspectionStaff: 'Inspection Staff', + operation: 'Operations', + modify: 'Edit', + delete: 'Delete', + disable: 'Disable', + enable: 'Enable', + detail: 'Details', + note: 'Please ensure the plan start and end times are valid and inspectors are assigned, otherwise inspection tasks cannot be generated.', + fetchError: 'Failed to fetch inspection plans', + confirmDeleteTitle: 'Confirm Deletion', + confirmDeleteContent: 'Are you sure you want to delete this inspection plan?', + cancel: 'Cancel', + confirm: 'Confirm' + }, + editInspectionPlan: { + title: 'Edit Plan', + planName: 'Plan Name', + inspectionRoute: 'Inspection Route', + inspectionPeriod: 'Inspection Period', + taskAdvance: 'Task Advance', + minutesGenerate: 'minutes generate', + month: 'Month', + day: 'Day', + week: 'Week', + startDate: 'Start Date', + endDate: 'End Date', + startTime: 'Start Time', + endTime: 'End Time', + signMethod: 'Sign Method', + allowRecheck: 'Allow Recheck', + selectStaff: 'Select Staff', + save: 'Save', + back: 'Back', + required: 'Required', + monthlyDaily: 'Month/Day', + weekly: 'Weekly', + notAllowed: 'Not Allowed', + allowed: 'Allowed', + monday: 'Monday', + tuesday: 'Tuesday', + wednesday: 'Wednesday', + thursday: 'Thursday', + friday: 'Friday', + saturday: 'Saturday', + sunday: 'Sunday' + } + }, + zh: { + inspectionPlan: { + queryCondition: '查询条件', + inspectionPlanIdPlaceholder: '请输入计划ID', + inspectionPlanNamePlaceholder: '请输入计划名称', + staffNamePlaceholder: '请输入巡检人', + statePlaceholder: '请选择状态', + query: '查询', + reset: '重置', + inspectionPlanTitle: '巡检计划(凌晨2点更新)', + add: '添加', + planName: '计划名称', + planRoute: '计划路线', + planCycle: '计划周期', + signMethod: '签到方式', + dateRange: '日期范围', + timeRange: '时间范围', + taskAdvance: '任务提前(分钟)', + maker: '制定人', + createTime: '制定时间', + status: '状态', + inspectionStaff: '巡检人员', + operation: '操作', + modify: '修改', + delete: '删除', + disable: '停用', + enable: '启用', + detail: '详情', + note: '请确保计划开始时间和计划结束时间是有效时间范围,并且设置了巡检人,不然无法生成巡检任务', + fetchError: '获取巡检计划失败', + confirmDeleteTitle: '确认删除', + confirmDeleteContent: '确定删除巡检计划吗?', + cancel: '取消', + confirm: '确定' + }, + editInspectionPlan: { + title: '修改计划', + planName: '计划名称', + inspectionRoute: '巡检路线', + inspectionPeriod: '巡检周期', + taskAdvance: '任务提前', + minutesGenerate: '分钟生成', + month: '月', + day: '日', + week: '周', + startDate: '开始日期', + endDate: '结束日期', + startTime: '开始时间', + endTime: '结束时间', + signMethod: '签到方式', + allowRecheck: '允许补检', + selectStaff: '选择员工', + save: '保存', + back: '返回', + required: '必填', + monthlyDaily: '月/天', + weekly: '按周', + notAllowed: '不允许补检', + allowed: '允许补检', + monday: '星期一', + tuesday: '星期二', + wednesday: '星期三', + thursday: '星期四', + friday: '星期五', + saturday: '星期六', + sunday: '星期日' + } + } +} \ No newline at end of file diff --git a/src/views/inspection/inspectionPlanList.vue b/src/views/inspection/inspectionPlanList.vue new file mode 100644 index 0000000..3f595d3 --- /dev/null +++ b/src/views/inspection/inspectionPlanList.vue @@ -0,0 +1,264 @@ + + + + + \ No newline at end of file diff --git a/src/views/inspection/inspectionTaskDetailsLang.js b/src/views/inspection/inspectionTaskDetailsLang.js new file mode 100644 index 0000000..d7b6280 --- /dev/null +++ b/src/views/inspection/inspectionTaskDetailsLang.js @@ -0,0 +1,85 @@ + +export const messages = { + en: { + inspectionTaskDetails: { + searchCondition: 'Search Condition', + more: 'More', + hide: 'Hide', + inputInspector: 'Please enter inspector', + inputStartTime: 'Please enter actual inspection start time', + inputEndTime: 'Please enter actual inspection end time', + search: 'Search', + reset: 'Reset', + selectInspectionPlan: 'Please select inspection plan', + selectInspectionRoute: 'Please select inspection route', + selectInspectionPoint: 'Please select inspection point', + inputTaskDetailId: 'Please enter task detail ID', + selectSignStatus: 'Please select sign status', + selectInspectionPointStatus: 'Please select inspection point status', + selectTaskStatus: 'Please select task status', + selectPatrolStatus: 'Please select patrol status', + inspectionDetails: 'Inspection Details', + export: 'Export', + taskDetailId: 'Task Detail ID', + inspectionPointName: 'Inspection Point Name', + inspectionPlanName: 'Inspection Plan Name', + inspectionRouteName: 'Inspection Route Name', + inspector: 'Inspector', + startEndTime: 'Start/End Time', + inspectionPoint: 'Inspection Point', + actualInspectionTime: 'Actual Inspection Time', + actualSignStatus: 'Actual Sign Status', + plannedInspector: 'Planned Inspector', + actualInspector: 'Actual Inspector', + inspectionMethod: 'Inspection Method', + taskStatus: 'Task Status', + inspectionPointStatus: 'Inspection Point Status', + patrolStatus: 'Patrol Status', + inspectionPhotos: 'Inspection Photos', + createTime: 'Create Time', + locationInfo: 'Location Info', + view: 'View' + } + }, + zh: { + inspectionTaskDetails: { + searchCondition: '查询条件', + more: '更多', + hide: '隐藏', + inputInspector: '请输入巡检人', + inputStartTime: '请输入实际巡检开始时间', + inputEndTime: '请输入实际巡检结束时间', + search: '查询', + reset: '重置', + selectInspectionPlan: '请选择巡检计划', + selectInspectionRoute: '请选择巡检路线', + selectInspectionPoint: '请选择巡检点', + inputTaskDetailId: '请输入任务详情ID', + selectSignStatus: '请选择签到状态', + selectInspectionPointStatus: '请选择巡检点状态', + selectTaskStatus: '请选择任务状态', + selectPatrolStatus: '请选择巡检情况', + inspectionDetails: '巡检明细', + export: '导出', + taskDetailId: '任务详情ID', + inspectionPointName: '巡检点名称', + inspectionPlanName: '巡检计划名称', + inspectionRouteName: '巡检路线名称', + inspector: '巡检人', + startEndTime: '开始/结束时间', + inspectionPoint: '巡检点', + actualInspectionTime: '实际巡检时间', + actualSignStatus: '实际签到状态', + plannedInspector: '计划巡检人', + actualInspector: '实际巡检人', + inspectionMethod: '巡检方式', + taskStatus: '任务状态', + inspectionPointStatus: '巡检点状态', + patrolStatus: '巡检情况', + inspectionPhotos: '巡检照片', + createTime: '创建时间', + locationInfo: '位置信息', + view: '查看' + } + } +} \ No newline at end of file diff --git a/src/views/inspection/inspectionTaskDetailsList.vue b/src/views/inspection/inspectionTaskDetailsList.vue new file mode 100644 index 0000000..b8fa658 --- /dev/null +++ b/src/views/inspection/inspectionTaskDetailsList.vue @@ -0,0 +1,461 @@ + + + + + \ No newline at end of file diff --git a/src/views/inspection/inspectionTaskLang.js b/src/views/inspection/inspectionTaskLang.js new file mode 100644 index 0000000..4889509 --- /dev/null +++ b/src/views/inspection/inspectionTaskLang.js @@ -0,0 +1,110 @@ +export const messages = { + en: { + inspectionTask: { + queryConditions: 'Query Conditions', + executor: 'Executor', + actualStartTime: 'Actual Inspection Start Time', + actualEndTime: 'Actual Inspection End Time', + inspectionStatus: 'Inspection Status', + query: 'Query', + reset: 'Reset', + inspectionTask: 'Inspection Task', + taskCode: 'Task Code', + inspectionPlan: 'Inspection Plan', + inspectorTime: 'Inspector/Start-End Time', + actualTime: 'Actual Inspection Time', + plannedInspector: 'Planned Inspector', + currentInspector: 'Current Inspector', + transferDesc: 'Transfer Description', + inspectionMethod: 'Inspection Method', + operation: 'Operation', + flow: 'Flow', + detail: 'Detail', + delete: 'Delete', + note: 'Inspection tasks are automatically generated every day at 2 AM based on inspection plans. If not generated, please confirm whether the scheduled task is enabled or if the inspection plan is set correctly.' + }, + inspectionTaskDetail: { + taskDetails: 'Task Details', + inspectionPoint: 'Inspection Point', + inspectionStatus: 'Inspection Status', + signStatus: 'Sign Status', + inspectorTime: 'Inspector/Start-End Time', + pointTime: 'Point Start/End Time', + actualTime: 'Actual Inspection Time', + inspectionSituation: 'Inspection Situation', + inspectionPhotos: 'Inspection Photos', + locationInfo: 'Location Info', + view: 'View', + start: 'Start', + end: 'End' + }, + inspectionTaskTransfer: { + transfer: 'Transfer', + transferObject: 'Transfer Object', + transferDesc: 'Transfer Description', + required: 'Required, please fill in', + submit: 'Submit', + cancel: 'Cancel' + }, + deleteInspectionTask: { + confirmOperation: 'Please confirm your operation', + confirmDelete: 'Confirm deletion of inspection task', + mistake: 'Mistake', + confirmDeleteBtn: 'Confirm Delete' + } + }, + zh: { + inspectionTask: { + queryConditions: '查询条件', + executor: '执行人', + actualStartTime: '实际巡检开始时间', + actualEndTime: '实际巡检结束时间', + inspectionStatus: '巡检状态', + query: '查询', + reset: '重置', + inspectionTask: '巡检任务', + taskCode: '任务编码', + inspectionPlan: '巡检计划', + inspectorTime: '巡检人/开始结束时间', + actualTime: '实际巡检时间', + plannedInspector: '计划巡检人', + currentInspector: '当前巡检人', + transferDesc: '转移描述', + inspectionMethod: '巡检方式', + operation: '操作', + flow: '流转', + detail: '详情', + delete: '删除', + note: '巡检任务是根据巡检计划,每天晚上2点钟自动生成,如果没有生成 请确认是否开启了定时任务,或者巡检计划是否设置正确' + }, + inspectionTaskDetail: { + taskDetails: '任务详情', + inspectionPoint: '巡检点', + inspectionStatus: '巡检状态', + signStatus: '签到状态', + inspectorTime: '巡检人/开始结束时间', + pointTime: '巡检点开始结束时间', + actualTime: '实际巡检时间', + inspectionSituation: '巡检情况', + inspectionPhotos: '巡检照片', + locationInfo: '位置信息', + view: '查看', + start: '开始', + end: '结束' + }, + inspectionTaskTransfer: { + transfer: '流转', + transferObject: '流转对象', + transferDesc: '流转说明', + required: '必填,请填写', + submit: '提交', + cancel: '取消' + }, + deleteInspectionTask: { + confirmOperation: '请确认您的操作', + confirmDelete: '确定删除巡检任务', + mistake: '点错了', + confirmDeleteBtn: '确认删除' + } + } +} \ No newline at end of file diff --git a/src/views/inspection/pointPlanLang.js b/src/views/inspection/pointPlanLang.js new file mode 100644 index 0000000..6961386 --- /dev/null +++ b/src/views/inspection/pointPlanLang.js @@ -0,0 +1,32 @@ +export default { + en: { + inspectionPlan: { + planName: 'Plan Name', + planRoute: 'Plan Route', + planPeriod: 'Plan Cycle', + signType: 'Sign-in Method', + dateRange: 'Date Range', + timeRange: 'Time Range', + taskAhead: 'Task Ahead (minutes)', + creator: 'Creator', + createTime: 'Create Time', + inspector: 'Inspector', + status: 'Status' + } + }, + zh: { + inspectionPlan: { + planName: '计划名称', + planRoute: '计划路线', + planPeriod: '计划周期', + signType: '签到方式', + dateRange: '日期范围', + timeRange: '时间范围', + taskAhead: '任务提前(分钟)', + creator: '制定人', + createTime: '制定时间', + inspector: '巡检人', + status: '状态' + } + } +} \ No newline at end of file diff --git a/src/views/work/repairTypeUserLang.js b/src/views/work/repairTypeUserLang.js index 05dc80e..6f39216 100644 --- a/src/views/work/repairTypeUserLang.js +++ b/src/views/work/repairTypeUserLang.js @@ -15,7 +15,8 @@ export const messages = { title: 'Select Staff', orgInfo: 'Organization Information', staffInfo: 'Staff Information', - selectStaffFirst: 'Please select a staff first' + selectStaffFirst: 'Please select a staff first', + selectedStaff: 'Selected Staff' }, deleteRepairTypeUser: { title: 'Confirm Operation', @@ -47,7 +48,8 @@ export const messages = { title: '选择员工', orgInfo: '组织信息', staffInfo: '员工信息', - selectStaffFirst: '请先选择员工' + selectStaffFirst: '请先选择员工', + selectedStaff: '已选择员工' }, deleteRepairTypeUser: { title: '请确认您的操作',