From 33a6362a6e50684b3652d6ac8bd7a61a9978f11b Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期六, 13 六月 2026 14:40:48 +0800
Subject: [PATCH] 君歌 1.对于新增订单需流转协同办公进行审批,审批完成流转生产管控-生产订单 2.客户分类修改为:核心、重要、普通、一般。 3.可对报价多次修改,修改后流转至协同办公-协同审批-报价审批,并对每次报价进行记录。 4.不合格管理字段按照单据进行修改。 5.谁登记的客户只能看见自己的,负责人(维护人)可以转移,操作加一个‘客户交接’按钮选择要交接给的负责人

---
 src/views/collaborativeApproval/knowledgeBase/index.vue |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/src/views/collaborativeApproval/knowledgeBase/index.vue b/src/views/collaborativeApproval/knowledgeBase/index.vue
index 0c31e24..f50d06b 100644
--- a/src/views/collaborativeApproval/knowledgeBase/index.vue
+++ b/src/views/collaborativeApproval/knowledgeBase/index.vue
@@ -1142,11 +1142,24 @@
 
 // ============ 鐭ヨ瘑搴撻棶绛旂浉鍏� ============
 
+// 鐢熸垚UUID鐨刦allback鏂规
+const generateUUID = () => {
+  if (typeof crypto !== 'undefined' && crypto.randomUUID) {
+    return crypto.randomUUID();
+  }
+  // fallback: 鍏煎涓嶆敮鎸� crypto.randomUUID 鐨勭幆澧�
+  return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
+    const r = Math.random() * 16 | 0;
+    const v = c === 'x' ? r : (r & 0x3 | 0x8);
+    return v.toString(16);
+  });
+};
+
 // 鎵撳紑闂瓟寮圭獥
 const openChatDialog = (row) => {
   currentKnowledgeBase.value = row;
   chatDialogVisible.value = true;
-  memoryId.value = crypto.randomUUID();
+  memoryId.value = generateUUID();
   messages.value = [];
   inputQuestion.value = "";
 };
@@ -1240,7 +1253,7 @@
     }
   ).then(() => {
     messages.value = [];
-    memoryId.value = crypto.randomUUID(); // 閲嶆柊鐢熸垚浼氳瘽ID
+    memoryId.value = generateUUID(); // 閲嶆柊鐢熸垚浼氳瘽ID
     ElMessage.success("瀵硅瘽宸叉竻绌�");
   }).catch(() => {
     // 鐢ㄦ埛鍙栨秷

--
Gitblit v1.9.3