From c52f2fedaa72a26b6eec9104cb123e3dec080a07 Mon Sep 17 00:00:00 2001
From: "JinLu.Yin" <411641505@qq.com>
Date: Tue, 10 May 2022 22:06:36 +0800
Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E7=AB=99=E8=AE=BE=E7=BD=AE?=
=?UTF-8?q?=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/mes/md/workstation.js | 44 +++
src/views/mes/md/workstation/index.vue | 446 +++++++++++++++++++++++++
src/views/system/autocode/part.vue | 2 +-
3 files changed, 491 insertions(+), 1 deletion(-)
create mode 100644 src/api/mes/md/workstation.js
create mode 100644 src/views/mes/md/workstation/index.vue
diff --git a/src/api/mes/md/workstation.js b/src/api/mes/md/workstation.js
new file mode 100644
index 0000000..78905b9
--- /dev/null
+++ b/src/api/mes/md/workstation.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询工作站列表
+export function listWorkstation(query) {
+ return request({
+ url: '/mes/md/workstation/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询工作站详细
+export function getWorkstation(workstationId) {
+ return request({
+ url: '/mes/md/workstation/' + workstationId,
+ method: 'get'
+ })
+}
+
+// 新增工作站
+export function addWorkstation(data) {
+ return request({
+ url: '/mes/md/workstation',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改工作站
+export function updateWorkstation(data) {
+ return request({
+ url: '/mes/md/workstation',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除工作站
+export function delWorkstation(workstationId) {
+ return request({
+ url: '/mes/md/workstation/' + workstationId,
+ method: 'delete'
+ })
+}
diff --git a/src/views/mes/md/workstation/index.vue b/src/views/mes/md/workstation/index.vue
new file mode 100644
index 0000000..7fd7133
--- /dev/null
+++ b/src/views/mes/md/workstation/index.vue
@@ -0,0 +1,446 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 导出
+
+
+
+
+
+
+
+
+ {{scope.row.workstationCode}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{dict.label}}
+
+
+ {{dict.label}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/autocode/part.vue b/src/views/system/autocode/part.vue
index 2ade0a2..d402b41 100644
--- a/src/views/system/autocode/part.vue
+++ b/src/views/system/autocode/part.vue
@@ -309,7 +309,7 @@ export default {
},
/** 返回按钮操作 */
handleClose() {
- const obj = { path: "/system/autocode/rule" };
+ const obj = { path: "/system/autocodeRule" };
this.$tab.closeOpenPage(obj);
},
/** 重置按钮操作 */