From 320b7bd2669c435aa4344bac208502d943b3478d Mon Sep 17 00:00:00 2001 From: bb_pan Date: Mon, 30 Jun 2025 18:01:49 +0800 Subject: [PATCH] =?UTF-8?q?=E9=93=AD=E7=89=8C=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages.json | 6 + src/pages/dateUpdate/index.vue | 2 +- src/pages/nameplateUpdate/index.vue | 333 ++++++++++++++++++++++++++++ src/pages/work/index.vue | 2 +- src/services/information.js | 19 ++ 5 files changed, 360 insertions(+), 2 deletions(-) create mode 100644 src/pages/nameplateUpdate/index.vue create mode 100644 src/services/information.js diff --git a/src/pages.json b/src/pages.json index 44f5403..0b75fb3 100644 --- a/src/pages.json +++ b/src/pages.json @@ -686,6 +686,12 @@ "navigationStyle": "custom" } }, + { + "path": "pages/nameplateUpdate/index", + "style": { + "navigationStyle": "custom" + } + }, // 材料站 start // 首页 { diff --git a/src/pages/dateUpdate/index.vue b/src/pages/dateUpdate/index.vue index e686ef2..5d819e7 100644 --- a/src/pages/dateUpdate/index.vue +++ b/src/pages/dateUpdate/index.vue @@ -48,7 +48,7 @@ - + + diff --git a/src/pages/work/index.vue b/src/pages/work/index.vue index bfdb8d7..1bd6312 100644 --- a/src/pages/work/index.vue +++ b/src/pages/work/index.vue @@ -158,7 +158,7 @@ const newInfoList = ref([ }, { title: '铭牌更新', - url: '', + url: '/pages/nameplateUpdate/index', iconSrc: '../../static/workbench/minPai.png', }, ]) diff --git a/src/services/information.js b/src/services/information.js new file mode 100644 index 0000000..c0d2eee --- /dev/null +++ b/src/services/information.js @@ -0,0 +1,19 @@ +import { http } from '@/utils/http' + +// 获取铭牌信息 +export const getInfoByCode = (data) => { + return http({ + method: 'GET', + url: '/material/ma_machine/getInfoByCode', + data, + }) +} + +// 更新铭牌 +export const updateInfo = (data) => { + return http({ + method: 'PUT', + url: '/material/ma_machine', + data, + }) +} \ No newline at end of file