From 1a585111271062373862d448620c00899fab0af0 Mon Sep 17 00:00:00 2001 From: zhaoxiaolin Date: Fri, 28 Jul 2023 16:28:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/pro/recipe.js | 53 +++ src/api/mes/pro/recipecontent.js | 44 +++ src/api/mes/pro/workorder.js | 52 +++ src/components/itemSelect/index.vue | 222 +++++++++++ src/components/itemSelect/single.vue | 238 ++++++++++++ src/views/mes/pro/recipe/content.vue | 320 ++++++++++++++++ src/views/mes/pro/recipe/index.vue | 408 ++++++++++++++++++++ src/views/mes/pro/workorder/index.vue | 519 ++++++++++++++++++++++++++ 8 files changed, 1856 insertions(+) create mode 100644 src/api/mes/pro/recipe.js create mode 100644 src/api/mes/pro/recipecontent.js create mode 100644 src/api/mes/pro/workorder.js create mode 100644 src/components/itemSelect/index.vue create mode 100644 src/components/itemSelect/single.vue create mode 100644 src/views/mes/pro/recipe/content.vue create mode 100644 src/views/mes/pro/recipe/index.vue create mode 100644 src/views/mes/pro/workorder/index.vue 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