diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 525909d..f350d40 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -44,3 +44,66 @@ data, }) } + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 525909d..f350d40 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -44,3 +44,66 @@ data, }) } + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts index c28e9ba..a5d557a 100644 --- a/src/api/device/standard.ts +++ b/src/api/device/standard.ts @@ -108,3 +108,13 @@ data, }) } + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 525909d..f350d40 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -44,3 +44,66 @@ data, }) } + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts index c28e9ba..a5d557a 100644 --- a/src/api/device/standard.ts +++ b/src/api/device/standard.ts @@ -108,3 +108,13 @@ data, }) } + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 3d73df2..993d66c 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -187,18 +187,6 @@ auth: '/standard/expirationRemind', }, }, - // { - // path: 'expirationRemind/:type/:id?', - // name: 'fixedAssetsDetail', - // component: () => import('@/views/device/standardEquipment/components/standardListAdd.vue'), - // meta: { - // title: '到期提醒', - // icon: 'ep:key', - // sidebar: false, - // breadcrumb: true, - // activeMenu: '/standard/expirationRemind', - // }, - // }, { path: 'changeApply', name: 'changeApply', @@ -416,12 +404,24 @@ name: 'maintenanceList', component: () => import('@/views/device/deviceMaintenance/maintenanceList.vue'), meta: { - title: '设备维护列表', + title: '设备检修列表', icon: 'ep:key', auth: '/device/maintenanceList', }, }, { + path: 'maintenanceList/:type/:id?', + name: 'maintenanceAdd', + component: () => import('@/views/device/deviceMaintenance/components/listPageAdd.vue'), + meta: { + title: '设备检修列表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceList', + }, + }, + { path: 'maintenanceCheckList', name: 'maintenanceCheckList', component: () => import('@/views/device/deviceMaintenance/maintenanceCheckList.vue'), @@ -432,6 +432,18 @@ }, }, { + path: 'maintenanceCheckList/:type/:id?', + name: 'maintenanceCheckAdd', + component: () => import('@/views/device/deviceMaintenance/components/listApprovalAdd.vue'), + meta: { + title: '设备检修保养验收单', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceCheckList', + }, + }, + { path: 'manageCheckList', name: 'manageCheckList', component: () => import('@/views/device/deviceMaintenance/manageCheckList.vue'), @@ -453,37 +465,6 @@ activeMenu: '/maintenance/manageCheckList', }, }, - { - path: ':type/:id?', - name: 'maintenanceAdd', - component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), - meta: { - title: '设备维护列表', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/maintenance/maintenanceList', - }, - beforeEnter: (to, from, next) => { - const type = from.path.split('/')[from.path.split('/').length - 1] - console.log(type) - switch (type) { - case 'maintenanceList': - to.meta.activeMenu = '/maintenance/maintenanceList' - to.meta.title = '设备维护列表' - break - case 'maintenanceCheckList': - to.meta.activeMenu = '/maintenance/maintenanceCheckList' - to.meta.title = '设备检修保养验收单' - break - case 'manageCheckList': - to.meta.activeMenu = '/maintenance/manageCheckList' - to.meta.title = '设备管理点检查表' - break - } - next() - }, - }, ], }, { diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 525909d..f350d40 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -44,3 +44,66 @@ data, }) } + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts index c28e9ba..a5d557a 100644 --- a/src/api/device/standard.ts +++ b/src/api/device/standard.ts @@ -108,3 +108,13 @@ data, }) } + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 3d73df2..993d66c 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -187,18 +187,6 @@ auth: '/standard/expirationRemind', }, }, - // { - // path: 'expirationRemind/:type/:id?', - // name: 'fixedAssetsDetail', - // component: () => import('@/views/device/standardEquipment/components/standardListAdd.vue'), - // meta: { - // title: '到期提醒', - // icon: 'ep:key', - // sidebar: false, - // breadcrumb: true, - // activeMenu: '/standard/expirationRemind', - // }, - // }, { path: 'changeApply', name: 'changeApply', @@ -416,12 +404,24 @@ name: 'maintenanceList', component: () => import('@/views/device/deviceMaintenance/maintenanceList.vue'), meta: { - title: '设备维护列表', + title: '设备检修列表', icon: 'ep:key', auth: '/device/maintenanceList', }, }, { + path: 'maintenanceList/:type/:id?', + name: 'maintenanceAdd', + component: () => import('@/views/device/deviceMaintenance/components/listPageAdd.vue'), + meta: { + title: '设备检修列表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceList', + }, + }, + { path: 'maintenanceCheckList', name: 'maintenanceCheckList', component: () => import('@/views/device/deviceMaintenance/maintenanceCheckList.vue'), @@ -432,6 +432,18 @@ }, }, { + path: 'maintenanceCheckList/:type/:id?', + name: 'maintenanceCheckAdd', + component: () => import('@/views/device/deviceMaintenance/components/listApprovalAdd.vue'), + meta: { + title: '设备检修保养验收单', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceCheckList', + }, + }, + { path: 'manageCheckList', name: 'manageCheckList', component: () => import('@/views/device/deviceMaintenance/manageCheckList.vue'), @@ -453,37 +465,6 @@ activeMenu: '/maintenance/manageCheckList', }, }, - { - path: ':type/:id?', - name: 'maintenanceAdd', - component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), - meta: { - title: '设备维护列表', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/maintenance/maintenanceList', - }, - beforeEnter: (to, from, next) => { - const type = from.path.split('/')[from.path.split('/').length - 1] - console.log(type) - switch (type) { - case 'maintenanceList': - to.meta.activeMenu = '/maintenance/maintenanceList' - to.meta.title = '设备维护列表' - break - case 'maintenanceCheckList': - to.meta.activeMenu = '/maintenance/maintenanceCheckList' - to.meta.title = '设备检修保养验收单' - break - case 'manageCheckList': - to.meta.activeMenu = '/maintenance/manageCheckList' - to.meta.title = '设备管理点检查表' - break - } - next() - }, - }, ], }, { diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts index fc2cfa7..b1d51bf 100644 --- a/src/views/device/deviceMaintenance/checkList_interface.ts +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -35,3 +35,8 @@ remark: string updateTime: null | string } + +export interface IOptions { + id: string + name: string +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 525909d..f350d40 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -44,3 +44,66 @@ data, }) } + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts index c28e9ba..a5d557a 100644 --- a/src/api/device/standard.ts +++ b/src/api/device/standard.ts @@ -108,3 +108,13 @@ data, }) } + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 3d73df2..993d66c 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -187,18 +187,6 @@ auth: '/standard/expirationRemind', }, }, - // { - // path: 'expirationRemind/:type/:id?', - // name: 'fixedAssetsDetail', - // component: () => import('@/views/device/standardEquipment/components/standardListAdd.vue'), - // meta: { - // title: '到期提醒', - // icon: 'ep:key', - // sidebar: false, - // breadcrumb: true, - // activeMenu: '/standard/expirationRemind', - // }, - // }, { path: 'changeApply', name: 'changeApply', @@ -416,12 +404,24 @@ name: 'maintenanceList', component: () => import('@/views/device/deviceMaintenance/maintenanceList.vue'), meta: { - title: '设备维护列表', + title: '设备检修列表', icon: 'ep:key', auth: '/device/maintenanceList', }, }, { + path: 'maintenanceList/:type/:id?', + name: 'maintenanceAdd', + component: () => import('@/views/device/deviceMaintenance/components/listPageAdd.vue'), + meta: { + title: '设备检修列表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceList', + }, + }, + { path: 'maintenanceCheckList', name: 'maintenanceCheckList', component: () => import('@/views/device/deviceMaintenance/maintenanceCheckList.vue'), @@ -432,6 +432,18 @@ }, }, { + path: 'maintenanceCheckList/:type/:id?', + name: 'maintenanceCheckAdd', + component: () => import('@/views/device/deviceMaintenance/components/listApprovalAdd.vue'), + meta: { + title: '设备检修保养验收单', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceCheckList', + }, + }, + { path: 'manageCheckList', name: 'manageCheckList', component: () => import('@/views/device/deviceMaintenance/manageCheckList.vue'), @@ -453,37 +465,6 @@ activeMenu: '/maintenance/manageCheckList', }, }, - { - path: ':type/:id?', - name: 'maintenanceAdd', - component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), - meta: { - title: '设备维护列表', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/maintenance/maintenanceList', - }, - beforeEnter: (to, from, next) => { - const type = from.path.split('/')[from.path.split('/').length - 1] - console.log(type) - switch (type) { - case 'maintenanceList': - to.meta.activeMenu = '/maintenance/maintenanceList' - to.meta.title = '设备维护列表' - break - case 'maintenanceCheckList': - to.meta.activeMenu = '/maintenance/maintenanceCheckList' - to.meta.title = '设备检修保养验收单' - break - case 'manageCheckList': - to.meta.activeMenu = '/maintenance/manageCheckList' - to.meta.title = '设备管理点检查表' - break - } - next() - }, - }, ], }, { diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts index fc2cfa7..b1d51bf 100644 --- a/src/views/device/deviceMaintenance/checkList_interface.ts +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -35,3 +35,8 @@ remark: string updateTime: null | string } + +export interface IOptions { + id: string + name: string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/all.vue b/src/views/device/deviceMaintenance/components/listApply/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 525909d..f350d40 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -44,3 +44,66 @@ data, }) } + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts index c28e9ba..a5d557a 100644 --- a/src/api/device/standard.ts +++ b/src/api/device/standard.ts @@ -108,3 +108,13 @@ data, }) } + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 3d73df2..993d66c 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -187,18 +187,6 @@ auth: '/standard/expirationRemind', }, }, - // { - // path: 'expirationRemind/:type/:id?', - // name: 'fixedAssetsDetail', - // component: () => import('@/views/device/standardEquipment/components/standardListAdd.vue'), - // meta: { - // title: '到期提醒', - // icon: 'ep:key', - // sidebar: false, - // breadcrumb: true, - // activeMenu: '/standard/expirationRemind', - // }, - // }, { path: 'changeApply', name: 'changeApply', @@ -416,12 +404,24 @@ name: 'maintenanceList', component: () => import('@/views/device/deviceMaintenance/maintenanceList.vue'), meta: { - title: '设备维护列表', + title: '设备检修列表', icon: 'ep:key', auth: '/device/maintenanceList', }, }, { + path: 'maintenanceList/:type/:id?', + name: 'maintenanceAdd', + component: () => import('@/views/device/deviceMaintenance/components/listPageAdd.vue'), + meta: { + title: '设备检修列表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceList', + }, + }, + { path: 'maintenanceCheckList', name: 'maintenanceCheckList', component: () => import('@/views/device/deviceMaintenance/maintenanceCheckList.vue'), @@ -432,6 +432,18 @@ }, }, { + path: 'maintenanceCheckList/:type/:id?', + name: 'maintenanceCheckAdd', + component: () => import('@/views/device/deviceMaintenance/components/listApprovalAdd.vue'), + meta: { + title: '设备检修保养验收单', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceCheckList', + }, + }, + { path: 'manageCheckList', name: 'manageCheckList', component: () => import('@/views/device/deviceMaintenance/manageCheckList.vue'), @@ -453,37 +465,6 @@ activeMenu: '/maintenance/manageCheckList', }, }, - { - path: ':type/:id?', - name: 'maintenanceAdd', - component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), - meta: { - title: '设备维护列表', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/maintenance/maintenanceList', - }, - beforeEnter: (to, from, next) => { - const type = from.path.split('/')[from.path.split('/').length - 1] - console.log(type) - switch (type) { - case 'maintenanceList': - to.meta.activeMenu = '/maintenance/maintenanceList' - to.meta.title = '设备维护列表' - break - case 'maintenanceCheckList': - to.meta.activeMenu = '/maintenance/maintenanceCheckList' - to.meta.title = '设备检修保养验收单' - break - case 'manageCheckList': - to.meta.activeMenu = '/maintenance/manageCheckList' - to.meta.title = '设备管理点检查表' - break - } - next() - }, - }, ], }, { diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts index fc2cfa7..b1d51bf 100644 --- a/src/views/device/deviceMaintenance/checkList_interface.ts +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -35,3 +35,8 @@ remark: string updateTime: null | string } + +export interface IOptions { + id: string + name: string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/all.vue b/src/views/device/deviceMaintenance/components/listApply/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue b/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue deleted file mode 100644 index 8a7a8bc..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 525909d..f350d40 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -44,3 +44,66 @@ data, }) } + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts index c28e9ba..a5d557a 100644 --- a/src/api/device/standard.ts +++ b/src/api/device/standard.ts @@ -108,3 +108,13 @@ data, }) } + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 3d73df2..993d66c 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -187,18 +187,6 @@ auth: '/standard/expirationRemind', }, }, - // { - // path: 'expirationRemind/:type/:id?', - // name: 'fixedAssetsDetail', - // component: () => import('@/views/device/standardEquipment/components/standardListAdd.vue'), - // meta: { - // title: '到期提醒', - // icon: 'ep:key', - // sidebar: false, - // breadcrumb: true, - // activeMenu: '/standard/expirationRemind', - // }, - // }, { path: 'changeApply', name: 'changeApply', @@ -416,12 +404,24 @@ name: 'maintenanceList', component: () => import('@/views/device/deviceMaintenance/maintenanceList.vue'), meta: { - title: '设备维护列表', + title: '设备检修列表', icon: 'ep:key', auth: '/device/maintenanceList', }, }, { + path: 'maintenanceList/:type/:id?', + name: 'maintenanceAdd', + component: () => import('@/views/device/deviceMaintenance/components/listPageAdd.vue'), + meta: { + title: '设备检修列表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceList', + }, + }, + { path: 'maintenanceCheckList', name: 'maintenanceCheckList', component: () => import('@/views/device/deviceMaintenance/maintenanceCheckList.vue'), @@ -432,6 +432,18 @@ }, }, { + path: 'maintenanceCheckList/:type/:id?', + name: 'maintenanceCheckAdd', + component: () => import('@/views/device/deviceMaintenance/components/listApprovalAdd.vue'), + meta: { + title: '设备检修保养验收单', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceCheckList', + }, + }, + { path: 'manageCheckList', name: 'manageCheckList', component: () => import('@/views/device/deviceMaintenance/manageCheckList.vue'), @@ -453,37 +465,6 @@ activeMenu: '/maintenance/manageCheckList', }, }, - { - path: ':type/:id?', - name: 'maintenanceAdd', - component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), - meta: { - title: '设备维护列表', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/maintenance/maintenanceList', - }, - beforeEnter: (to, from, next) => { - const type = from.path.split('/')[from.path.split('/').length - 1] - console.log(type) - switch (type) { - case 'maintenanceList': - to.meta.activeMenu = '/maintenance/maintenanceList' - to.meta.title = '设备维护列表' - break - case 'maintenanceCheckList': - to.meta.activeMenu = '/maintenance/maintenanceCheckList' - to.meta.title = '设备检修保养验收单' - break - case 'manageCheckList': - to.meta.activeMenu = '/maintenance/manageCheckList' - to.meta.title = '设备管理点检查表' - break - } - next() - }, - }, ], }, { diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts index fc2cfa7..b1d51bf 100644 --- a/src/views/device/deviceMaintenance/checkList_interface.ts +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -35,3 +35,8 @@ remark: string updateTime: null | string } + +export interface IOptions { + id: string + name: string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/all.vue b/src/views/device/deviceMaintenance/components/listApply/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue b/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue deleted file mode 100644 index 8a7a8bc..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/canceled.vue b/src/views/device/deviceMaintenance/components/listApply/canceled.vue deleted file mode 100644 index 3b9657c..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/canceled.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 525909d..f350d40 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -44,3 +44,66 @@ data, }) } + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts index c28e9ba..a5d557a 100644 --- a/src/api/device/standard.ts +++ b/src/api/device/standard.ts @@ -108,3 +108,13 @@ data, }) } + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 3d73df2..993d66c 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -187,18 +187,6 @@ auth: '/standard/expirationRemind', }, }, - // { - // path: 'expirationRemind/:type/:id?', - // name: 'fixedAssetsDetail', - // component: () => import('@/views/device/standardEquipment/components/standardListAdd.vue'), - // meta: { - // title: '到期提醒', - // icon: 'ep:key', - // sidebar: false, - // breadcrumb: true, - // activeMenu: '/standard/expirationRemind', - // }, - // }, { path: 'changeApply', name: 'changeApply', @@ -416,12 +404,24 @@ name: 'maintenanceList', component: () => import('@/views/device/deviceMaintenance/maintenanceList.vue'), meta: { - title: '设备维护列表', + title: '设备检修列表', icon: 'ep:key', auth: '/device/maintenanceList', }, }, { + path: 'maintenanceList/:type/:id?', + name: 'maintenanceAdd', + component: () => import('@/views/device/deviceMaintenance/components/listPageAdd.vue'), + meta: { + title: '设备检修列表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceList', + }, + }, + { path: 'maintenanceCheckList', name: 'maintenanceCheckList', component: () => import('@/views/device/deviceMaintenance/maintenanceCheckList.vue'), @@ -432,6 +432,18 @@ }, }, { + path: 'maintenanceCheckList/:type/:id?', + name: 'maintenanceCheckAdd', + component: () => import('@/views/device/deviceMaintenance/components/listApprovalAdd.vue'), + meta: { + title: '设备检修保养验收单', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceCheckList', + }, + }, + { path: 'manageCheckList', name: 'manageCheckList', component: () => import('@/views/device/deviceMaintenance/manageCheckList.vue'), @@ -453,37 +465,6 @@ activeMenu: '/maintenance/manageCheckList', }, }, - { - path: ':type/:id?', - name: 'maintenanceAdd', - component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), - meta: { - title: '设备维护列表', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/maintenance/maintenanceList', - }, - beforeEnter: (to, from, next) => { - const type = from.path.split('/')[from.path.split('/').length - 1] - console.log(type) - switch (type) { - case 'maintenanceList': - to.meta.activeMenu = '/maintenance/maintenanceList' - to.meta.title = '设备维护列表' - break - case 'maintenanceCheckList': - to.meta.activeMenu = '/maintenance/maintenanceCheckList' - to.meta.title = '设备检修保养验收单' - break - case 'manageCheckList': - to.meta.activeMenu = '/maintenance/manageCheckList' - to.meta.title = '设备管理点检查表' - break - } - next() - }, - }, ], }, { diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts index fc2cfa7..b1d51bf 100644 --- a/src/views/device/deviceMaintenance/checkList_interface.ts +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -35,3 +35,8 @@ remark: string updateTime: null | string } + +export interface IOptions { + id: string + name: string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/all.vue b/src/views/device/deviceMaintenance/components/listApply/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue b/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue deleted file mode 100644 index 8a7a8bc..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/canceled.vue b/src/views/device/deviceMaintenance/components/listApply/canceled.vue deleted file mode 100644 index 3b9657c..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/canceled.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/draftBox.vue b/src/views/device/deviceMaintenance/components/listApply/draftBox.vue deleted file mode 100644 index 43d7b75..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/draftBox.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 525909d..f350d40 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -44,3 +44,66 @@ data, }) } + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts index c28e9ba..a5d557a 100644 --- a/src/api/device/standard.ts +++ b/src/api/device/standard.ts @@ -108,3 +108,13 @@ data, }) } + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 3d73df2..993d66c 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -187,18 +187,6 @@ auth: '/standard/expirationRemind', }, }, - // { - // path: 'expirationRemind/:type/:id?', - // name: 'fixedAssetsDetail', - // component: () => import('@/views/device/standardEquipment/components/standardListAdd.vue'), - // meta: { - // title: '到期提醒', - // icon: 'ep:key', - // sidebar: false, - // breadcrumb: true, - // activeMenu: '/standard/expirationRemind', - // }, - // }, { path: 'changeApply', name: 'changeApply', @@ -416,12 +404,24 @@ name: 'maintenanceList', component: () => import('@/views/device/deviceMaintenance/maintenanceList.vue'), meta: { - title: '设备维护列表', + title: '设备检修列表', icon: 'ep:key', auth: '/device/maintenanceList', }, }, { + path: 'maintenanceList/:type/:id?', + name: 'maintenanceAdd', + component: () => import('@/views/device/deviceMaintenance/components/listPageAdd.vue'), + meta: { + title: '设备检修列表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceList', + }, + }, + { path: 'maintenanceCheckList', name: 'maintenanceCheckList', component: () => import('@/views/device/deviceMaintenance/maintenanceCheckList.vue'), @@ -432,6 +432,18 @@ }, }, { + path: 'maintenanceCheckList/:type/:id?', + name: 'maintenanceCheckAdd', + component: () => import('@/views/device/deviceMaintenance/components/listApprovalAdd.vue'), + meta: { + title: '设备检修保养验收单', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceCheckList', + }, + }, + { path: 'manageCheckList', name: 'manageCheckList', component: () => import('@/views/device/deviceMaintenance/manageCheckList.vue'), @@ -453,37 +465,6 @@ activeMenu: '/maintenance/manageCheckList', }, }, - { - path: ':type/:id?', - name: 'maintenanceAdd', - component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), - meta: { - title: '设备维护列表', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/maintenance/maintenanceList', - }, - beforeEnter: (to, from, next) => { - const type = from.path.split('/')[from.path.split('/').length - 1] - console.log(type) - switch (type) { - case 'maintenanceList': - to.meta.activeMenu = '/maintenance/maintenanceList' - to.meta.title = '设备维护列表' - break - case 'maintenanceCheckList': - to.meta.activeMenu = '/maintenance/maintenanceCheckList' - to.meta.title = '设备检修保养验收单' - break - case 'manageCheckList': - to.meta.activeMenu = '/maintenance/manageCheckList' - to.meta.title = '设备管理点检查表' - break - } - next() - }, - }, ], }, { diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts index fc2cfa7..b1d51bf 100644 --- a/src/views/device/deviceMaintenance/checkList_interface.ts +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -35,3 +35,8 @@ remark: string updateTime: null | string } + +export interface IOptions { + id: string + name: string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/all.vue b/src/views/device/deviceMaintenance/components/listApply/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue b/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue deleted file mode 100644 index 8a7a8bc..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/canceled.vue b/src/views/device/deviceMaintenance/components/listApply/canceled.vue deleted file mode 100644 index 3b9657c..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/canceled.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/draftBox.vue b/src/views/device/deviceMaintenance/components/listApply/draftBox.vue deleted file mode 100644 index 43d7b75..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/draftBox.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue b/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue deleted file mode 100644 index c13f95a..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 525909d..f350d40 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -44,3 +44,66 @@ data, }) } + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts index c28e9ba..a5d557a 100644 --- a/src/api/device/standard.ts +++ b/src/api/device/standard.ts @@ -108,3 +108,13 @@ data, }) } + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 3d73df2..993d66c 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -187,18 +187,6 @@ auth: '/standard/expirationRemind', }, }, - // { - // path: 'expirationRemind/:type/:id?', - // name: 'fixedAssetsDetail', - // component: () => import('@/views/device/standardEquipment/components/standardListAdd.vue'), - // meta: { - // title: '到期提醒', - // icon: 'ep:key', - // sidebar: false, - // breadcrumb: true, - // activeMenu: '/standard/expirationRemind', - // }, - // }, { path: 'changeApply', name: 'changeApply', @@ -416,12 +404,24 @@ name: 'maintenanceList', component: () => import('@/views/device/deviceMaintenance/maintenanceList.vue'), meta: { - title: '设备维护列表', + title: '设备检修列表', icon: 'ep:key', auth: '/device/maintenanceList', }, }, { + path: 'maintenanceList/:type/:id?', + name: 'maintenanceAdd', + component: () => import('@/views/device/deviceMaintenance/components/listPageAdd.vue'), + meta: { + title: '设备检修列表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceList', + }, + }, + { path: 'maintenanceCheckList', name: 'maintenanceCheckList', component: () => import('@/views/device/deviceMaintenance/maintenanceCheckList.vue'), @@ -432,6 +432,18 @@ }, }, { + path: 'maintenanceCheckList/:type/:id?', + name: 'maintenanceCheckAdd', + component: () => import('@/views/device/deviceMaintenance/components/listApprovalAdd.vue'), + meta: { + title: '设备检修保养验收单', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceCheckList', + }, + }, + { path: 'manageCheckList', name: 'manageCheckList', component: () => import('@/views/device/deviceMaintenance/manageCheckList.vue'), @@ -453,37 +465,6 @@ activeMenu: '/maintenance/manageCheckList', }, }, - { - path: ':type/:id?', - name: 'maintenanceAdd', - component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), - meta: { - title: '设备维护列表', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/maintenance/maintenanceList', - }, - beforeEnter: (to, from, next) => { - const type = from.path.split('/')[from.path.split('/').length - 1] - console.log(type) - switch (type) { - case 'maintenanceList': - to.meta.activeMenu = '/maintenance/maintenanceList' - to.meta.title = '设备维护列表' - break - case 'maintenanceCheckList': - to.meta.activeMenu = '/maintenance/maintenanceCheckList' - to.meta.title = '设备检修保养验收单' - break - case 'manageCheckList': - to.meta.activeMenu = '/maintenance/manageCheckList' - to.meta.title = '设备管理点检查表' - break - } - next() - }, - }, ], }, { diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts index fc2cfa7..b1d51bf 100644 --- a/src/views/device/deviceMaintenance/checkList_interface.ts +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -35,3 +35,8 @@ remark: string updateTime: null | string } + +export interface IOptions { + id: string + name: string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/all.vue b/src/views/device/deviceMaintenance/components/listApply/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue b/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue deleted file mode 100644 index 8a7a8bc..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/canceled.vue b/src/views/device/deviceMaintenance/components/listApply/canceled.vue deleted file mode 100644 index 3b9657c..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/canceled.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/draftBox.vue b/src/views/device/deviceMaintenance/components/listApply/draftBox.vue deleted file mode 100644 index 43d7b75..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/draftBox.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue b/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue deleted file mode 100644 index c13f95a..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/listPage.vue b/src/views/device/deviceMaintenance/components/listApply/listPage.vue deleted file mode 100644 index d269b33..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/listPage.vue +++ /dev/null @@ -1,506 +0,0 @@ - - - diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 525909d..f350d40 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -44,3 +44,66 @@ data, }) } + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts index c28e9ba..a5d557a 100644 --- a/src/api/device/standard.ts +++ b/src/api/device/standard.ts @@ -108,3 +108,13 @@ data, }) } + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 3d73df2..993d66c 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -187,18 +187,6 @@ auth: '/standard/expirationRemind', }, }, - // { - // path: 'expirationRemind/:type/:id?', - // name: 'fixedAssetsDetail', - // component: () => import('@/views/device/standardEquipment/components/standardListAdd.vue'), - // meta: { - // title: '到期提醒', - // icon: 'ep:key', - // sidebar: false, - // breadcrumb: true, - // activeMenu: '/standard/expirationRemind', - // }, - // }, { path: 'changeApply', name: 'changeApply', @@ -416,12 +404,24 @@ name: 'maintenanceList', component: () => import('@/views/device/deviceMaintenance/maintenanceList.vue'), meta: { - title: '设备维护列表', + title: '设备检修列表', icon: 'ep:key', auth: '/device/maintenanceList', }, }, { + path: 'maintenanceList/:type/:id?', + name: 'maintenanceAdd', + component: () => import('@/views/device/deviceMaintenance/components/listPageAdd.vue'), + meta: { + title: '设备检修列表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceList', + }, + }, + { path: 'maintenanceCheckList', name: 'maintenanceCheckList', component: () => import('@/views/device/deviceMaintenance/maintenanceCheckList.vue'), @@ -432,6 +432,18 @@ }, }, { + path: 'maintenanceCheckList/:type/:id?', + name: 'maintenanceCheckAdd', + component: () => import('@/views/device/deviceMaintenance/components/listApprovalAdd.vue'), + meta: { + title: '设备检修保养验收单', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceCheckList', + }, + }, + { path: 'manageCheckList', name: 'manageCheckList', component: () => import('@/views/device/deviceMaintenance/manageCheckList.vue'), @@ -453,37 +465,6 @@ activeMenu: '/maintenance/manageCheckList', }, }, - { - path: ':type/:id?', - name: 'maintenanceAdd', - component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), - meta: { - title: '设备维护列表', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/maintenance/maintenanceList', - }, - beforeEnter: (to, from, next) => { - const type = from.path.split('/')[from.path.split('/').length - 1] - console.log(type) - switch (type) { - case 'maintenanceList': - to.meta.activeMenu = '/maintenance/maintenanceList' - to.meta.title = '设备维护列表' - break - case 'maintenanceCheckList': - to.meta.activeMenu = '/maintenance/maintenanceCheckList' - to.meta.title = '设备检修保养验收单' - break - case 'manageCheckList': - to.meta.activeMenu = '/maintenance/manageCheckList' - to.meta.title = '设备管理点检查表' - break - } - next() - }, - }, ], }, { diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts index fc2cfa7..b1d51bf 100644 --- a/src/views/device/deviceMaintenance/checkList_interface.ts +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -35,3 +35,8 @@ remark: string updateTime: null | string } + +export interface IOptions { + id: string + name: string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/all.vue b/src/views/device/deviceMaintenance/components/listApply/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue b/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue deleted file mode 100644 index 8a7a8bc..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/canceled.vue b/src/views/device/deviceMaintenance/components/listApply/canceled.vue deleted file mode 100644 index 3b9657c..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/canceled.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/draftBox.vue b/src/views/device/deviceMaintenance/components/listApply/draftBox.vue deleted file mode 100644 index 43d7b75..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/draftBox.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue b/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue deleted file mode 100644 index c13f95a..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/listPage.vue b/src/views/device/deviceMaintenance/components/listApply/listPage.vue deleted file mode 100644 index d269b33..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/listPage.vue +++ /dev/null @@ -1,506 +0,0 @@ - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue deleted file mode 100644 index 5b4b6c7..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ /dev/null @@ -1,603 +0,0 @@ - - - - - diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 525909d..f350d40 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -44,3 +44,66 @@ data, }) } + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts index c28e9ba..a5d557a 100644 --- a/src/api/device/standard.ts +++ b/src/api/device/standard.ts @@ -108,3 +108,13 @@ data, }) } + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 3d73df2..993d66c 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -187,18 +187,6 @@ auth: '/standard/expirationRemind', }, }, - // { - // path: 'expirationRemind/:type/:id?', - // name: 'fixedAssetsDetail', - // component: () => import('@/views/device/standardEquipment/components/standardListAdd.vue'), - // meta: { - // title: '到期提醒', - // icon: 'ep:key', - // sidebar: false, - // breadcrumb: true, - // activeMenu: '/standard/expirationRemind', - // }, - // }, { path: 'changeApply', name: 'changeApply', @@ -416,12 +404,24 @@ name: 'maintenanceList', component: () => import('@/views/device/deviceMaintenance/maintenanceList.vue'), meta: { - title: '设备维护列表', + title: '设备检修列表', icon: 'ep:key', auth: '/device/maintenanceList', }, }, { + path: 'maintenanceList/:type/:id?', + name: 'maintenanceAdd', + component: () => import('@/views/device/deviceMaintenance/components/listPageAdd.vue'), + meta: { + title: '设备检修列表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceList', + }, + }, + { path: 'maintenanceCheckList', name: 'maintenanceCheckList', component: () => import('@/views/device/deviceMaintenance/maintenanceCheckList.vue'), @@ -432,6 +432,18 @@ }, }, { + path: 'maintenanceCheckList/:type/:id?', + name: 'maintenanceCheckAdd', + component: () => import('@/views/device/deviceMaintenance/components/listApprovalAdd.vue'), + meta: { + title: '设备检修保养验收单', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceCheckList', + }, + }, + { path: 'manageCheckList', name: 'manageCheckList', component: () => import('@/views/device/deviceMaintenance/manageCheckList.vue'), @@ -453,37 +465,6 @@ activeMenu: '/maintenance/manageCheckList', }, }, - { - path: ':type/:id?', - name: 'maintenanceAdd', - component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), - meta: { - title: '设备维护列表', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/maintenance/maintenanceList', - }, - beforeEnter: (to, from, next) => { - const type = from.path.split('/')[from.path.split('/').length - 1] - console.log(type) - switch (type) { - case 'maintenanceList': - to.meta.activeMenu = '/maintenance/maintenanceList' - to.meta.title = '设备维护列表' - break - case 'maintenanceCheckList': - to.meta.activeMenu = '/maintenance/maintenanceCheckList' - to.meta.title = '设备检修保养验收单' - break - case 'manageCheckList': - to.meta.activeMenu = '/maintenance/manageCheckList' - to.meta.title = '设备管理点检查表' - break - } - next() - }, - }, ], }, { diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts index fc2cfa7..b1d51bf 100644 --- a/src/views/device/deviceMaintenance/checkList_interface.ts +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -35,3 +35,8 @@ remark: string updateTime: null | string } + +export interface IOptions { + id: string + name: string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/all.vue b/src/views/device/deviceMaintenance/components/listApply/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue b/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue deleted file mode 100644 index 8a7a8bc..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/canceled.vue b/src/views/device/deviceMaintenance/components/listApply/canceled.vue deleted file mode 100644 index 3b9657c..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/canceled.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/draftBox.vue b/src/views/device/deviceMaintenance/components/listApply/draftBox.vue deleted file mode 100644 index 43d7b75..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/draftBox.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue b/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue deleted file mode 100644 index c13f95a..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/listPage.vue b/src/views/device/deviceMaintenance/components/listApply/listPage.vue deleted file mode 100644 index d269b33..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/listPage.vue +++ /dev/null @@ -1,506 +0,0 @@ - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue deleted file mode 100644 index 5b4b6c7..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ /dev/null @@ -1,603 +0,0 @@ - - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/notPass.vue b/src/views/device/deviceMaintenance/components/listApply/notPass.vue deleted file mode 100644 index 5a4b817..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/notPass.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 525909d..f350d40 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -44,3 +44,66 @@ data, }) } + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts index c28e9ba..a5d557a 100644 --- a/src/api/device/standard.ts +++ b/src/api/device/standard.ts @@ -108,3 +108,13 @@ data, }) } + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 3d73df2..993d66c 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -187,18 +187,6 @@ auth: '/standard/expirationRemind', }, }, - // { - // path: 'expirationRemind/:type/:id?', - // name: 'fixedAssetsDetail', - // component: () => import('@/views/device/standardEquipment/components/standardListAdd.vue'), - // meta: { - // title: '到期提醒', - // icon: 'ep:key', - // sidebar: false, - // breadcrumb: true, - // activeMenu: '/standard/expirationRemind', - // }, - // }, { path: 'changeApply', name: 'changeApply', @@ -416,12 +404,24 @@ name: 'maintenanceList', component: () => import('@/views/device/deviceMaintenance/maintenanceList.vue'), meta: { - title: '设备维护列表', + title: '设备检修列表', icon: 'ep:key', auth: '/device/maintenanceList', }, }, { + path: 'maintenanceList/:type/:id?', + name: 'maintenanceAdd', + component: () => import('@/views/device/deviceMaintenance/components/listPageAdd.vue'), + meta: { + title: '设备检修列表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceList', + }, + }, + { path: 'maintenanceCheckList', name: 'maintenanceCheckList', component: () => import('@/views/device/deviceMaintenance/maintenanceCheckList.vue'), @@ -432,6 +432,18 @@ }, }, { + path: 'maintenanceCheckList/:type/:id?', + name: 'maintenanceCheckAdd', + component: () => import('@/views/device/deviceMaintenance/components/listApprovalAdd.vue'), + meta: { + title: '设备检修保养验收单', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceCheckList', + }, + }, + { path: 'manageCheckList', name: 'manageCheckList', component: () => import('@/views/device/deviceMaintenance/manageCheckList.vue'), @@ -453,37 +465,6 @@ activeMenu: '/maintenance/manageCheckList', }, }, - { - path: ':type/:id?', - name: 'maintenanceAdd', - component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), - meta: { - title: '设备维护列表', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/maintenance/maintenanceList', - }, - beforeEnter: (to, from, next) => { - const type = from.path.split('/')[from.path.split('/').length - 1] - console.log(type) - switch (type) { - case 'maintenanceList': - to.meta.activeMenu = '/maintenance/maintenanceList' - to.meta.title = '设备维护列表' - break - case 'maintenanceCheckList': - to.meta.activeMenu = '/maintenance/maintenanceCheckList' - to.meta.title = '设备检修保养验收单' - break - case 'manageCheckList': - to.meta.activeMenu = '/maintenance/manageCheckList' - to.meta.title = '设备管理点检查表' - break - } - next() - }, - }, ], }, { diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts index fc2cfa7..b1d51bf 100644 --- a/src/views/device/deviceMaintenance/checkList_interface.ts +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -35,3 +35,8 @@ remark: string updateTime: null | string } + +export interface IOptions { + id: string + name: string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/all.vue b/src/views/device/deviceMaintenance/components/listApply/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue b/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue deleted file mode 100644 index 8a7a8bc..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/canceled.vue b/src/views/device/deviceMaintenance/components/listApply/canceled.vue deleted file mode 100644 index 3b9657c..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/canceled.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/draftBox.vue b/src/views/device/deviceMaintenance/components/listApply/draftBox.vue deleted file mode 100644 index 43d7b75..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/draftBox.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue b/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue deleted file mode 100644 index c13f95a..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/listPage.vue b/src/views/device/deviceMaintenance/components/listApply/listPage.vue deleted file mode 100644 index d269b33..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/listPage.vue +++ /dev/null @@ -1,506 +0,0 @@ - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue deleted file mode 100644 index 5b4b6c7..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ /dev/null @@ -1,603 +0,0 @@ - - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/notPass.vue b/src/views/device/deviceMaintenance/components/listApply/notPass.vue deleted file mode 100644 index 5a4b817..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/notPass.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/passed.vue b/src/views/device/deviceMaintenance/components/listApply/passed.vue deleted file mode 100644 index 31cd21c..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/passed.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 525909d..f350d40 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -44,3 +44,66 @@ data, }) } + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts index c28e9ba..a5d557a 100644 --- a/src/api/device/standard.ts +++ b/src/api/device/standard.ts @@ -108,3 +108,13 @@ data, }) } + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 3d73df2..993d66c 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -187,18 +187,6 @@ auth: '/standard/expirationRemind', }, }, - // { - // path: 'expirationRemind/:type/:id?', - // name: 'fixedAssetsDetail', - // component: () => import('@/views/device/standardEquipment/components/standardListAdd.vue'), - // meta: { - // title: '到期提醒', - // icon: 'ep:key', - // sidebar: false, - // breadcrumb: true, - // activeMenu: '/standard/expirationRemind', - // }, - // }, { path: 'changeApply', name: 'changeApply', @@ -416,12 +404,24 @@ name: 'maintenanceList', component: () => import('@/views/device/deviceMaintenance/maintenanceList.vue'), meta: { - title: '设备维护列表', + title: '设备检修列表', icon: 'ep:key', auth: '/device/maintenanceList', }, }, { + path: 'maintenanceList/:type/:id?', + name: 'maintenanceAdd', + component: () => import('@/views/device/deviceMaintenance/components/listPageAdd.vue'), + meta: { + title: '设备检修列表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceList', + }, + }, + { path: 'maintenanceCheckList', name: 'maintenanceCheckList', component: () => import('@/views/device/deviceMaintenance/maintenanceCheckList.vue'), @@ -432,6 +432,18 @@ }, }, { + path: 'maintenanceCheckList/:type/:id?', + name: 'maintenanceCheckAdd', + component: () => import('@/views/device/deviceMaintenance/components/listApprovalAdd.vue'), + meta: { + title: '设备检修保养验收单', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceCheckList', + }, + }, + { path: 'manageCheckList', name: 'manageCheckList', component: () => import('@/views/device/deviceMaintenance/manageCheckList.vue'), @@ -453,37 +465,6 @@ activeMenu: '/maintenance/manageCheckList', }, }, - { - path: ':type/:id?', - name: 'maintenanceAdd', - component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), - meta: { - title: '设备维护列表', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/maintenance/maintenanceList', - }, - beforeEnter: (to, from, next) => { - const type = from.path.split('/')[from.path.split('/').length - 1] - console.log(type) - switch (type) { - case 'maintenanceList': - to.meta.activeMenu = '/maintenance/maintenanceList' - to.meta.title = '设备维护列表' - break - case 'maintenanceCheckList': - to.meta.activeMenu = '/maintenance/maintenanceCheckList' - to.meta.title = '设备检修保养验收单' - break - case 'manageCheckList': - to.meta.activeMenu = '/maintenance/manageCheckList' - to.meta.title = '设备管理点检查表' - break - } - next() - }, - }, ], }, { diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts index fc2cfa7..b1d51bf 100644 --- a/src/views/device/deviceMaintenance/checkList_interface.ts +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -35,3 +35,8 @@ remark: string updateTime: null | string } + +export interface IOptions { + id: string + name: string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/all.vue b/src/views/device/deviceMaintenance/components/listApply/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue b/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue deleted file mode 100644 index 8a7a8bc..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/canceled.vue b/src/views/device/deviceMaintenance/components/listApply/canceled.vue deleted file mode 100644 index 3b9657c..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/canceled.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/draftBox.vue b/src/views/device/deviceMaintenance/components/listApply/draftBox.vue deleted file mode 100644 index 43d7b75..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/draftBox.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue b/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue deleted file mode 100644 index c13f95a..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/listPage.vue b/src/views/device/deviceMaintenance/components/listApply/listPage.vue deleted file mode 100644 index d269b33..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/listPage.vue +++ /dev/null @@ -1,506 +0,0 @@ - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue deleted file mode 100644 index 5b4b6c7..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ /dev/null @@ -1,603 +0,0 @@ - - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/notPass.vue b/src/views/device/deviceMaintenance/components/listApply/notPass.vue deleted file mode 100644 index 5a4b817..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/notPass.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/passed.vue b/src/views/device/deviceMaintenance/components/listApply/passed.vue deleted file mode 100644 index 31cd21c..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/passed.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApproval.vue b/src/views/device/deviceMaintenance/components/listApproval.vue new file mode 100644 index 0000000..2cfe2e0 --- /dev/null +++ b/src/views/device/deviceMaintenance/components/listApproval.vue @@ -0,0 +1,429 @@ + + + + diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 525909d..f350d40 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -44,3 +44,66 @@ data, }) } + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts index c28e9ba..a5d557a 100644 --- a/src/api/device/standard.ts +++ b/src/api/device/standard.ts @@ -108,3 +108,13 @@ data, }) } + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 3d73df2..993d66c 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -187,18 +187,6 @@ auth: '/standard/expirationRemind', }, }, - // { - // path: 'expirationRemind/:type/:id?', - // name: 'fixedAssetsDetail', - // component: () => import('@/views/device/standardEquipment/components/standardListAdd.vue'), - // meta: { - // title: '到期提醒', - // icon: 'ep:key', - // sidebar: false, - // breadcrumb: true, - // activeMenu: '/standard/expirationRemind', - // }, - // }, { path: 'changeApply', name: 'changeApply', @@ -416,12 +404,24 @@ name: 'maintenanceList', component: () => import('@/views/device/deviceMaintenance/maintenanceList.vue'), meta: { - title: '设备维护列表', + title: '设备检修列表', icon: 'ep:key', auth: '/device/maintenanceList', }, }, { + path: 'maintenanceList/:type/:id?', + name: 'maintenanceAdd', + component: () => import('@/views/device/deviceMaintenance/components/listPageAdd.vue'), + meta: { + title: '设备检修列表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceList', + }, + }, + { path: 'maintenanceCheckList', name: 'maintenanceCheckList', component: () => import('@/views/device/deviceMaintenance/maintenanceCheckList.vue'), @@ -432,6 +432,18 @@ }, }, { + path: 'maintenanceCheckList/:type/:id?', + name: 'maintenanceCheckAdd', + component: () => import('@/views/device/deviceMaintenance/components/listApprovalAdd.vue'), + meta: { + title: '设备检修保养验收单', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceCheckList', + }, + }, + { path: 'manageCheckList', name: 'manageCheckList', component: () => import('@/views/device/deviceMaintenance/manageCheckList.vue'), @@ -453,37 +465,6 @@ activeMenu: '/maintenance/manageCheckList', }, }, - { - path: ':type/:id?', - name: 'maintenanceAdd', - component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), - meta: { - title: '设备维护列表', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/maintenance/maintenanceList', - }, - beforeEnter: (to, from, next) => { - const type = from.path.split('/')[from.path.split('/').length - 1] - console.log(type) - switch (type) { - case 'maintenanceList': - to.meta.activeMenu = '/maintenance/maintenanceList' - to.meta.title = '设备维护列表' - break - case 'maintenanceCheckList': - to.meta.activeMenu = '/maintenance/maintenanceCheckList' - to.meta.title = '设备检修保养验收单' - break - case 'manageCheckList': - to.meta.activeMenu = '/maintenance/manageCheckList' - to.meta.title = '设备管理点检查表' - break - } - next() - }, - }, ], }, { diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts index fc2cfa7..b1d51bf 100644 --- a/src/views/device/deviceMaintenance/checkList_interface.ts +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -35,3 +35,8 @@ remark: string updateTime: null | string } + +export interface IOptions { + id: string + name: string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/all.vue b/src/views/device/deviceMaintenance/components/listApply/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue b/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue deleted file mode 100644 index 8a7a8bc..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/canceled.vue b/src/views/device/deviceMaintenance/components/listApply/canceled.vue deleted file mode 100644 index 3b9657c..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/canceled.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/draftBox.vue b/src/views/device/deviceMaintenance/components/listApply/draftBox.vue deleted file mode 100644 index 43d7b75..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/draftBox.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue b/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue deleted file mode 100644 index c13f95a..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/listPage.vue b/src/views/device/deviceMaintenance/components/listApply/listPage.vue deleted file mode 100644 index d269b33..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/listPage.vue +++ /dev/null @@ -1,506 +0,0 @@ - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue deleted file mode 100644 index 5b4b6c7..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ /dev/null @@ -1,603 +0,0 @@ - - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/notPass.vue b/src/views/device/deviceMaintenance/components/listApply/notPass.vue deleted file mode 100644 index 5a4b817..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/notPass.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/passed.vue b/src/views/device/deviceMaintenance/components/listApply/passed.vue deleted file mode 100644 index 31cd21c..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/passed.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApproval.vue b/src/views/device/deviceMaintenance/components/listApproval.vue new file mode 100644 index 0000000..2cfe2e0 --- /dev/null +++ b/src/views/device/deviceMaintenance/components/listApproval.vue @@ -0,0 +1,429 @@ + + + + diff --git a/src/views/device/deviceMaintenance/components/listApprovalAdd.vue b/src/views/device/deviceMaintenance/components/listApprovalAdd.vue new file mode 100644 index 0000000..9b7323f --- /dev/null +++ b/src/views/device/deviceMaintenance/components/listApprovalAdd.vue @@ -0,0 +1,668 @@ + + + + + diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 525909d..f350d40 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -44,3 +44,66 @@ data, }) } + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts index c28e9ba..a5d557a 100644 --- a/src/api/device/standard.ts +++ b/src/api/device/standard.ts @@ -108,3 +108,13 @@ data, }) } + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 3d73df2..993d66c 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -187,18 +187,6 @@ auth: '/standard/expirationRemind', }, }, - // { - // path: 'expirationRemind/:type/:id?', - // name: 'fixedAssetsDetail', - // component: () => import('@/views/device/standardEquipment/components/standardListAdd.vue'), - // meta: { - // title: '到期提醒', - // icon: 'ep:key', - // sidebar: false, - // breadcrumb: true, - // activeMenu: '/standard/expirationRemind', - // }, - // }, { path: 'changeApply', name: 'changeApply', @@ -416,12 +404,24 @@ name: 'maintenanceList', component: () => import('@/views/device/deviceMaintenance/maintenanceList.vue'), meta: { - title: '设备维护列表', + title: '设备检修列表', icon: 'ep:key', auth: '/device/maintenanceList', }, }, { + path: 'maintenanceList/:type/:id?', + name: 'maintenanceAdd', + component: () => import('@/views/device/deviceMaintenance/components/listPageAdd.vue'), + meta: { + title: '设备检修列表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceList', + }, + }, + { path: 'maintenanceCheckList', name: 'maintenanceCheckList', component: () => import('@/views/device/deviceMaintenance/maintenanceCheckList.vue'), @@ -432,6 +432,18 @@ }, }, { + path: 'maintenanceCheckList/:type/:id?', + name: 'maintenanceCheckAdd', + component: () => import('@/views/device/deviceMaintenance/components/listApprovalAdd.vue'), + meta: { + title: '设备检修保养验收单', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceCheckList', + }, + }, + { path: 'manageCheckList', name: 'manageCheckList', component: () => import('@/views/device/deviceMaintenance/manageCheckList.vue'), @@ -453,37 +465,6 @@ activeMenu: '/maintenance/manageCheckList', }, }, - { - path: ':type/:id?', - name: 'maintenanceAdd', - component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), - meta: { - title: '设备维护列表', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/maintenance/maintenanceList', - }, - beforeEnter: (to, from, next) => { - const type = from.path.split('/')[from.path.split('/').length - 1] - console.log(type) - switch (type) { - case 'maintenanceList': - to.meta.activeMenu = '/maintenance/maintenanceList' - to.meta.title = '设备维护列表' - break - case 'maintenanceCheckList': - to.meta.activeMenu = '/maintenance/maintenanceCheckList' - to.meta.title = '设备检修保养验收单' - break - case 'manageCheckList': - to.meta.activeMenu = '/maintenance/manageCheckList' - to.meta.title = '设备管理点检查表' - break - } - next() - }, - }, ], }, { diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts index fc2cfa7..b1d51bf 100644 --- a/src/views/device/deviceMaintenance/checkList_interface.ts +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -35,3 +35,8 @@ remark: string updateTime: null | string } + +export interface IOptions { + id: string + name: string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/all.vue b/src/views/device/deviceMaintenance/components/listApply/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue b/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue deleted file mode 100644 index 8a7a8bc..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/canceled.vue b/src/views/device/deviceMaintenance/components/listApply/canceled.vue deleted file mode 100644 index 3b9657c..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/canceled.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/draftBox.vue b/src/views/device/deviceMaintenance/components/listApply/draftBox.vue deleted file mode 100644 index 43d7b75..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/draftBox.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue b/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue deleted file mode 100644 index c13f95a..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/listPage.vue b/src/views/device/deviceMaintenance/components/listApply/listPage.vue deleted file mode 100644 index d269b33..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/listPage.vue +++ /dev/null @@ -1,506 +0,0 @@ - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue deleted file mode 100644 index 5b4b6c7..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ /dev/null @@ -1,603 +0,0 @@ - - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/notPass.vue b/src/views/device/deviceMaintenance/components/listApply/notPass.vue deleted file mode 100644 index 5a4b817..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/notPass.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/passed.vue b/src/views/device/deviceMaintenance/components/listApply/passed.vue deleted file mode 100644 index 31cd21c..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/passed.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApproval.vue b/src/views/device/deviceMaintenance/components/listApproval.vue new file mode 100644 index 0000000..2cfe2e0 --- /dev/null +++ b/src/views/device/deviceMaintenance/components/listApproval.vue @@ -0,0 +1,429 @@ + + + + diff --git a/src/views/device/deviceMaintenance/components/listApprovalAdd.vue b/src/views/device/deviceMaintenance/components/listApprovalAdd.vue new file mode 100644 index 0000000..9b7323f --- /dev/null +++ b/src/views/device/deviceMaintenance/components/listApprovalAdd.vue @@ -0,0 +1,668 @@ + + + + + diff --git a/src/views/device/deviceMaintenance/components/listMaintenanceApproval.vue b/src/views/device/deviceMaintenance/components/listMaintenanceApproval.vue new file mode 100644 index 0000000..2b3c946 --- /dev/null +++ b/src/views/device/deviceMaintenance/components/listMaintenanceApproval.vue @@ -0,0 +1,448 @@ + + + + diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 525909d..f350d40 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -44,3 +44,66 @@ data, }) } + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts index c28e9ba..a5d557a 100644 --- a/src/api/device/standard.ts +++ b/src/api/device/standard.ts @@ -108,3 +108,13 @@ data, }) } + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 3d73df2..993d66c 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -187,18 +187,6 @@ auth: '/standard/expirationRemind', }, }, - // { - // path: 'expirationRemind/:type/:id?', - // name: 'fixedAssetsDetail', - // component: () => import('@/views/device/standardEquipment/components/standardListAdd.vue'), - // meta: { - // title: '到期提醒', - // icon: 'ep:key', - // sidebar: false, - // breadcrumb: true, - // activeMenu: '/standard/expirationRemind', - // }, - // }, { path: 'changeApply', name: 'changeApply', @@ -416,12 +404,24 @@ name: 'maintenanceList', component: () => import('@/views/device/deviceMaintenance/maintenanceList.vue'), meta: { - title: '设备维护列表', + title: '设备检修列表', icon: 'ep:key', auth: '/device/maintenanceList', }, }, { + path: 'maintenanceList/:type/:id?', + name: 'maintenanceAdd', + component: () => import('@/views/device/deviceMaintenance/components/listPageAdd.vue'), + meta: { + title: '设备检修列表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceList', + }, + }, + { path: 'maintenanceCheckList', name: 'maintenanceCheckList', component: () => import('@/views/device/deviceMaintenance/maintenanceCheckList.vue'), @@ -432,6 +432,18 @@ }, }, { + path: 'maintenanceCheckList/:type/:id?', + name: 'maintenanceCheckAdd', + component: () => import('@/views/device/deviceMaintenance/components/listApprovalAdd.vue'), + meta: { + title: '设备检修保养验收单', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceCheckList', + }, + }, + { path: 'manageCheckList', name: 'manageCheckList', component: () => import('@/views/device/deviceMaintenance/manageCheckList.vue'), @@ -453,37 +465,6 @@ activeMenu: '/maintenance/manageCheckList', }, }, - { - path: ':type/:id?', - name: 'maintenanceAdd', - component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), - meta: { - title: '设备维护列表', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/maintenance/maintenanceList', - }, - beforeEnter: (to, from, next) => { - const type = from.path.split('/')[from.path.split('/').length - 1] - console.log(type) - switch (type) { - case 'maintenanceList': - to.meta.activeMenu = '/maintenance/maintenanceList' - to.meta.title = '设备维护列表' - break - case 'maintenanceCheckList': - to.meta.activeMenu = '/maintenance/maintenanceCheckList' - to.meta.title = '设备检修保养验收单' - break - case 'manageCheckList': - to.meta.activeMenu = '/maintenance/manageCheckList' - to.meta.title = '设备管理点检查表' - break - } - next() - }, - }, ], }, { diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts index fc2cfa7..b1d51bf 100644 --- a/src/views/device/deviceMaintenance/checkList_interface.ts +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -35,3 +35,8 @@ remark: string updateTime: null | string } + +export interface IOptions { + id: string + name: string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/all.vue b/src/views/device/deviceMaintenance/components/listApply/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue b/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue deleted file mode 100644 index 8a7a8bc..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/canceled.vue b/src/views/device/deviceMaintenance/components/listApply/canceled.vue deleted file mode 100644 index 3b9657c..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/canceled.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/draftBox.vue b/src/views/device/deviceMaintenance/components/listApply/draftBox.vue deleted file mode 100644 index 43d7b75..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/draftBox.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue b/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue deleted file mode 100644 index c13f95a..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/listPage.vue b/src/views/device/deviceMaintenance/components/listApply/listPage.vue deleted file mode 100644 index d269b33..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/listPage.vue +++ /dev/null @@ -1,506 +0,0 @@ - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue deleted file mode 100644 index 5b4b6c7..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ /dev/null @@ -1,603 +0,0 @@ - - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/notPass.vue b/src/views/device/deviceMaintenance/components/listApply/notPass.vue deleted file mode 100644 index 5a4b817..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/notPass.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/passed.vue b/src/views/device/deviceMaintenance/components/listApply/passed.vue deleted file mode 100644 index 31cd21c..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/passed.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApproval.vue b/src/views/device/deviceMaintenance/components/listApproval.vue new file mode 100644 index 0000000..2cfe2e0 --- /dev/null +++ b/src/views/device/deviceMaintenance/components/listApproval.vue @@ -0,0 +1,429 @@ + + + + diff --git a/src/views/device/deviceMaintenance/components/listApprovalAdd.vue b/src/views/device/deviceMaintenance/components/listApprovalAdd.vue new file mode 100644 index 0000000..9b7323f --- /dev/null +++ b/src/views/device/deviceMaintenance/components/listApprovalAdd.vue @@ -0,0 +1,668 @@ + + + + + diff --git a/src/views/device/deviceMaintenance/components/listMaintenanceApproval.vue b/src/views/device/deviceMaintenance/components/listMaintenanceApproval.vue new file mode 100644 index 0000000..2b3c946 --- /dev/null +++ b/src/views/device/deviceMaintenance/components/listMaintenanceApproval.vue @@ -0,0 +1,448 @@ + + + + diff --git a/src/views/device/deviceMaintenance/components/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listPageAdd.vue new file mode 100644 index 0000000..3247669 --- /dev/null +++ b/src/views/device/deviceMaintenance/components/listPageAdd.vue @@ -0,0 +1,579 @@ + + + + + diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 525909d..f350d40 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -44,3 +44,66 @@ data, }) } + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts index c28e9ba..a5d557a 100644 --- a/src/api/device/standard.ts +++ b/src/api/device/standard.ts @@ -108,3 +108,13 @@ data, }) } + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 3d73df2..993d66c 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -187,18 +187,6 @@ auth: '/standard/expirationRemind', }, }, - // { - // path: 'expirationRemind/:type/:id?', - // name: 'fixedAssetsDetail', - // component: () => import('@/views/device/standardEquipment/components/standardListAdd.vue'), - // meta: { - // title: '到期提醒', - // icon: 'ep:key', - // sidebar: false, - // breadcrumb: true, - // activeMenu: '/standard/expirationRemind', - // }, - // }, { path: 'changeApply', name: 'changeApply', @@ -416,12 +404,24 @@ name: 'maintenanceList', component: () => import('@/views/device/deviceMaintenance/maintenanceList.vue'), meta: { - title: '设备维护列表', + title: '设备检修列表', icon: 'ep:key', auth: '/device/maintenanceList', }, }, { + path: 'maintenanceList/:type/:id?', + name: 'maintenanceAdd', + component: () => import('@/views/device/deviceMaintenance/components/listPageAdd.vue'), + meta: { + title: '设备检修列表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceList', + }, + }, + { path: 'maintenanceCheckList', name: 'maintenanceCheckList', component: () => import('@/views/device/deviceMaintenance/maintenanceCheckList.vue'), @@ -432,6 +432,18 @@ }, }, { + path: 'maintenanceCheckList/:type/:id?', + name: 'maintenanceCheckAdd', + component: () => import('@/views/device/deviceMaintenance/components/listApprovalAdd.vue'), + meta: { + title: '设备检修保养验收单', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceCheckList', + }, + }, + { path: 'manageCheckList', name: 'manageCheckList', component: () => import('@/views/device/deviceMaintenance/manageCheckList.vue'), @@ -453,37 +465,6 @@ activeMenu: '/maintenance/manageCheckList', }, }, - { - path: ':type/:id?', - name: 'maintenanceAdd', - component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), - meta: { - title: '设备维护列表', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/maintenance/maintenanceList', - }, - beforeEnter: (to, from, next) => { - const type = from.path.split('/')[from.path.split('/').length - 1] - console.log(type) - switch (type) { - case 'maintenanceList': - to.meta.activeMenu = '/maintenance/maintenanceList' - to.meta.title = '设备维护列表' - break - case 'maintenanceCheckList': - to.meta.activeMenu = '/maintenance/maintenanceCheckList' - to.meta.title = '设备检修保养验收单' - break - case 'manageCheckList': - to.meta.activeMenu = '/maintenance/manageCheckList' - to.meta.title = '设备管理点检查表' - break - } - next() - }, - }, ], }, { diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts index fc2cfa7..b1d51bf 100644 --- a/src/views/device/deviceMaintenance/checkList_interface.ts +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -35,3 +35,8 @@ remark: string updateTime: null | string } + +export interface IOptions { + id: string + name: string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/all.vue b/src/views/device/deviceMaintenance/components/listApply/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue b/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue deleted file mode 100644 index 8a7a8bc..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/canceled.vue b/src/views/device/deviceMaintenance/components/listApply/canceled.vue deleted file mode 100644 index 3b9657c..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/canceled.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/draftBox.vue b/src/views/device/deviceMaintenance/components/listApply/draftBox.vue deleted file mode 100644 index 43d7b75..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/draftBox.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue b/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue deleted file mode 100644 index c13f95a..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/listPage.vue b/src/views/device/deviceMaintenance/components/listApply/listPage.vue deleted file mode 100644 index d269b33..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/listPage.vue +++ /dev/null @@ -1,506 +0,0 @@ - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue deleted file mode 100644 index 5b4b6c7..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ /dev/null @@ -1,603 +0,0 @@ - - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/notPass.vue b/src/views/device/deviceMaintenance/components/listApply/notPass.vue deleted file mode 100644 index 5a4b817..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/notPass.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/passed.vue b/src/views/device/deviceMaintenance/components/listApply/passed.vue deleted file mode 100644 index 31cd21c..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/passed.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApproval.vue b/src/views/device/deviceMaintenance/components/listApproval.vue new file mode 100644 index 0000000..2cfe2e0 --- /dev/null +++ b/src/views/device/deviceMaintenance/components/listApproval.vue @@ -0,0 +1,429 @@ + + + + diff --git a/src/views/device/deviceMaintenance/components/listApprovalAdd.vue b/src/views/device/deviceMaintenance/components/listApprovalAdd.vue new file mode 100644 index 0000000..9b7323f --- /dev/null +++ b/src/views/device/deviceMaintenance/components/listApprovalAdd.vue @@ -0,0 +1,668 @@ + + + + + diff --git a/src/views/device/deviceMaintenance/components/listMaintenanceApproval.vue b/src/views/device/deviceMaintenance/components/listMaintenanceApproval.vue new file mode 100644 index 0000000..2b3c946 --- /dev/null +++ b/src/views/device/deviceMaintenance/components/listMaintenanceApproval.vue @@ -0,0 +1,448 @@ + + + + diff --git a/src/views/device/deviceMaintenance/components/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listPageAdd.vue new file mode 100644 index 0000000..3247669 --- /dev/null +++ b/src/views/device/deviceMaintenance/components/listPageAdd.vue @@ -0,0 +1,579 @@ + + + + + diff --git a/src/views/device/deviceMaintenance/components/manageAdd.vue b/src/views/device/deviceMaintenance/components/manageAdd.vue index 5143309..9f8f98b 100644 --- a/src/views/device/deviceMaintenance/components/manageAdd.vue +++ b/src/views/device/deviceMaintenance/components/manageAdd.vue @@ -8,7 +8,7 @@ import type { ISupplier } from '../checkList_interface' import showPhoto from '@/views/system/tool/showPhoto.vue' import { UploadFile } from '@/api/measure/file' -import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +// import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' import { validatePhone } from '@/utils/validate' import { SCHEDULE } from '@/utils/scheduleDict' @@ -117,40 +117,17 @@ }, ).then(() => { if (pageType.value === 'add') { - getselectCheckInfo(formInline.value).then((res) => { - if (res.code === '200') { + getAddCheckInfo(formInline.value).then((res) => { + if (res.code === 200) { close() } }) } - else if (pageType.value === 'edit') { // 编辑 - // getselectCheckInfo(formInline.value).then((res) => { - // if (res.code === '200') { - // close() - // } - // }) - } }) } }) } -// 提交表单 -function submitForm() { - if (formInline.value.id) { - const params = { - id: formInline.value.id, - formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id - } - sourceSubmit(params).then((res) => { - ElMessage.success('提交成功') - close() - }) - } - else { - ElMessage.info('请先保存再提交!') - } -} const isShow = ref(false) const testForm = ref({ fileList: [], diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 525909d..f350d40 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -44,3 +44,66 @@ data, }) } + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts index c28e9ba..a5d557a 100644 --- a/src/api/device/standard.ts +++ b/src/api/device/standard.ts @@ -108,3 +108,13 @@ data, }) } + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 3d73df2..993d66c 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -187,18 +187,6 @@ auth: '/standard/expirationRemind', }, }, - // { - // path: 'expirationRemind/:type/:id?', - // name: 'fixedAssetsDetail', - // component: () => import('@/views/device/standardEquipment/components/standardListAdd.vue'), - // meta: { - // title: '到期提醒', - // icon: 'ep:key', - // sidebar: false, - // breadcrumb: true, - // activeMenu: '/standard/expirationRemind', - // }, - // }, { path: 'changeApply', name: 'changeApply', @@ -416,12 +404,24 @@ name: 'maintenanceList', component: () => import('@/views/device/deviceMaintenance/maintenanceList.vue'), meta: { - title: '设备维护列表', + title: '设备检修列表', icon: 'ep:key', auth: '/device/maintenanceList', }, }, { + path: 'maintenanceList/:type/:id?', + name: 'maintenanceAdd', + component: () => import('@/views/device/deviceMaintenance/components/listPageAdd.vue'), + meta: { + title: '设备检修列表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceList', + }, + }, + { path: 'maintenanceCheckList', name: 'maintenanceCheckList', component: () => import('@/views/device/deviceMaintenance/maintenanceCheckList.vue'), @@ -432,6 +432,18 @@ }, }, { + path: 'maintenanceCheckList/:type/:id?', + name: 'maintenanceCheckAdd', + component: () => import('@/views/device/deviceMaintenance/components/listApprovalAdd.vue'), + meta: { + title: '设备检修保养验收单', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceCheckList', + }, + }, + { path: 'manageCheckList', name: 'manageCheckList', component: () => import('@/views/device/deviceMaintenance/manageCheckList.vue'), @@ -453,37 +465,6 @@ activeMenu: '/maintenance/manageCheckList', }, }, - { - path: ':type/:id?', - name: 'maintenanceAdd', - component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), - meta: { - title: '设备维护列表', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/maintenance/maintenanceList', - }, - beforeEnter: (to, from, next) => { - const type = from.path.split('/')[from.path.split('/').length - 1] - console.log(type) - switch (type) { - case 'maintenanceList': - to.meta.activeMenu = '/maintenance/maintenanceList' - to.meta.title = '设备维护列表' - break - case 'maintenanceCheckList': - to.meta.activeMenu = '/maintenance/maintenanceCheckList' - to.meta.title = '设备检修保养验收单' - break - case 'manageCheckList': - to.meta.activeMenu = '/maintenance/manageCheckList' - to.meta.title = '设备管理点检查表' - break - } - next() - }, - }, ], }, { diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts index fc2cfa7..b1d51bf 100644 --- a/src/views/device/deviceMaintenance/checkList_interface.ts +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -35,3 +35,8 @@ remark: string updateTime: null | string } + +export interface IOptions { + id: string + name: string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/all.vue b/src/views/device/deviceMaintenance/components/listApply/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue b/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue deleted file mode 100644 index 8a7a8bc..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/canceled.vue b/src/views/device/deviceMaintenance/components/listApply/canceled.vue deleted file mode 100644 index 3b9657c..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/canceled.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/draftBox.vue b/src/views/device/deviceMaintenance/components/listApply/draftBox.vue deleted file mode 100644 index 43d7b75..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/draftBox.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue b/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue deleted file mode 100644 index c13f95a..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/listPage.vue b/src/views/device/deviceMaintenance/components/listApply/listPage.vue deleted file mode 100644 index d269b33..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/listPage.vue +++ /dev/null @@ -1,506 +0,0 @@ - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue deleted file mode 100644 index 5b4b6c7..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ /dev/null @@ -1,603 +0,0 @@ - - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/notPass.vue b/src/views/device/deviceMaintenance/components/listApply/notPass.vue deleted file mode 100644 index 5a4b817..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/notPass.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/passed.vue b/src/views/device/deviceMaintenance/components/listApply/passed.vue deleted file mode 100644 index 31cd21c..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/passed.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApproval.vue b/src/views/device/deviceMaintenance/components/listApproval.vue new file mode 100644 index 0000000..2cfe2e0 --- /dev/null +++ b/src/views/device/deviceMaintenance/components/listApproval.vue @@ -0,0 +1,429 @@ + + + + diff --git a/src/views/device/deviceMaintenance/components/listApprovalAdd.vue b/src/views/device/deviceMaintenance/components/listApprovalAdd.vue new file mode 100644 index 0000000..9b7323f --- /dev/null +++ b/src/views/device/deviceMaintenance/components/listApprovalAdd.vue @@ -0,0 +1,668 @@ + + + + + diff --git a/src/views/device/deviceMaintenance/components/listMaintenanceApproval.vue b/src/views/device/deviceMaintenance/components/listMaintenanceApproval.vue new file mode 100644 index 0000000..2b3c946 --- /dev/null +++ b/src/views/device/deviceMaintenance/components/listMaintenanceApproval.vue @@ -0,0 +1,448 @@ + + + + diff --git a/src/views/device/deviceMaintenance/components/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listPageAdd.vue new file mode 100644 index 0000000..3247669 --- /dev/null +++ b/src/views/device/deviceMaintenance/components/listPageAdd.vue @@ -0,0 +1,579 @@ + + + + + diff --git a/src/views/device/deviceMaintenance/components/manageAdd.vue b/src/views/device/deviceMaintenance/components/manageAdd.vue index 5143309..9f8f98b 100644 --- a/src/views/device/deviceMaintenance/components/manageAdd.vue +++ b/src/views/device/deviceMaintenance/components/manageAdd.vue @@ -8,7 +8,7 @@ import type { ISupplier } from '../checkList_interface' import showPhoto from '@/views/system/tool/showPhoto.vue' import { UploadFile } from '@/api/measure/file' -import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +// import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' import { validatePhone } from '@/utils/validate' import { SCHEDULE } from '@/utils/scheduleDict' @@ -117,40 +117,17 @@ }, ).then(() => { if (pageType.value === 'add') { - getselectCheckInfo(formInline.value).then((res) => { - if (res.code === '200') { + getAddCheckInfo(formInline.value).then((res) => { + if (res.code === 200) { close() } }) } - else if (pageType.value === 'edit') { // 编辑 - // getselectCheckInfo(formInline.value).then((res) => { - // if (res.code === '200') { - // close() - // } - // }) - } }) } }) } -// 提交表单 -function submitForm() { - if (formInline.value.id) { - const params = { - id: formInline.value.id, - formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id - } - sourceSubmit(params).then((res) => { - ElMessage.success('提交成功') - close() - }) - } - else { - ElMessage.info('请先保存再提交!') - } -} const isShow = ref(false) const testForm = ref({ fileList: [], diff --git a/src/views/device/deviceMaintenance/maintenanceCheckList.vue b/src/views/device/deviceMaintenance/maintenanceCheckList.vue index c6edd5e..38a5811 100644 --- a/src/views/device/deviceMaintenance/maintenanceCheckList.vue +++ b/src/views/device/deviceMaintenance/maintenanceCheckList.vue @@ -1,12 +1,110 @@ - diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 525909d..f350d40 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -44,3 +44,66 @@ data, }) } + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts index c28e9ba..a5d557a 100644 --- a/src/api/device/standard.ts +++ b/src/api/device/standard.ts @@ -108,3 +108,13 @@ data, }) } + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 3d73df2..993d66c 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -187,18 +187,6 @@ auth: '/standard/expirationRemind', }, }, - // { - // path: 'expirationRemind/:type/:id?', - // name: 'fixedAssetsDetail', - // component: () => import('@/views/device/standardEquipment/components/standardListAdd.vue'), - // meta: { - // title: '到期提醒', - // icon: 'ep:key', - // sidebar: false, - // breadcrumb: true, - // activeMenu: '/standard/expirationRemind', - // }, - // }, { path: 'changeApply', name: 'changeApply', @@ -416,12 +404,24 @@ name: 'maintenanceList', component: () => import('@/views/device/deviceMaintenance/maintenanceList.vue'), meta: { - title: '设备维护列表', + title: '设备检修列表', icon: 'ep:key', auth: '/device/maintenanceList', }, }, { + path: 'maintenanceList/:type/:id?', + name: 'maintenanceAdd', + component: () => import('@/views/device/deviceMaintenance/components/listPageAdd.vue'), + meta: { + title: '设备检修列表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceList', + }, + }, + { path: 'maintenanceCheckList', name: 'maintenanceCheckList', component: () => import('@/views/device/deviceMaintenance/maintenanceCheckList.vue'), @@ -432,6 +432,18 @@ }, }, { + path: 'maintenanceCheckList/:type/:id?', + name: 'maintenanceCheckAdd', + component: () => import('@/views/device/deviceMaintenance/components/listApprovalAdd.vue'), + meta: { + title: '设备检修保养验收单', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceCheckList', + }, + }, + { path: 'manageCheckList', name: 'manageCheckList', component: () => import('@/views/device/deviceMaintenance/manageCheckList.vue'), @@ -453,37 +465,6 @@ activeMenu: '/maintenance/manageCheckList', }, }, - { - path: ':type/:id?', - name: 'maintenanceAdd', - component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), - meta: { - title: '设备维护列表', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/maintenance/maintenanceList', - }, - beforeEnter: (to, from, next) => { - const type = from.path.split('/')[from.path.split('/').length - 1] - console.log(type) - switch (type) { - case 'maintenanceList': - to.meta.activeMenu = '/maintenance/maintenanceList' - to.meta.title = '设备维护列表' - break - case 'maintenanceCheckList': - to.meta.activeMenu = '/maintenance/maintenanceCheckList' - to.meta.title = '设备检修保养验收单' - break - case 'manageCheckList': - to.meta.activeMenu = '/maintenance/manageCheckList' - to.meta.title = '设备管理点检查表' - break - } - next() - }, - }, ], }, { diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts index fc2cfa7..b1d51bf 100644 --- a/src/views/device/deviceMaintenance/checkList_interface.ts +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -35,3 +35,8 @@ remark: string updateTime: null | string } + +export interface IOptions { + id: string + name: string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/all.vue b/src/views/device/deviceMaintenance/components/listApply/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue b/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue deleted file mode 100644 index 8a7a8bc..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/canceled.vue b/src/views/device/deviceMaintenance/components/listApply/canceled.vue deleted file mode 100644 index 3b9657c..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/canceled.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/draftBox.vue b/src/views/device/deviceMaintenance/components/listApply/draftBox.vue deleted file mode 100644 index 43d7b75..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/draftBox.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue b/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue deleted file mode 100644 index c13f95a..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/listPage.vue b/src/views/device/deviceMaintenance/components/listApply/listPage.vue deleted file mode 100644 index d269b33..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/listPage.vue +++ /dev/null @@ -1,506 +0,0 @@ - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue deleted file mode 100644 index 5b4b6c7..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ /dev/null @@ -1,603 +0,0 @@ - - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/notPass.vue b/src/views/device/deviceMaintenance/components/listApply/notPass.vue deleted file mode 100644 index 5a4b817..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/notPass.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/passed.vue b/src/views/device/deviceMaintenance/components/listApply/passed.vue deleted file mode 100644 index 31cd21c..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/passed.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApproval.vue b/src/views/device/deviceMaintenance/components/listApproval.vue new file mode 100644 index 0000000..2cfe2e0 --- /dev/null +++ b/src/views/device/deviceMaintenance/components/listApproval.vue @@ -0,0 +1,429 @@ + + + + diff --git a/src/views/device/deviceMaintenance/components/listApprovalAdd.vue b/src/views/device/deviceMaintenance/components/listApprovalAdd.vue new file mode 100644 index 0000000..9b7323f --- /dev/null +++ b/src/views/device/deviceMaintenance/components/listApprovalAdd.vue @@ -0,0 +1,668 @@ + + + + + diff --git a/src/views/device/deviceMaintenance/components/listMaintenanceApproval.vue b/src/views/device/deviceMaintenance/components/listMaintenanceApproval.vue new file mode 100644 index 0000000..2b3c946 --- /dev/null +++ b/src/views/device/deviceMaintenance/components/listMaintenanceApproval.vue @@ -0,0 +1,448 @@ + + + + diff --git a/src/views/device/deviceMaintenance/components/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listPageAdd.vue new file mode 100644 index 0000000..3247669 --- /dev/null +++ b/src/views/device/deviceMaintenance/components/listPageAdd.vue @@ -0,0 +1,579 @@ + + + + + diff --git a/src/views/device/deviceMaintenance/components/manageAdd.vue b/src/views/device/deviceMaintenance/components/manageAdd.vue index 5143309..9f8f98b 100644 --- a/src/views/device/deviceMaintenance/components/manageAdd.vue +++ b/src/views/device/deviceMaintenance/components/manageAdd.vue @@ -8,7 +8,7 @@ import type { ISupplier } from '../checkList_interface' import showPhoto from '@/views/system/tool/showPhoto.vue' import { UploadFile } from '@/api/measure/file' -import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +// import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' import { validatePhone } from '@/utils/validate' import { SCHEDULE } from '@/utils/scheduleDict' @@ -117,40 +117,17 @@ }, ).then(() => { if (pageType.value === 'add') { - getselectCheckInfo(formInline.value).then((res) => { - if (res.code === '200') { + getAddCheckInfo(formInline.value).then((res) => { + if (res.code === 200) { close() } }) } - else if (pageType.value === 'edit') { // 编辑 - // getselectCheckInfo(formInline.value).then((res) => { - // if (res.code === '200') { - // close() - // } - // }) - } }) } }) } -// 提交表单 -function submitForm() { - if (formInline.value.id) { - const params = { - id: formInline.value.id, - formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id - } - sourceSubmit(params).then((res) => { - ElMessage.success('提交成功') - close() - }) - } - else { - ElMessage.info('请先保存再提交!') - } -} const isShow = ref(false) const testForm = ref({ fileList: [], diff --git a/src/views/device/deviceMaintenance/maintenanceCheckList.vue b/src/views/device/deviceMaintenance/maintenanceCheckList.vue index c6edd5e..38a5811 100644 --- a/src/views/device/deviceMaintenance/maintenanceCheckList.vue +++ b/src/views/device/deviceMaintenance/maintenanceCheckList.vue @@ -1,12 +1,110 @@ - diff --git a/src/views/device/deviceMaintenance/maintenanceList.vue b/src/views/device/deviceMaintenance/maintenanceList.vue index 0e03f84..6cff9e2 100644 --- a/src/views/device/deviceMaintenance/maintenanceList.vue +++ b/src/views/device/deviceMaintenance/maintenanceList.vue @@ -1,12 +1,110 @@ - diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 525909d..f350d40 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -44,3 +44,66 @@ data, }) } + +// 设备检修保养验收单列表 +export function getacceptanceCheckList(data: { limit: number; offset: number }) { + return request({ + url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请新建 +export function addEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/addEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请详情信息 +export function equipmentApplyInfo(data: object) { + return request({ + url: '/equipmentApply/equipmentApplyInfo', + method: 'post', + data, + }) +} + +// 设备维护列表 +export function getEquipmentApplyList(data: { limit: number; offset: number }) { + return request({ + url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 设备检修申请提交 +export function submitEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/submitEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请删除 +export function deleteEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} + +// 设备检修申请编辑 +export function updateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts index c28e9ba..a5d557a 100644 --- a/src/api/device/standard.ts +++ b/src/api/device/standard.ts @@ -108,3 +108,13 @@ data, }) } + +// 点击提交 +export function submitStandardEquipmentApply(data: object) { + return request({ + url: '/standard/submitStandardEquipmentApply', + method: 'post', + data, + }) +} + diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 3d73df2..993d66c 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -187,18 +187,6 @@ auth: '/standard/expirationRemind', }, }, - // { - // path: 'expirationRemind/:type/:id?', - // name: 'fixedAssetsDetail', - // component: () => import('@/views/device/standardEquipment/components/standardListAdd.vue'), - // meta: { - // title: '到期提醒', - // icon: 'ep:key', - // sidebar: false, - // breadcrumb: true, - // activeMenu: '/standard/expirationRemind', - // }, - // }, { path: 'changeApply', name: 'changeApply', @@ -416,12 +404,24 @@ name: 'maintenanceList', component: () => import('@/views/device/deviceMaintenance/maintenanceList.vue'), meta: { - title: '设备维护列表', + title: '设备检修列表', icon: 'ep:key', auth: '/device/maintenanceList', }, }, { + path: 'maintenanceList/:type/:id?', + name: 'maintenanceAdd', + component: () => import('@/views/device/deviceMaintenance/components/listPageAdd.vue'), + meta: { + title: '设备检修列表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceList', + }, + }, + { path: 'maintenanceCheckList', name: 'maintenanceCheckList', component: () => import('@/views/device/deviceMaintenance/maintenanceCheckList.vue'), @@ -432,6 +432,18 @@ }, }, { + path: 'maintenanceCheckList/:type/:id?', + name: 'maintenanceCheckAdd', + component: () => import('@/views/device/deviceMaintenance/components/listApprovalAdd.vue'), + meta: { + title: '设备检修保养验收单', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/maintenanceCheckList', + }, + }, + { path: 'manageCheckList', name: 'manageCheckList', component: () => import('@/views/device/deviceMaintenance/manageCheckList.vue'), @@ -453,37 +465,6 @@ activeMenu: '/maintenance/manageCheckList', }, }, - { - path: ':type/:id?', - name: 'maintenanceAdd', - component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), - meta: { - title: '设备维护列表', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/maintenance/maintenanceList', - }, - beforeEnter: (to, from, next) => { - const type = from.path.split('/')[from.path.split('/').length - 1] - console.log(type) - switch (type) { - case 'maintenanceList': - to.meta.activeMenu = '/maintenance/maintenanceList' - to.meta.title = '设备维护列表' - break - case 'maintenanceCheckList': - to.meta.activeMenu = '/maintenance/maintenanceCheckList' - to.meta.title = '设备检修保养验收单' - break - case 'manageCheckList': - to.meta.activeMenu = '/maintenance/manageCheckList' - to.meta.title = '设备管理点检查表' - break - } - next() - }, - }, ], }, { diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts index fc2cfa7..b1d51bf 100644 --- a/src/views/device/deviceMaintenance/checkList_interface.ts +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -35,3 +35,8 @@ remark: string updateTime: null | string } + +export interface IOptions { + id: string + name: string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/all.vue b/src/views/device/deviceMaintenance/components/listApply/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue b/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue deleted file mode 100644 index 8a7a8bc..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/approvalPending.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/canceled.vue b/src/views/device/deviceMaintenance/components/listApply/canceled.vue deleted file mode 100644 index 3b9657c..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/canceled.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/draftBox.vue b/src/views/device/deviceMaintenance/components/listApply/draftBox.vue deleted file mode 100644 index 43d7b75..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/draftBox.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue b/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue deleted file mode 100644 index c13f95a..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/examineAndApprove.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/listPage.vue b/src/views/device/deviceMaintenance/components/listApply/listPage.vue deleted file mode 100644 index d269b33..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/listPage.vue +++ /dev/null @@ -1,506 +0,0 @@ - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue deleted file mode 100644 index 5b4b6c7..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ /dev/null @@ -1,603 +0,0 @@ - - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/notPass.vue b/src/views/device/deviceMaintenance/components/listApply/notPass.vue deleted file mode 100644 index 5a4b817..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/notPass.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApply/passed.vue b/src/views/device/deviceMaintenance/components/listApply/passed.vue deleted file mode 100644 index 31cd21c..0000000 --- a/src/views/device/deviceMaintenance/components/listApply/passed.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/views/device/deviceMaintenance/components/listApproval.vue b/src/views/device/deviceMaintenance/components/listApproval.vue new file mode 100644 index 0000000..2cfe2e0 --- /dev/null +++ b/src/views/device/deviceMaintenance/components/listApproval.vue @@ -0,0 +1,429 @@ + + + + diff --git a/src/views/device/deviceMaintenance/components/listApprovalAdd.vue b/src/views/device/deviceMaintenance/components/listApprovalAdd.vue new file mode 100644 index 0000000..9b7323f --- /dev/null +++ b/src/views/device/deviceMaintenance/components/listApprovalAdd.vue @@ -0,0 +1,668 @@ + + + + + diff --git a/src/views/device/deviceMaintenance/components/listMaintenanceApproval.vue b/src/views/device/deviceMaintenance/components/listMaintenanceApproval.vue new file mode 100644 index 0000000..2b3c946 --- /dev/null +++ b/src/views/device/deviceMaintenance/components/listMaintenanceApproval.vue @@ -0,0 +1,448 @@ + + + + diff --git a/src/views/device/deviceMaintenance/components/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listPageAdd.vue new file mode 100644 index 0000000..3247669 --- /dev/null +++ b/src/views/device/deviceMaintenance/components/listPageAdd.vue @@ -0,0 +1,579 @@ + + + + + diff --git a/src/views/device/deviceMaintenance/components/manageAdd.vue b/src/views/device/deviceMaintenance/components/manageAdd.vue index 5143309..9f8f98b 100644 --- a/src/views/device/deviceMaintenance/components/manageAdd.vue +++ b/src/views/device/deviceMaintenance/components/manageAdd.vue @@ -8,7 +8,7 @@ import type { ISupplier } from '../checkList_interface' import showPhoto from '@/views/system/tool/showPhoto.vue' import { UploadFile } from '@/api/measure/file' -import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +// import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' import { validatePhone } from '@/utils/validate' import { SCHEDULE } from '@/utils/scheduleDict' @@ -117,40 +117,17 @@ }, ).then(() => { if (pageType.value === 'add') { - getselectCheckInfo(formInline.value).then((res) => { - if (res.code === '200') { + getAddCheckInfo(formInline.value).then((res) => { + if (res.code === 200) { close() } }) } - else if (pageType.value === 'edit') { // 编辑 - // getselectCheckInfo(formInline.value).then((res) => { - // if (res.code === '200') { - // close() - // } - // }) - } }) } }) } -// 提交表单 -function submitForm() { - if (formInline.value.id) { - const params = { - id: formInline.value.id, - formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id - } - sourceSubmit(params).then((res) => { - ElMessage.success('提交成功') - close() - }) - } - else { - ElMessage.info('请先保存再提交!') - } -} const isShow = ref(false) const testForm = ref({ fileList: [], diff --git a/src/views/device/deviceMaintenance/maintenanceCheckList.vue b/src/views/device/deviceMaintenance/maintenanceCheckList.vue index c6edd5e..38a5811 100644 --- a/src/views/device/deviceMaintenance/maintenanceCheckList.vue +++ b/src/views/device/deviceMaintenance/maintenanceCheckList.vue @@ -1,12 +1,110 @@ - diff --git a/src/views/device/deviceMaintenance/maintenanceList.vue b/src/views/device/deviceMaintenance/maintenanceList.vue index 0e03f84..6cff9e2 100644 --- a/src/views/device/deviceMaintenance/maintenanceList.vue +++ b/src/views/device/deviceMaintenance/maintenanceList.vue @@ -1,12 +1,110 @@ - diff --git a/src/views/device/deviceMaintenance/manageCheckList.vue b/src/views/device/deviceMaintenance/manageCheckList.vue index 0940420..9556d73 100644 --- a/src/views/device/deviceMaintenance/manageCheckList.vue +++ b/src/views/device/deviceMaintenance/manageCheckList.vue @@ -177,7 +177,7 @@ // todo: 批量导入 fileRef.value.click() } -// 添加溯源供方 +// 添加设备管理点检查 const add = () => { $router.push('/maintenance/manageCheckList/add') } @@ -269,21 +269,12 @@