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 @@ + + +