From daaebda87b0cf2eb6af8facc7db82394f7222ed6 Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Mon, 23 Jun 2025 00:56:34 +0800 Subject: [PATCH] 开发保养计划功能 --- src/api/inspection/addMaintainancePlanApi.js | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/api/inspection/editMaintainancePlanApi.js | 110 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/api/inspection/maintainancePlanMachineApi.js | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/api/inspection/maintainancePlanManageApi.js | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ src/api/inspection/maintainanceStandardItemApi.js | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/api/inspection/maintainanceStandardManageApi.js | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/inspection/addMaintainanceStandard.vue | 109 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/inspection/chooseMaintainancePlanMachine.vue | 186 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/inspection/chooseMaintainanceStandardItem.vue | 185 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/inspection/deleteMaintainancePlan.vue | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/inspection/deleteMaintainancePlanMachine.vue | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/inspection/deleteMaintainanceStandard.vue | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/inspection/deleteMaintainanceStandardItem.vue | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/inspection/editMaintainanceStandard.vue | 116 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/inspection/maintainancePlanState.vue | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/i18n/inspectionI18n.js | 19 +++++++++++++++++++ src/router/inspectionRouter.js | 30 ++++++++++++++++++++++++++++++ src/views/inspection/addMaintainancePlanLang.js | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/inspection/addMaintainancePlanList.vue | 288 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/inspection/editMaintainancePlanLang.js | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/inspection/editMaintainancePlanList.vue | 284 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/inspection/maintainancePlanMachineLang.js | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/inspection/maintainancePlanMachineList.vue | 143 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/inspection/maintainancePlanManageLang.js | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/inspection/maintainancePlanManageList.vue | 221 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/inspection/maintainanceStandardItemLang.js | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/inspection/maintainanceStandardItemList.vue | 138 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/inspection/maintainanceStandardManageLang.js | 106 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/inspection/maintainanceStandardManageList.vue | 187 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 29 files changed, 3193 insertions(+), 0 deletions(-) create mode 100644 src/api/inspection/addMaintainancePlanApi.js create mode 100644 src/api/inspection/editMaintainancePlanApi.js create mode 100644 src/api/inspection/maintainancePlanMachineApi.js create mode 100644 src/api/inspection/maintainancePlanManageApi.js create mode 100644 src/api/inspection/maintainanceStandardItemApi.js create mode 100644 src/api/inspection/maintainanceStandardManageApi.js create mode 100644 src/components/inspection/addMaintainanceStandard.vue create mode 100644 src/components/inspection/chooseMaintainancePlanMachine.vue create mode 100644 src/components/inspection/chooseMaintainanceStandardItem.vue create mode 100644 src/components/inspection/deleteMaintainancePlan.vue create mode 100644 src/components/inspection/deleteMaintainancePlanMachine.vue create mode 100644 src/components/inspection/deleteMaintainanceStandard.vue create mode 100644 src/components/inspection/deleteMaintainanceStandardItem.vue create mode 100644 src/components/inspection/editMaintainanceStandard.vue create mode 100644 src/components/inspection/maintainancePlanState.vue create mode 100644 src/views/inspection/addMaintainancePlanLang.js create mode 100644 src/views/inspection/addMaintainancePlanList.vue create mode 100644 src/views/inspection/editMaintainancePlanLang.js create mode 100644 src/views/inspection/editMaintainancePlanList.vue create mode 100644 src/views/inspection/maintainancePlanMachineLang.js create mode 100644 src/views/inspection/maintainancePlanMachineList.vue create mode 100644 src/views/inspection/maintainancePlanManageLang.js create mode 100644 src/views/inspection/maintainancePlanManageList.vue create mode 100644 src/views/inspection/maintainanceStandardItemLang.js create mode 100644 src/views/inspection/maintainanceStandardItemList.vue create mode 100644 src/views/inspection/maintainanceStandardManageLang.js create mode 100644 src/views/inspection/maintainanceStandardManageList.vue diff --git a/src/api/inspection/addMaintainancePlanApi.js b/src/api/inspection/addMaintainancePlanApi.js new file mode 100644 index 0000000..56aee03 --- /dev/null +++ b/src/api/inspection/addMaintainancePlanApi.js @@ -0,0 +1,92 @@ +import request from '@/utils/request' +import { getCommunityId } from '@/api/community/communityApi' + +// 保存保养计划 +export function saveMaintainancePlan(data) { + return new Promise((resolve, reject) => { + request({ + url: '/maintainancePlan.saveMaintainancePlan', + method: 'post', + data: { + ...data, + communityId: getCommunityId() + } + }).then(response => { + resolve(response.data) + }).catch(error => { + reject(error) + }) + }) +} + +// 获取保养标准列表 +export function listMaintainanceStandard(params) { + return new Promise((resolve, reject) => { + request({ + url: '/maintainance.listMaintainanceStandard', + method: 'get', + params: { + ...params, + communityId: getCommunityId() + } + }).then(response => { + resolve(response.data) + }).catch(error => { + reject(error) + }) + }) +} + +// 获取设备列表 +export function listEquipmentAccount(params) { + return new Promise((resolve, reject) => { + request({ + url: '/equipmentAccount.listEquipmentAccount', + method: 'get', + params: { + ...params, + communityId: getCommunityId() + } + }).then(response => { + resolve(response.data) + }).catch(error => { + reject(error) + }) + }) +} + +// 获取组织树 +export function listOrgTree(params) { + return new Promise((resolve, reject) => { + request({ + url: '/org.listOrgTree', + method: 'get', + params: { + ...params, + communityId: getCommunityId() + } + }).then(response => { + resolve(response.data) + }).catch(error => { + reject(error) + }) + }) +} + +// 查询员工信息 +export function queryStaffInfos(params) { + return new Promise((resolve, reject) => { + request({ + url: '/query.staff.infos', + method: 'get', + params: { + ...params, + communityId: getCommunityId() + } + }).then(response => { + resolve(response.data) + }).catch(error => { + reject(error) + }) + }) +} \ No newline at end of file diff --git a/src/api/inspection/editMaintainancePlanApi.js b/src/api/inspection/editMaintainancePlanApi.js new file mode 100644 index 0000000..37ca20f --- /dev/null +++ b/src/api/inspection/editMaintainancePlanApi.js @@ -0,0 +1,110 @@ +import request from '@/utils/request' +import { getCommunityId } from '@/api/community/communityApi' + +// 获取保养标准列表 +export function listMaintainanceStandard(params) { + return new Promise((resolve, reject) => { + request({ + url: '/maintainance.listMaintainanceStandard', + method: 'get', + params: { + ...params, + communityId: getCommunityId() + } + }).then(response => { + resolve(response.data) + }).catch(error => { + reject(error) + }) + }) +} + +// 获取保养计划列表 +export function listMaintainancePlan(params) { + return new Promise((resolve, reject) => { + request({ + url: '/maintainancePlan.listMaintainancePlan', + method: 'get', + params: { + ...params, + communityId: getCommunityId() + } + }).then(response => { + resolve(response.data) + }).catch(error => { + reject(error) + }) + }) +} + +// 获取保养计划员工列表 +export function listMaintainancePlanStaff(params) { + return new Promise((resolve, reject) => { + request({ + url: '/maintainancePlan.listMaintainancePlanStaff', + method: 'get', + params: { + ...params, + communityId: getCommunityId() + } + }).then(response => { + resolve(response.data) + }).catch(error => { + reject(error) + }) + }) +} + +// 更新保养计划 +export function updateMaintainancePlan(data) { + return new Promise((resolve, reject) => { + request({ + url: '/maintainancePlan.updateMaintainancePlan', + method: 'post', + data: { + ...data, + communityId: getCommunityId() + } + }).then(response => { + resolve(response.data) + }).catch(error => { + reject(error) + }) + }) +} + +// 获取组织树 +export function listOrgTree(params) { + return new Promise((resolve, reject) => { + request({ + url: '/org.listOrgTree', + method: 'get', + params: { + ...params, + communityId: getCommunityId() + } + }).then(response => { + resolve(response.data) + }).catch(error => { + reject(error) + }) + }) +} + +// 获取员工信息 +export function getStaffInfos(params) { + return new Promise((resolve, reject) => { + request({ + url: '/query.staff.infos', + method: 'get', + params: { + ...params, + communityId: getCommunityId() + } + }).then(response => { + resolve(response.data) + }).catch(error => { + reject(error) + }) + }) +} \ No newline at end of file diff --git a/src/api/inspection/maintainancePlanMachineApi.js b/src/api/inspection/maintainancePlanMachineApi.js new file mode 100644 index 0000000..701a02b --- /dev/null +++ b/src/api/inspection/maintainancePlanMachineApi.js @@ -0,0 +1,78 @@ +import request from '@/utils/request' +import { getCommunityId } from '@/api/community/communityApi' + +// 获取保养计划设备列表 +export function listMaintainancePlanMachine(params) { + return new Promise((resolve, reject) => { + request({ + url: '/maintainancePlan.listMaintainancePlanMachine', + method: 'get', + params: { + ...params, + communityId: getCommunityId() + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 获取设备列表 +export function listEquipmentAccount(params) { + return new Promise((resolve, reject) => { + request({ + url: '/equipmentAccount.listEquipmentAccount', + method: 'get', + params: { + ...params, + communityId: getCommunityId() + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 保存保养计划设备 +export function saveMaintainancePlanMachine(data) { + return new Promise((resolve, reject) => { + request({ + url: '/maintainancePlan.saveMaintainancePlanMachine', + method: 'post', + data: { + ...data, + communityId: getCommunityId() + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 删除保养计划设备 +export function deleteMaintainancePlanMachine(data) { + return new Promise((resolve, reject) => { + request({ + url: '/maintainancePlan.deleteMaintainancePlanMachine', + method: 'post', + data: { + ...data, + communityId: getCommunityId() + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} \ No newline at end of file diff --git a/src/api/inspection/maintainancePlanManageApi.js b/src/api/inspection/maintainancePlanManageApi.js new file mode 100644 index 0000000..7048e15 --- /dev/null +++ b/src/api/inspection/maintainancePlanManageApi.js @@ -0,0 +1,49 @@ +import request from '@/utils/request' + +// 获取保养计划列表 +export function listMaintainancePlan(params) { + return new Promise((resolve, reject) => { + request({ + url: '/maintainancePlan.listMaintainancePlan', + method: 'get', + params + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 删除保养计划 +export function deleteMaintainancePlan(data) { + return new Promise((resolve, reject) => { + request({ + url: '/maintainancePlan.deleteMaintainancePlan', + method: 'post', + data + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 更新保养计划状态 +export function updateMaintainancePlanState(data) { + return new Promise((resolve, reject) => { + request({ + url: '/maintainancePlan.updateMaintainancePlanState', + method: 'post', + data + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} \ No newline at end of file diff --git a/src/api/inspection/maintainanceStandardItemApi.js b/src/api/inspection/maintainanceStandardItemApi.js new file mode 100644 index 0000000..1dae9ed --- /dev/null +++ b/src/api/inspection/maintainanceStandardItemApi.js @@ -0,0 +1,78 @@ +import request from '@/utils/request' +import { getCommunityId } from '@/api/community/communityApi' + +// 获取保养标准项列表 +export function listMaintainanceStandardItem(params) { + return new Promise((resolve, reject) => { + request({ + url: '/maintainance.listMaintainanceStandardItem', + method: 'get', + params: { + ...params, + communityId: getCommunityId() + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 获取所有保养项列表 +export function listMaintainanceItem(params) { + return new Promise((resolve, reject) => { + request({ + url: '/maintainance.listMaintainanceItem', + method: 'get', + params: { + ...params, + communityId: getCommunityId() + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 保存保养标准项 +export function saveMaintainanceStandardItem(data) { + return new Promise((resolve, reject) => { + request({ + url: '/maintainance.saveMaintainanceStandardItem', + method: 'post', + data: { + ...data, + communityId: getCommunityId() + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 删除保养标准项 +export function deleteMaintainanceStandardItem(data) { + return new Promise((resolve, reject) => { + request({ + url: '/maintainance.deleteMaintainanceStandardItem', + method: 'post', + data: { + ...data, + communityId: getCommunityId() + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} \ No newline at end of file diff --git a/src/api/inspection/maintainanceStandardManageApi.js b/src/api/inspection/maintainanceStandardManageApi.js new file mode 100644 index 0000000..fa2f809 --- /dev/null +++ b/src/api/inspection/maintainanceStandardManageApi.js @@ -0,0 +1,78 @@ +import request from '@/utils/request' +import { getCommunityId } from '@/api/community/communityApi' + +// 获取保养标准列表 +export function listMaintainanceStandard(params) { + return new Promise((resolve, reject) => { + request({ + url: '/maintainance.listMaintainanceStandard', + method: 'get', + params: { + ...params, + communityId: getCommunityId() + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 添加保养标准 +export function saveMaintainanceStandard(data) { + return new Promise((resolve, reject) => { + request({ + url: '/maintainance.saveMaintainanceStandard', + method: 'post', + data: { + ...data, + communityId: getCommunityId() + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 更新保养标准 +export function updateMaintainanceStandard(data) { + return new Promise((resolve, reject) => { + request({ + url: '/maintainance.updateMaintainanceStandard', + method: 'post', + data: { + ...data, + communityId: getCommunityId() + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 删除保养标准 +export function deleteMaintainanceStandard(data) { + return new Promise((resolve, reject) => { + request({ + url: '/maintainance.deleteMaintainanceStandard', + method: 'post', + data: { + ...data, + 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/addMaintainanceStandard.vue b/src/components/inspection/addMaintainanceStandard.vue new file mode 100644 index 0000000..9ae9f0c --- /dev/null +++ b/src/components/inspection/addMaintainanceStandard.vue @@ -0,0 +1,109 @@ + + + \ No newline at end of file diff --git a/src/components/inspection/chooseMaintainancePlanMachine.vue b/src/components/inspection/chooseMaintainancePlanMachine.vue new file mode 100644 index 0000000..f9c9790 --- /dev/null +++ b/src/components/inspection/chooseMaintainancePlanMachine.vue @@ -0,0 +1,186 @@ + + + + + \ No newline at end of file diff --git a/src/components/inspection/chooseMaintainanceStandardItem.vue b/src/components/inspection/chooseMaintainanceStandardItem.vue new file mode 100644 index 0000000..1ce52ac --- /dev/null +++ b/src/components/inspection/chooseMaintainanceStandardItem.vue @@ -0,0 +1,185 @@ + + + + + \ No newline at end of file diff --git a/src/components/inspection/deleteMaintainancePlan.vue b/src/components/inspection/deleteMaintainancePlan.vue new file mode 100644 index 0000000..7287579 --- /dev/null +++ b/src/components/inspection/deleteMaintainancePlan.vue @@ -0,0 +1,64 @@ + + + + + \ No newline at end of file diff --git a/src/components/inspection/deleteMaintainancePlanMachine.vue b/src/components/inspection/deleteMaintainancePlanMachine.vue new file mode 100644 index 0000000..fe16bd0 --- /dev/null +++ b/src/components/inspection/deleteMaintainancePlanMachine.vue @@ -0,0 +1,57 @@ + + + + + \ No newline at end of file diff --git a/src/components/inspection/deleteMaintainanceStandard.vue b/src/components/inspection/deleteMaintainanceStandard.vue new file mode 100644 index 0000000..c61dd7b --- /dev/null +++ b/src/components/inspection/deleteMaintainanceStandard.vue @@ -0,0 +1,61 @@ + + + \ No newline at end of file diff --git a/src/components/inspection/deleteMaintainanceStandardItem.vue b/src/components/inspection/deleteMaintainanceStandardItem.vue new file mode 100644 index 0000000..abb6154 --- /dev/null +++ b/src/components/inspection/deleteMaintainanceStandardItem.vue @@ -0,0 +1,73 @@ + + + \ No newline at end of file diff --git a/src/components/inspection/editMaintainanceStandard.vue b/src/components/inspection/editMaintainanceStandard.vue new file mode 100644 index 0000000..e475ead --- /dev/null +++ b/src/components/inspection/editMaintainanceStandard.vue @@ -0,0 +1,116 @@ + + + \ No newline at end of file diff --git a/src/components/inspection/maintainancePlanState.vue b/src/components/inspection/maintainancePlanState.vue new file mode 100644 index 0000000..c8982e7 --- /dev/null +++ b/src/components/inspection/maintainancePlanState.vue @@ -0,0 +1,73 @@ + + + + + \ No newline at end of file diff --git a/src/i18n/inspectionI18n.js b/src/i18n/inspectionI18n.js index 17f3129..b42770d 100644 --- a/src/i18n/inspectionI18n.js +++ b/src/i18n/inspectionI18n.js @@ -1,10 +1,29 @@ import { messages as maintainanceItemMessages } from '../views/inspection/maintainanceItemLang' +import { messages as maintainanceStandardManageMessages } from '../views/inspection/maintainanceStandardManageLang' +import { messages as maintainanceStandardItemMessages } from '../views/inspection/maintainanceStandardItemLang' +import { messages as maintainancePlanManageMessages } from '../views/inspection/maintainancePlanManageLang' +import { messages as addMaintainancePlanMessages } from '../views/inspection/addMaintainancePlanLang' +import { messages as editMaintainancePlanMessages } from '../views/inspection/editMaintainancePlanLang' +import { messages as maintainancePlanMachineMessages } from '../views/inspection/maintainancePlanMachineLang' + export const messages = { en: { ...maintainanceItemMessages.en, + ...maintainanceStandardManageMessages.en, + ...maintainanceStandardItemMessages.en, + ...maintainancePlanManageMessages.en, + ...addMaintainancePlanMessages.en, + ...editMaintainancePlanMessages.en, + ...maintainancePlanMachineMessages.en, }, zh: { ...maintainanceItemMessages.zh, + ...maintainanceStandardManageMessages.zh, + ...maintainanceStandardItemMessages.zh, + ...maintainancePlanManageMessages.zh, + ...addMaintainancePlanMessages.zh, + ...editMaintainancePlanMessages.zh, + ...maintainancePlanMachineMessages.zh, } } \ No newline at end of file diff --git a/src/router/inspectionRouter.js b/src/router/inspectionRouter.js index 2a765bd..018ec72 100644 --- a/src/router/inspectionRouter.js +++ b/src/router/inspectionRouter.js @@ -64,4 +64,34 @@ export default [ name: '/pages/property/maintainanceItem', component: () => import('@/views/inspection/maintainanceItemList.vue') }, + { + path: '/pages/property/maintainanceStandardManage', + name: '/pages/property/maintainanceStandardManage', + component: () => import('@/views/inspection/maintainanceStandardManageList.vue') + }, + { + path: '/views/inspection/maintainanceStandardItem', + name: '/views/inspection/maintainanceStandardItem', + component: () => import('@/views/inspection/maintainanceStandardItemList.vue') + }, + { + path: '/pages/property/maintainancePlanManage', + name: '/pages/property/maintainancePlanManage', + component: () => import('@/views/inspection/maintainancePlanManageList.vue') + }, + { + path: '/views/inspection/addMaintainancePlan', + name: '/views/inspection/addMaintainancePlan', + component: () => import('@/views/inspection/addMaintainancePlanList.vue') + }, + { + path: '/views/inspection/editMaintainancePlan', + name: '/views/inspection/editMaintainancePlan', + component: () => import('@/views/inspection/editMaintainancePlanList.vue') + }, + { + path: '/views/inspection/maintainancePlanMachine', + name: '/views/inspection/maintainancePlanMachine', + component: () => import('@/views/inspection/maintainancePlanMachineList.vue') + }, ] \ No newline at end of file diff --git a/src/views/inspection/addMaintainancePlanLang.js b/src/views/inspection/addMaintainancePlanLang.js new file mode 100644 index 0000000..fc6b120 --- /dev/null +++ b/src/views/inspection/addMaintainancePlanLang.js @@ -0,0 +1,76 @@ +export const messages = { + en: { + addMaintainancePlan: { + title: 'Add Maintenance Plan', + planName: 'Plan Name', + planNamePlaceholder: 'Required, please enter plan name', + standard: 'Maintenance Standard', + standardPlaceholder: 'Required, please select maintenance standard', + period: 'Maintenance Cycle', + periodPlaceholder: 'Required, please select inspection cycle', + month: 'Month', + monthUnit: 'Month', + day: 'Day', + dayUnit: 'Day', + fixedDays: 'Fixed Days', + fixedDaysPlaceholder: 'Required, please enter days', + startDate: 'Start Date', + startDatePlaceholder: 'Required, please enter start date', + endDate: 'End Date', + endDatePlaceholder: 'Required, please enter end date', + staff: 'Select Staff', + machine: 'Maintenance Equipment', + machinePlaceholder: 'Required, please select equipment', + saveSuccess: 'Added successfully', + saveError: 'Failed to add', + validate: { + planNameRequired: 'Plan name cannot be empty', + standardRequired: 'Maintenance standard cannot be empty', + periodRequired: 'Maintenance cycle cannot be empty', + monthRequired: 'Month cannot be empty', + dayRequired: 'Day cannot be empty', + fixedDaysRequired: 'Fixed days cannot be empty', + startDateRequired: 'Start date cannot be empty', + endDateRequired: 'End date cannot be empty', + machineRequired: 'Equipment cannot be empty' + } + } + }, + zh: { + addMaintainancePlan: { + title: '添加保养计划', + planName: '计划名称', + planNamePlaceholder: '必填,请填写计划名称', + standard: '保养标准', + standardPlaceholder: '必填,请选择保养标准', + period: '保养周期', + periodPlaceholder: '必填,请选择巡检周期', + month: '月', + monthUnit: '月', + day: '日', + dayUnit: '日', + fixedDays: '固定天数', + fixedDaysPlaceholder: '必填,请填写多少天后保养一次', + startDate: '开始日期', + startDatePlaceholder: '必填,请填写开始日期', + endDate: '结束日期', + endDatePlaceholder: '必填,请填写结束日期', + staff: '选择员工', + machine: '保养设备', + machinePlaceholder: '必填,请选择设备', + saveSuccess: '添加成功', + saveError: '添加失败', + validate: { + planNameRequired: '计划名称不能为空', + standardRequired: '保养标准不能为空', + periodRequired: '保养周期不能为空', + monthRequired: '月不能为空', + dayRequired: '日不能为空', + fixedDaysRequired: '固定天数不能为空', + startDateRequired: '开始日期不能为空', + endDateRequired: '结束日期不能为空', + machineRequired: '设备不能为空' + } + } + } +} \ No newline at end of file diff --git a/src/views/inspection/addMaintainancePlanList.vue b/src/views/inspection/addMaintainancePlanList.vue new file mode 100644 index 0000000..7743333 --- /dev/null +++ b/src/views/inspection/addMaintainancePlanList.vue @@ -0,0 +1,288 @@ + + + + + \ No newline at end of file diff --git a/src/views/inspection/editMaintainancePlanLang.js b/src/views/inspection/editMaintainancePlanLang.js new file mode 100644 index 0000000..44b77d0 --- /dev/null +++ b/src/views/inspection/editMaintainancePlanLang.js @@ -0,0 +1,62 @@ +export const messages = { + en: { + editMaintainancePlan: { + title: 'Edit Maintenance Plan', + planName: 'Plan Name', + planNamePlaceholder: 'Required, please enter plan name', + standard: 'Maintenance Standard', + standardPlaceholder: 'Required, please select maintenance standard', + period: 'Inspection Cycle', + periodPlaceholder: 'Required, please select inspection cycle', + month: 'Month', + monthUnit: 'Month', + day: 'Day', + dayUnit: 'Day', + fixedDay: 'Fixed Days', + fixedDayPlaceholder: 'Required, please enter days', + startDate: 'Start Date', + startDatePlaceholder: 'Required, please select start date', + endDate: 'End Date', + endDatePlaceholder: 'Required, please select end date', + selectStaff: 'Select Staff', + saveSuccess: 'Save successfully', + saveError: 'Save failed', + fetchStandardError: 'Failed to get maintenance standards', + fetchPlanError: 'Failed to get maintenance plan', + fetchStaffError: 'Failed to get staff list' + }, + orgTree: { + fetchError: 'Failed to get organization tree' + } + }, + zh: { + editMaintainancePlan: { + title: '修改保养计划', + planName: '计划名称', + planNamePlaceholder: '必填,请填写计划名称', + standard: '保养标准', + standardPlaceholder: '必填,请选择保养标准', + period: '巡检周期', + periodPlaceholder: '必填,请选择巡检周期', + month: '月', + monthUnit: '月', + day: '日', + dayUnit: '日', + fixedDay: '固定天数', + fixedDayPlaceholder: '必填,请填写多少天后保养一次', + startDate: '开始日期', + startDatePlaceholder: '必填,请填写开始日期', + endDate: '结束日期', + endDatePlaceholder: '必填,请填写结束日期', + selectStaff: '选择员工', + saveSuccess: '保存成功', + saveError: '保存失败', + fetchStandardError: '获取保养标准失败', + fetchPlanError: '获取保养计划失败', + fetchStaffError: '获取员工列表失败' + }, + orgTree: { + fetchError: '获取组织树失败' + } + } +} \ No newline at end of file diff --git a/src/views/inspection/editMaintainancePlanList.vue b/src/views/inspection/editMaintainancePlanList.vue new file mode 100644 index 0000000..bba13b1 --- /dev/null +++ b/src/views/inspection/editMaintainancePlanList.vue @@ -0,0 +1,284 @@ + + + + + \ No newline at end of file diff --git a/src/views/inspection/maintainancePlanMachineLang.js b/src/views/inspection/maintainancePlanMachineLang.js new file mode 100644 index 0000000..ee97e99 --- /dev/null +++ b/src/views/inspection/maintainancePlanMachineLang.js @@ -0,0 +1,70 @@ +export const messages = { + en: { + maintainancePlanMachine: { + title: 'Maintenance Equipment', + back: 'Back', + add: 'Add', + machineName: 'Equipment Name', + machineId: 'Equipment ID', + operation: 'Operation', + delete: 'Delete', + fetchError: 'Failed to fetch equipment list' + }, + chooseMaintainancePlanMachine: { + title: 'Select Equipment', + machineNamePlaceholder: 'Enter equipment name', + search: 'Search', + reset: 'Reset', + machineId: 'ID', + machineName: 'Equipment Name', + cancel: 'Cancel', + submit: 'Submit', + selectWarning: 'Please select at least one equipment', + addSuccess: 'Added successfully', + addError: 'Failed to add equipment', + fetchError: 'Failed to fetch equipment list' + }, + deleteMaintainancePlanMachine: { + title: 'Confirm Operation', + confirmText: 'Are you sure to delete this maintenance equipment?', + cancel: 'Cancel', + confirm: 'Confirm', + deleteSuccess: 'Deleted successfully', + deleteError: 'Failed to delete equipment' + } + }, + zh: { + maintainancePlanMachine: { + title: '保养设备', + back: '返回', + add: '添加', + machineName: '设备名称', + machineId: '设备编号', + operation: '操作', + delete: '删除', + fetchError: '获取设备列表失败' + }, + chooseMaintainancePlanMachine: { + title: '选择设备', + machineNamePlaceholder: '输入设备名称', + search: '查询', + reset: '重置', + machineId: '编号', + machineName: '设备名称', + cancel: '取消', + submit: '提交', + selectWarning: '请至少选择一台设备', + addSuccess: '添加成功', + addError: '添加设备失败', + fetchError: '获取设备列表失败' + }, + deleteMaintainancePlanMachine: { + title: '请确认您的操作', + confirmText: '确定删除保养设备?', + cancel: '点错了', + confirm: '确认删除', + deleteSuccess: '删除成功', + deleteError: '删除设备失败' + } + } +} \ No newline at end of file diff --git a/src/views/inspection/maintainancePlanMachineList.vue b/src/views/inspection/maintainancePlanMachineList.vue new file mode 100644 index 0000000..ff25c11 --- /dev/null +++ b/src/views/inspection/maintainancePlanMachineList.vue @@ -0,0 +1,143 @@ + + + + + \ No newline at end of file diff --git a/src/views/inspection/maintainancePlanManageLang.js b/src/views/inspection/maintainancePlanManageLang.js new file mode 100644 index 0000000..16a3d33 --- /dev/null +++ b/src/views/inspection/maintainancePlanManageLang.js @@ -0,0 +1,90 @@ +export const messages = { + en: { + maintainancePlanManage: { + search: { + title: 'Search Conditions', + planName: 'Plan Name', + state: 'Status', + allState: 'All Status' + }, + list: { + title: 'Maintenance Plan (Generate Tasks on Maintenance Day)' + }, + table: { + planName: 'Plan Name', + standardName: 'Maintenance Standard', + planPeriod: 'Plan Cycle', + dateRange: 'Date Range', + machineCount: 'Equipment Count', + machine: 'Equipment', + staffCount: 'Maintenance Staff Count', + createUser: 'Creator', + createTime: 'Creation Time', + state: 'Status' + }, + button: { + enable: 'Enable', + disable: 'Disable' + }, + tip: 'Please ensure the plan start time and end time are valid and maintenance staff are assigned, otherwise maintenance tasks cannot be generated', + fetchError: 'Failed to fetch maintenance plans' + }, + deleteMaintainancePlan: { + title: 'Please confirm your operation', + confirm: 'Are you sure to delete this maintenance plan?', + success: 'Delete successfully', + error: 'Failed to delete' + }, + maintainancePlanState: { + title: 'Please confirm your operation', + confirm: 'Are you sure to', + plan: 'this maintenance plan?', + success: 'Operation successful', + error: 'Operation failed' + } + }, + zh: { + maintainancePlanManage: { + search: { + title: '查询条件', + planName: '计划名称', + state: '状态', + allState: '全部状态' + }, + list: { + title: '保养计划(保养日生成任务)' + }, + table: { + planName: '计划名称', + standardName: '保养标准', + planPeriod: '计划周期', + dateRange: '日期范围', + machineCount: '设备数', + machine: '设备', + staffCount: '保养人数', + createUser: '制定人', + createTime: '制定时间', + state: '状态' + }, + button: { + enable: '启用', + disable: '停用' + }, + tip: '请确保计划开始时间和计划结束时间是有效时间范围,并且设置了保养人,不然无法生成保养任务', + fetchError: '获取保养计划失败' + }, + deleteMaintainancePlan: { + title: '请确认您的操作', + confirm: '确定删除保养计划?', + success: '删除成功', + error: '删除失败' + }, + maintainancePlanState: { + title: '请确认您的操作', + confirm: '确定', + plan: '保养计划?', + success: '操作成功', + error: '操作失败' + } + } +} \ No newline at end of file diff --git a/src/views/inspection/maintainancePlanManageList.vue b/src/views/inspection/maintainancePlanManageList.vue new file mode 100644 index 0000000..6b483b7 --- /dev/null +++ b/src/views/inspection/maintainancePlanManageList.vue @@ -0,0 +1,221 @@ + + + + + \ No newline at end of file diff --git a/src/views/inspection/maintainanceStandardItemLang.js b/src/views/inspection/maintainanceStandardItemLang.js new file mode 100644 index 0000000..78e217f --- /dev/null +++ b/src/views/inspection/maintainanceStandardItemLang.js @@ -0,0 +1,70 @@ +export const messages = { + en: { + maintainanceStandardItem: { + title: 'Inspection Items', + back: 'Back', + add: 'Add', + item: 'Inspection Item', + id: 'ID', + operation: 'Operation', + delete: 'Delete', + fetchError: 'Failed to fetch inspection items' + }, + chooseMaintainanceStandardItem: { + title: 'Select Inspection Items', + searchPlaceholder: 'Enter inspection item', + search: 'Search', + reset: 'Reset', + id: 'ID', + item: 'Inspection Item', + submit: 'Submit', + cancel: 'Cancel', + selectWarning: 'Please select at least one inspection item', + submitSuccess: 'Added successfully', + submitError: 'Failed to add inspection items', + fetchError: 'Failed to fetch available inspection items' + }, + deleteMaintainanceStandardItem: { + title: 'Confirm Operation', + confirmMessage: 'Are you sure to delete this inspection item?', + cancel: 'Cancel', + confirm: 'Confirm Delete', + deleteSuccess: 'Deleted successfully', + deleteError: 'Failed to delete inspection item' + } + }, + zh: { + maintainanceStandardItem: { + title: '检查项', + back: '返回', + add: '添加', + item: '检查项', + id: '编号', + operation: '操作', + delete: '删除', + fetchError: '获取检查项失败' + }, + chooseMaintainanceStandardItem: { + title: '选择检查项', + searchPlaceholder: '输入检查项', + search: '查询', + reset: '重置', + id: '编号', + item: '检查项', + submit: '提交', + cancel: '取消', + selectWarning: '请至少选择一项检查项', + submitSuccess: '添加成功', + submitError: '添加检查项失败', + fetchError: '获取可选检查项失败' + }, + deleteMaintainanceStandardItem: { + title: '请确认您的操作', + confirmMessage: '确定删除该检查项吗?', + cancel: '点错了', + confirm: '确认删除', + deleteSuccess: '删除成功', + deleteError: '删除检查项失败' + } + } +} \ No newline at end of file diff --git a/src/views/inspection/maintainanceStandardItemList.vue b/src/views/inspection/maintainanceStandardItemList.vue new file mode 100644 index 0000000..00846b0 --- /dev/null +++ b/src/views/inspection/maintainanceStandardItemList.vue @@ -0,0 +1,138 @@ + + + + + \ No newline at end of file diff --git a/src/views/inspection/maintainanceStandardManageLang.js b/src/views/inspection/maintainanceStandardManageLang.js new file mode 100644 index 0000000..49d2a25 --- /dev/null +++ b/src/views/inspection/maintainanceStandardManageLang.js @@ -0,0 +1,106 @@ +export const messages = { + en: { + maintainanceStandard: { + search: { + title: 'Search Conditions', + standardName: 'Please select maintenance item' + }, + list: { + title: 'Maintenance Standard' + }, + table: { + standardName: 'Maintenance Standard', + itemCount: 'Inspection Items', + item: 'Items', + remark: 'Remark', + createTime: 'Create Time' + }, + form: { + standardName: 'Maintenance Item', + remark: 'Remark' + }, + placeholder: { + standardName: 'Required, please fill in the maintenance item', + remark: 'Required, please fill in the remark' + }, + rules: { + standardName: 'Maintenance item cannot be empty', + standardNameMax: 'Maintenance item cannot exceed 256 characters', + remark: 'Remark cannot be empty', + remarkMax: 'Remark cannot exceed 512 characters', + standardId: 'ID cannot be empty' + }, + add: { + title: 'Add Maintenance Standard' + }, + edit: { + title: 'Edit Maintenance Standard' + }, + delete: { + title: 'Confirm Operation', + confirmText: 'Are you sure to delete this maintenance standard?' + }, + message: { + addSuccess: 'Add successfully', + addFailed: 'Add failed', + editSuccess: 'Edit successfully', + editFailed: 'Edit failed', + deleteSuccess: 'Delete successfully', + deleteFailed: 'Delete failed', + fetchError: 'Failed to fetch data' + } + } + }, + zh: { + maintainanceStandard: { + search: { + title: '查询条件', + standardName: '请选择保养项目' + }, + list: { + title: '保养标准' + }, + table: { + standardName: '保养标准', + itemCount: '检查项', + item: '检查项', + remark: '备注', + createTime: '创建时间' + }, + form: { + standardName: '保养项目', + remark: '备注' + }, + placeholder: { + standardName: '必填,请填写保养项目', + remark: '必填,请填写备注' + }, + rules: { + standardName: '保养项目不能为空', + standardNameMax: '保养项目不能超过256个字符', + remark: '备注不能为空', + remarkMax: '备注不能超过512个字符', + standardId: '编号不能为空' + }, + add: { + title: '添加保养标准' + }, + edit: { + title: '修改保养标准' + }, + delete: { + title: '请确认您的操作', + confirmText: '确定删除保养标准?' + }, + message: { + addSuccess: '添加成功', + addFailed: '添加失败', + editSuccess: '修改成功', + editFailed: '修改失败', + deleteSuccess: '删除成功', + deleteFailed: '删除失败', + fetchError: '获取数据失败' + } + } + } +} \ No newline at end of file diff --git a/src/views/inspection/maintainanceStandardManageList.vue b/src/views/inspection/maintainanceStandardManageList.vue new file mode 100644 index 0000000..e1f9671 --- /dev/null +++ b/src/views/inspection/maintainanceStandardManageList.vue @@ -0,0 +1,187 @@ + + + + + \ No newline at end of file -- libgit2 0.21.4