From c8769276a68322e509f1af79dd1f2312db2a76d5 Mon Sep 17 00:00:00 2001 From: shaoyong Date: Wed, 21 Aug 2024 14:25:25 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=B1=E4=BD=93=E5=88=86=E7=B1=BB=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/mesBox.js | 53 ++++ src/api/mes/mesBoxDetail.js | 44 ++++ src/router/index.js | 14 ++ src/views/mes/mesBox/detail.vue | 415 ++++++++++++++++++++++++++++++++ src/views/mes/mesBox/index.vue | 280 +++++++++++++++++++++ 5 files changed, 806 insertions(+) create mode 100644 src/api/mes/mesBox.js create mode 100644 src/api/mes/mesBoxDetail.js create mode 100644 src/views/mes/mesBox/detail.vue create mode 100644 src/views/mes/mesBox/index.vue diff --git a/src/api/mes/mesBox.js b/src/api/mes/mesBox.js new file mode 100644 index 0000000..d21b80f --- /dev/null +++ b/src/api/mes/mesBox.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询箱体类型列表 +export function listMesBox(query) { + return request({ + url: '/mes/mesBox/list', + method: 'get', + params: query + }); +} + +// 查询箱体类型详细 +export function getMesBox(boxId) { + return request({ + url: '/mes/mesBox/' + boxId, + method: 'get' + }); +} + + +// 新增箱体类型 +export function addMesBox(data) { + return request({ + url: '/mes/mesBox', + method: 'post', + data: data + }); +} + +// 修改箱体类型 +export function updateMesBox(data) { + return request({ + url: '/mes/mesBox', + method: 'put', + data: data + }); +} + +// 删除箱体类型 +export function delMesBox(boxId) { + return request({ + url: '/mes/mesBox/' + boxId, + method: 'delete' + }); +} + +// 获取字典选择框列表 +export function optionSelect() { + return request({ + url: '/mes/mesBox/optionSelect', + method: 'get' + }) +} diff --git a/src/api/mes/mesBoxDetail.js b/src/api/mes/mesBoxDetail.js new file mode 100644 index 0000000..25e1be4 --- /dev/null +++ b/src/api/mes/mesBoxDetail.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询字典数据列表 +export function listMesBoxDetail(query) { + return request({ + url: '/mes/mesBoxDetail/list', + method: 'get', + params: query + }); +} + +// 查询字典数据详细 +export function getMesBoxDetail(boxCode) { + return request({ + url: '/mes/mesBoxDetail/' + boxCode, + method: 'get' + }); +} + +// 新增字典数据 +export function addMesBoxDetail(data) { + return request({ + url: '/mes/mesBoxDetail', + method: 'post', + data: data + }); +} + +// 修改字典数据 +export function updateMesBoxDetail(data) { + return request({ + url: '/mes/mesBoxDetail', + method: 'put', + data: data + }); +} + +// 删除字典数据 +export function delMesBoxDetail(boxCode) { + return request({ + url: '/mes/mesBoxDetail/' + boxCode, + method: 'delete' + }); +} diff --git a/src/router/index.js b/src/router/index.js index 49336de..2ecae50 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -226,6 +226,20 @@ export const dynamicRoutes = [ } ] }, + { + path: '/mes/box-detail', + component: Layout, + hidden: true, + permissions: ['mes:mesBoxDetail:list'], + children: [ + { + path: 'index/:boxId(\\d+)', + component: () => import('@/views/mes/mesBox/detail'), + name: 'Detail', + meta: { title: '箱体数据', activeMenu: '/mes/mesBox' } + } + ] + }, { path: '/qua/quality/qcProject-data', component: Layout, diff --git a/src/views/mes/mesBox/detail.vue b/src/views/mes/mesBox/detail.vue new file mode 100644 index 0000000..ee9e014 --- /dev/null +++ b/src/views/mes/mesBox/detail.vue @@ -0,0 +1,415 @@ + + + diff --git a/src/views/mes/mesBox/index.vue b/src/views/mes/mesBox/index.vue new file mode 100644 index 0000000..aba53a3 --- /dev/null +++ b/src/views/mes/mesBox/index.vue @@ -0,0 +1,280 @@ + + +