diff --git a/src/api/mes/pro/recipe.js b/src/api/mes/pro/recipe.js new file mode 100644 index 0000000..870e8b1 --- /dev/null +++ b/src/api/mes/pro/recipe.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询生产工序列表 +export function listProcess(query) { + return request({ + url: '/mes/pro/recipe/list', + method: 'get', + params: query + }) +} + +// 查询所有有效生产工序 +export function listAllProcess() { + return request({ + url: '/mes/pro/recipe/listAll', + method: 'get' + }) +} + + +// 查询生产工序详细 +export function getProcess(recipeId) { + return request({ + url: '/mes/pro/recipe/' + recipeId, + method: 'get' + }) +} + +// 新增生产工序 +export function addProcess(data) { + return request({ + url: '/mes/pro/recipe', + method: 'post', + data: data + }) +} + +// 修改生产工序 +export function updateProcess(data) { + return request({ + url: '/mes/pro/recipe', + method: 'put', + data: data + }) +} + +// 删除生产工序 +export function delProcess(recipeId) { + return request({ + url: '/mes/pro/recipe/' + recipeId, + method: 'delete' + }) +} diff --git a/src/api/mes/pro/recipecontent.js b/src/api/mes/pro/recipecontent.js new file mode 100644 index 0000000..9a8c01a --- /dev/null +++ b/src/api/mes/pro/recipecontent.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询生产工序内容列表 +export function listProcesscontent(query) { + return request({ + url: '/mes/pro/recipecontent/list', + method: 'get', + params: query + }) +} + +// 查询生产工序内容详细 +export function getProcesscontent(contentId) { + return request({ + url: '/mes/pro/recipecontent/' + contentId, + method: 'get' + }) +} + +// 新增生产工序内容 +export function addProcesscontent(data) { + return request({ + url: '/mes/pro/recipecontent', + method: 'post', + data: data + }) +} + +// 修改生产工序内容 +export function updateProcesscontent(data) { + return request({ + url: '/mes/pro/recipecontent', + method: 'put', + data: data + }) +} + +// 删除生产工序内容 +export function delProcesscontent(contentId) { + return request({ + url: '/mes/pro/recipecontent/' + contentId, + method: 'delete' + }) +} diff --git a/src/api/mes/pro/workorder.js b/src/api/mes/pro/workorder.js new file mode 100644 index 0000000..015d003 --- /dev/null +++ b/src/api/mes/pro/workorder.js @@ -0,0 +1,52 @@ +import request from '@/utils/request' + +// 查询生产工单列表 +export function listWorkorder(query) { + return request({ + url: '/mes/pro/workorder/list', + method: 'get', + params: query + }); +} + +// 查询生产工单详细 +export function getWorkorder(workorderId) { + return request({ + url: '/mes/pro/workorder/' + workorderId, + method: 'get' + }); +} + +// 新增生产工单 +export function addWorkorder(data) { + return request({ + url: '/mes/pro/workorder', + method: 'post', + data: data + }); +} + +// 修改生产工单 +export function updateWorkorder(data) { + return request({ + url: '/mes/pro/workorder', + method: 'put', + data: data + }); +} + +// 删除生产工单 +export function delWorkorder(workorderId) { + return request({ + url: '/mes/pro/workorder/' + workorderId, + method: 'delete' + }); +} + +//下发生产工单 +export function downWorkorder(workorderId) { + return request({ + url: '/mes/pro/workorder/downWorkorder/' + workorderId, + method: 'post' + }); +} diff --git a/src/components/itemSelect/index.vue b/src/components/itemSelect/index.vue new file mode 100644 index 0000000..aef9f8c --- /dev/null +++ b/src/components/itemSelect/index.vue @@ -0,0 +1,222 @@ + + + \ No newline at end of file diff --git a/src/components/itemSelect/single.vue b/src/components/itemSelect/single.vue new file mode 100644 index 0000000..65fec35 --- /dev/null +++ b/src/components/itemSelect/single.vue @@ -0,0 +1,238 @@ + + + \ No newline at end of file diff --git a/src/views/mes/pro/recipe/content.vue b/src/views/mes/pro/recipe/content.vue new file mode 100644 index 0000000..1fcd5df --- /dev/null +++ b/src/views/mes/pro/recipe/content.vue @@ -0,0 +1,320 @@ + + + diff --git a/src/views/mes/pro/recipe/index.vue b/src/views/mes/pro/recipe/index.vue new file mode 100644 index 0000000..0ffa044 --- /dev/null +++ b/src/views/mes/pro/recipe/index.vue @@ -0,0 +1,408 @@ + + + diff --git a/src/views/mes/pro/workorder/index.vue b/src/views/mes/pro/workorder/index.vue new file mode 100644 index 0000000..12a16a0 --- /dev/null +++ b/src/views/mes/pro/workorder/index.vue @@ -0,0 +1,519 @@ + + + \ No newline at end of file