From ac18942a4b17c4e4643a9b1089e5ecf34028ab31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=A4=E5=AD=A6=E4=BC=9A?= Date: Mon, 15 Jun 2026 12:06:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=89=8D=E7=AB=AF=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E6=96=87=E6=A1=88=E4=B8=8E=E5=AE=BD=E8=A1=A8=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/App.vue | 4 +- frontend/src/components/FormDrawer.test.js | 15 ++ frontend/src/components/FormDrawer.vue | 8 +- frontend/src/components/OrgPermissionTree.vue | 7 +- .../src/components/ProductWorkflowDrawer.vue | 17 +- frontend/src/components/StocktakeDialog.vue | 1 - .../src/styles/actionTableButtons.test.js | 11 +- frontend/src/styles/main.css | 25 ++- frontend/src/styles/staticCopyAudit.test.js | 65 ++++++ frontend/src/views/InventoryLedgerView.vue | 28 +-- .../src/views/ProductSpecLiteView.test.js | 13 +- frontend/src/views/ProductSpecLiteView.vue | 195 +----------------- .../src/views/SystemExtensionView.test.js | 2 +- frontend/src/views/SystemExtensionView.vue | 9 +- frontend/src/views/SystemPermissionView.vue | 8 - 15 files changed, 147 insertions(+), 261 deletions(-) create mode 100644 frontend/src/components/FormDrawer.test.js create mode 100644 frontend/src/styles/staticCopyAudit.test.js diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 3910c47..17a8d38 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -187,7 +187,6 @@

AI 助手

百华工艺助手

-

当前为内置占位对话,真实 LLM 可在 08 系统拓展中配置。

@@ -251,7 +250,6 @@

管理员操作

重置他人密码

-

用于协助其他用户忘记密码时重置登录密码,仅系统管理员可用。

@@ -1202,7 +1200,7 @@ function sendAssistantMessage() { chatMessages.value.push({ id: Date.now() + 1, role: "assistant", - content: "我已收到。当前聊天窗口已就绪,后续在 08 系统拓展配置 LLM API 后,可以把这里切换为真实模型回复。现在我可以先作为操作入口,帮助你记录和梳理 ERP 问题。" + content: "已收到。" }); } diff --git a/frontend/src/components/FormDrawer.test.js b/frontend/src/components/FormDrawer.test.js new file mode 100644 index 0000000..6148015 --- /dev/null +++ b/frontend/src/components/FormDrawer.test.js @@ -0,0 +1,15 @@ +import assert from "node:assert/strict"; +import { describe, it } from "node:test"; +import { readFileSync } from "node:fs"; +import { dirname, join } from "node:path"; +import { fileURLToPath } from "node:url"; + +const __dirname = dirname(fileURLToPath(import.meta.url)); +const source = readFileSync(join(__dirname, "FormDrawer.vue"), "utf8"); + +describe("FormDrawer copy discipline", () => { + it("does not render description copy as an always-visible header paragraph", () => { + assert.doesNotMatch(source, /class="form-drawer-description"/); + assert.doesNotMatch(source, /aria-describedby="description/); + }); +}); diff --git a/frontend/src/components/FormDrawer.vue b/frontend/src/components/FormDrawer.vue index 9280060..6829bc8 100644 --- a/frontend/src/components/FormDrawer.vue +++ b/frontend/src/components/FormDrawer.vue @@ -1,14 +1,13 @@