From 91874fc927117dfeb9050791dd8f060e874d2fd6 Mon Sep 17 00:00:00 2001
From: buhuazhen <hua100783@gmail.com>
Date: 星期四, 21 五月 2026 14:06:55 +0800
Subject: [PATCH] feat: 质检功能优化 - 支持快速合格判定 1. 将检验管理页面的"编辑"按钮改为"质检" 2. 点击"质检"时弹出对话框选择合格/不合格 3. 选择"合格"时自动填充当前时间和当前用户,直接提交 4. 选择"不合格"时进入详细填写页面,检测结果默认为"不合格"涉及文件:- 原材料检验、出厂检验、过程检验的index.vue和formDia.vue
---
src/hooks/useModal.js | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/hooks/useModal.js b/src/hooks/useModal.js
index 12d945c..0d443a1 100644
--- a/src/hooks/useModal.js
+++ b/src/hooks/useModal.js
@@ -8,11 +8,10 @@
const openModal = (e) => {
id.value = e;
modalOptions.value = {
- title: e ? "缂栬緫璁惧鍙拌处" : "鏂板璁惧鍙拌处",
+ title: e ? `淇敼${options.title}` : `鏂板${options.title}`,
content: "纭畾鎵ц姝ゆ搷浣滃悧锛�",
confirmText: "纭畾",
cancelText: "鍙栨秷",
- ...options,
};
visible.value = true;
};
--
Gitblit v1.9.3