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 @@
@@ -30,6 +30,7 @@ import basicPage from '../../mixins/basic-page';
import { parseTime } from '../../mixins/code-filter';
import { getLineBindProductPage } from '@/api/core/base/lineBindProduct';
import selectProduct from './selectProduct';
+import changeStatus from './changeStatus';
import { getProductPage } from '@/api/core/base/product';
const tableProps = [
@@ -43,6 +44,11 @@ const tableProps = [
list: [],
subcomponent: selectProduct,
},
+ {
+ prop: 'allowAuto',
+ label: '允许自动',
+ subcomponent: changeStatus,
+ },
{
prop: 'recordTime',
label: '开始时间',