From 43ba33062b54804fe054c51b26da76f88cf1197d Mon Sep 17 00:00:00 2001 From: zwq Date: Fri, 29 Nov 2024 16:42:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/core/base/lineBindProcess.js | 28 ++++ src/api/core/base/lineBindProduct.js | 8 + src/utils/dict.js | 3 +- src/views/core/base/lineBindProcess/index.vue | 99 +++++++++++++ .../base/lineBindProcess/selectProduct.vue | 80 ++++++++++ .../core/base/lineBindProcessLog/index.vue | 140 ++++++++++++++++++ .../base/lineBindProduct/changeStatus.vue | 53 +++++++ src/views/core/base/lineBindProduct/index.vue | 10 +- 8 files changed, 418 insertions(+), 3 deletions(-) create mode 100644 src/api/core/base/lineBindProcess.js create mode 100644 src/views/core/base/lineBindProcess/index.vue create mode 100644 src/views/core/base/lineBindProcess/selectProduct.vue create mode 100644 src/views/core/base/lineBindProcessLog/index.vue create mode 100644 src/views/core/base/lineBindProduct/changeStatus.vue diff --git a/src/api/core/base/lineBindProcess.js b/src/api/core/base/lineBindProcess.js new file mode 100644 index 00000000..aa1e4806 --- /dev/null +++ b/src/api/core/base/lineBindProcess.js @@ -0,0 +1,28 @@ +import request from '@/utils/request' + + +// 切换工艺 +export function switchLineBindProcess(data) { + return request({ + url: '/base/line-bind-process/switch', + method: 'put', + data: data + }) +} +// 获得产线工艺目前生产工艺 +export function getLineBindProcessPage(query) { + return request({ + url: '/base/line-bind-process/nowList', + method: 'get', + params: query + }) +} + +// 获得产线工艺log分页 +export function getLineBindProcessLogPage(query) { + return request({ + url: '/base/line-bind-process/logPage', + method: 'get', + params: query + }) +} diff --git a/src/api/core/base/lineBindProduct.js b/src/api/core/base/lineBindProduct.js index dd1203e1..ca3f6308 100644 --- a/src/api/core/base/lineBindProduct.js +++ b/src/api/core/base/lineBindProduct.js @@ -16,6 +16,14 @@ export function switchLineBindProduct(data) { data: data }) } +// 切换产线是否可以自动 +export function switchAutoProduct(data) { + return request({ + url: '/base/line-bind-product/switchAuto', + method: 'put', + data: data + }) +} // 更新产线目前生产产品表 主要为更新 export function updateLineBindProduct(data) { return request({ diff --git a/src/utils/dict.js b/src/utils/dict.js index 77b6b2b6..f6560706 100644 --- a/src/utils/dict.js +++ b/src/utils/dict.js @@ -86,10 +86,11 @@ export const DICT_TYPE = { // ============== PRODUCT - 产品模块 ============= UNIT_DICT: 'unit_dict', PRODUCT_TYPE: 'product_type', + PROCESS_TYPE: 'process_type', // ============== ENERGY - 能源模块 ============= ENERGY_UNIT: 'energy_unit', - + // ============== ENERGY - 能源模块 ============= EQU_ALARM_LEVEL: 'equ_alarm_level', MONITOR_INDEX_TYPE: 'monitor_index_type', diff --git a/src/views/core/base/lineBindProcess/index.vue b/src/views/core/base/lineBindProcess/index.vue new file mode 100644 index 00000000..34278a24 --- /dev/null +++ b/src/views/core/base/lineBindProcess/index.vue @@ -0,0 +1,99 @@ + + + + diff --git a/src/views/core/base/lineBindProcess/selectProduct.vue b/src/views/core/base/lineBindProcess/selectProduct.vue new file mode 100644 index 00000000..004db1e4 --- /dev/null +++ b/src/views/core/base/lineBindProcess/selectProduct.vue @@ -0,0 +1,80 @@ + + + + diff --git a/src/views/core/base/lineBindProcessLog/index.vue b/src/views/core/base/lineBindProcessLog/index.vue new file mode 100644 index 00000000..778638df --- /dev/null +++ b/src/views/core/base/lineBindProcessLog/index.vue @@ -0,0 +1,140 @@ + + + diff --git a/src/views/core/base/lineBindProduct/changeStatus.vue b/src/views/core/base/lineBindProduct/changeStatus.vue new file mode 100644 index 00000000..09387a1e --- /dev/null +++ b/src/views/core/base/lineBindProduct/changeStatus.vue @@ -0,0 +1,53 @@ + + + + diff --git a/src/views/core/base/lineBindProduct/index.vue b/src/views/core/base/lineBindProduct/index.vue index 3abff327..a5dc0d3a 100644 --- a/src/views/core/base/lineBindProduct/index.vue +++ b/src/views/core/base/lineBindProduct/index.vue @@ -1,8 +1,8 @@