From fa4fbed26273a921e6d23935656b7dc064406873 Mon Sep 17 00:00:00 2001 From: weitingdong <2480899115@qq.com> Date: Tue, 16 Jul 2024 17:13:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E7=A5=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/smart/workpermit.js | 77 +++ src/api/smart/workpermitattachment.js | 59 ++ src/router/views/index.js | 14 + src/views/smart/workpermit.vue | 568 ++++++++++++++++++ src/views/smart/workpermitDetail.vue | 820 ++++++++++++++++++++++++++ 5 files changed, 1538 insertions(+) create mode 100644 src/api/smart/workpermit.js create mode 100644 src/api/smart/workpermitattachment.js create mode 100644 src/views/smart/workpermit.vue create mode 100644 src/views/smart/workpermitDetail.vue diff --git a/src/api/smart/workpermit.js b/src/api/smart/workpermit.js new file mode 100644 index 0000000..50c8f90 --- /dev/null +++ b/src/api/smart/workpermit.js @@ -0,0 +1,77 @@ +import request from '@/router/axios'; + +export const getList = (current, size, params) => { + return request({ + url: '/api/smart/workpermit/list', + method: 'get', + params: { + ...params, + current, + size, + } + }) +} + +export const getDetail = (id) => { + return request({ + url: '/api/smart/workpermit/detail', + method: 'get', + params: { + id + } + }) +} + +export const remove = (ids) => { + return request({ + url: '/api/smart/workpermit/remove', + method: 'post', + params: { + ids, + } + }) +} + +export const add = (row) => { + return request({ + url: '/api/smart/workpermit/submit', + method: 'post', + data: row + }) +} + +export const update = (row) => { + return request({ + url: '/api/smart/workpermit/submit', + method: 'post', + data: row + }) +} +export const auditing = (ids) => { + return request({ + url: '/api/smart/workpermit/auditing', + method: 'post', + params: { + ids, + } + }) +} + +export const reject = (ids) => { + return request({ + url: '/api/smart/workpermit/reject', + method: 'post', + params: { + ids, + } + }) +} +export const closeTicket = (ids) => { + return request({ + url: '/api/smart/workpermit/closeTicket', + method: 'post', + params: { + ids, + } + }) +} diff --git a/src/api/smart/workpermitattachment.js b/src/api/smart/workpermitattachment.js new file mode 100644 index 0000000..ef3069c --- /dev/null +++ b/src/api/smart/workpermitattachment.js @@ -0,0 +1,59 @@ +import request from '@/router/axios'; + +export const getList = (current, size, params) => { + return request({ + url: '/api/smart/workpermitattachment/list', + method: 'get', + params: { + ...params, + current, + size, + } + }) +} + +export const getDetail = (id) => { + return request({ + url: '/api/smart/workpermitattachment/detail', + method: 'get', + params: { + id + } + }) +} + +export const attachment_remove = (ids) => { + return request({ + url: '/api/smart/workpermitattachment/remove', + method: 'post', + params: { + ids, + } + }) +} + +export const attachment_add = (row) => { + return request({ + url: '/api/smart/workpermitattachment/submit', + method: 'post', + data: row + }) +} + +export const attachment_update = (row) => { + return request({ + url: '/api/smart/workpermitattachment/update', + method: 'post', + data: row + }) +} +export const attachment_getListBylegerId = (workTicketNo) => { + return request({ + url: '/api/smart/workpermitattachment/getList', + method: 'get', + params: { + workTicketNo: workTicketNo + } + }) +} + diff --git a/src/router/views/index.js b/src/router/views/index.js index 1c9a929..62be553 100644 --- a/src/router/views/index.js +++ b/src/router/views/index.js @@ -152,5 +152,19 @@ export default [{ component: () => import( /* webpackChunkName: "views" */ '@/views/spares/materialDetail') }] +}, { + path: '/smart', + component: Layout, + redirect: '/smart/index', + children: [{ + path: 'workpermitDetail', + name: '工作票详情', + meta: { + menu: false + }, + component: () => + import( /* webpackChunkName: "views" */ '@/views/smart/workpermitDetail') + }] } + ] diff --git a/src/views/smart/workpermit.vue b/src/views/smart/workpermit.vue new file mode 100644 index 0000000..1337648 --- /dev/null +++ b/src/views/smart/workpermit.vue @@ -0,0 +1,568 @@ + + + + + 批量删除 + + + + 新增 + + 批量审核 + + 批量驳回 + + 导出 + + + + 查看详情 + 关票 + 删除 + + + + + + + + 取消 + + 关票 + + + + + + + + + + diff --git a/src/views/smart/workpermitDetail.vue b/src/views/smart/workpermitDetail.vue new file mode 100644 index 0000000..c7d3666 --- /dev/null +++ b/src/views/smart/workpermitDetail.vue @@ -0,0 +1,820 @@ + + + + + + + + 审核状态: + + + + + + + + + + + + + + + + + + + + + + + + 确定 + + 取消 + + 关票 + + 审核 + + 驳回 + + 修改 + + 删除 + + + + + + +