From e9e4a253b0a90568bcb50f0e6e6e3f3b31fff0d9 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 18 May 2026 13:49:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=96=B7=E7=A0=81=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E7=8B=AC=E7=AB=8B=E5=88=B0=E9=A1=B6=E6=A0=8F=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?,=20=E5=91=BD=E5=90=8D=E7=BB=9F=E4=B8=80=E4=B8=BA"=E5=96=B7?= =?UTF-8?q?=E7=A0=81"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 顶栏新增独立"喷码设置"图标与弹窗, 与打印机解耦 - coder_ip/port/field 持久化到 localStorage (新增 tool.setCoder) - 标签模板编辑页移除 coder_* 三个字段 (后端已删除) - wprList 喷码下发改为从 localStorage 读取配置, 显式带 body 下发 - 全部界面文案统一为"喷码", API 字段名 coder_* 不变 Co-Authored-By: Claude Opus 4.7 (1M context) --- src/api/model/cm.js | 2 +- src/layout/components/userbar.vue | 39 +++++++++++++++++++++++++++++++ src/utils/tool.js | 5 ++++ src/views/sys/labeltemplate.vue | 21 ----------------- src/views/wpm_bx/wprList.vue | 19 +++++++++------ 5 files changed, 57 insertions(+), 29 deletions(-) diff --git a/src/api/model/cm.js b/src/api/model/cm.js index 55e3d55c..cf9940e3 100644 --- a/src/api/model/cm.js +++ b/src/api/model/cm.js @@ -95,7 +95,7 @@ export default { } }, sendToCoder:{ - name: "下发到打码器", + name: "下发到喷码", req: async function(id, data){ return await http.post( `${config.API_URL}/cm/labeltemplate/${id}/send_to_coder/`, diff --git a/src/layout/components/userbar.vue b/src/layout/components/userbar.vue index 36040479..20d61451 100644 --- a/src/layout/components/userbar.vue +++ b/src/layout/components/userbar.vue @@ -5,6 +5,11 @@ +
+ + + +
@@ -104,6 +109,22 @@ 保存 + + + + + + + + + + + + + + 保存 + + - - -